@robcresswell/fastify-jsonapi
:warning: :warning: :warning:
You're welcome to use this package, but it's very much in alpha and will likely churn API a lot
:warning: :warning: :warning:
A collection of functions to help you build JSON:API compliant APIs with Fastify
The goal of this package is to be type-safe and provide good interfaces to build APIs against the JSON:API spec. It does not aim to be a holistic solution or framework, only a collection of functions and interfaces. These are generally easier to use in migrations, for example, or easier to hack around if they don't work as expected.
Getting Started
Install the plugin
npm i @robcresswell/fastify-jsonapi
Register with Fastify
import { fastify } from 'fastify'; import { jsonApiPlugin } from '@robcresswell/fastify-jsonapi'; const app = fastify(); await app.register(jsonApiPlugin);
Examples
See EXAMPLES.md for more detailed examples