1. Home
  2. Syntax

Nov 18

Michael Arnaldi on Effect.ts

50 min → 3:40

Overview

Effect creator Michael Arnaldi joins Syntax co-hosts Scott Tolinski and Wes Bos to explain why Effect is surging in popularity for AI-assisted TypeScript development and what changed in the Effect v4 release.

3 things to know

Guardrails Over Human and AI Discipline

Quoting Cloudflare Principal Engineer Dillon Mulroy, Arnaldi notes that "discipline doesn't scale." Because humans are bad at coding and "AI's are even dumber than humans at writing code," relying on discipline alone results in fragile "house of cards" codebases once a project exceeds an AI's context window.

More

Arnaldi notes that while Effect alone does not provide every guardrail needed, empirically from his own experience, it provides a rigid foundation where teams can enforce strict structural rules on top.

▶ Watch at 3:56

Referential Transparency and Safe Refactoring

Unlike standard JavaScript Promises, where moving a Promise changes when execution starts and introduces side-effect bugs, moving an Effect across files or functions does not alter program execution, making automated and human refactoring significantly safer.

More

Arnaldi argues that the single most important property for software longevity is the ability to refactor with ease, since software rarely stays intact for 4 years (outside of banking COBOL).

▶ Watch at 10:43

AI Erases Syntax Friction

Today, because developers increasingly rely on AI agents to write and read raw code, aesthetic complaints about syntax have largely disappeared.

More

Historically, developers resisted Effect because of its reliance on JavaScript generator syntax (`yield*`) instead of `async/await`, or resisted non-JSX UI frameworks. Arnaldi reveals he has no affection for generators and only used them because TypeScript lacked another way to express imperative monadic control flow.

▶ Watch at 11:46

Also in this episode

Zero-Dependency Architecture via AI

When `node-postgres` and `pg` broke transactions during query pipelining, the Effect team (which consumes roughly 12 gifted subscriptions each from OpenAI and Anthropic for their internal AI infrastructure) used AI to write a spec-compliant Postgres SQL driver from scratch in 3 days.

More

In Effect v4, the repository eliminated all external `dependencies` from its `package.json` to prevent supply chain attacks and stop fighting the 99.5% of third-party library code they do not use. However, Arnaldi caveats that he has no blanket rule against dependencies, advising developers to use external libraries if they get enough value from them.

▶ Watch at 20:31

The Effect v4 Virtual Machine Rewrite

Previously, Effect's internal runtime was around 45 KB or more, which prevented Theo Browne's team at UploadThing from adopting it on the frontend.

More

After prototyping "Effect Micro" for UploadThing, the team ported 95% of Effect's full features into the Micro architecture, achieving a 5x reduction down to a 7.1 KB minimum core bundle (making Effect + Schema + Streams smaller than Zod alone). Arnaldi explicitly caveats that using the full Effect ecosystem can still result in multiple megabytes, and he considers the 5 to 10 KB reduction the "most useless optimization" they have ever done in practice.

▶ Watch at 25:12

Observability by Default

Arnaldi recounts how manually wrapping functions in `try/catch/finally` blocks to manage OpenTracing spans previously cluttered a production codebase so badly he had to remove it to ship features.

More

In Effect, defining a function automatically generates a telemetry span without boilerplate. Podcast sponsor Sentry collaborated with Arnaldi on the Sentry Effect plugin, which Arnaldi notes directly inspired Effect's internal error reporter module (he also notes Sentry hosted one of Effect's Vienna meetups).

▶ Watch at 39:00

Expanding the Ecosystem (Foldkit, Alchemy, Cluster, and Workflows)

Arnaldi highlights Foldkit (a pure-function UI framework without React or JSX that includes MCP-exposed devtools for AI agents, though Arnaldi caveats Effect cannot replace React yet), Alchemy (an infrastructure-as-code tool with AI-generated pure TypeScript bindings for AWS, GCP, and Azure), Effect Cluster (an Erlang/BEAM-inspired distributed actor system running on Node/Bun and Cloudflare Durable Objects), and Effect Workflows (durable execution similar to Temporal, Restate, or Inngest).

More

Beyond core TypeScript, Effect is expanding across the stack. Arnaldi warns that Cluster and Workflows are early, poorly documented betas and should not be used in production.

