{"id":22883236,"url":"https://github.com/cogsandsquigs/jundler","last_synced_at":"2025-09-09T22:04:50.307Z","repository":{"id":246284708,"uuid":"820134185","full_name":"cogsandsquigs/jundler","owner":"cogsandsquigs","description":"The JavaScript executable bundler for Node.js projects.","archived":false,"fork":false,"pushed_at":"2024-07-07T04:31:03.000Z","size":31803,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T09:53:58.480Z","etag":null,"topics":["cli","executables","javascript","js","node","node-js","nodejs","rust","tooling","tools"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cogsandsquigs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-25T21:49:42.000Z","updated_at":"2024-07-07T04:30:49.000Z","dependencies_parsed_at":"2024-06-27T02:04:20.929Z","dependency_job_id":"11fe32bb-ae6e-447c-92e5-b52d4ed8a61c","html_url":"https://github.com/cogsandsquigs/jundler","commit_stats":null,"previous_names":["cogsandsquigs/jundler"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cogsandsquigs%2Fjundler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cogsandsquigs%2Fjundler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cogsandsquigs%2Fjundler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cogsandsquigs%2Fjundler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cogsandsquigs","download_url":"https://codeload.github.com/cogsandsquigs/jundler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241007983,"owners_count":19893083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","executables","javascript","js","node","node-js","nodejs","rust","tooling","tools"],"created_at":"2024-12-13T18:33:58.124Z","updated_at":"2025-02-27T11:41:11.792Z","avatar_url":"https://github.com/cogsandsquigs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License](https://img.shields.io/github/license/cogsandsquigs/jundler?style=for-the-badge)](https://github.com/cogsandsquigs/jundler/blob/main/LICENSE)\n[![Crates.io](https://img.shields.io/crates/v/jundler?style=for-the-badge)](https://crates.io/crates/jundler)\n[![Crates.io Downloads (recent)](https://img.shields.io/crates/dr/jundler?style=for-the-badge)](https://crates.io/crates/jundler)\n[![CircleCI](https://img.shields.io/circleci/build/github/cogsandsquigs/jundler?style=for-the-badge)](https://app.circleci.com/pipelines/github/cogsandsquigs/jundler)\n\n# Jundler\n\n\u003e The **J**avaScript executable b**undler** for Node.js projects.\n\nJundler is a tool that bundles your Node.js project into a single executable file. It uses the new [Single Executable Application API](https://nodejs.org/api/single-executable-applications.html) to bundle your project, which can then be run on any platform without needing to install Node.js or any dependencies.\n\n## Why Jundler?\n\nJundler, unlike other executable bundlers (like [pkg](https://github.com/vercel/pkg), [boxednode](https://github.com/mongodb-js/boxednode), or [js2bin](https://github.com/criblio/js2bin)), uses the latest [Single Executable Application API](https://nodejs.org/api/single-executable-applications.html). And, unlike other bundlers, Jundler is written in Rust, which makes it faster and more efficient!\n\nFor more features, see the [FAQ](#faq).\n\n## Requirements\n\n-   A working installation of `npm` and `npx`. Note that you do _not_ need to have `node` installed, as Jundler will download a local copy matching your OS, architecture, and desired version.\n-   `cargo` to install from `crates.io`.\n\n## Usage\n\nJundler will automatically bundle your JavaScript files into a single standalone file. You will need to both a [`sea-config.json`](https://nodejs.org/api/single-executable-applications.html#generating-single-executable-preparation-blobs) file and the ubiquitous `package.json` file in the root of your project.\n\nTo use Jundler, simply run the following command in your terminal:\n\n```bash\njundler \u003cpath-to-nodejs-project\u003e\n```\n\nRun `jundler --help` for more information on how to use Jundler.\n\n## FAQ\n\n### Wait! Something broke! What do I do?\n\nBecause both Jundler and the [Single Executable Application API](https://nodejs.org/api/single-executable-applications.html) are new and changing rapidly, things can break overnight. If something breaks, please open an issue on the [Jundler GitHub repository](https://github.com/cogsandsquigs/jundler/issues) and I'll get back to you when feasable.\n\n### I'm getting an import error when I run my bundled executable. What do I do?\n\nThis is a known issue with the Single Executable Application API, as it does not support `import` or `require`. Jundler automagically fixes this by bundling your project with ESBuild, which will automatically convert all `import` statements to `require` statements. If you're still having issues, please open an issue on the [Jundler GitHub repository](https://github.com/cogsandsquigs/jundler/issues).\n\n\u003e [!NOTE]\n\u003e To manually tell Jundler to bundle your project use the `--bundle`/`-b` flag.\n\u003e\n\u003e ```bash\n\u003e  jundler \u003cpath-to-nodejs-project\u003e --bundle\n\u003e ```\n\n### Does Jundler support TypeScript?\n\nYup. Jundler will automagically detect typescript --- ESBuild does the rest!\n\n\u003e [!NOTE]\n\u003e If Jundler is having issues with your TypeScript project, try running `jundler \u003cpath-to-nodejs-project\u003e --bundle` to bundle your project manually.\n\n### My project is giving some weird erorr relating to `node-gyp`. What happened?\n\nThis is a known issue with the Single Executable Application API. Jundler can't fix this for you (yet!), as it involves packaging the binary in such a way that the dependent API can use it as if it was installed on raw Node.js. If you're having issues with `node-gyp` or `node-pre-gyp`, please open an issue on the [Jundler GitHub repository](http://github.com/cogsandsquigs/jundler/issues).\n\n### Does Jundler support cross-compilation?\n\nYes! Just specify the OS and architecture you want to build using the `-o` and `-a` flags respectively.\n\n### Does Jundler support codesigning for macOS?\n\nYes, so long as you're on a macOS machine yourself. Jundler will automatically codesign your executable without any additional input from you!\n\n\u003e [!WARNING]\n\u003e If you're building for macOS on a different platform, the binary will have to be manually signed on a macOS machine. Jundler should give you a warning about this.\n\n### Does Jundler support codesigning for Windows?\n\nNot yet, but since windows doesn't require codesigning for binaries to run (it will just give you a warning), this should be fine for now. All Windows binaries need to be manually signed on a Windows machine after being built.\n\n### Why the name \"Jundler\"?\n\nBecause it sounded funny and I liked it. :p\n\n## TODO\n\n-   [x] Auto-detect TS / Modules and bundle accordingly\n-   [x] Unit test separate build steps\n-   [x] Auto-download of Node.js host runtime to make the process work w/o Node.js installed (still requires `npm`/`npx` to be installed)\n-   [x] Cross-compilation\n-   [x] Codesigning for macOS\n-   [x] Redesign CLI + allow for cleaning cache dir.\n-   [x] Unit-test ESBuild integration\n-   [-] Spinners/progress bars + better UI\n-   [-] Codesigning for Windows\n-   [ ] Better error handling\n-   [ ] Integration testing on test projects\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcogsandsquigs%2Fjundler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcogsandsquigs%2Fjundler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcogsandsquigs%2Fjundler/lists"}