effect-atom-rpc
CommunityBuild reactive Atom RPC clients with SSR hydration.
Software Engineering#effect#ssr-hydration#atomrpc#reactive-rpc#invalidation-keys#ttl-cache#stream-rpc
Authormpsuesser
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It solves the problem of building reliable, cached, and reactive RPC clients for Atom/React UIs without duplicating network calls or losing UI consistency across renders and SSR hydration.
Core Features & Use Cases
- Cached reactive queries: Create shared
queryatoms keyed by request parameters so multiple components reuse the same in-flight/result. - Mutation-driven invalidation: Use
mutationto triggerreactivityKeys-based invalidation so dependent query atoms automatically re-fetch after successful writes. - SSR hydration support: Enable
serializationKeyso query atoms can be dehydrated on the server and hydrated on the client without unnecessary re-fetching. - Stream RPC support: For stream-style RPCs,
queryreturns anAtom.Writable<PullResult<...>>for incremental updates.
Quick Start
Define an AtomRpc.Service wrapping your existing RpcGroup and then call its query from your components using serializationKey for SSR and reactivityKeys on mutations to keep data fresh.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: effect-atom-rpc Download link: https://github.com/mpsuesser/pi-effect-harness/archive/main.zip#effect-atom-rpc Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.