{"id":21867109,"url":"https://github.com/gozeon/ss","last_synced_at":"2025-10-08T15:31:50.244Z","repository":{"id":102779532,"uuid":"304561942","full_name":"gozeon/ss","owner":"gozeon","description":"simple server with koa","archived":true,"fork":false,"pushed_at":"2025-03-03T07:22:04.000Z","size":173,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T21:29:18.285Z","etag":null,"topics":["esm","koa","lightweight","nodejs","server","tiny"],"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/gozeon.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-16T08:10:36.000Z","updated_at":"2025-03-03T07:22:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"c8d0d555-39d2-4a35-ae2f-d1f4ca6fd5e9","html_url":"https://github.com/gozeon/ss","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":"gozeon/prettier-template","purl":"pkg:github/gozeon/ss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gozeon%2Fss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gozeon%2Fss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gozeon%2Fss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gozeon%2Fss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gozeon","download_url":"https://codeload.github.com/gozeon/ss/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gozeon%2Fss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278969275,"owners_count":26077637,"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-10-08T02:00:06.501Z","response_time":56,"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":["esm","koa","lightweight","nodejs","server","tiny"],"created_at":"2024-11-28T05:08:27.009Z","updated_at":"2025-10-08T15:31:50.239Z","avatar_url":"https://github.com/gozeon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 为了更好的避免一些模块问题，不推荐使用这个命令行了，使用更好理解的目录管理方式，参考：https://github.com/gozeon/code-collections/tree/master/ss-next\n\n# ss\n\nSimple Server\n\n**IMPORTANT:** `v2` is ESM, if you use commonjs, see `v1`\n\n![](https://github.com/gozeon/ss/raw/master/Simple%20Server.png)\n\n# install\n\n```bash\nnpm install ss -g\n```\n\n# get starter\n\n```bash\nmkdir demo \u0026\u0026 cd demo\ntouch time.js\n```\n\ntime.js\n\n```js\nexport default (ctx) =\u003e {\n    ctx.body = new Date()\n}\n```\n\nrun server\n\n```bash\nss\n```\n\ntest\n\n```\ncurl -I http://0.0.0.0:3000/time\n```\n\n### ignore\n\nnew file `.ssignore`, same as `.gitignore`\n\n### port \u0026 host\n\nuse `--port` , `--host` or `PORT=3000 HOST=0.0.0.0 ss`\n\n### method\n\n`$POSTname.js` -\u003e `post 'name'`\n\n### params\n\n`_id.js` -\u003e `../:id`\n\n# referece\n\nhttps://prettier.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgozeon%2Fss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgozeon%2Fss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgozeon%2Fss/lists"}