Better-Notify for Next.js

Better-Notify integrates with Next.js API routes, server actions, and middleware. Define your notification catalog once and send from any server-side context — route handlers, server components, or background jobs.

Why it fits

Example

app/api/invite/route.ts
import { mail } from '@/lib/notifications';

export async function POST(req: Request) {
  const { email, teamName } = await req.json();

  const result = await mail.teamInvite.send({
    to: email,
    input: { teamName },
  });

  return Response.json({ messageId: result.messageId });
}
Get startedBrowse integrations

Also works with