AI agents: fetch the documentation index at llms.txt. Markdown versions are available by appending .md to any page URL, including this page's markdown.
@stratasync/next
Next.js App Router integration with server-side bootstrap prefetching and client-side sync provider.
Server-side bootstrap prefetching for fast page loads, a client-side NextSyncProvider, and re-exported hooks from @stratasync/react.
What it provides
Client-side (default import / @stratasync/next/client):
NextSyncProvider: App Router compatible provider with loading and error states- Most hooks from
@stratasync/react(re-exported with"use client"directive).useModelStateis not re-exported: import it directly from@stratasync/reactif needed. - Bootstrap decoding and seeding utilities
- Stale checking for prefetched data
Server-side (@stratasync/next/server):
prefetchBootstrap: fetch initial data on the serverprefetchModels: selective model prefetchingserializeBootstrapSnapshot/encodeBootstrapSnapshot: serialize for transfer to client
Installation
npm install @stratasync/nextPeer dependencies
| Package | Required version |
|---|---|
next | ^14.0.0 || ^15.0.0 |
react | ^18.0.0 || ^19.0.0 |