▶ Watch at 27:06

Quotes

“If you can't convince a human to be disciplined for a long time, you have no chance of convincing an AI to stay disciplined beyond the context window.”

▶ Watch at 0:05

“To me, the only property that is needed for software to evolve into a good place is the fact that you can always refactor it with ease.”

▶ Watch at 3:08

“If you take a promise and you move it to a different place, the execution of your program changes, and that can lead to bugs because now something starts before it used to. And if you use Effect and you move something in a different place, nothing changes.”

▶ Watch at 10:43

5 more quotes

“I haven't wrote Effect because I like generators. I ended up using generators because I wanted to write procedural code, imperative code, and that was the only way to do it.”

▶ Watch at 12:11

“I also think a lot of people don't know they are running Effect, because Effect is at 75 million downloads per week. It's a fifth of TypeScript.”

▶ Watch at 12:55

“What does it actually take to build an SQL driver to spec? It's highly testable, it's not like we're building something that we don't know if it works reliably, and the answer is it took three days of working with AI.”

▶ Watch at 21:00

“The argument is, should you really care about a 5, 10k of bundle size difference? I don't think so. Like this was the most useless optimization we've ever done in my, in my humble opinion.”

▶ Watch at 27:17

“Your full code should be observable. The way you make your full code observable is by not having to think about telemetry at all. You define a function, the function should lead to a span without you having to say anything else.”

▶ Watch at 40:57

Full summary

Episode Overview

  • Effect creator Michael Arnaldi joins Syntax co-hosts Scott Tolinski and Wes Bos to explain why Effect is surging in popularity for AI-assisted TypeScript development and what changed in the Effect v4 release.
  • The conversation traces Effect's origins from a fintech startup dealing with hundreds of unreliable APIs to an ecosystem with 75 million weekly npm downloads used by teams at Cloudflare, Supabase, Zendesk, and X.com.
  • Arnaldi explains how AI coding agents change developer ergonomics, making strict architectural guardrails, pure refactoring, and built-in telemetry essential while rendering complaints about unfamiliar syntax obsolete.
  • The episode covers the architectural overhaul in Effect v4 (moving to zero dependencies and shrinking the minimum core bundle to 7.1 kilobytes) alongside emerging ecosystem tools like Foldkit, Alchemy, Effect Cluster, and Effect Workflows.

Key Concepts

  • Guardrails Over Human and AI Discipline: Quoting Cloudflare Principal Engineer Dillon Mulroy, Arnaldi notes that "discipline doesn't scale." Because humans are bad at coding and "AI's are even dumber than humans at writing code," relying on discipline alone results in fragile "house of cards" codebases once a project exceeds an AI's context window. Arnaldi notes that while Effect alone does not provide every guardrail needed, empirically from his own experience, it provides a rigid foundation where teams can enforce strict structural rules on top.
  • Referential Transparency and Safe Refactoring: Arnaldi argues that the single most important property for software longevity is the ability to refactor with ease, since software rarely stays intact for 4 years (outside of banking COBOL). Unlike standard JavaScript Promises, where moving a Promise changes when execution starts and introduces side-effect bugs, moving an Effect across files or functions does not alter program execution, making automated and human refactoring significantly safer.
  • AI Erases Syntax Friction: Historically, developers resisted Effect because of its reliance on JavaScript generator syntax (yield*) instead of async/await, or resisted non-JSX UI frameworks. Arnaldi reveals he has no affection for generators and only used them because TypeScript lacked another way to express imperative monadic control flow. Today, because developers increasingly rely on AI agents to write and read raw code, aesthetic complaints about syntax have largely disappeared.
  • Zero-Dependency Architecture via AI: In Effect v4, the repository eliminated all external dependencies from its package.json to prevent supply chain attacks and stop fighting the 99.5% of third-party library code they do not use. When node-postgres and pg broke transactions during query pipelining, the Effect team (which consumes roughly 12 gifted subscriptions each from OpenAI and Anthropic for their internal AI infrastructure) used AI to write a spec-compliant Postgres SQL driver from scratch in 3 days. However, Arnaldi caveats that he has no blanket rule against dependencies, advising developers to use external libraries if they get enough value from them.
  • The Effect v4 Virtual Machine Rewrite: Previously, Effect's internal runtime was around 45 KB or more, which prevented Theo Browne's team at UploadThing from adopting it on the frontend. After prototyping "Effect Micro" for UploadThing, the team ported 95% of Effect's full features into the Micro architecture, achieving a 5x reduction down to a 7.1 KB minimum core bundle (making Effect + Schema + Streams smaller than Zod alone). Arnaldi explicitly caveats that using the full Effect ecosystem can still result in multiple megabytes, and he considers the 5 to 10 KB reduction the "most useless optimization" they have ever done in practice.
  • Observability by Default: Arnaldi recounts how manually wrapping functions in try/catch/finally blocks to manage OpenTracing spans previously cluttered a production codebase so badly he had to remove it to ship features. In Effect, defining a function automatically generates a telemetry span without boilerplate. Podcast sponsor Sentry collaborated with Arnaldi on the Sentry Effect plugin, which Arnaldi notes directly inspired Effect's internal error reporter module (he also notes Sentry hosted one of Effect's Vienna meetups).
  • Expanding the Ecosystem (Foldkit, Alchemy, Cluster, and Workflows): Beyond core TypeScript, Effect is expanding across the stack. Arnaldi highlights Foldkit (a pure-function UI framework without React or JSX that includes MCP-exposed devtools for AI agents, though Arnaldi caveats Effect cannot replace React yet), Alchemy (an infrastructure-as-code tool with AI-generated pure TypeScript bindings for AWS, GCP, and Azure), Effect Cluster (an Erlang/BEAM-inspired distributed actor system running on Node/Bun and Cloudflare Durable Objects), and Effect Workflows (durable execution similar to Temporal, Restate, or Inngest). Arnaldi warns that Cluster and Workflows are early, poorly documented betas and should not be used in production.

