effract docs GitHub ↗

Recipes & examples

Copy-pasteable call sites and four full framework integrations.

The repository ships eight self-contained, typechecked recipes — one call-site pattern per file — and four example apps that render the same shared components across environments.

Recipes

Browse them in examples/:

RecipeShows
01serviceread a service with yield*
02hooks-and-servicesuseState and a service, interleaved
03async-and-suspenseasync effect → Suspense
04signalsatom / observe / useAtom
05stateful-servicea REC wired to mutable service state
06layer-compositionservices that depend on services
07resolve-up-frontview (the RSC-friendly mode)
08server-componentdrive a REC as RSC + stream Flight

Example apps

Four integrations in apps/, each rendering the same shared components:

AppEnvironment
spa-viteVite SPA
bun-ssrPlain Bun streaming SSR + hydration
next-rscNext.js App Router (RSC)
tanstack-startTanStack Start (SSR)

Clone the repo and run just example bun-ssr (or any of the four) to see the same React Effect Components light up against a different runtime each time.