WEBVTT

00:00:00.000 --> 00:00:01.920
I asked Claude Code to build me a CRM,

00:00:02.160 --> 00:00:03.660
12 minutes later I had this.

00:00:04.040 --> 00:00:06.280
So I asked Claude, is this code maintainable

00:00:06.300 --> 00:00:07.600
and can we deploy it?

00:00:07.960 --> 00:00:09.700
And Claude said, I wouldn't put real

00:00:09.720 --> 00:00:11.060
customers or money on it yet.

00:00:11.480 --> 00:00:13.700
Okay, so what happens over the next six

00:00:13.720 --> 00:00:15.680
months when Claude's changing this app every

00:00:15.700 --> 00:00:16.280
day?

00:00:16.300 --> 00:00:17.100
Does it still work?

00:00:17.480 --> 00:00:18.820
I'm going to show you where it breaks,

00:00:19.040 --> 00:00:20.580
and then I'm going to show you Elements.

00:00:21.000 --> 00:00:22.720
It's a program you install on your computer,

00:00:23.080 --> 00:00:24.360
and Claude uses it to build,

00:00:24.500 --> 00:00:25.640
test, and deploy your app.

00:00:25.660 --> 00:00:27.940
So, I started over, and I

00:00:27.960 --> 00:00:29.640
asked Claude what a production app should be

00:00:29.660 --> 00:00:30.460
built with.

00:00:30.640 --> 00:00:32.380
Now Claude picks a stack based on what's

00:00:32.400 --> 00:00:33.360
popular on the internet.

00:00:33.800 --> 00:00:35.720
It hasn't done a detailed review of each

00:00:35.740 --> 00:00:36.540
product.

00:00:36.600 --> 00:00:37.560
And this is what you get.

00:00:38.160 --> 00:00:39.680
17 third party packages.

00:00:40.160 --> 00:00:42.000
Those pull in over 200 others.

00:00:42.540 --> 00:00:44.360
Over 50 different people and teams wrote

00:00:44.380 --> 00:00:46.020
them, and nobody built them to work

00:00:46.040 --> 00:00:46.840
together.

00:00:46.960 --> 00:00:48.960
Then you need seven separate tools,

00:00:49.320 --> 00:00:50.880
a package installer, a type checker,

00:00:50.980 --> 00:00:52.000
a test runner, a bundler,

00:00:52.140 --> 00:00:53.580
a migration tool, a deploy host,

00:00:53.740 --> 00:00:54.120
and CI.

00:00:54.140 --> 00:00:56.400
A separate team built each one,

00:00:56.560 --> 00:00:57.740
and they don't talk to each other,

00:00:58.000 --> 00:00:59.480
and they don't share the state of the build.

00:01:00.020 --> 00:01:01.200
And that's a problem right away,

00:01:01.320 --> 00:01:02.160
even on a prototype.

00:01:02.620 --> 00:01:04.560
It just gets worse with every change until

00:01:04.580 --> 00:01:06.540
one day the app doesn't run at all.

00:01:07.220 --> 00:01:08.080
Here's a simple one.

00:01:08.720 --> 00:01:09.580
Claude renames a field.

00:01:10.380 --> 00:01:11.560
Email becomes email address.

00:01:12.140 --> 00:01:14.460
But 14 places in the code still use the

00:01:14.480 --> 00:01:15.280
old name.

00:01:15.480 --> 00:01:17.020
So now your signup form is broken.

00:01:17.500 --> 00:01:19.280
The TypeScript type checker would catch all

00:01:19.300 --> 00:01:21.460
14, but only if Claude runs it.

00:01:21.480 --> 00:01:23.820
On the full project after every change

00:01:23.840 --> 00:01:25.340
and the bigger your app gets,

00:01:25.540 --> 00:01:26.440
the longer that takes.

00:01:27.040 --> 00:01:28.560
And the test runner doesn't know the type

00:01:28.580 --> 00:01:29.380
check failed.

00:01:29.460 --> 00:01:31.320
It'll run your tests against the broken code

00:01:31.340 --> 00:01:32.140
anyway.

00:01:32.280 --> 00:01:33.180
Okay, now you deploy.

00:01:33.740 --> 00:01:35.700
The host builds your code and releases it.

00:01:36.080 --> 00:01:37.440
It doesn't run your tests first.

00:01:37.780 --> 00:01:39.120
It doesn't migrate your database.

00:01:39.740 --> 00:01:41.280
And you're not paying a fixed price.

00:01:41.720 --> 00:01:42.560
You're paying for usage.

00:01:43.200 --> 00:01:44.640
Every build, every visitor,

00:01:44.880 --> 00:01:46.340
every crawler that hits your site.

00:01:46.740 --> 00:01:48.220
So the more you build and the more people

