# Stop the copy-paste of \`create-xdc.sh\`, \`webxdc.js\`, \`eruda.js\`

**URL:** <https://forum.delta.chat/t/stop-the-copy-paste-of-create-xdc-sh-webxdc-js-eruda-js/2448>\
**Category:** Mini Apps\
**Created:** [February 17, 2023, 2:54pm UTC](https://forum.delta.chat/t/stop-the-copy-paste-of-create-xdc-sh-webxdc-js-eruda-js/2448 "2023-02-17T14:54:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WofWca](https://forum.delta.chat/user_avatar/forum.delta.chat/wofwca/32/1702_2.png) [@WofWca](https://forum.delta.chat/u/WofWca)\
**Post date:** [February 17, 2023, 2:54pm UTC](https://forum.delta.chat/t/stop-the-copy-paste-of-create-xdc-sh-webxdc-js-eruda-js/2448/1 "2023-02-17T14:54:33Z")

</div>

Currently for the majority of the apps we have, we include `create-xdc.sh`, the web demo version of `webxdc.js`, and [`eruda.js`](https://github.com/webxdc/webxdc_docs/blob/eadf86b383722f78da6a8fe465e7b0cfefe07fa6/src/tips_and_tricks.md#installing-eruda) in the source code of the apps (see [hextris](https://github.com/webxdc/hextris/tree/e494ab6530ed6101d72c2042074d7c145958219a), for example). It’s somewhat like copy-pasting React source code to your React project (which is bad).

We also have this more advanced template [GitHub - webxdc/webxdc-vite: A minimalist Vite template for Webxdc development](https://github.com/webxdc/webxdc-vite), but it also includes `webxdc.js` as a source-code file, while `eruda.js` is a `package.json` dependency.

- Maybe make it common practice to use `create-xdc.sh` and the web version of `webxdc.js` as a git submodule. Seems like the simplest and the least commitment-requiring solution.
- Or just a separate folder (like a binary that you put in `/usr/local/.../bin` (like [Go](https://go.dev/doc/install)).
- Or integrate it in the [`webxdc-dev`](https://github.com/webxdc/webxdc-dev) tool. A thing to consider is whether we want to cram everything that has to do with webxdc development in this one repo. For example, does [the web demo version of `webxdc.js`](https://github.com/webxdc/hextris/blob/e494ab6530ed6101d72c2042074d7c145958219a/webxdc.js) have enough to do with this tool, or should it be something separate?
- Or make it an OS package (`apt-get install package-webxdc-app`).

Need to update [the docs](https://github.com/webxdc/webxdc_docs) when we come up with a solution.

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [October 6, 2026, 3:11pm UTC](https://forum.delta.chat/t/stop-the-copy-paste-of-create-xdc-sh-webxdc-js-eruda-js/2448/2 "2026-10-06T15:11:52Z")

</div>


