CodeVetter · Repo Unpack · Feature catalog
fastify/fastify
The user-facing product is a programmable server API. Developers declare routes, scope plugins, extend objects, configure parsers and schemas, and control transport and lifecycle behavior. Reply APIs support ordinary payloads as well as streams and Web API objects. Database and authentication examples show integrations supplied through plugins.
- Route shorthand methods include GET, HEAD, TRACE, DELETE, PATCH, POST, PUT, OPTIONS, QUERY, and all supported methods.
- route, hasRoute, and findRoute expose general registration and route discovery.
- The instance exposes addHook, shared schema access, compiler setters, reply serializer selection, and schema error formatting.
- Content parser APIs allow adding, inspecting, removing, and resetting parsers, including access to default JSON and text parsers.
- decorate, decorateRequest, decorateReply, and corresponding inspection APIs extend instance and per-request objects.
- inject offers simulated HTTP requests, lazily loads light-my-request, and boots an unstarted instance before dispatch.
- Reply.send recognizes Node streams, Web streams, Response objects, typed-array buffers, and ordinary strings.
- handlerTimeout starts a request deadline that aborts request.signal and sends an error if no reply has been sent.
- Custom not-found handlers, error handlers, child logger factories, and router constraint strategies are public instance features.