00:01:48.240 --> 00:01:49.660
show up, the more you pay.

00:01:49.680 --> 00:01:51.580
One developer got a bill for

00:01:51.600 --> 00:01:53.180
$104,000,

00:01:53.740 --> 00:01:54.920
and then there's the database.

00:01:55.600 --> 00:01:56.880
Say you want to add one column.

00:01:57.240 --> 00:01:59.400
A migration tool like Prisma isn't part of

00:01:59.420 --> 00:02:01.460
the build, so Claude or your CI runs the

00:02:01.480 --> 00:02:03.440
migration by hand right on your app

00:02:03.460 --> 00:02:04.220
database.

00:02:04.240 --> 00:02:06.500
No test database, no tests on the new build,

00:02:06.800 --> 00:02:07.680
straight to production.

00:02:08.300 --> 00:02:10.560
Oh, and that same tool has a command that

00:02:10.580 --> 00:02:11.940
deletes your entire database.

00:02:12.600 --> 00:02:14.100
Claude ran it here and here.

00:02:14.920 --> 00:02:16.420
Now, Claude is great at writing code,

00:02:16.540 --> 00:02:17.900
and it's great at calling tools.

00:02:17.920 --> 00:02:20.000
But Claude is a statistical model.

00:02:20.560 --> 00:02:21.680
Ask it the same thing twice,

00:02:21.980 --> 00:02:23.320
and you can get two different answers.

00:02:23.780 --> 00:02:25.100
And sometimes the answer is wrong.

00:02:25.580 --> 00:02:27.280
And Claude can only work with the tools it's

00:02:27.300 --> 00:02:28.060
given.

00:02:28.080 --> 00:02:29.760
It's not going to stop and build you a

00:02:29.780 --> 00:02:31.240
package installer, a type checker,

00:02:31.340 --> 00:02:32.200
a bundler, a test runner,

00:02:32.560 --> 00:02:34.580
a database migrator, and a deployer while

00:02:34.600 --> 00:02:35.480
it's working on your app.

00:02:35.960 --> 00:02:37.800
So Claude needs tools that do each of those

00:02:37.820 --> 00:02:39.220
jobs right, every time.

00:02:39.860 --> 00:02:40.920
That's what Elements is.

00:02:41.180 --> 00:02:42.820
We've been building it for over a decade.

00:02:43.380 --> 00:02:44.820
Let's install it and create an app,

00:02:45.000 --> 00:02:45.440
right now.

00:02:45.460 --> 00:02:47.760
Open the terminal in Visual Studio Code

00:02:47.780 --> 00:02:48.820
and paste one line.

00:02:49.800 --> 00:02:50.600
Create a new app,

00:02:51.560 --> 00:02:53.780
run elements start, and tell

00:02:53.800 --> 00:02:54.720
Claude what to build.

00:02:56.240 --> 00:02:57.820
If you use the Claude desktop app,

00:02:57.960 --> 00:02:59.660
paste the same line into Claude and ask it

00:02:59.680 --> 00:03:00.700
to create an Elements app.

00:03:01.260 --> 00:03:02.260
So what did you just get?

00:03:02.680 --> 00:03:04.580
That project has its own build server,

00:03:04.860 --> 00:03:05.820
and it's always running.

00:03:06.340 --> 00:03:07.460
Your editor, your terminal,

00:03:07.620 --> 00:03:09.000
and Claude all connect to it,

00:03:09.120 --> 00:03:11.420
one agent or ten, and they share one build.

00:03:11.940 --> 00:03:13.560
No other toolchain works this way.

00:03:13.580 --> 00:03:15.100
When Claude saves a file,

00:03:15.300 --> 00:03:16.680
the build server runs one build.

00:03:17.520 --> 00:03:19.080
Install, type check, security analysis,

00:03:19.380 --> 00:03:21.020
bundle, test, migrate, release.

00:03:21.400 --> 00:03:22.620
Every step, every time.

00:03:22.940 --> 00:03:24.940
But only on the files that changed and the

00:03:24.960 --> 00:03:26.100
files that depend on them.

00:03:26.540 --> 00:03:27.620
So a build takes milliseconds.

00:03:28.340 --> 00:03:29.560
And when Claude wants to know if the code

00:03:29.580 --> 00:03:30.940
works, it runs one command,

00:03:31.600 --> 00:03:32.300
elements build.

00:03:32.320 --> 00:03:34.060
The answer comes back in microseconds.

00:03:35.080 --> 00:03:36.620
Elements also comes with the app framework.

00:03:37.140 --> 00:03:39.220
Reactive HTML, RPC, sessions,

00:03:39.560 --> 00:03:40.680
live tables, email, jobs,

00:03:40.860 --> 00:03:41.660
payments.

