{"id":14989379,"url":"https://github.com/akheron/typera","last_synced_at":"2025-04-08T09:08:26.037Z","repository":{"id":34931740,"uuid":"188218809","full_name":"akheron/typera","owner":"akheron","description":"Type-safe routes for Express and Koa","archived":false,"fork":false,"pushed_at":"2025-03-03T20:38:44.000Z","size":3683,"stargazers_count":177,"open_issues_count":14,"forks_count":14,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-01T07:40:34.102Z","etag":null,"topics":["api","express","koa","rest","route-handler","routing","typescript","web"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/akheron.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.old.md","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":"2019-05-23T11:14:49.000Z","updated_at":"2025-02-12T21:08:08.000Z","dependencies_parsed_at":"2024-03-28T16:29:44.109Z","dependency_job_id":"6444962f-3145-4ed9-a0c4-8095b17827a6","html_url":"https://github.com/akheron/typera","commit_stats":{"total_commits":955,"total_committers":8,"mean_commits":119.375,"dds":"0.24083769633507857","last_synced_commit":"8240edc4acf18917662d1268c16a7e4ae6a43952"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akheron%2Ftypera","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akheron%2Ftypera/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akheron%2Ftypera/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akheron%2Ftypera/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akheron","download_url":"https://codeload.github.com/akheron/typera/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247809962,"owners_count":20999816,"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","express","koa","rest","route-handler","routing","typescript","web"],"created_at":"2024-09-24T14:18:16.295Z","updated_at":"2025-04-08T09:08:26.016Z","avatar_url":"https://github.com/akheron.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# typera - Type-safe routes\n\n[![Build](https://github.com/akheron/typera/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/akheron/typera/actions/workflows/tests.yml)\n\nTypera helps you build backends in a type-safe manner by leveraging [io-ts] and\nsome TypeScript type inference magic. It works with both [Express] and [Koa].\n\n**Upgrading to version 2?** See the\n[upgrading instructions](https://akheron.github.io/typera/upgrading).\n\nFeatures of typera in a nutshell:\n\n- A purer approach to building your apps: Each route handler is an async\n  function that takes a request and returns a response. Mutable `req` or `res`\n  objects? Never again!\n\n- Automatically parses request inputs like route params, query params, headers\n  and request body into typed values.\n\n- Infer the types of responses (status code, body, headers), allow type checking\n  them according to your expectations.\n\n- Middleware are fully typed. This means that you no longer have to guess what's\n  available in `req`, or whether a middleware short-circuits and returns a\n  response. Instead, everything is type checked!\n\n- It's straightforward to start adding fully typed routes to an existing Express\n  or Koa app. Old routes can be migrated gradually.\n\n- Built-in support for automatically generating an OpenAPI definition from your\n  app with [typera-openapi](https://github.com/akheron/typera-openapi).\n\nTypera is a really thin layer on top of Express or Koa. Most of its code is\nTypeScript typings, and the actual runtime stuff is minimal.\n\nSee the [documentation](https://akheron.github.io/typera) for tutorial,\nexamples, API reference and more!\n\n## Development\n\nRun `yarn` to install dependencies.\n\n### Running the test suite\n\nRun `yarn test`.\n\n### Documentation\n\nYou need Python 3 to build the docs.\n\n```\npython3 -m venv venv\n./venv/bin/pip install mkdocs-material\n```\n\nRun a live reloading server for the documentation:\n\n```\n./venv/bin/mkdocs serve\n```\n\nOpen http://localhost:8000/ in the browser.\n\n## Releasing\n\n```\n$ yarn lerna version \u003cmajor|minor|patch\u003e\n$ yarn lerna publish from-git\n```\n\nOpen https://github.com/akheron/typera/releases, edit the draft release, select\nthe newest version tag, adjust the description as needed.\n\n[io-ts]: https://github.com/gcanti/io-ts\n[express]: https://expressjs.com/\n[koa]: https://koajs.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakheron%2Ftypera","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakheron%2Ftypera","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakheron%2Ftypera/lists"}