effect-http-api

Community

Build schema-first, typed HTTP APIs

Authormpsuesser
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Designing HTTP APIs that stay consistent across server handlers, OpenAPI docs, and type-safe clients is error-prone when schemas are scattered or manually translated.

Core Features & Use Cases

  • Schema-first endpoint definitions: define params, query, headers, payload, success, and error as Effect Schema so runtime validation and transport codecs are derived from one source.
  • Typed server + client alignment: generate OpenAPI and derive type-safe clients from the same HttpApi definition, reducing drift.
  • Middleware, security, and testing without spinning up a server: add security middleware and unit-test handlers using HttpApiTest utilities.

Quick Start

Use effect-http-api to define an HttpApiGroup with HttpApiEndpoint methods and schemas, then implement server handlers with HttpApiBuilder.group to get validated requests, documented routes, and client-ready types.

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

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.