Quotes

  • At 0:05 - "If you can't convince a human to be disciplined for a long time, you have no chance of convincing an AI to stay disciplined beyond the context window." - Arnaldi explaining why AI coding agents require rigid framework guardrails.
  • At 3:08 - "To me, the only property that is needed for software to evolve into a good place is the fact that you can always refactor it with ease." - Arnaldi defining the core philosophy behind Effect's design.
  • At 10:43 - "If you take a promise and you move it to a different place, the execution of your program changes, and that can lead to bugs because now something starts before it used to. And if you use Effect and you move something in a different place, nothing changes." - Arnaldi contrasting eager JavaScript Promises with lazy, side-effect-free Effects during refactoring.
  • At 12:11 - "I haven't wrote Effect because I like generators. I ended up using generators because I wanted to write procedural code, imperative code, and that was the only way to do it." - Arnaldi addressing developer criticisms of Effect's yield* syntax.
  • At 12:55 - "I also think a lot of people don't know they are running Effect, because Effect is at 75 million downloads per week. It's a fifth of TypeScript." - Arnaldi sharing npm download metrics (comparing Effect's 75 million weekly downloads to TypeScript's 400 million, which grew from ~25 million a year prior).
  • At 21:00 - "What does it actually take to build an SQL driver to spec? It's highly testable, it's not like we're building something that we don't know if it works reliably, and the answer is it took three days of working with AI." - Arnaldi explaining how the team replaced pg with a zero-dependency Postgres driver in Effect v4.
  • At 27:17 - "The argument is, should you really care about a 5, 10k of bundle size difference? I don't think so. Like this was the most useless optimization we've ever done in my, in my humble opinion." - Arnaldi offering a candid caveat on Effect v4's headline 7.1 KB minimum bundle size.
  • At 40:57 - "Your full code should be observable. The way you make your full code observable is by not having to think about telemetry at all. You define a function, the function should lead to a span without you having to say anything else." - Arnaldi explaining how automatic tracing prevents telemetry boilerplate from slowing down feature development.

