---
title: "Alchemy and the next generation of infrastructure as code"
description: "Sam Goodwin describes Alchemy's stateful TypeScript model for infrastructure resources."
plain: "Sam Goodwin describes Alchemy resources as stateful TypeScript functions that create, update and delete."
group: source
speaker: "Sam Goodwin"
date: 2025-04-14
url: https://youtu.be/babOa4shATk
sources:
  - url: https://youtu.be/babOa4shATk
    title: "Sam Goodwin - Alchemy and the Next Generation of Infra as Code - YouTube"
    publisher: "Sam Goodwin"
    note: "Recording; used for Alchemy’s stateful TypeScript infrastructure model."
    accessed: "2026-10-01"
---

# Alchemy and the next generation of infrastructure as code

> For agents: start with the [agent guide](https://ratstack.sh/llms.txt). Every page is Markdown by default; add `Accept: text/html` for HTML.

New on /news: [Effect Office Hours 52 with Resonate HQ](/news).

Sam argues that infrastructure tools have accumulated layers around provider APIs. Alchemy reduces the resource model to stateful TypeScript functions with create, update, delete, tests, consistency checks, and idempotent recovery.
Idempotent recovery can repeat an operation without creating another change. [04:09](https://youtu.be/babOa4shATk?t=249) [06:01](https://youtu.be/babOa4shATk?t=361) [12:13](https://youtu.be/babOa4shATk?t=733)

He says constrained conventions make resource generation easier for coding agents. He also describes embedding the runtime in Durable Objects and workflows. [33:00](https://youtu.be/babOa4shATk?t=1980) [25:38](https://youtu.be/babOa4shATk?t=1538)

## Sources

1. [Sam Goodwin - Alchemy and the Next Generation of Infra as Code - YouTube](https://youtu.be/babOa4shATk)
   Sam Goodwin. Recording; used for Alchemy’s stateful TypeScript infrastructure model. Accessed 2026-10-01.

## Linked from

- Agent guide → An Effect stack so pure (aspirational) Kit Langton will blush. → [Read page](https://ratstack.sh/llms.txt)

- Change log → What changed in the files served here, newest first. → [Read page](https://ratstack.sh/log)

- Full agent guide → An Effect stack so pure (aspirational) Kit Langton will blush. → [Read page](https://ratstack.sh/llms-full.txt)

- Rat Stack lore | rat-stack → Short, source-grounded notes on the ideas and decisions behind rat-stack. → [Read page](https://ratstack.sh/lore)

- Source change history (log.md) → The generated change log as Markdown. → [Read page](https://ratstack.sh/log.md)
