Integrations
Next.js, NestJS, Express, Hono, Elysia, Bun
sync.handler is a standard Web API handler. Works with any framework.
Next.js
export const POST = sync.handlerHono
app.post('/sync', (c) => sync.handler(c.req.raw))Elysia
app.mount('/sync', sync.handler)Bun
Bun.serve({ fetch: sync.handler })Express / Fastify / NestJS
import { toNodeHandler } from 'bettersync/node'
app.post('/api/sync', toNodeHandler(sync))