Fastify

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

Framework
npm
v5.12.7
37,291 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
90 /100 Excellent
Development Activity 96
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
98%
MIT

Kimi Code CLI

AI Agents · AI Code Assistants · Developer Tools

7,983

A single-binary, terminal-native coding agent that reads, edits, and runs code end to end, built by Moonshot AI for Kimi models but pluggable with Anthropic, OpenAI, and Google providers too.

View details
83
Repo Health
87
Technical
67
Dependency
Built with
TypeScript 98%
Updated 1 weeks ago
Clojure
71%
AGPL 3.0

Logseq

Knowledge Management · Note Taking

45,349

A privacy-first, open-source knowledge graph platform combining Markdown, Org-mode, bidirectional linking, and local-first storage for building your second brain.

View details
92
Repo Health
82
Technical
65
Dependency
Built with
Clojure 71%
OCaml 12%
Updated 1 weeks ago
TypeScript
99%
Apache 2.0

Mastra Code

AI Code Assistants

29,041

"A coding agent that never compacts" — a terminal-based AI coding agent built on the Mastra framework, with Observational Memory instead of context compaction, multi-model support, and OAuth login for Claude Max or ChatGPT Plus.

View details
90
Repo Health
73
Technical
65
Dependency
Built with
TypeScript 99%
Updated 6 days ago
TypeScript
84%
Apache 2.0

nao

AI Development · Analytics

1,949

Build and deploy an open-source analytics agent that understands your data warehouse and answers business questions in plain English.

View details
85
Repo Health
76
Technical
67
Dependency
Built with
TypeScript 84%
Python 15%
Updated 6 days ago
TypeScript
99%
Apache 2.0

Onlook

AI Design Tools · Design Tools

26,996

An open-source, AI-first visual editor that lets designers and developers build, style, and deploy React apps directly in code — no handoff required.

View details
63
Repo Health
80
Technical
64
Dependency
Built with
TypeScript 99%
Updated 1 weeks ago
TypeScript
91%
AGPL 3.0

OpenPanel

Analytics

7,187

Open-source Mixpanel alternative with session replay, MCP integration, and privacy-first product analytics you fully control.

View details
83
Repo Health
74
Technical
64
Dependency
Built with
TypeScript 91%
Updated 1 weeks ago
TypeScript
60%
MIT

optio

AI Agents · AI Code Assistants

1,073

Self-hosted AI agent workflow orchestration that runs on your Kubernetes cluster — from ticket intake to squash-merged PR, entirely within your infrastructure.

View details
82
Repo Health
81
Technical
70
Dependency
Built with
TypeScript 60%
Kotlin 27%
Swift 11%
Updated 1 weeks ago
TypeScript
82%
Apache 2.0

Palmr.

File Storage · Security

2,395

Self-hosted, privacy-focused file sharing without limits

View details
57
Repo Health
62
Technical
68
Dependency
Built with
TypeScript 82%
MDX 13%
Updated 2 weeks ago
Python
49%
Other

Arize Phoenix

Analytics · Devops · Monitoring

11,976

Open-source AI observability platform for tracing, evaluating, and debugging LLM applications with built-in intelligence and MCP support.

View details
92
Repo Health
88
Technical
67
Dependency
Built with
Python 49%
TypeScript 43%
Updated 6 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