Skip to main content

Notion lets you define workspaces as TypeScript

By Steven Van ·

A new beta lets developers script teamspaces, databases and custom agents, then deploy the setup via API.

Notion just borrowed the best idea from software infrastructure and applied it to workspaces. Now in beta, Notion as Code lets you define an entire workspace, teamspaces, databases, custom agents, all of it, in TypeScript, then deploy it through the API. Your Notion setup becomes code you can build, version, and reproduce.

Infrastructure-as-code, for your workspace

Developers have long defined servers and cloud resources as code so they're reproducible, reviewable, and versioned. Notion as Code brings that model to the workspace itself. Instead of clicking through the UI to build out teamspaces and databases by hand, you describe them in TypeScript and deploy. The payoffs are the same ones that made infrastructure-as-code standard practice: your setup lives in git, changes go through review, and you can spin up an identical workspace anywhere on demand.

Three things it unlocks

Notion highlights the practical wins. First, build workspaces with coding agents, describe the structure you want and let an agent generate the TypeScript. Second, version-control your setup in git, so every change to your workspace's structure is tracked and revertible, not a silent manual edit someone can't undo. Third, reproduce the same setup anywhere, invaluable for agencies standing up a consistent workspace per client, teams templating a project structure, or anyone who's rebuilt the same Notion setup one too many times.

Why this matters now

As Notion leans into agents, custom agents defined in code, deployed via API, is a big deal: it means your automations and your structure travel together as one reproducible artifact. It also reflects a broader shift, the tools creators and teams use are increasingly programmable, git-versioned, and agent-buildable, blurring the line between a no-code workspace and a codebase. Notion turning its own structure into deployable code is a striking example.

Try it

Notion as Code is in beta now. It's aimed at developers and technical teams, if you manage multiple Notion workspaces or want your structure reproducible and reviewable, defining one in TypeScript is the feature to explore.

Notion
Notion
All-in-one workspace for notes, docs, projects, and wikis — with AI built in.
View Notion →

Sources: Notion on X, Notion.

Read Notion lets you define workspaces as TypeScript on Creators Toolbox