compare
Fastify vs hapi
The same facts for both, read from GitHub every night, and the relation a person reviewed.
| Fact | Fastify | hapi |
|---|---|---|
| Language | JavaScript | JavaScript |
| Licence | MIT | Other |
| Stars | 37k | 15k |
| Latest | v5.12.8 | v21.3.0 |
| Last push | 2026-11-21 | 2026-11-04 |
| Release cadence | about 10 days between releases | about 92 days between releases |
| Active contributors | 38 commit authors on the default branch in the last 90 days | 2 commit authors on the default branch in the last 90 days |
| Flags | none | none |
How they relate
Both replace Express. Alternatives to Express →
Full replacementFastifySchema-based validation and serialisation, and a plugin system.
Full replacementhapiConfiguration-centric routes and a plugin system instead of middleware chains, with validation built in.
Fastify
- v5.12.82026-11-02Fix for
- v6.0.0-alpha.62026-11-02feat: add routerOptions.compile to use find-my-way compiler modepre-release
- v5.12.72026-10-13
- v6.0.0-alpha.52026-10-16docs: clarify headers validation is additive, not a sanitized viewpre-release
- v5.12.62026-10-13Fix for
Fastify
✓ signed The latest release, v5.12.8, carries a signature GitHub verified.
Loading the security report
hapi
unsigned The latest release, v21.3.0, carries no signature GitHub could verify.
Loading the security report