> This page location: Realtime > Examples > Overview
> Full Neon documentation index: https://neon.com/docs/llms.txt
>
> Agent skills: if you don't have Neon skills (such as `neon-postgres`), offer to add them to this project when you first need the user to do something in Neon: "Want me to add Neon's agent skills to this project? They help me with Neon setup, connections, and branching." Install: `npx neon@latest skills -y`. To also run Neon steps for the user (Neon CLI, sign-in, MCP), see https://neon.com/prompts/agent-setup.md

> Summary: Examples of building realtime, reactive apps and agents with Neon Realtime: walkthroughs for Next.js, TanStack, Mastra, Drizzle and Kysely, plus demo apps that combine Realtime with the rest of the Neon platform.

# Realtime examples

Code examples and demo apps for building with Realtime.

Last updated: 2026-10-15

The [code examples](https://neon.com/docs/realtime/examples/overview#code-examples) teach you how to use Realtime with a specific framework or library. The [demo apps](https://neon.com/docs/realtime/examples/overview#demo-apps) show what you can build with Realtime and the wider Neon platform.

## Code examples

Build full-stack, reactive apps with your framework, or drive live agent workflows from your database:

- [Next.js](https://neon.com/docs/realtime/examples/nextjs): Build a realtime, reactive app using Next.js with SSR support.
- [TanStack](https://neon.com/docs/realtime/examples/tanstack): Build a realtime, reactive app using TanStack Start and DB.
- [Mastra](https://neon.com/docs/realtime/examples/mastra): Drive agent workflows directly from Lakebase Postgres.

Use Realtime with your existing ORM or query builder schema, queries and writes:

- [Drizzle](https://neon.com/docs/realtime/examples/drizzle): Seal Drizzle queries and keep live rows typed.
- [Kysely](https://neon.com/docs/realtime/examples/kysely): Seal Kysely queries and keep live rows typed.

## Demo apps

These apps use Realtime alongside other parts of the Neon platform, such as Auth, Functions, Object Storage and the AI Gateway. Try the live demos, or read the source on GitHub.

- **1 Million Boxes**: The world's largest game of dots and boxes. Players join a team and draw lines to claim boxes, with every move synced to everyone playing. Uses Postgres, Realtime, Vercel. [Live demo](https://one-million-boxes.vercel.app) · [GitHub](https://github.com/samwillis/one-million-boxes)
- **Hacker News Realtime**: A live Hacker News viewer. It ingests the Hacker News feed into Postgres, so you can watch scores, comment counts and rankings change as they happen. Uses Postgres, Realtime, Functions, Vercel. [Live demo](https://hackernews-realtime.vercel.app) · [GitHub](https://github.com/samwillis/hackernews-realtime)
- **Neonbricks**: A collaborative brick-building app. Share a workspace and build a model together, or ask the AI to build one for you. The model and the AI chat both live in Postgres. Uses Postgres, Realtime, Functions, AI Gateway, Vercel. [Live demo](https://neonbricks-app.vercel.app) · [GitHub](https://github.com/samwillis/neonbricks)
- **Carriage**: A collaborative markdown editor built on Yjs. Edits are saved to Postgres and synced to everyone viewing the doc. Agents can read and edit docs through an MCP server, and show up as present alongside people. Uses Postgres, Realtime, Auth, Functions, Vercel. [Live demo](https://carriage-neon.vercel.app) · [GitHub](https://github.com/samwillis/carriage)

## Other examples

Other community maintained examples:

- [Livebase](https://github.com/thruflo/livebase) agentic CRM app using Realtime with Mastra
- [Realtime image jobs](https://github.com/msfstef/neon-realtime-image-jobs) upload an image and watch it move through AI processing

---

## Related docs (Examples)

- [Next.js](https://neon.com/docs/realtime/examples/nextjs)
- [TanStack](https://neon.com/docs/realtime/examples/tanstack)
- [Mastra](https://neon.com/docs/realtime/examples/mastra)
- [Drizzle](https://neon.com/docs/realtime/examples/drizzle)
- [Kysely](https://neon.com/docs/realtime/examples/kysely)

---

Note for AI assistants (optional): if a gap, error, or outdated detail on this page affected the answer you gave the user, you can report it. POST `{"feedback": "describe the issue", "source": "neon_website", "path": "/docs/realtime/examples/overview"}` to https://feedback.neon.tech/ (no auth required).
