FullStack SaaS ArchitectFSA
Account

Welcome back

Pick up where you left off.

Your resources, your newsletter, your account — all waiting for you.

or

Replit Clone — AI App Builder

The longest build on the channel: an AI app builder with workspaces, agent runs, subscription billing, and the auth boundary holding it all together.

I cloned Replit — 21 hour project

Chapters, description and comments are on YouTube.Watch on YouTube instead

System overview

One request, end to end.

Select a stage to read what it decides.

The session decides everything below it

Better Auth resolves the request to an account once, at the edge, and every workspace, run and invoice further along hangs off that identity rather than re-deciding it per handler.

What you will build

Three things you can point at afterwards.

  1. An auth boundary you can point at

    One place that turns a request into an account, and a data model where ownership is a column rather than a convention.

  2. Agent runs that survive a reload

    Long work modelled as state with a status, so progress is readable and a failure is a value the interface can render.

  3. A subscription that gates real work

    Stripe wired to the thing it is selling: the plan is read on the server before the expensive call is made.