# Effect

> A powerful TypeScript framework providing a functional effect system with a rich standard library for building robust, type-safe, and scalable applications.

Effect is an open-source TypeScript framework that provides a fully-fledged functional effect system with a rich standard library. Hosted on GitHub under the MIT License, it serves as a production-ready foundation for managing side effects, ensuring type safety, and supporting concurrency in TypeScript applications. The project has accumulated over 14,000 stars on GitHub and maintains an active community of contributors.

## What It Is

Effect is a TypeScript library ecosystem organized as a monorepo, with the core `effect` package at its center. It positions itself as the missing standard library for TypeScript — filling gaps that the language and runtime leave open, such as typed error handling, immutable data structures, observable-style streams, and a pipe operator. Rather than replacing your stack, Effect is designed to compose with existing tools and frameworks, running on Node.js, Deno, Bun, Cloudflare Workers, and in the browser.

## The Monorepo Architecture

The Effect monorepo ships dozens of packages that extend the core runtime:

- **`effect`** — Core primitives for side effects, concurrency, and type safety
- **`@effect/ai`** — AI utilities with sub-packages for OpenAI, Anthropic, Amazon Bedrock, and Google AI APIs
- **`@effect/platform`** — Cross-platform runtime utilities with variants for Node.js, Bun, and the browser
- **`@effect/sql`** — SQL database utilities with adapters for PostgreSQL, MySQL, SQLite (multiple drivers), ClickHouse, Cloudflare D1, Drizzle, and Kysely
- **`@effect/cluster`** — Distributed computing tools
- **`@effect/workflow`** — Durable workflows (Alpha)
- **`@effect/rpc`** — Remote procedure call utilities
- **`@effect/opentelemetry`** — OpenTelemetry integration for tracing and metrics
- **`@effect/cli`** — CLI application framework
- **`@effect/vitest`** — Testing utilities for Vitest

## Core Programming Model

Effect treats errors as typed values rather than thrown exceptions, making failure an explicit part of the function signature. The framework provides built-in primitives for retry with exponential backoff, request interruption and resource cleanup, structured concurrency, and dependency injection. The website's comparison examples show that a multi-step async operation with error handling, retry, and interruption that requires ~50 lines of vanilla TypeScript can be expressed in a handful of lines using Effect's pipe-based composition model.

Key capabilities include:
- Type-safe errors tracked in the return type
- Retry and recovery APIs
- Asynchronous queues and pub-sub
- Configuration and dependency management
- Built-in OpenTelemetry tracing and metrics exporters
- Pattern matching utilities
- Data validation and serialization

## Platform and Runtime Support

Effect works across JavaScript runtimes and environments. The website lists explicit support for Node.js, Deno, Bun, Cloudflare Workers, and Chrome (browser). Framework integrations include React, Solid.js, Vite, Next.js, and Tauri. The core runtime weighs approximately 15KB when compressed and tree-shaken, according to the project's own documentation.

## Update: Recent Release Activity

The repository shows active development as of early 2026, with the latest tagged release being `@effect/workflow@0.18.1` published on April 23, 2026. The project was created in November 2019 and last pushed to in May 2026, indicating sustained maintenance. The `@effect/workflow` package for durable workflows is noted as Alpha, and `@effect/cluster` for distributed computing is also part of the active roadmap. The AI sub-packages (`@effect/ai-openai`, `@effect/ai-anthropic`, `@effect/ai-amazon-bedrock`, `@effect/ai-google`) represent a newer expansion of the ecosystem into AI application development.

## Features
- Functional effect system for TypeScript
- Type-safe error handling as values
- Built-in retry with exponential backoff
- Structured concurrency and interruption
- Dependency injection
- Immutable data structures
- Asynchronous queues and pub-sub
- OpenTelemetry tracing and metrics integration
- Pattern matching
- Data validation and serialization
- SQL database utilities with multiple adapters
- AI utilities for OpenAI, Anthropic, Amazon Bedrock, and Google
- Durable workflows (Alpha)
- Distributed computing / clustering
- CLI application framework
- Cross-platform runtime support (Node.js, Bun, Deno, Cloudflare Workers, browser)
- RPC utilities
- Vitest testing integration

## Integrations
Node.js, Bun, Deno, Cloudflare Workers, React, Solid.js, Next.js, Vite, Tauri, OpenTelemetry, OpenAI, Anthropic, Amazon Bedrock, Google AI, PostgreSQL, MySQL, SQLite, ClickHouse, Cloudflare D1, Drizzle ORM, Kysely, Vitest, Chrome

## Platforms
WEB, API, DEVELOPER_SDK, CLI

## Pricing
Open Source

## Version
@effect/workflow@0.18.1

## Links
- Website: https://effect.website
- Documentation: https://effect.website/docs
- Repository: https://github.com/Effect-TS/effect
- EveryDev.ai: https://www.everydev.ai/tools/effect-ts
