You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the current state of Effect 4, and what does building on it commit us to? Release status and versioning; package layout (is effect-smol the Effect 4 line, and how do @effect/platform, @effect/sql, @effect/cli, @effect/vitest, and Schema map onto it); what is stable versus in flux; migration notes from Effect 3; the HTTP server story (HttpApi / HttpRouter); the Postgres story; the testing story; docs and LLM-facing resources the Effect project itself publishes. Primary sources only: the Effect repos, changelogs, official docs.
Output: docs/research/effect-4-landscape.md on branch research/effect-4-landscape. Waits on it: Chart the Effect v4 port map.
Effect 4 is a release candidate, not released. npm effect dist-tags: latest 3.22.1 (2026-07-30), beta 4.0.0-beta.107 (2026-08-10), rc 4.0.0-rc.112 (2026-08-25). Beta ran from 2026-02-18 (beta.0) through beta.107; RCs have shipped every 2–5 days since 2026-08-12. The RC post targets stable "Q3/Q4 2026" and says "our interfaces are now presumed final", with only "narrowly scoped" breaks allowed.
effect-smolwas the v4 line but is now archived (README notice 2026-07-14); v4 lives on Effect-TS/effectmain, and Effect 3 lives on the v3 branch, which is still receiving fixes (last commit 2026-08-26) and 3.x releases. v3 is promised "active maintenance" after 4.0 with a feature freeze (a maintenance schedule is promised but not yet published); v4 is promised as an LTS release.
Package layout: one version number for the whole ecosystem (a changesets "fixed" group of 30 packages). @effect/platform, @effect/sql, @effect/cli, @effect/rpc, @effect/cluster, @effect/workflow, @effect/experimental, @effect/ai have no v4 package and live inside effect under effect/unstable/*; @effect/platform-{node,bun,browser,deno,node-shared}, @effect/sql-* drivers, @effect/ai-* providers, @effect/opentelemetry, @effect/atom-*, @effect/vitest remain separate at the same version. @effect/sql-drizzle, @effect/sql-kysely, @effect/printer, @effect/ai-google and @effect/ai-amazon-bedrock have no v4.
Schema in v4 is the rewritten top-level effect/Schema (stable namespace; a 7,100-line SCHEMA.md guide and a v3→v4 mapping table in migration/schema.md exist). @effect/schema on npm has been deprecated since 2025 ("merged into the main effect package"). effect/unstable/schema holds only Model and VariantSchema.
Stability contract: modules outside effect/unstable/ follow strict semver after 4.0; effect/unstable/* "may receive breaking changes in minor releases" and graduate to top level later. HTTP, HttpApi, SQL, CLI, RPC, cluster, workflow, AI are all unstable. Only FileSystem, Path, PlatformLogger, Runtime, Terminal are documented as stable platform modules on the website.
The RC is still absorbing breaking changes labelled "patch": unreleased changesets on main rename the built-in Config constructors to PascalCase ("a breaking naming cleanup for the Effect 4 release candidate"), replace @effect/sql-pg's pg runtime with a native wire-protocol client (six listed breaking changes), and remove MessagePack/msgpackr and fast-check as dependencies. rc.112 itself changed the public Pool.State and Scope.State.Open interfaces.
HTTP server API: effect/unstable/http (HttpRouter, HttpServer, HttpMiddleware, HttpClient, …) plus effect/unstable/httpapi (HttpApi, HttpApiGroup, HttpApiEndpoint, HttpApiBuilder, HttpApiClient, HttpApiMiddleware, HttpApiSecurity, HttpApiScalar/Swagger, OpenApi, HttpApiTest). One shared HttpRouter service; HttpRouter.serve(layer) + NodeHttpServer.layer(createServer, { port }) (or BunHttpServer/DenoHttpServer) runs it; HttpRouter.toWebHandler gives a fetch handler. Documented in the repo (HTTPAPI.md, ai-docs), not on the website.
Postgres: @effect/[email protected] still wraps node-postgres (pg 8.x, same as v3's 0.53.0) and exposes PgClient.layer/layerConfig/layerFrom, PgMigrator (file-system/glob loaders, pg_dump schema dumps), and the generic SqlClient/SqlSchema/SqlModel/SqlResolver modules from effect/unstable/sql. The pending native-client rewrite changes result types (int8→bigint, timestamps→epoch ms), removes fromPool/fromClient/makeWith, and enables named prepared statements by default (pooler caveat). No ORM bridges on v4.
Testing: @effect/vitest@rc (peer vitest ^4.1) gives it.effect, it.live, it.layer, it.prop, it.flakyTest; effect/testing gives TestClock, TestConsole, TestSchema; HttpApiTest.groups tests an HttpApi through an in-memory typed client with no server; NodeHttpServer.layerTest and RpcTest exist; Effect's own Postgres tests use @testcontainers/postgresql, and @effect/sql-pglite is a v4 in-process Postgres option.
Migration from 3: MIGRATION.md (still headed "currently in beta") + 13 topic guides (migration/*.md, including schema.md) + a generated 16,500-line migration/v3-to-v4.md import/API rename map. Core renames: Context.Tag→Context.Service, Either→Result, FiberRef→Context.Reference, T* STM→Tx*, catch* and fork renames, Runtime<R> removed. HttpApi: HttpApiBuilder.api→layer, API-wide errors/services removed, toWebHandler/middleware/CORS moved to HttpRouter. No codemod exists for v4 (@effect/codemod last published 2024-07); the RC post positions MIGRATION.md as agent input for a "near-fully automated migration".
LLM-facing material the project publishes: root LLMS.md (generated from ai-docs/src by @effect/ai-docgen), copied into every published package as AGENTS.md, CLAUDE.md and ai-docs/ (so node_modules/effect/AGENTS.md exists after install); long-form SCHEMA.md, HTTPAPI.md, MCP.md, CONFIG.md, OPTIC.md, ARBITRARY.md; the migration guides. The website has no llms.txt/llms-full.txt (both 404); its "Coding with LLMs" section points to a blog post recommending git subtree vendoring of the repo and an AGENTS.md rule to read LLMS.md, and the same docs page recommends the Effect LSP (Effect-TS/tsgo).
Data point: ~/Dev/t3code (commit e67074f, 2026-08-25) pins the whole Effect set to 4.0.0-beta.103 via a pnpm catalog, carries pnpm patches for effect and @effect/vitest, vendors effect-smol at beta.102 under .repos/ for agents to read, and uses NodeHttpServer, HttpApiBuilder, RpcServer, SqlClient and @effect/sql-pg in production code (@effect/sql-sqlite-bun is in the catalog).
Open questions
The GA date for 4.0.0: the only statement is "Q3/Q4 2026"; no milestone or checklist was found in the repo.
Whether the pending Config rename, sql-pg native client and msgpackr removal ship as further RCs before 4.0.0, and whether more "patch"-labelled breaks are queued behind them.
When effect/unstable/http, httpapi and sql graduate to the stable namespace; no roadmap or criteria are published.
Whether the promised codemods / "AI-assisted skills" for migration will appear; none exist today.
Whether the "thorough rewrite" of the documentation promised in the RC post will add HttpApi/SQL guides to the website.
Parity between NodeHttpServer, BunHttpServer and DenoHttpServer (e.g. upgrade/WebSocket handling, static files) was not examined beyond module listings.
How long v3 maintenance lasts after 4.0; "active maintenance" and a forthcoming "maintenance schedule" are promised, but no schedule has been published.
Activity
allisonmahmood commentedon Aug 26, 2026
Resolution
Research written up and adversarially verified against primary sources (npm registry,
Effect-TS/effectmain@0613ecdandv3,Effect-TS/effect-smol, effect.website blog/docs,Effect-TS/website). File: https://github.com/allisonmahmood/patchy-cloud/blob/research/effect-4-landscape/docs/research/effect-4-landscape.mdSummary
effectdist-tags:latest3.22.1 (2026-07-30),beta4.0.0-beta.107 (2026-08-10),rc4.0.0-rc.112 (2026-08-25). Beta ran from 2026-02-18 (beta.0) through beta.107; RCs have shipped every 2–5 days since 2026-08-12. The RC post targets stable "Q3/Q4 2026" and says "our interfaces are now presumed final", with only "narrowly scoped" breaks allowed.effect-smolwas the v4 line but is now archived (README notice 2026-07-14); v4 lives onEffect-TS/effectmain, and Effect 3 lives on thev3branch, which is still receiving fixes (last commit 2026-08-26) and 3.x releases. v3 is promised "active maintenance" after 4.0 with a feature freeze (a maintenance schedule is promised but not yet published); v4 is promised as an LTS release.@effect/platform,@effect/sql,@effect/cli,@effect/rpc,@effect/cluster,@effect/workflow,@effect/experimental,@effect/aihave no v4 package and live insideeffectundereffect/unstable/*;@effect/platform-{node,bun,browser,deno,node-shared},@effect/sql-*drivers,@effect/ai-*providers,@effect/opentelemetry,@effect/atom-*,@effect/vitestremain separate at the same version.@effect/sql-drizzle,@effect/sql-kysely,@effect/printer,@effect/ai-googleand@effect/ai-amazon-bedrockhave no v4.effect/Schema(stable namespace; a 7,100-lineSCHEMA.mdguide and a v3→v4 mapping table inmigration/schema.mdexist).@effect/schemaon npm has been deprecated since 2025 ("merged into the main effect package").effect/unstable/schemaholds onlyModelandVariantSchema.effect/unstable/follow strict semver after 4.0;effect/unstable/*"may receive breaking changes in minor releases" and graduate to top level later. HTTP, HttpApi, SQL, CLI, RPC, cluster, workflow, AI are allunstable. OnlyFileSystem,Path,PlatformLogger,Runtime,Terminalare documented as stable platform modules on the website.mainrename the built-inConfigconstructors to PascalCase ("a breaking naming cleanup for the Effect 4 release candidate"), replace@effect/sql-pg'spgruntime with a native wire-protocol client (six listed breaking changes), and remove MessagePack/msgpackrandfast-checkas dependencies. rc.112 itself changed the publicPool.StateandScope.State.Openinterfaces.effect/unstable/http(HttpRouter,HttpServer,HttpMiddleware,HttpClient, …) pluseffect/unstable/httpapi(HttpApi,HttpApiGroup,HttpApiEndpoint,HttpApiBuilder,HttpApiClient,HttpApiMiddleware,HttpApiSecurity,HttpApiScalar/Swagger,OpenApi,HttpApiTest). One sharedHttpRouterservice;HttpRouter.serve(layer)+NodeHttpServer.layer(createServer, { port })(orBunHttpServer/DenoHttpServer) runs it;HttpRouter.toWebHandlergives a fetch handler. Documented in the repo (HTTPAPI.md, ai-docs), not on the website.@effect/[email protected]still wraps node-postgres (pg8.x, same as v3's 0.53.0) and exposesPgClient.layer/layerConfig/layerFrom,PgMigrator(file-system/glob loaders,pg_dumpschema dumps), and the genericSqlClient/SqlSchema/SqlModel/SqlResolvermodules fromeffect/unstable/sql. The pending native-client rewrite changes result types (int8→bigint, timestamps→epoch ms), removesfromPool/fromClient/makeWith, and enables named prepared statements by default (pooler caveat). No ORM bridges on v4.@effect/vitest@rc(peervitest ^4.1) givesit.effect,it.live,it.layer,it.prop,it.flakyTest;effect/testinggivesTestClock,TestConsole,TestSchema;HttpApiTest.groupstests anHttpApithrough an in-memory typed client with no server;NodeHttpServer.layerTestandRpcTestexist; Effect's own Postgres tests use@testcontainers/postgresql, and@effect/sql-pgliteis a v4 in-process Postgres option.MIGRATION.md(still headed "currently in beta") + 13 topic guides (migration/*.md, includingschema.md) + a generated 16,500-linemigration/v3-to-v4.mdimport/API rename map. Core renames:Context.Tag→Context.Service,Either→Result,FiberRef→Context.Reference,T*STM→Tx*,catch*and fork renames,Runtime<R>removed. HttpApi:HttpApiBuilder.api→layer, API-wide errors/services removed,toWebHandler/middleware/CORS moved toHttpRouter. No codemod exists for v4 (@effect/codemodlast published 2024-07); the RC post positionsMIGRATION.mdas agent input for a "near-fully automated migration".LLMS.md(generated fromai-docs/srcby@effect/ai-docgen), copied into every published package asAGENTS.md,CLAUDE.mdandai-docs/(sonode_modules/effect/AGENTS.mdexists after install); long-formSCHEMA.md,HTTPAPI.md,MCP.md,CONFIG.md,OPTIC.md,ARBITRARY.md; the migration guides. The website has nollms.txt/llms-full.txt(both 404); its "Coding with LLMs" section points to a blog post recommendinggit subtreevendoring of the repo and anAGENTS.mdrule to readLLMS.md, and the same docs page recommends the Effect LSP (Effect-TS/tsgo).~/Dev/t3code(commite67074f, 2026-08-25) pins the whole Effect set to4.0.0-beta.103via a pnpm catalog, carries pnpm patches foreffectand@effect/vitest, vendorseffect-smolat beta.102 under.repos/for agents to read, and usesNodeHttpServer,HttpApiBuilder,RpcServer,SqlClientand@effect/sql-pgin production code (@effect/sql-sqlite-bunis in the catalog).Open questions
Configrename,sql-pgnative client andmsgpackrremoval ship as further RCs before 4.0.0, and whether more "patch"-labelled breaks are queued behind them.effect/unstable/http,httpapiandsqlgraduate to the stable namespace; no roadmap or criteria are published.NodeHttpServer,BunHttpServerandDenoHttpServer(e.g. upgrade/WebSocket handling, static files) was not examined beyond module listings.