{"id":16188824,"url":"https://github.com/emkay/theodore","last_synced_at":"2025-10-07T18:57:30.565Z","repository":{"id":30028976,"uuid":"123655702","full_name":"emkay/theodore","owner":"emkay","description":"http framework","archived":false,"fork":false,"pushed_at":"2022-12-07T17:49:50.000Z","size":1146,"stargazers_count":37,"open_issues_count":7,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-29T06:02:26.181Z","etag":null,"topics":["framework","http-server"],"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/emkay.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-03T03:32:43.000Z","updated_at":"2023-07-06T16:52:56.000Z","dependencies_parsed_at":"2023-01-14T16:09:02.051Z","dependency_job_id":null,"html_url":"https://github.com/emkay/theodore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emkay%2Ftheodore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emkay%2Ftheodore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emkay%2Ftheodore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emkay%2Ftheodore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emkay","download_url":"https://codeload.github.com/emkay/theodore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233610355,"owners_count":18702308,"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":["framework","http-server"],"created_at":"2024-10-10T07:31:28.550Z","updated_at":"2025-09-20T23:32:58.687Z","avatar_url":"https://github.com/emkay.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# theodore\n\nsuper fast http framework\n\n[![API Stability](https://img.shields.io/badge/stability-experimental-orange.svg)](https://nodejs.org/api/documentation.html#documentation_stability_index)\n[![Build Status](https://travis-ci.org/emkay/theodore.svg?branch=master)](https://travis-ci.org/emkay/theodore)\n[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\n[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)\n\n## Install\n\n`npm i theodore`\n\n## Use\n\n```javascript\nconst Theodore = require('theodore')\nconst app = new Theodore()\n\napp.get('/', (req, res, params) =\u003e res.send('hello world', 200))\napp.get('/status', (req, res, params) =\u003e res.send('OK', 200))\napp.get('/cats', (req, res, params) =\u003e res.json(['theodore', 'sally', 'glory'], 200))\n\napp.listen()\n```\n\n## How?\n\n`theodore` uses [`turbo-http`](https://github.com/mafintosh/turbo-http) under the hood and adds a router and similar API to other http frameworks. It also adds some convenience methods that allow you to send JSON responses by using the [`fast-safe-stringify`](https://www.npmjs.com/package/fast-safe-stringify) package. When parsing JSON data it is using [`fast-json-parse`](https://www.npmjs.com/package/fast-json-parse).\n\n## API\n\n#### `app = new Theodore()`\n\nCreate a new server.\n\n#### `app.{get,post,put,delete}(route, handler(req, res, params))`\n\nCreate a route that matches the method and `route`.\n\n#### `req.body`\n\nIf the request has a body it will be parsed based on content type and placed in `req.body`.\n\n#### `res.json(json, statusCode)`\n\nWill set the content type and stringify the JSON for you.\n\n#### `res.send(data, statusCode)`\n\nSend a response down the line.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femkay%2Ftheodore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femkay%2Ftheodore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femkay%2Ftheodore/lists"}