{"id":23817946,"url":"https://github.com/lsongdev/kelp","last_synced_at":"2025-09-07T00:32:52.392Z","repository":{"id":57124327,"uuid":"51845949","full_name":"lsongdev/kelp","owner":"lsongdev","description":"dead simple nodejs http(s) web framework written in ~40 lines! :rocket:","archived":false,"fork":false,"pushed_at":"2018-12-28T09:35:03.000Z","size":19,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-06T07:52:31.456Z","etag":null,"topics":["framework","http","https","server"],"latest_commit_sha":null,"homepage":"https://npmjs.org/kelp","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lsongdev.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":"2016-02-16T15:21:50.000Z","updated_at":"2022-04-16T00:49:48.000Z","dependencies_parsed_at":"2022-08-31T06:51:35.846Z","dependency_job_id":null,"html_url":"https://github.com/lsongdev/kelp","commit_stats":null,"previous_names":["lsongdev/kelp","song940/kelp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lsongdev/kelp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fkelp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fkelp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fkelp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fkelp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsongdev","download_url":"https://codeload.github.com/lsongdev/kelp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fkelp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273983015,"owners_count":25202092,"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-09-06T02:00:13.247Z","response_time":2576,"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":["framework","http","https","server"],"created_at":"2025-01-02T05:49:09.357Z","updated_at":"2025-09-07T00:32:52.140Z","avatar_url":"https://github.com/lsongdev.png","language":"JavaScript","readme":"## kelp ![npm](https://badge.fury.io/js/kelp.png) [![Build Status](https://travis-ci.org/song940/kelp.svg?branch=master)](https://travis-ci.org/song940/kelp)\n\ndead simple nodejs http web framework :rocket:\n\n### Installation\n````\n$ npm install kelp --save\n````\n\n### Example\n````javascript\nconst http = require('http');\nconst kelp = require('kelp');\n\nconst app = kelp();\n\nconst sleep = (n = 1) =\u003e\n  new Promise(done =\u003e setTimeout(done, n * 1e3));\n\napp.use(async (req, res, next) =\u003e {\n  console.log(1);\n  await next();\n  console.log(2);\n});\n\napp.use(async (req, res, next) =\u003e {\n  console.log(3);\n  await sleep();\n  res.end(`hello world`);\n  await next();\n  console.log(4);\n});\n\nhttp.createServer(app).listen(3000);\n````\n\n### API\n\n+ use\n\n### Benchmarks\n\n```bash\n~$ npm run benchmark\n```\n\n\u003e MacBook Pro (Retina, 15-inch, Mid 2015) 2.2 GHz Intel Core i7 / 16 GB 1600 MHz DDR3 / 10.13.0\n\n```bash\n  1 middleware\n  22756.60\n\n  5 middleware\n  21743.43\n\n  10 middleware\n  21241.57\n\n  15 middleware\n  19995.93\n\n  20 middleware\n  19074.04\n\n  30 middleware\n  18365.52\n\n  50 middleware\n  16786.10\n\n  100 middleware\n  12842.54\n```\n\n### Test\n\n```bash\n~$ npm test\n```\n\n### Contributing\n- Fork this repo\n- Clone your repo\n- Install dependencies\n- Checkout a feature branch\n- Feel free to add your features\n- Make sure your features are fully tested\n- Open a pull request, and enjoy \u003c3\n\n### MIT license\nCopyright (c) 2016 lsong\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \u0026quot;Software\u0026quot;), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \u0026quot;AS IS\u0026quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n---\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Fkelp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsongdev%2Fkelp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Fkelp/lists"}