bettersync

Integrations

Next.js, NestJS, Express, Hono, Elysia, Bun

sync.handler is a standard Web API handler. Works with any framework.

Next.js

app/api/sync/route.ts
export const POST = sync.handler

Hono

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))

On this page