# fastify.dev > Source: https://fastify.dev/ > Machine-readable version - 2026-11-24 --- Skip to contentFastify v5.x · Node.js 20+# A fast, low-overhead web framework for Node.js. Highly focused on providing the best developer experience with the least overhead and a powerful plugin architecture. [Get started](/docs/latest/Guides/Getting-Started/)$`npm install fastify`downloads / mo0github stars0plugins277throughputHapi48,864.8 req/sExpress53,784.8 req/sRestify54,070.4 req/sKoa57,570.4 req/sH369,174.8 req/sHono74,163.2 req/s0k39k79k0REQUESTS / SECOND1.5xvs expressTStypes includedtrusted byhttps://hospitalrun.io/https://nearform.comhttps://platformatic.devhttps://www.val.town/https://handsontable.com/docs/react-data-grid/?utm_source=Fastify_homepage&utm_medium=sponsorship&utm_campaign=library_sponsorship_2024https://www.cloudways.com/en/velocity.php?id=1258368&data1=fastifyhttps://serpapi.com/?utm_source=fastifyhttps://kogiqa.com/https://lokalise.com/https://photon.codes/https://www.n-ix.com/https://www.testmuai.com/?utm_medium=sponsor&utm_source=fastifyhttps://hospitalrun.io/https://nearform.comhttps://platformatic.devhttps://www.val.town/https://handsontable.com/docs/react-data-grid/?utm_source=Fastify_homepage&utm_medium=sponsorship&utm_campaign=library_sponsorship_2024https://www.cloudways.com/en/velocity.php?id=1258368&data1=fastifyhttps://serpapi.com/?utm_source=fastifyhttps://kogiqa.com/https://lokalise.com/https://photon.codes/https://www.n-ix.com/https://www.testmuai.com/?utm_medium=sponsor&utm_source=fastify// why fastify ## Efficiency is a feature An efficient server keeps your infrastructure costs low, stays responsive under load, and leaves your users happy. Fastify is built to serve as many requests as possible without compromising on security, validation, or developer experience. Inspired by Hapi and Express, it's one of the fastest web frameworks around. // core features ## Core strengths ~79k req/s### Highly performant One of the fastest web frameworks in town. Depending on code complexity, Fastify can serve around 79 thousand requests per second. hooks · plugins### Extensible Fully extensible via its hooks, plugins, and decorators. Encapsulation keeps your components isolated and reusable. JSON Schema### Schema based Use JSON Schema to validate routes and serialize outputs. Internally Fastify compiles the schema into a highly performant function. Pino built-in### Logging Logs are important but costly. We chose the fastest logger, Pino, to almost entirely remove that cost. DX first### Developer friendly Expressive by design, built to help developers in daily use without sacrificing performance or security. types included### TypeScript ready We work hard to maintain a TypeScript type declaration file to support the growing TypeScript community. // quick start ## Type-safe from the start Install Fastify and TypeBox, then create `server.ts`. The same schema validates incoming data, serializes the response, and infers the request type for your handler. $`npm install fastify @fastify/type-provider-typebox typebox`[Explore the full documentation](/docs/latest)server.tsCopyimport Fastify from 'fastify' import { Type } from 'typebox' import type { TypeBoxTypeProvider } from '@fastify/type-provider-typebox' const fastify = Fastify({ logger: true }) .withTypeProvider() fastify.get('/', { schema: { querystring: Type.Object({ name: Type.Optional(Type.String()), }), response: { 200: Type.Object({ hello: Type.String(), }), }, }, }, async (request) => { return { hello: request.query.name ?? 'world' } }) await fastify.listen({ port: 3000 })``` import Fastify from 'fastify' import { Type } from 'typebox' import type { TypeBoxTypeProvider } from '@fastify/type-provider-typebox' const fastify = Fastify({ logger: true }) .withTypeProvider<TypeBoxTypeProvider>() fastify.get('/', { schema: { querystring: Type.Object({ name: Type.Optional(Type.String()), }), response: { 200: Type.Object({ hello: Type.String(), }), }, }, }, async (request) => { return { hello: request.query.name ?? 'world' } }) await fastify.listen({ port: 3000 }) ``` // benchmarks ## Fast, from the ground up Leveraging deep experience with Node.js performance, Fastify was built to be as fast as possible. Compare it against other common frameworks. [See full benchmarks](/benchmarks/)Fastify5.12.878,696Hono4.13.1774,163H32.0.869,175Koa3.3.057,570Restify12.1.054,070Express5.3.053,785Hapi21.4.1348,865req/s · higher is better · illustrative comparison // ecosystem ## A plugin for everything An ever-growing ecosystem of 277 plugins. There's probably already one for your database or template engine — and it's very easy to write your own. [Explore 277 plugins](/ecosystem/)[@fastify/cors](https://github.com/fastify/fastify-cors)officialEnables the use of CORS in a Fastify application. [@fastify/static](https://github.com/fastify/fastify-static)officialPlugin for serving static files as fast as possible. [@hey-api/openapi-ts](https://heyapi.dev/docs/openapi/typescript/plugins/fastify)communityThe OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more. [@fastify/cookie](https://github.com/fastify/fastify-cookie)officialParse and set cookie headers. [@fastify/rate-limit](https://github.com/fastify/fastify-rate-limit)officialA low overhead rate limiter for your routes. [@fastify/otel](https://github.com/fastify/otel)officialOpenTelemetry instrumentation library. // maintainers ## Built by the community Fastify is an [OpenJS Foundation](https://openjsf.org/) project maintained by a global team of lead maintainers and collaborators. // lead maintainers ## The team [Matteo Collina@mcollina](https://github.com/mcollina)[Tomas Della Vedova@delvedor](https://github.com/delvedor)[KaKa Ng@climba03003](https://github.com/climba03003)[Manuel Spigolon@eomm](https://github.com/eomm)[James Sumners@jsumners](https://github.com/jsumners)// active ### Collaborators [Carlos Fuentes](https://github.com/metcoder95)[Evan Shortiss](https://github.com/evanshortiss)[Luciano Mammino](https://github.com/lmammino)[Maksim Sinik](https://github.com/fox1t)[Frazer Smith](https://github.com/Fdawgs)[Igor Savin](https://github.com/kibertoad)[Vincent Le Goff](https://github.com/zekth)[Aras Abbasi](https://github.com/uzlopak)[Gürgün Dayıoğlu](https://github.com/gurgunday)[Dan Castillo](https://github.com/dancastillo)[Jean Michelet](https://github.com/jean-michelet)[Harry Brundage](https://github.com/airhorns)[Luis Orbaiceta](https://github.com/luisorbaiceta)[Matteo Pietro Dazzi](https://github.com/ilteoood)[Antonio Tripodi](https://github.com/tony133)[Issei Horie](https://github.com/is2ei)// alumni ### Past collaborators [Ayoub El Khattabi](https://github.com/AyoubElk)[Dustin Deus](https://github.com/StarpTech)[Rafael Gonzaga](https://github.com/RafaelGSS)[David Clements](https://github.com/davidmarkclements)[Salman Mitha](https://github.com/salmanm)[Tommaso Allevi](https://github.com/allevo)[Ethan Arrowood](https://github.com/Ethan-Arrowood)[Çağatay Çalı](https://github.com/cagataycali)[Cemre Mengu](https://github.com/cemremengu)[Nathan Woltman](https://github.com/nwoltman)[Trivikram Kamat](https://github.com/trivikr)## Ready to go fast? Ship a production-grade API today. Start with the guide, or dive into the reference. [Get started](/docs/latest/Guides/Getting-Started/)[Star on GitHub](https://github.com/fastify/fastify)EscStart typing to search the docs. Search is available after a production build. Run `npm run build:website`. ## Navigation - [fastify](/) - [Docs](/docs/latest) - [Ecosystem](/ecosystem/) - [Benchmarks](/benchmarks/) - [Organizations](/organizations/) - [Community](/community/) - [Support](/docs/latest/Reference/LTS/) - [0](https://github.com/fastify/fastify) - [The OpenJS Foundation](https://openjsf.org) - [Terms of Use](https://terms-of-use.openjsf.org) - [Privacy Policy](https://privacy-policy.openjsf.org) - [Bylaws](https://bylaws.openjsf.org) - [Code of Conduct](https://code-of-conduct.openjsf.org) - [Trademark Policy](https://trademark-policy.openjsf.org) - [Trademark List](https://trademark-list.openjsf.org) - [Cookie Policy](https://www.linuxfoundation.org/cookies) --- Generated by astro-inference | https://fastify.dev/llms.txt