{"id":21845171,"url":"https://github.com/getlarge/node-sea-demo","last_synced_at":"2026-05-05T04:39:37.607Z","repository":{"id":265139757,"uuid":"887764959","full_name":"getlarge/node-sea-demo","owner":"getlarge","description":"A demo for Node.js SEA ","archived":false,"fork":false,"pushed_at":"2025-03-17T11:59:41.000Z","size":1054,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-08T10:11:49.380Z","etag":null,"topics":["docker","esbuild","fastify","nodejs","nx","single-executable"],"latest_commit_sha":null,"homepage":"https://dev.to/this-is-learning/building-single-executable-applications-with-nodejs-16k3","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getlarge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-11-13T08:45:46.000Z","updated_at":"2025-06-06T18:12:45.000Z","dependencies_parsed_at":"2025-03-16T13:29:08.707Z","dependency_job_id":"3bfd04f0-6136-4265-a09b-007a890d5d90","html_url":"https://github.com/getlarge/node-sea-demo","commit_stats":null,"previous_names":["getlarge/node-sea-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/getlarge/node-sea-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlarge%2Fnode-sea-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlarge%2Fnode-sea-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlarge%2Fnode-sea-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlarge%2Fnode-sea-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getlarge","download_url":"https://codeload.github.com/getlarge/node-sea-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlarge%2Fnode-sea-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32636096,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["docker","esbuild","fastify","nodejs","nx","single-executable"],"created_at":"2024-11-27T23:08:24.825Z","updated_at":"2026-05-05T04:39:37.579Z","avatar_url":"https://github.com/getlarge.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NodeSeaDemo\n\n![Cover](./cover.jpg)\n\nThis repository/playground is a practical demonstration of a [Single Executable Application](https://nodejs.org/api/single-executable-applications.html) (SEA) built with Node.js and Fastify. This project showcases how to handle file management during compilation, bundling, and runtime in a SEA context.\n\nThe application is compiled and bundled with ESBuild and use the [Node SEA Nx plugin](https://github.com/getlarge/nx-node-sea) to create the executable file.\n\nIt is the companion repository for the arcticle [Building Single Executable Applications with Node.js](https://dev.to/this-is-learning/building-single-executable-applications-with-nodejs-16k3).\n\n![Project configuration](./project-configuration.jpg)\n\n## Features\n\n- **HTTP API**: A simple HTTP API built with Fastify.\n- **Static Assets**: Handles bundled static assets.\n- **File Uploads**: Supports dynamic file uploads.\n- **SEA Assets**: Manages SEA assets.\n\n## Project Structure\n\n- **apps/node-sea-demo**: Main application source code.\n- **apps/node-sea-demo-e2e**: End-to-end tests for the application.\n- **dist**: Compiled output directory.\n- **Dockerfile**: Docker configuration for running the application.\n- **Dockerfile.sea**: Docker configuration for building the SEA bundle.\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js \u003e= 20.12.0\n- Docker\n\n### Installation\n\n1. Clone the repository:\n\n   ```sh\n   git clone https://github.com/your-repo/node-sea-demo.git\n   cd node-sea-demo\n   ```\n\n2. Install dependencies:\n\n   ```sh\n   npm install\n\n   ```\n\n### Running the Application\n\nTo run the application locally:\n\n```sh\nnx run node-sea-demo:serve\n```\n\nTo build and run the SEA:\n\n```sh\n# Bundle the app and create the SEA\nnx run node-sea-demo:sea-build\n# Run the SEA\n./dist/apps/node-sea-demo-sea/node\n```\n\nTo build and run the Docker container:\n\n```sh\nnx run node-sea-demo:docker-sea-build\ndocker run --rm -p 3000:3000 -t node-sea-demo:sea\n```\n\n### Learn More\n\nFor more details, refer to the [presentation](https://slides.com/edouard_maleix/building-single-executable-applications-with-node-js).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetlarge%2Fnode-sea-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetlarge%2Fnode-sea-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetlarge%2Fnode-sea-demo/lists"}