AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

neon-realtime

Neon Realtime makes any SQL query live. Build realtime, reactive apps and agents on Lakebase Postgres with live SQL queries and reactivity primitives. Use when app UI or agent state must update live from database rows (dashboards, feeds, collaboration, multi-user or multi-device sync), for optimistic mutations, or to replace polling or other realtime sync systems. Triggers include "live query", "subscribe", "sync engine", "useLiveQuery", "TanStack DB", "optimistic updates", "@neon/realtime". For push that doesn't come from database rows (presence, typing, LLM streams), use neon-functions.

Original source
neondatabase
License
Apache-2.0
Pinned revision
d3da7cb5436edbb2bc8c00747fafd31ddf0644f4

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

Ask your assistant

Use Agentic Memory skills to read neondatabase--neon-realtime at revision d3da7cb5436edbb2bc8c00747fafd31ddf0644f4, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 6

references/queries.md · 24000

er }) => { if (!Number.isInteger(data.channelId)) { throw new Error("channelId must be an integer") }

return data

}) .handler(({ data, context }) => realtime.seal({ query: messagesQuery(context.user.id, data.channelId) }) )


The browser calls `sealMessages` to get the sealed query, and calls it again to [renew it](#renewing-sealed-queries).

To seal the query while the page renders on the server, see the [Server-side rendering](ssr.md) guide and the [Next.js](https://neon.com/docs/realtime/examples/nextjs.md) and [TanStack](https://neon.com/docs/realtime/examples/tanstack.md) examples.