Takeaways

  • Expose local telemetry and state to AI agents for automated debugging: Follow the pattern used by the OpenCode CLI and Foldkit by running a local telemetry server or MCP-exposed devtools that capture execution spans and centralized state, allowing AI coding agents to introspect and debug your application directly on your machine.
  • Evaluate replacing thin or buggy third-party wrappers with AI-generated specs: If you are only using 0.5% of a dependency or fighting edge-case bugs in well-specified protocols (like SQL drivers or cloud provider bindings), test using AI agents to build a custom, zero-dependency implementation against the official specification to gain 100% control and reduce supply chain risk.
  • Adopt Effect Schema incrementally alongside or in place of Zod: If frontend bundle size previously blocked you from using Effect, use Effect v4's 7.1 KB minimum core runtime to introduce Effect Schema and Streams on the client, which can run alongside Zod or replace it entirely at a smaller total bundle size.
  • Upgrade to native TypeScript compilers to eliminate type-checking bottlenecks: If heavy type-level libraries like Effect slow down your build pipeline, adopt tsgo or VoidZero's tsrs, which Arnaldi notes type-checks the entire Effect codebase 40% faster.
  • Use Alchemy to quickly extend infrastructure-as-code bindings: When integrating new cloud services or AI tools (like Mixedbread buckets), pair pure-TypeScript IaC tools like Alchemy with an AI coding agent to generate and deploy new resource bindings in minutes rather than waiting for upstream provider plugins.

Watch the full episode 50 min

Read along with the audio summary

Effect creator Michael Arnaldi says humans are bad at coding, and AIs are even dumber than humans at writing code. On the November 18, 2026 episode of the Syntax podcast, co-hosts Scott Tolinski and Wes Bos talk with Arnaldi about why Effect is surging to 75 million weekly downloads. You will learn how Effect v4 gives human and AI coders the guardrails, zero-dependency reliability, and built-in observability needed to build lasting software.

Why strict guardrails beat coding discipline every time.

Quoting Cloudflare Principal Engineer Dillon Mulroy, Arnaldi notes that discipline does not scale. While Arnaldi notes that Effect alone does not provide every guardrail needed, empirically from his own experience, it provides a rigid foundation where teams can enforce strict structural rules on top.

The secret to fearless refactoring in long-lived codebases.

Standard JavaScript Promises start running the moment you create them, like a kitchen timer that starts ticking as soon as you take it out of the drawer, so moving one to a different file changes when it runs and introduces bugs. Because an Effect is lazy and free of side effects, moving it across files or functions never alters how your program runs, making human and automated refactoring significantly safer.

How AI agents made ugly syntax complaints disappear.

For years, developers resisted Effect because it relied on JavaScript generator syntax rather than standard async and await commands. Today, because developers increasingly rely on AI agents to write and read raw code, aesthetic complaints about how the syntax looks have largely vanished.

Those same AI agents also unlocked a radical new way to handle third-party code: building a zero-dependency architecture from scratch in days.

In Effect v4, the team removed all external dependencies from their package configuration to prevent supply chain attacks and stop fighting the 99.5 percent of third-party library code they never use. When popular Postgres database libraries broke transactions during query pipelining, the Effect team used AI to write a fully compliant Postgres SQL driver from scratch in just three days.

Shrinking the core runtime by five times, and why it might not matter.

Previously, Effect's internal runtime was around 45 kilobytes or more, which kept Theo Browne's team at UploadThing from using it on the frontend. If frontend bundle size blocked you before, you can now introduce Effect Schema and Streams on the client at a smaller total size than Zod alone, though Arnaldi caveats that using the full ecosystem can still reach multiple megabytes and calls the 5 to 10 kilobyte reduction the most useless optimization they have ever done in practice.

Automatic observability without the boilerplate clutter.

Arnaldi recalls how manually wrapping functions in error-handling blocks to track OpenTracing data once cluttered a production codebase so badly he had to rip the tracking out just to ship features. In Effect, simply defining a function automatically generates a telemetry span, which is a record of how that step ran, with zero extra code.

Taking Effect across the entire stack, from user interfaces to cloud servers.

Beyond core TypeScript, Arnaldi highlights Foldkit, a pure-function user interface framework that exposes developer tools through MCP for AI agents, though he caveats Effect cannot replace React yet. You can follow the pattern used by Foldkit and the OpenCode command-line tool by exposing local telemetry and state to AI coding agents so they can inspect and debug your app directly on your machine.

As AI agents write more of our software, strict architectural foundations matter far more than human coding discipline. If you cannot convince a human to be disciplined for a long time, you have no chance of convincing an AI to stay disciplined beyond the context window.

Related Episodes