effect-atom-rpc

Community

Build reactive Atom RPC clients with SSR hydration.

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 query atoms keyed by request parameters so multiple components reuse the same in-flight/result.
  • Mutation-driven invalidation: Use mutation to trigger reactivityKeys-based invalidation so dependent query atoms automatically re-fetch after successful writes.
  • SSR hydration support: Enable serializationKey so query atoms can be dehydrated on the server and hydrated on the client without unnecessary re-fetching.
  • Stream RPC support: For stream-style RPCs, query returns an Atom.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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.