A TypeScript stack for type-safe errors, dependency injection, concurrency, scheduling, tracing, and schema validation. It ships as a core package with integrations for Node, browsers, SQL, AI providers, and chat platforms.
Overview
Effect is aimed at teams building maintainable TypeScript systems that must handle failure, dependencies, and async work in a structured way. The core model tracks success, typed errors, and required services in one effect type so callers see what can fail and what must be provided.
It addresses structured concurrency with fibers, retry and cron-like scheduling, OpenTelemetry tracing, logging, metrics, and unified schema validation that can drive runtime checks and serialization. Companion packages add platform services for Node and the browser, SQL clients for several databases, AI provider adapters, chat channel adapters, and code generators for OpenAPI and GraphQL.
The project publishes synchronized releases across the monorepo, with a long-term support major line that promises multiple years of fixes. Documentation, guides, community events, and migration material support adoption from earlier major versions.
Installable via common JavaScript package managers and usable on Node and other runtimes listed in its getting-started material, including browser-oriented bindings where applicable.
Key features
- Typed errors in signatures
- Dependency injection services
- Structured concurrency and fibers
- Retry and schedule policies
- OpenTelemetry tracing and metrics
- Unified schema validation
- SQL and AI integration packages
- Browser and Node platform modules
Use cases
- Backend services with typed failures
- Microservices needing tracing
- Apps requiring DI and testing mocks
- Data access via packaged SQL clients
- AI workflows with provider adapters