{"id":20426025,"url":"https://github.com/seleb/pkg-and-serve","last_synced_at":"2025-07-04T04:39:08.909Z","repository":{"id":41777930,"uuid":"196865515","full_name":"seleb/pkg-and-serve","owner":"seleb","description":"boilerplate for packaging a static server with an app in an exe","archived":false,"fork":false,"pushed_at":"2025-03-29T14:19:22.000Z","size":296,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-19T20:45:05.022Z","etag":null,"topics":["boilerplate","executable","express","pkg"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/seleb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2019-07-14T17:34:10.000Z","updated_at":"2025-03-29T14:19:25.000Z","dependencies_parsed_at":"2025-04-12T19:03:32.697Z","dependency_job_id":"ebf5dc73-e676-43c0-9078-cfebbb5166fd","html_url":"https://github.com/seleb/pkg-and-serve","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/seleb/pkg-and-serve","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seleb%2Fpkg-and-serve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seleb%2Fpkg-and-serve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seleb%2Fpkg-and-serve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seleb%2Fpkg-and-serve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seleb","download_url":"https://codeload.github.com/seleb/pkg-and-serve/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seleb%2Fpkg-and-serve/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263449182,"owners_count":23468120,"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":["boilerplate","executable","express","pkg"],"created_at":"2024-11-15T07:15:01.607Z","updated_at":"2025-07-04T04:39:08.882Z","avatar_url":"https://github.com/seleb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `pkg-and-serve`\n\nThis project allows you to package a static website as a single executable file. This executable will start a local server hosting your site, open it in the user's default browser, and shut itself down when the site is closed.\n\nNote that this is most useful for quickly creating a shareable file for testing/portable deployment, and will usually be a less ideal user experience when compared with a full desktop application (e.g. with [Electron](https://www.electronjs.org/)).\n\n## Usage\n\n### As command-line tool\n\n```sh\nnpx pkg-and-serve [input] [output]\n```\n\n### As boilerplate project\n\n1. clone\n2. `npm i`\n3. replace contents of `./app` with your app\n4. update `name` in `pkg.config.json`\n5. add additional localhost endpoints in `server.js` if needed\n6. `npm run build`\n7. self-contained build outputs will be in `./build`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseleb%2Fpkg-and-serve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseleb%2Fpkg-and-serve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseleb%2Fpkg-and-serve/lists"}