{"id":17598092,"url":"https://github.com/potch/tinyserve","last_synced_at":"2026-03-09T16:43:36.492Z","repository":{"id":57871564,"uuid":"525660967","full_name":"potch/tinyserve","owner":"potch","description":"the little dev server that could","archived":false,"fork":false,"pushed_at":"2025-04-16T05:44:11.000Z","size":22,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-30T06:08:01.708Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/potch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-08-17T06:05:22.000Z","updated_at":"2025-04-17T07:54:34.000Z","dependencies_parsed_at":"2025-04-30T06:18:06.779Z","dependency_job_id":null,"html_url":"https://github.com/potch/tinyserve","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/potch/tinyserve","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potch%2Ftinyserve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potch%2Ftinyserve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potch%2Ftinyserve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potch%2Ftinyserve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/potch","download_url":"https://codeload.github.com/potch/tinyserve/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potch%2Ftinyserve/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30302718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T14:33:48.460Z","status":"ssl_error","status_checked_at":"2026-03-09T14:33:48.027Z","response_time":61,"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":[],"created_at":"2024-10-22T09:44:25.439Z","updated_at":"2026-03-09T16:43:36.469Z","avatar_url":"https://github.com/potch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tinyserve\n\n- a small local dev server that supports live reloading via [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events)\n- only one dependency, [`mime-db`](https://www.npmjs.com/package/mime-db)\n- absolutely not for use in production\n\n## installation\n\n`npm install @potch/tinyserve` or `npx tinyserve` if you're feeling frisky\n\n## usage\n\n`\u003e tinyserve [options]`\n\n`\u003e tinyserve -p 1234 -d dist/ -w dist/`\n\n`\u003e tinyserve -w src/ -d build/ -x \"npm run build\"`\n\n### options\n\n```\n  -h, --help     this help text\n  -d \u003cdir\u003e       directory to serve, default is \".\"\n  -p \u003cport\u003e      port, default is 8080\n  -w \u003cpath\u003e      watch file or folder for changes, implies -l\n  -x \u003ccommand\u003e   run this command on changes, needs -w\n  -l             enable live reload\n  -r \u003croute\u003e     URL path of live reload events, default is \"_live\n  -v             enable verbose logging\"\n```\n\n### live reload\n\nwhen live reload is enabled, a small script is injected into all HTML responses that listens for a reload signal from the server. that signal can be triggered by either a change to a watched file/directory (via the `-w` option), or local tools can trigger a reload by making a `post` to the live reload route (by default `/_live`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotch%2Ftinyserve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpotch%2Ftinyserve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotch%2Ftinyserve/lists"}