{"id":50776576,"url":"https://github.com/nativew/serve","last_synced_at":"2026-06-12T00:02:21.904Z","repository":{"id":41828224,"uuid":"330861795","full_name":"nativew/serve","owner":"nativew","description":"🍛 Ultralight http server with live reload. [CLI + API]","archived":false,"fork":false,"pushed_at":"2022-09-05T09:14:12.000Z","size":38,"stargazers_count":29,"open_issues_count":8,"forks_count":14,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-04T15:40:11.373Z","etag":null,"topics":["command-line","dev","hot","http","live","node","refresh","reload","server","static"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nativew.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}},"created_at":"2021-01-19T04:18:23.000Z","updated_at":"2024-09-05T20:24:31.000Z","dependencies_parsed_at":"2023-01-17T20:47:25.960Z","dependency_job_id":null,"html_url":"https://github.com/nativew/serve","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nativew/serve","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nativew%2Fserve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nativew%2Fserve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nativew%2Fserve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nativew%2Fserve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nativew","download_url":"https://codeload.github.com/nativew/serve/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nativew%2Fserve/sbom","scorecard":{"id":676036,"data":{"date":"2025-08-11","repo":{"name":"github.com/nativew/serve","commit":"f0a7aaa866e23ae91e304a49189afac25ee92512"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: license:0","Info: FSF or OSI recognized license: ISC License: license:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T21:29:07.433Z","repository_id":41828224,"created_at":"2025-08-21T21:29:07.433Z","updated_at":"2025-08-21T21:29:07.433Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34222711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"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":["command-line","dev","hot","http","live","node","refresh","reload","server","static"],"created_at":"2026-06-12T00:02:21.831Z","updated_at":"2026-06-12T00:02:21.895Z","avatar_url":"https://github.com/nativew.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv\u003e\u003c/div\u003e\n\n# Serve 🍛\n\nUltralight http server with live reload.  \n\u003csub\u003e\u003ccode\u003eCLI + API\u003c/code\u003e\u003c/sub\u003e\n\n\u003cbr\u003e\n\n### Simple CLI and API\n\n### With live reload\n\n### Light and modern\n\n### No dependencies\n\n\u003cbr\u003e\n\n### One command\n\n```zsh\nnpm init serve\n```\n\n\u003cbr\u003e\n\n### Or one function\n\n```js\nimport serve from 'create-serve';\n\nserve.start();\n```\n\n\u003cbr\u003e\n\n### To start 🍛\n\n\u003cbr\u003e\n\n### CLI\n\nBy default, it serves `public` if the folder exists, otherwise root `/`.  \nOr you can specify a different folder.\n\n```zsh\nnpm init serve [folder]\n```\n\n\u003cbr\u003e\n\n### API\n\n```js\nimport serve from 'create-serve';\n\nserve.start({\n    port: 7000,\n    root: '.',\n    live: true\n});\n```\n\n\u003cbr\u003e\n\n### Live reload\n\n```js\nserve.update();\n```\n\n\u003cbr\u003e\n\n### Use any file watcher\n\n\u003cbr\u003e\n\n[Chokidar](https://github.com/paulmillr/chokidar)\n\n```js\nimport serve from 'create-serve';\nimport chokidar from 'chokidar';\n\nserve.start();\n\nchokidar.watch('.').on('change', () =\u003e {\n    serve.update();\n});\n```\n\n\u003cbr\u003e\n\n[esbuild](https://esbuild.github.io/api/#watch)\n\nUse the official wrapper for esbuild's watch \u0026nbsp; → \u0026nbsp; [esbuild-serve](https://github.com/nativew/esbuild-serve)\n\n\u003cbr\u003e\n\n### Log\n\nImport the util functions to log updates with colours.\n\n```js\nimport serve, { error, log } from 'create-serve';\n\nserve.update();\n\nhasError\n    ? error('× Failed') // Red\n    : log('✓ Updated'); // Green\n```\n\n\u003cbr\u003e\u003cbr\u003e\n\n\u003cp\u003e\n    \u003ca href=\"https://github.com/nativew/nativeweb\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/nativew/nativeweb/1e9405c629e3a6491bb59df726044eb3823967bb/logo-square_nativeweb.svg\" alt=\"Native Web\" width=\"80px\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cdiv\u003e\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnativew%2Fserve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnativew%2Fserve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnativew%2Fserve/lists"}