Beta

ZenStack LIVE

Give your ZenStack backend realtime streaming capabilities. Instantly react to any insert, update, or delete, and declaratively filter records using the same Prisma API you've come to love.

npm install @visualbravo/zenstack-live

Send an email the moment a user signs up.

import { ZenStackLive } from '@visualbravo/zenstack-live'const live = new ZenStackLive({  client: new ZenStackClient(...),  redis: {    url: process.env.REDIS_URL,  },})const stream = live.stream({  model: 'User',  slug: 'send-welcome-email',  when: {    created: {},  },})for await (const event of stream) {  const user = event.created  await sendEmail({    to: user.email,    subject: `Welcome, ${user.name}!`,  })}

Type-safe

Queries have full intellisense based on your ZenStack models.

Durable

Server went down? Your app picks up right where it left off, and even detects all the changes that happened while it was offline.

Scalable

Just add more instances.

Simple

Build event-driven apps with fewer headaches.

This project is not affiliated with or endorsed by the ZenStack team.