Blog

Posts from the Elements Team.

1.

Why Claude Code runs db:reset on production (and how Elements stops it)

Will Claude Code delete your production database? In most reports of an AI agent deleting a database, the agent was running a migration tool, and it ran that tool's reset command. This video shows that step, then shows how database migrations work with Claude Code on Elements, where the build applies each migration and the agent never runs a migration tool. A migration in Elements is a SQL file. When you save the file, the build applies the migration to the test database first, then runs your tests, and only then migrates the app database. We create a users table and a posts table, misspell a table name and see Postgres undo every statement in the file, write a query with a join using the sql() function, add seed rows that apply only in development, and ask Claude Code to write a test. Then a migration renames a column that a page still queries. The test fails on the test database, so the build never runs that migration on the app database, and the deploy stops before any file is sent to the app servers. The production database still has its title column and its 200 posts. Last, we edit a migration that production has already applied. Elements keeps a hash of every migration it applies, so the deploy stops with an error and the edited file is never applied. A deploy never applies a migration twice, and it never resets your database. Elements is a build server and tooling, app framework, Postgres database and deployment, engineered from the ground up as an integrated system for building web apps with AI.

2.

I asked Claude Code if its app was ready for production. Then I rebuilt it on Elements.

I asked Claude Code if the CRM it built was ready to deploy. It said, "I would not put real customers or money on it yet." If you're building web apps with Claude Code, this video shows what happens to one of those apps over six months of changes. Claude's stack starts with 17 third party packages that pull in over 200 more, and seven separate tools that don't share the state of the build. A rename breaks the signup form. The deploy host doesn't run the tests. A database migration is run by hand on the app database. Then we install Elements and build the same CRM with Claude Code on Elements. Elements is a build server and tooling, app framework, Postgres database and deployment, engineered from the ground up as an integrated system for building web apps with AI. When Claude saves a file, the build server runs one build: install, type check, security analysis, bundle, test, migrate, release. A deploy is one command to your own servers.

3.

Claude Code built a full CRM on Elements from one prompt. Here's what it costs to run.

A CRM that does exactly what your sales team needs, built by Claude Code on Elements from one prompt: a pipeline board you drag deals across, contacts and companies, follow-up tasks, a dashboard, a CSV export and an email each morning with every rep's tasks for the day. Every browser sees changes as they happen. Claude Code finished with 47 passing tests. Then we work out what it costs to run yourself, about $55 a month as of November 2026, and look at what Elements gave the agent: build and test results in microseconds, a Postgres database you can query, and an app framework with templates, real-time updates, emails and jobs.

4.

Claude Code built my newsletter app on Elements from one prompt. It costs $26/mo to run.

Claude Code builds a public blog with accounts and a newsletter that goes out every Friday with only the posts published since the last issue, finishing with 29 passing tests. Then we work out what the app costs to run on AWS, about $26 a month with email under $1, and tour the code the agent wrote.

5.

7 things Claude Code needs to build a real app (and your stack has none of them)

Elements gives the agent everything it needs to build a real application, in one coherent system: an always-on project server that answers in microseconds, migrations and tests that run on save, server functions that are just functions, and a deploy that is one command.

6.

Why Elements doesn't use React

Plain HTML with a few lightweight extensions, not React and not JSX. Reactive automatically, rendered on the server, updating the DOM directly with no tree diffing, and built into the TypeScript compiler so templates are real symbols with real type checking.

7.

Ecosystems in the era of AI

Packages help when they are designed to work together and their abstractions stay out of the agent's way. That was good design for people too. Next.js built up abstractions over the years that violate it, the training data holds several versions of each, and the agent mixes them. Elements comes with the UI and the plumbing an app needs, built to one design, and installs any npm package with one command.

Join the community

Get a weekly digest of new posts.

Sign up