00:03:42.300 --> 00:03:44.620
So I asked Claude to build the CRM again,

00:03:44.840 --> 00:03:47.020
this time on Elements, and the app has

00:03:47.040 --> 00:03:48.560
all of that from the first minute.

00:03:49.080 --> 00:03:50.300
Let's do that rename again.

00:03:51.080 --> 00:03:52.220
Email becomes email address.

00:03:52.840 --> 00:03:54.880
Claude saves the file and all 14 errors are

00:03:54.900 --> 00:03:56.880
right there, with the file and the line for

00:03:56.900 --> 00:03:57.700
each one.

00:03:57.980 --> 00:03:59.840
Claude fixes them, the build is green and

00:03:59.860 --> 00:04:00.860
all the tests are passing.

00:04:01.360 --> 00:04:02.160
And the database.

00:04:02.440 --> 00:04:03.980
Claude writes the change in a migration file

00:04:04.000 --> 00:04:04.820
and it's plain SQL.

00:04:05.300 --> 00:04:06.960
The build watches that file and applies it

00:04:06.980 --> 00:04:09.080
automatically on the test database first,

00:04:09.260 --> 00:04:10.920
so Claude never has to run a migration

00:04:10.940 --> 00:04:11.740
command.

00:04:11.860 --> 00:04:12.660
Now deploy.

00:04:12.940 --> 00:04:14.720
It's one command, elements deploy,

00:04:14.940 --> 00:04:16.080
and that took under a second.

00:04:16.580 --> 00:04:18.400
It's that fast because the build runs on

00:04:18.420 --> 00:04:19.220
your servers.

00:04:19.420 --> 00:04:21.040
The build server on your laptop talks

00:04:21.060 --> 00:04:22.580
directly to the build server on each

00:04:22.600 --> 00:04:24.580
machine, so it only does the work that's

00:04:24.600 --> 00:04:25.300
needed.

00:04:25.320 --> 00:04:26.900
The deploy builds on every machine.

00:04:27.240 --> 00:04:28.600
It migrates the test database,

00:04:29.040 --> 00:04:30.420
it runs the tests against it,

00:04:30.640 --> 00:04:32.100
then it migrates the app database,

00:04:32.420 --> 00:04:34.640
and releases on every machine at the same

00:04:34.660 --> 00:04:35.460
instant.

00:04:35.480 --> 00:04:37.420
A release either fully succeeds or nothing

00:04:37.440 --> 00:04:37.820
changes.

00:04:37.840 --> 00:04:39.840
So if a step fails on any machine,

00:04:40.120 --> 00:04:41.680
every machine keeps running the previous

00:04:41.700 --> 00:04:42.500
release.

00:04:42.640 --> 00:04:44.540
Then it hot reloads the servers and every

00:04:44.560 --> 00:04:45.540
browser that's connected.

00:04:46.160 --> 00:04:47.500
These are your machines, by the way,

00:04:47.780 --> 00:04:48.580
on AWS.

00:04:48.980 --> 00:04:50.280
Each one has a load balancer,

00:04:50.400 --> 00:04:51.560
your app, the build server.

00:04:52.000 --> 00:04:52.820
Need more capacity?

00:04:53.180 --> 00:04:53.980
Add a machine.

00:04:54.360 --> 00:04:56.000
Elements is one predictable monthly price

00:04:56.020 --> 00:04:58.020
per machine, and the price doesn't change

00:04:58.040 --> 00:04:58.840
with your usage.

00:04:59.480 --> 00:05:01.540
So hundreds of packages become one package,

00:05:02.040 --> 00:05:02.700
@elements/app.

00:05:02.720 --> 00:05:04.540
And the seven tools become one tool,

00:05:04.760 --> 00:05:06.100
connected to one build server.

00:05:06.120 --> 00:05:08.180
So will your app still work in 6 months?

00:05:08.740 --> 00:05:10.540
On Elements, every change Claude makes is

00:05:10.560 --> 00:05:12.460
built, tested, and released the same way

00:05:12.480 --> 00:05:13.420
every time.

00:05:14.160 --> 00:05:15.860
Build your app with Claude Code on Elements.

00:05:16.380 --> 00:05:17.680
Install it from elements.dev.

00:05:18.480 --> 00:05:19.840
On this channel, we're going to build a lot

00:05:19.860 --> 00:05:21.820
of apps on Elements and go deep on how each

00:05:21.840 --> 00:05:22.640
part works.

00:05:22.960 --> 00:05:24.120
New videos come out regularly,

00:05:24.640 --> 00:05:25.440
so subscribe.

00:05:25.840 --> 00:05:27.160
And tell me in the comments what you're

00:05:27.180 --> 00:05:27.980
building.
