effect-managed-runtime

Community

Run Effect services inside any web framework.

Authormpsuesser
Version1.0.0
Installs0

System Documentation

What problem does it solve?

You need to use Effect services in an environment where Effect does not own the process lifecycle, such as Hono/Express handlers or serverless functions, without manually re-implementing runtime and lifecycle concerns.

Core Features & Use Cases

  • Bridge Effect to External Frameworks: Run Effects from non-Effect code paths using ManagedRuntime in HTTP handlers, serverless functions, or embedded contexts.
  • Correct Lifecycle & Resource Safety: Dispose the runtime to release resources acquired during layer construction (DB pools, clients, file handles).
  • Deterministic Execution Options: Use runPromise for async handlers, runSync for known-sync effects, and runFork/runCallback for alternative execution styles.
  • Integration Ready: Includes guidance and examples for Hono, Express, AWS Lambda, and Cloudflare Workers, plus key contrasts vs Layer.launch and runMain.

Quick Start

Use the effect-managed-runtime skill to run your Effect services inside a Hono or Express route by constructing a ManagedRuntime from your app layer and calling runtime.runPromise within the handler.

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-managed-runtime
Download link: https://github.com/mpsuesser/pi-effect-harness/archive/main.zip#effect-managed-runtime

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.