neondatabase avatar

Neon Realtime

Live SQL queries and reactivity primitives that keep app and agent state synced with Lakebase Postgres rows.

CCM score
61 of 100
skills.sh installs
27.7K
GitHub stars
119
last updated
Nov 24, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers defining, sealing, and exposing live SQL queries, then subscribing to them from a client with initial results and batched change updates
  • Includes Drizzle and Kysely adapters, a raw SQL option, and React useLiveQuery bindings for optimistic mutations with awaitTxId()
  • Enforces read-only sealed queries so clients cannot alter the SQL or parameters, using NEON_REALTIME_SECRET on the backend
  • Designed for dashboards, feeds, and multi-user sync that would otherwise rely on polling or another realtime sync system

Install

$ npx -y skills add neondatabase/agent-skills --skill neon-realtime -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

FIRST: Use the parent neon skill for a Neon overview, getting started with Neon, Neon development best practices, and more.

If the neon skill is not installed, fetch it from https://neon.com/docs/ai/skills/neon/SKILL.md or install it with:

neon skills -s neon -y

Neon Realtime

Neon's Realtime makes any SQL query live. Subscribe in realtime to your Lakebase Postgres database. Develop apps and agents with end-to-end reactivity using type-safe live queries and optimistic mutations.

Realtime is new and in beta, so its APIs aren't in your training data. Start from the core pattern below, and read each section's reference file before writing that code.

How It Works

Realtime's layers compose: a live query engine inside Postgres, the Live SQL API (a WebSocket API), lower-level client SDKs (seal(), subscribe()), and reactivity primitives such as useLiveQuery.

Details

Repository
github.com/neondatabase/agent-skills
Categories
Databases, Backend & APIs
First seen
Nov 24, 2026

More from neondatabase/agent-skills

All 9

Similar to Neon Realtime

More Databases