Fastify

A fast and low-overhead web framework for Node.js, built around schema-based validation and a plugin architecture

Framework
npm
v5.12.5
37,205 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
91 /100 Excellent
Development Activity 100
Maintenance 96
Community 68
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
88 /100 Excellent
Architecture 92
Code Quality 93
Innovation 88
Learning Curve 78

Fastify is a Node.js web framework focused on performance and developer experience, built from the ground up around JSON Schema-based request/response validation and serialization. Route handlers declare their expected input and output shapes as schemas, which Fastify compiles ahead of time into highly optimized validation and serialization functions, giving it consistently strong throughput in framework benchmarks.

Its architecture is fully plugin-based (built on avvio), with an encapsulation model that scopes decorators, hooks, and plugins to the part of the route tree where they’re registered — preventing global state leakage across a large application. A large first-party and community plugin ecosystem covers authentication, CORS, rate limiting, Swagger/OpenAPI generation, and more, making it a common choice for teams that want an Express-like developer experience with materially better raw performance and built-in schema validation.

What You Get

  • JSON Schema-based request validation and response serialization compiled for high performance
  • An encapsulated plugin architecture (built on avvio) that scopes decorators and hooks per route subtree
  • A rich hooks lifecycle (onRequest, preHandler, onSend, etc.) for cross-cutting request logic
  • Built-in structured logging via Pino with per-request log correlation
  • First-party plugins for CORS, rate limiting, JWT auth, multipart uploads, and Swagger/OpenAPI docs
  • Full TypeScript type definitions and first-class async/await handler support

Common Use Cases

  • Building high-throughput REST or JSON APIs where request/response validation overhead matters
  • Structuring large applications with route-scoped plugins to avoid global middleware side effects
  • Auto-generating OpenAPI/Swagger documentation directly from route JSON schemas
  • Migrating from Express when raw throughput or built-in schema validation become priorities

Under The Hood

Architecture - Fastify’s core (fastify.js, lib/) builds the server around avvio for ordered, encapsulated plugin/dependency booting, find-my-way for radix-tree routing, and a lifecycle hooks system (lib/hooks.js) that runs onRequest/preHandler/onSend etc. around each request; each plugin registration creates a new encapsulation context so decorators and hooks don’t leak outside their subtree. Tech Stack - Written in modern CommonJS JavaScript with companion TypeScript type definitions (fastify.d.ts, types/), using Pino for logging, fast-json-stringify/ajv under the hood for schema compilation, and published as a single fastify package with a large satellite plugin ecosystem (@fastify/*). Code Quality - The project enforces 100% line coverage in CI (coverage:ci-check-coverage runs borp --check-coverage --lines 100), combined with ESLint, a dedicated test:types pass via tstyche, and a large test/ directory covering routing, validation, hooks, and plugin encapsulation edge cases. API Design - Route definitions pair a plain object handler with JSON Schema for validation/serialization (fastify.get('/route', { schema }, handler)), which front-loads some schema-authoring effort compared to schema-less frameworks like Express but pays off in both runtime performance and self-documenting APIs.

Used by 25 apps in this directory

TypeScript
100%
Other

Activepieces

AI Assistants · Automation · Mcp

24,756

Open-source AI automation platform that converts 280+ workflow integrations into MCP servers for LLMs, with no-code builders and TypeScript extensibility.

View details
92
Repo Health
85
Technical
64
Dependency
Built with
TypeScript 100%
Updated 4 days ago
TypeScript
72%
AGPL 3.0

APITable

Databases · Low Code Platforms

15,623

API-first collaborative spreadsheet-database platform that auto-generates REST APIs and lets teams build internal tools, CRMs, and dashboards without code.

View details
71
Repo Health
77
Technical
60
Dependency
Built with
TypeScript 72%
Java 22%
Updated 3 weeks ago
Rust
67%
MIT

Bun

Developer Tools

96,068

An all-in-one JavaScript and TypeScript toolkit — one Rust-and-JavaScriptCore binary that replaces Node.js, npm, a bundler, and a test runner with faster equivalents.

View details
92
Repo Health
91
Technical
64
Dependency
Built with
Rust 67%
C++ 19%
TypeScript 10%
Updated 5 days ago
TypeScript
99%
Apache 2.0

Colanode

Collaboration · Knowledge Management · Team Chat

5,152

Local-first, self-hosted workspace that combines real-time chat, Notion-style pages, and structured databases — all synced via CRDTs so you work offline without losing a keystroke.

View details
46
Repo Health
73
Technical
70
Dependency
Built with
TypeScript 99%
Updated 6 months ago
TypeScript
79%
Other

Directus

CMS · Low Code Platforms

37,987

Connect any SQL database and get instant REST and GraphQL APIs, a visual management Studio, and a native MCP server for AI agents — free for most organizations.

View details
92
Repo Health
82
Technical
76
Dependency
Built with
TypeScript 79%
Vue 19%
Updated 1 weeks ago
TypeScript
92%
MIT

Dittofeed

Automation · Marketing

2,968

Open-source omni-channel customer engagement platform for automating transactional and marketing messages via email, SMS, WhatsApp, Slack, and mobile push.

View details
54
Repo Health
75
Technical
62
Dependency
Built with
TypeScript 92%
Updated 6 months ago
TypeScript
91%
Apache 2.0

Helicone

AI Development · Analytics · Monitoring

6,182

An open-source AI gateway and LLM observability platform that routes requests to 100+ models while logging cost, latency, and full traces for every call.

View details
70
Repo Health
81
Technical
65
Dependency
Built with
TypeScript 91%
Updated 2 weeks ago
TypeScript
99%
MIT

GraphQL Hive

Developer Tools · Devops · Monitoring

484

Open-source GraphQL schema registry and observability platform with breaking change detection, federation support, and CI/CD integration for teams of any size.

View details
90
Repo Health
81
Technical
69
Dependency
Built with
TypeScript 99%
Updated 4 days ago
TypeScript
97%
Other

Infisical

Devops · Security

29,468

The open-source platform for secrets, certificates, privileged access, and AI agent security — all in one self-hostable system.

View details
91
Repo Health
84
Technical
65
Dependency
Built with
TypeScript 97%
Updated 4 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers