Remote / foldkit-remote
How the server packages fit
foldkit-remote manages client cache semantics while your server Sources and
network layers run behind RemoteClient / Effect RPC:
| Package | Responsibility |
|---|---|
foldkit-remote | normalized cache, planning, queries, optimistic overlays, live cursors |
foldkit-remote-server | interpret client selections/queries and enforce field authorization |
foldkit-remote-drizzle | optionally compile selections and queries into typed Drizzle access |
| Effect RPC / your layers | transport, authentication, and deployment |
Remote.clientLayer(rpcClient) adapts RemoteRpc to RemoteClient and
coalesces compatible reads/queries. HTTP, WebSocket, worker, and in-process
execution are layer choices rather than Remote semantics.
See foldkit-remote-server for Source and authorization
rules, and examples/kitchen-sink for the real
server packages together.