docs: add Fastify-to-Hono migration guide (#21)#125
Merged
PAMulligan merged 1 commit intoJun 13, 2026
Conversation
Add docs/migration/from-fastify.md, a side-by-side porting guide for Fastify developers moving to Nerva/Hono, mirroring the structure of the Express guide. Covers Fastify schemas to Zod, plugins/encapsulation to middleware and sub-apps, decorators to context variables, hooks to the middleware chain, route registration, serialization/validation (including the loss of fast-json-stringify response filtering), and TypeBox type providers to Zod inference. Leads with where Fastify and Hono align (schema-first, TypeScript-first, return-a-value handlers, in-process testing) and includes a cheat-sheet table. Linked from the README docs index. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds
docs/migration/from-fastify.md, a side-by-side migration guide for Fastify developers moving to Nerva/Hono, and links it from the README documentation index. Structure and voice mirror the existing Express-to-Hono guide (#20).Fastify is the closest Node.js framework to Hono in philosophy — schema-first, TypeScript-first, and return-a-value handlers — so the guide leads with where the two align before mapping the genuine differences.
What's covered
docs/migration/from-fastify.mdcreatedc.set/c.get/c.var)Verification
fastify.dev,hono.dev,zod.dev) were checked to return 200, so thecheck-links(lychee) CI job should pass.removeAdditionalfiltering, and the@fastify/type-provider-typeboxAPI.Fixes #21
🤖 Generated with Claude Code