33Kita (` /ˈkitə/ ` ) is a [ meta] ( https://en.wikipedia.org/wiki/Metaprogramming )
44router for Fastify.
55
6- ::: tip Just want to try it by yourself?
6+ ::: tip Just want to try it yourself?
77
88Skip to the [ Quickstart] ( ./quickstart ) or head over to our
99[ Migration Guide] ( ./recipes/migration.md ) to migrate your existing project to
1212:::
1313
1414Kita is a tool that analyzes your TypeScript source code for functions named
15- after an HTTP method (` get ` , ` post ` , .. .) within the ` src/routes ` folder and
15+ after an HTTP method (` get ` , ` post ` , etc .) within the ` src/routes ` folder and
1616automatically generates all the necessary configurations to register your routes
1717in Fastify.
1818
@@ -23,20 +23,20 @@ and output data**.
2323## Why use Kita?
2424
2525Kita was created to facilitate the creation of APIs in TypeScript, allowing you
26- to focus on what really matters: ** the code** . With Kita, you don't worry about
27- input validation, output, documentation, routing, and so on.
26+ to focus on what really matters: ** the code** . With Kita, you don't have to
27+ worry about input validation, output, documentation, routing, and so on.
2828
2929Its philosophy is as follows:
3030
3131> ** Define once, use everywhere.**
3232
3333---
3434
35- Normally you define an interface for the body of your endpoint, then define a
35+ Normally, you define an interface for the body of your endpoint, then define a
3636schema to validate it, then write documentation about the route, and then
37- register the body parse in the route. Repeat the above for ` Query ` , ` Body ` ,
38- ` Params ` , ` Headers ` , ` Response ` , and ` Plugins ` and ** before you know it you have
39- 10 different files for just a single HTTP endpoint.**
37+ register the body parser in the route. Repeat the above for ` Query ` , ` Body ` ,
38+ ` Params ` , ` Headers ` , ` Response ` , and ` Plugins ` , and ** before you know it, you
39+ have 10 different files for just a single HTTP endpoint.**
4040
4141With Kita, you do all this with ** just** one exported function for each
4242endpoint.
@@ -81,5 +81,5 @@ OpenAPI documentation:
8181By using code generators for the client _ (like [ Orval.dev] ( https://orval.dev/ )
8282or [ Swagger Codegen] ( https://swagger.io/tools/swagger-codegen/ ) )_ , when making a
8383simple design change in the API, you can regenerate the client and ensure that
84- the frontend is always in sync with the backend, ** showing all the lines of code
85- that need to be changed** .
84+ the frontend is always in sync with the backend, ** highlighting all the lines of
85+ code that need to be changed** .
0 commit comments