{"id":13527098,"url":"https://github.com/adamhalasz/diet","last_synced_at":"2025-04-12T20:42:46.238Z","repository":{"id":12523865,"uuid":"15193721","full_name":"adamhalasz/diet","owner":"adamhalasz","description":"A tiny, fast and modular node.js web framework. Good for making fast \u0026 scalable apps and apis.","archived":false,"fork":false,"pushed_at":"2024-06-19T15:09:50.000Z","size":442,"stargazers_count":400,"open_issues_count":20,"forks_count":31,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-11-24T17:30:59.008Z","etag":null,"topics":["api","diet","http-server","middleware","mvc","rest","router"],"latest_commit_sha":null,"homepage":"http://dietjs.com/","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/adamhalasz.png","metadata":{"files":{"readme":"Readme.md","changelog":"Changelog.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"adamhalasz","patreon":"adamhalasz","open_collective":"adamhalasz"}},"created_at":"2013-12-14T22:07:28.000Z","updated_at":"2024-02-24T21:03:45.000Z","dependencies_parsed_at":"2024-12-02T21:36:13.467Z","dependency_job_id":null,"html_url":"https://github.com/adamhalasz/diet","commit_stats":{"total_commits":254,"total_committers":7,"mean_commits":"36.285714285714285","dds":0.405511811023622,"last_synced_commit":"6f47aadff68ef73ad035b9e7e4202568afa4f870"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhalasz%2Fdiet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhalasz%2Fdiet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhalasz%2Fdiet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhalasz%2Fdiet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamhalasz","download_url":"https://codeload.github.com/adamhalasz/diet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631666,"owners_count":21136554,"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","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":["api","diet","http-server","middleware","mvc","rest","router"],"created_at":"2024-08-01T06:01:41.062Z","updated_at":"2025-04-12T20:42:46.210Z","avatar_url":"https://github.com/adamhalasz.png","language":"JavaScript","funding_links":["https://github.com/sponsors/adamhalasz","https://patreon.com/adamhalasz","https://opencollective.com/adamhalasz"],"categories":["Repository","JavaScript"],"sub_categories":["Web Frameworks"],"readme":"![Diet Logo](http://i.imgur.com/Dasjkkp.png)\n\n[![Build Status](http://img.shields.io/travis/adamhalasz/diet.svg?style=flat)](https://travis-ci.org/adamhalasz/diet) [![NPM](http://img.shields.io/npm/v/diet.svg?style=flat)](https://www.npmjs.org/package/diet) [![Downloads](http://img.shields.io/npm/dm/diet.svg?style=flat)](https://www.npmjs.org/package/diet) [![Coveralls](http://img.shields.io/coveralls/adamhalasz/diet.svg?style=flat)](https://coveralls.io/r/adamhalasz/diet)\n\n\n[Diet](http://dietjs.com) is a tiny, fast and modular node.js web framework. Good for making fast \u0026 scalable apps and apis.\n```javascript\nvar server = require('diet')\n\nvar app = server()\napp.listen(8000)\napp.get('/', function($){\n    $.end('hello world')\n})\n```\n\n## Features \n- Built for [virtual hosting](http://dietjs.com/tutorials/host#) \n- Request and Reponse combined into the [signal object ($)](http://dietjs.com/tutorials/signal#)\n- Simple and Semantic Routing with [app.get](http://dietjs.com/api/server#app.get) and [app.post](http://dietjs.com/api/server#app.post) and other methods.\n- [Middleware](http://dietjs.com/tutorials/router#middleware) Support\n- [MVC](http://dietjs.com/api/server#app.model) (model-view-controller) Support\n- [Header](http://dietjs.com/tutorials/router#header) and [footer](http://dietjs.com/tutorials/router#footer) routes for better global middleware structuring\n- Support for ES6 Generator Middlewares/Controllers (new since v0.10)\n- Asynchronous [error handling](http://dietjs.com/tutorials/router#error) with [app.error](http://dietjs.com/api/server#app.error) routes\n- [404](http://dietjs.com/tutorials/router#missing) routing with [app.missing](http://dietjs.com/api/server#app.missing)\n- [Very small](http://dietjs.com/resources/comparison#sloc), just ~550 sloc\n\n## Install\n```\nnpm install diet\n```\n\n## Website \u0026 Community\n- **Website** : [http://dietjs.com](http://dietjs.com)\n- Chat on [Gitter](https://gitter.im/adamhalasz/diet)\n- Ask Questions on [Stackoverflow](http://stackoverflow.com/questions/ask)\n- Report Issues on [Github](https://github.com/adamhalasz/diet/issues)\n- Contribute to the Source code also on [Github](https://github.com/adamhalasz/diet)\n- Download the latest official release from [NPM](https://www.npmjs.org/package/diet)\n\n## Tutorials\n- [Get Started](http://dietjs.com/tutorials/get_started)\n- [Hosting](http://dietjs.com/tutorials/host)\n- [Routing](http://dietjs.com/tutorials/router)\n- [Signal](http://dietjs.com/tutorials/signal)\n- [Modules](http://dietjs.com/tutorials/modules)\n\n## API\n- [Server](http://dietjs.com/api/server)\n- [Signal: Request](http://dietjs.com/api/signal/request)\n- [Signal: Response](http://dietjs.com/api/signal/response)\n\n## Resources\n- [Official Modules](http://dietjs.com/resources/modules)\n- [Tests \u0026 Benchmarks](http://dietjs.com/resources/comparison)\n- [Changelog](https://github.com/adamhalasz/diet/blob/master/Changelog.md)\n\n## License\n(The MIT License)\n\nCopyright (c) 2014 Halász Ádám\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamhalasz%2Fdiet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamhalasz%2Fdiet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamhalasz%2Fdiet/lists"}