Next.js App Router
Create one vanilla graph per server request, serialize its state through the React Server Component boundary, hydrate a scoped client provider, and let client-only realtime take over after hydration. Never share a mutable server singleton between requests.
pnpm run dev:next