Home

Awesome

prisma-banner

💓 Prisma Pulse Toolkit

This repo contains open source components of Prisma Pulse.

This includes:

Prisma Pulse extends from the components of this repository by adding robust infrastructure and event persistence, enabling teams to deploy real-time applications and event-driven architectures without maintaining complex infrastructure.

What is Prisma Pulse?

Prisma Pulse is a managed Change Data Capture (CDC) service that makes it easy to react to changes in your databases with type-safe model streams.

It enables developers to build real-time apps by streaming database changes into their application in a type-safe way — with just a few lines of code:

// 1. Subscribe to all changes on the `User` table
const stream = await prisma.user.stream();

// 2. Wait for changes to happen in the DB so that new events arrive
for await (let event of stream) {
  // 3. Do something with an event, e.g. log the its details to the terminal
  console.log(`Something happened in the database: `, event);
}

Here is an overview of the main features Prisma Pulse provides:

Learn more

If you’re interested in learning more, be sure to check out the Prisma Pulse portion of the Prisma docs.

For community help and to connect with other developers, be sure to join the Prisma Discord!