Sign In

effect

Package Overview
Dependencies
Maintainers
2
Versions
483
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

effect

The missing standard library for TypeScript, for writing production-grade software.

Source
npmnpm
Version
4.0.0-rc.110
Version published
Weekly downloads
20M
-30.21%
Maintainers
2
Weekly downloads
 
Created
Source

effect

Effect is a library for building robust, maintainable, type-safe, and production grade applications in TypeScript.

The effect package is the core of the framework. It provides primitives for managing side effects, errors, concurrency, resources, and structured data, alongside a rich standard library.

Installation

npm install effect@rc

Requirements

  • TypeScript 5.9 or newer. TypeScript 7 is recommended for the best performance and compatibility with Effect's TypeScript tooling.

  • Node.js 18 or newer when running Effect on Node.js.

  • Strict type-checking: the strict flag must be enabled in your tsconfig.json:

    {
      "compilerOptions": {
        "strict": true
      }
    }
    

Documentation

Overview

The effect package is a collection of modules. Some of the core ones:

ModuleDescription
EffectThe core abstraction for managing side effects, concurrency, and error handling in a structured way.
ContextA lightweight dependency injection mechanism that enables passing services through computations without direct references.
LayerA system for managing dependencies, allowing for modular and composable resource allocation.
FiberLightweight virtual threads with resource-safe cancellation capabilities, enabling many features in Effect.
StreamA powerful abstraction for handling asynchronous, event-driven data processing.
ScheduleA module for defining retry and repeat policies with composable schedules.
ScopeManages the lifecycle of resources, ensuring proper acquisition and release.
SchemaA powerful library for defining, validating, and transforming structured data with type-safe encoding and decoding.

In v4, functionality that previously lived in separate packages ships inside effect under the effect/unstable/* namespaces, including http, httpapi, rpc, cluster, workflow, cli, ai, sql, and reactivity.

Keywords

typescript

FAQs

Package last updated on 17 Aug 2026

Related posts