{"id":23068309,"url":"https://github.com/dgrebb/super-simple-web-server","last_synced_at":"2025-08-30T17:14:14.149Z","repository":{"id":218343225,"uuid":"746180212","full_name":"dgrebb/super-simple-web-server","owner":"dgrebb","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-21T10:27:17.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-23T09:27:32.878Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dgrebb.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-21T10:04:54.000Z","updated_at":"2024-01-21T10:04:58.000Z","dependencies_parsed_at":"2024-01-21T11:29:32.513Z","dependency_job_id":"40eff705-c1af-48d3-b9f4-cb836871aac1","html_url":"https://github.com/dgrebb/super-simple-web-server","commit_stats":null,"previous_names":["dgrebb/super-simple-web-server"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dgrebb/super-simple-web-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrebb%2Fsuper-simple-web-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrebb%2Fsuper-simple-web-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrebb%2Fsuper-simple-web-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrebb%2Fsuper-simple-web-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgrebb","download_url":"https://codeload.github.com/dgrebb/super-simple-web-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrebb%2Fsuper-simple-web-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272878320,"owners_count":25008336,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"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":[],"created_at":"2024-12-16T05:23:09.108Z","updated_at":"2025-08-30T17:14:14.131Z","avatar_url":"https://github.com/dgrebb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# super-simple-web-server\nServe static files on localhost with http \u0026 https.\n\nForked from [@garris](https://github.com/garris/superSimpleExpressServer.git).\n\n## TO INSTALL\n\n`npm install super-simple-web-server`\n\n### or\n\nClone repo and run `npm install` in the root directory.\n\n\n## TO RUN\n\n`npm start [\u003c/path/to/web/root\u003e] [\u003c/path/to/some/middleware\u003e]`\n\n### Default path \nDefault path is your current working directory.  Override by passing an optional path to your desired web root directory.\n\n### Default ports\nThese can be changed by passing through environment variables when starting the server:\n`SSWS_HTTP_PORT` = http port (defaults to `3000`)\n`SSWS_HTTPS_PORT` = https port (defaults to `3001`)\n\n### Default IP\nThe default IP `127.0.0.1` which should convieniently map to `localhost`.\n\nPro tip: Setting `USE_LOCALHOST = false` in `index.js` will instead scan for existing bound IP addresses on your machine via `os.networkInterfaces()`.  The last available will be used.\n\n### Point to some middleware\nTo add middleware set the third arg to a path that resolves to a file exporting a function like so...\n\n```\nmodule.exports = (app) =\u003e {\n\tapp.use(someCoolThingHere);\n}\n```\n\n\n## About the self-signed certifictes\n\nFictious self-signed certs are provided for your development convienience. **They will exprire on June 6 2028.** Obviously -- you don't want to use these for anything other than private testing in your own bathtub.\n\nSee `./certs/` for more info...\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgrebb%2Fsuper-simple-web-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgrebb%2Fsuper-simple-web-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgrebb%2Fsuper-simple-web-server/lists"}