Fast and low overhead web framework, for Node.js

Why

An efficient server implies a lower cost of the infrastructure, a better responsiveness under load and happy users.
How can you efficiently handle the resources of your server, knowing that you are serving the highest number of requests as possible, without sacrificing security validations and handy development?

Enter Fastify. Fastify is a web framework highly focused on providing the best developer experience with the least overhead and a powerful plugin architecture. It is inspired by Hapi and Express and as far as we know, it is one of the fastest web frameworks in town.

Schema based: even if it is not mandatory we recommend to use JSON Schema to validate your routes and serialize your outputs, internally Fastify compiles the schema in an highly performant function.

Logging: logs are extremely important but are costly; we chose the best logger to almost remove this cost, Pino!

Developer friendly: the framework is built to be very expressive and help the developer in his daily use, without sacrificing performance and security.

A fast web framework

Leveraging our experience with Node.js performance, Fastify has been built from the ground up to be as fast as possible. Have a look at our benchmarks section to compare fastify performance to other common web frameworks.

Ecosystem

Fastify has an ever-growing ecosystem of plugins. Probably there is already a plugin for your favourite database or template language.
Have a look at the Ecosystem page to navigate through the currently available plugins.
Can't you find the plugin you are looking for? No problem, it's very easy to write one!