{"id":50119131,"url":"https://github.com/developersharif/ubuilder","last_synced_at":"2026-05-23T17:33:45.657Z","repository":{"id":358938242,"uuid":"1008415418","full_name":"developersharif/ubuilder","owner":"developersharif","description":"Bundle Python, PHP, and Node.js apps into a single executable that runs anywhere.","archived":false,"fork":false,"pushed_at":"2026-05-19T17:13:49.000Z","size":1310,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-19T20:44:58.403Z","etag":null,"topics":["cross-platform","executable","packager","single-binary"],"latest_commit_sha":null,"homepage":"","language":"C","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/developersharif.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-25T14:05:00.000Z","updated_at":"2026-05-19T17:13:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/developersharif/ubuilder","commit_stats":null,"previous_names":["developersharif/ubuilder"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/developersharif/ubuilder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersharif%2Fubuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersharif%2Fubuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersharif%2Fubuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersharif%2Fubuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developersharif","download_url":"https://codeload.github.com/developersharif/ubuilder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersharif%2Fubuilder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33406443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T04:15:53.637Z","status":"ssl_error","status_checked_at":"2026-05-23T04:15:53.242Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cross-platform","executable","packager","single-binary"],"created_at":"2026-05-23T17:33:45.045Z","updated_at":"2026-05-23T17:33:45.651Z","avatar_url":"https://github.com/developersharif.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs/assets/logowhite.png\"\u003e\n    \u003cimg src=\"docs/assets/logo-transparent.png\" alt=\"UBuilder\" width=\"180\"\u003e\n  \u003c/picture\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eUBuilder\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  Ship your Python, Node.js, or PHP app as \u003cb\u003eone file\u003c/b\u003e. No installers. No runtimes. No surprises.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"MIT License\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/developersharif/ubuilder/releases/latest\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/developersharif/ubuilder\" alt=\"Latest release\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Linux-supported-success.svg\" alt=\"Linux\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/macOS-supported-success.svg\" alt=\"macOS\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Windows-supported-success.svg\" alt=\"Windows\"\u003e\n\u003c/p\u003e\n\nUBuilder takes your scripting-language project and produces a single\nself-contained executable. Hand that file to anyone — your customer,\nyour CI runner, a fresh VM — and it just runs. They don't need Python.\nThey don't need Node. They don't need PHP, `pip`, `npm`, or\n`composer`. They don't even need to know what language you wrote it in.\n\n```bash\ncd my-app/        # your project, just main.py and (optionally) requirements.txt\nubuilder          # one command. no flags needed.\n./dist/my-app     # ships anywhere on the same OS — fully standalone\n```\n\nThat's the whole pitch.\n\n---\n\n## Why people use it\n\n- **Zero-friction distribution.** Email it, drop it on a USB stick, put it in a Docker `FROM scratch` — the bundle has no external dependencies.\n- **Hermetic by design.** The build pulls pinned interpreter tarballs into a local cache once, then embeds them into every bundle. Your users get the exact runtime you tested against.\n- **Tiny mental model.** A `ubuilder.json` is two lines. The first build writes it for you. Re-running needs zero flags.\n- **Honest cross-platform.** Linux and macOS bundles are fully hermetic, including PHP — the macOS PHP builder walks `otool -L` and re-points every non-system dylib to live inside the bundle, so it runs on any Mac with nothing pre-installed.\n- **Fast.** Pure C11/C++17. The launcher is a few hundred KB; the bundle layout is `[launcher][runtime][app][SHA-256 trailer]` and extraction is a single sequential read.\n\n---\n\n## Install\n\n### Linux (x86_64)\n\n```bash\ncurl -L https://github.com/developersharif/ubuilder/releases/latest/download/ubuilder-linux-amd64.tar.gz | tar -xz\nsudo mv ubuilder /usr/local/bin/\nubuilder --version\n```\n\n### macOS (Apple Silicon)\n\n```bash\ncurl -L https://github.com/developersharif/ubuilder/releases/latest/download/ubuilder-macos-amd64.tar.gz | tar -xz\nsudo mv ubuilder /usr/local/bin/\nxattr -d com.apple.quarantine /usr/local/bin/ubuilder 2\u003e/dev/null || true\nubuilder --version\n```\n\n### Windows (x86_64)\n\n```powershell\n$url = \"https://github.com/developersharif/ubuilder/releases/latest/download/ubuilder-windows-amd64.zip\"\nInvoke-WebRequest -Uri $url -OutFile \"$env:TEMP\\ubuilder.zip\"\nExpand-Archive -Path \"$env:TEMP\\ubuilder.zip\" -DestinationPath \"$env:USERPROFILE\\ubuilder\" -Force\n$env:Path += \";$env:USERPROFILE\\ubuilder\"\nubuilder --version\n```\n\n### From source\n\nNeeds CMake ≥ 3.16, a C11/C++17 compiler, and `zlib` headers.\n\n```bash\ngit clone https://github.com/developersharif/ubuilder.git\ncd ubuilder \u0026\u0026 mkdir build \u0026\u0026 cd build\ncmake -DCMAKE_BUILD_TYPE=Release .. \u0026\u0026 cmake --build . -j\n```\n\n---\n\n## Your first bundle\n\nPick a runtime. Each example is a complete, runnable session.\n\n### Python\n\n```bash\nmkdir hello \u0026\u0026 cd hello\necho 'print(\"Hello from a single-file Python app\")' \u003e main.py\n\nubuilder          # auto-writes ubuilder.json on the first run\n./dist/hello\n```\n\nWith dependencies, just add a `requirements.txt` — ubuilder will `pip install` them into the bundle.\n\n### Node.js\n\n```bash\nmkdir hello \u0026\u0026 cd hello\necho 'console.log(\"Hello from a single-file Node app\")' \u003e main.js\necho '{\"runtime\":\"node\",\"entry_point\":\"main.js\"}' \u003e ubuilder.json\n\nubuilder\n./dist/hello\n```\n\nAdd a `package.json` and ubuilder will `npm install` for you.\n\n### PHP\n\n```bash\nmkdir hello \u0026\u0026 cd hello\necho '\u003c?php echo \"Hello from a single-file PHP app\\n\";' \u003e main.php\necho '{\"runtime\":\"php\",\"entry_point\":\"main.php\"}' \u003e ubuilder.json\n\nubuilder\n./dist/hello\n```\n\nFor minimal PHP bundles (~50–80 MB instead of 280–400 MB), use the curated static build:\n\n```bash\nubuilder --runtime=php --php-runtime=static\n```\n\n---\n\n## Everyday commands\n\n```bash\n# Trim files out of the bundle\nubuilder --exclude='tests/**' --exclude='*.md'\n\n# Drop a dependency from the install\nubuilder --exclude=six           # Python\nubuilder --exclude=is-number     # Node\nubuilder --exclude=ext-curl      # PHP\n\n# Pick where the output goes\nubuilder --output=/opt/builds/myapp\n\n# See what it's doing\nubuilder --verbose\n\n# Upgrade yourself\nubuilder --self-update\n```\n\nThe full flag list is in `ubuilder --help`.\n\n---\n\n## Documentation\n\nEverything else — full CLI reference, the `ubuilder.json` schema, guides\nper runtime, architecture overview, troubleshooting — lives in\n**[the docs](docs/README.md)**.\n\n---\n\n## Platform support\n\n| Runtime | Linux | macOS | Windows |\n|---|---|---|---|\n| **Python** | Hermetic | Hermetic | Host |\n| **Node.js** | Hermetic | Hermetic | Host |\n| **PHP** | Host-bits hermetic | Fresh-Mac portable | Host |\n\n*Hermetic* means the bundle ships its own interpreter and runs on a\nclean machine with nothing pre-installed. *Host* means the bundle uses\nthe target machine's interpreter — works fine for dev, not yet for\ndistribution. Hermetic Windows is on the roadmap and a great place to\ncontribute.\n\n---\n\n## How it works\n\nUBuilder is one C binary that operates in two modes, decided at\nstartup:\n\n1. **Build mode** (no payload attached) parses your project, picks the\n   right runtime builder, installs your dependencies into a staged\n   copy, and writes a new executable laid out as\n   `[ubuilder launcher][runtime tree][app tree][V4 trailer with SHA-256]`.\n2. **Launcher mode** (payload present) detects the trailer, verifies\n   the SHA-256, extracts everything to a temp directory, `exec`s the\n   embedded interpreter against the embedded entry point, and cleans\n   up on exit.\n\nSuccessful dependency installs are content-addressed by SHA-256 of\nyour manifest + lockfile and replayed from cache on the next build —\nso re-running is fast and reproducible.\n\n---\n\n## Contributing\n\nUBuilder is built by one developer and a small group of contributors\nwho care a lot about making distribution boring. If that sounds fun,\njump in.\n\nA typical loop:\n\n```bash\ngit clone https://github.com/developersharif/ubuilder.git\ncd ubuilder \u0026\u0026 mkdir build \u0026\u0026 cd build\ncmake .. \u0026\u0026 cmake --build . -j\n./tests/test_ubuilder     # all green before you change anything\n```\n\nGood first issues live on the [issue tracker](https://github.com/developersharif/ubuilder/issues).\nHigh-impact areas right now:\n\n- **Hermetic Windows runtimes** — vendor a portable Python / Node tree the way Linux and macOS already do.\n- **Fully hermetic PHP on Linux** — port the macOS dylib-rewiring trick to ELF (`ldd` walk + `DT_RUNPATH=$ORIGIN/../lib`).\n- **Lockfile reproducibility** for Python and PHP.\n- **More example apps** — Flask, Express, Laravel, Discord bots, anything that proves the \"one file, ships anywhere\" idea.\n\nSetup details, code conventions, and PR workflow are in\n[CONTRIBUTING.md](CONTRIBUTING.md).\n\n---\n\n## License\n\nMIT — see [LICENSE](LICENSE). Use it, fork it, ship it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopersharif%2Fubuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopersharif%2Fubuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopersharif%2Fubuilder/lists"}