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:

PackageResponsibility
foldkit-remotenormalized cache, planning, queries, optimistic overlays, live cursors
foldkit-remote-serverinterpret client selections/queries and enforce field authorization
foldkit-remote-drizzleoptionally compile selections and queries into typed Drizzle access
Effect RPC / your layerstransport, 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.