You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Guiding rule for this phase: every capability ships as an open-source interface with a working zero-configuration default. Hosted infrastructure is a different implementation behind that same interface — never the only implementation, and never a different API.
Getting a backend running today needs Node, pnpm, Docker, four hand-written secrets and an SMTP server before any authentication flow works. Each of those is removable. The target: someone with Docker and nothing else gets a working backend, and can log into it, on the first try.
Work
Fall back to a development email sink when no provider is configured, instead of returning 503 EMAIL_NOT_CONFIGURED — packages/server/src/auth/routes.ts:769, :926 and packages/server/src/auth/magic-link-routes.ts:70
Surface captured messages in the admin panel, so a magic link or verification mail can be opened without a mail server
A single compose file that generates JWT_SECRET, REBASE_SERVICE_KEY and the database password on first boot, and runs the schema push itself — no Node or pnpm required on the host
One-click deploy templates for Railway, Fly, Render and Coolify
A browser-reachable path from nothing to a running backend, so the first ten minutes need no terminal
Notes
docker/docker-compose.selfhost.yml is the starting point; it currently assumes a built bundle, a host toolchain and four secrets set by hand.
First item is done in #12 — auth email is captured and its links printed in development, so POST /auth/magic-link and POST /auth/forgot-password complete on a fresh project instead of answering 503 EMAIL_NOT_CONFIGURED.
Deliberately not included: surfacing captured mail in the panel. That needs an HTTP route serving live reset tokens, which deserves its own change and its own thought about gating. The remaining items here — the single compose that generates its own secrets, the one-click deploy templates, and the browser-reachable path — are untouched.
Second piece landed in #16 — development secrets now survive a restart.
loadEnv generated JWT_SECRET and REBASE_SERVICE_KEY freshly on every boot outside production, so restarting the dev server logged you out of your own app and invalidated any API key you'd just made. They're now cached in .rebase-dev-secrets.json, gitignored beside .rebase-dev-port and .rebase-dev-url. Production is untouched — a boot that had to generate either secret still fails.
That plus the mail sink (#12) means a fresh project can log in, stay logged in across restarts, and complete a magic-link or password-reset flow with nothing configured.
Still open here: the single compose that generates its own secrets and pushes the schema itself, the one-click deploy templates, and the browser-reachable path from nothing to a running backend.
Status pass over the five items, and one of them moved.
The captured mail is readable over HTTP now — the half of item 2 that the earlier comment deferred, with the gating it said it deserved.
GET /api/admin/dev/emails → { enabled: true, messages: [ … ] }
DELETE /api/admin/dev/emails → empties the mailbox
Each message carries to, subject, at, both body parts, and links — the absolute URLs found in the body, which is the only part anyone wants. The sink was already built by the boot path; it was constructed and its handle thrown away, so nothing could read what it held. It is registered now.
What it hands out is a working login, so it is gated three times over and each gate is tested on its own: admin-only through the same gate cron, logs and backups use; a sink must be registered, which registerDevEmailSink refuses to do under NODE_ENV=production; and the handler re-reads NODE_ENV per request, so a sink registered before the environment was set is still not readable there. There is no configuration that turns it on in production.
Not done: the panel view. This is the route the panel would call, not the panel. Adding a view means new UI strings, and the untranslated ratchet holds the count at its baseline across six locales — that is a translation pass, not a component, and it should not be smuggled in behind a backend change.
One-click deploy templates: ticked, they already existed.infra/blueprints/ has render.yaml, railway.json, fly.toml and do-app.yaml, with Coolify (and anything else that speaks Compose) covered by infra/docker/docker-compose.selfhost.yml. The README there names the four things every one of them has to get right.
Item 3 is genuinely half-done, and the half that is missing is the whole point.infra/docker/quickstart.sh generates POSTGRES_PASSWORD, JWT_SECRET and REBASE_SERVICE_KEY on first run, and boot provisions collection tables and their RLS with no push needed — so the secrets and the schema clauses hold. What does not hold is "no Node or pnpm required on the host": the compose file mounts dist-bundle, and producing one is rebase build, which needs the project's toolchain. Somebody with only Docker still cannot get to a running backend.
Closing that gap means the runtime image being able to come up with no bundle at all — a starter project baked into the image, or fetched — which is an image change, and it is the same change item 5 needs. I did not attempt it tonight because this machine cannot reach Docker Hub, so nothing about it could have been verified by running it, and an unverifiable change to the first-run path is worse than none.
(While in there: both files told the reader to run ./docker/quickstart.sh, which moved to infra/docker/ some time ago. Fixed.)
Landed on main locally and not pushed — pushing to main publishes a canary, which is yours to trigger.
Activity
fgatti675 commentedon Aug 21, 2026
First item is done in #12 — auth email is captured and its links printed in development, so
POST /auth/magic-linkandPOST /auth/forgot-passwordcomplete on a fresh project instead of answering503 EMAIL_NOT_CONFIGURED.Deliberately not included: surfacing captured mail in the panel. That needs an HTTP route serving live reset tokens, which deserves its own change and its own thought about gating. The remaining items here — the single compose that generates its own secrets, the one-click deploy templates, and the browser-reachable path — are untouched.
fgatti675 commentedon Aug 22, 2026
Second piece landed in #16 — development secrets now survive a restart.
loadEnvgeneratedJWT_SECRETandREBASE_SERVICE_KEYfreshly on every boot outside production, so restarting the dev server logged you out of your own app and invalidated any API key you'd just made. They're now cached in.rebase-dev-secrets.json, gitignored beside.rebase-dev-portand.rebase-dev-url. Production is untouched — a boot that had to generate either secret still fails.That plus the mail sink (#12) means a fresh project can log in, stay logged in across restarts, and complete a magic-link or password-reset flow with nothing configured.
Still open here: the single compose that generates its own secrets and pushes the schema itself, the one-click deploy templates, and the browser-reachable path from nothing to a running backend.
fgatti675 commentedon Aug 25, 2026
Status pass over the five items, and one of them moved.
The captured mail is readable over HTTP now — the half of item 2 that the earlier comment deferred, with the gating it said it deserved.
Each message carries
to,subject,at, both body parts, andlinks— the absolute URLs found in the body, which is the only part anyone wants. The sink was already built by the boot path; it was constructed and its handle thrown away, so nothing could read what it held. It is registered now.What it hands out is a working login, so it is gated three times over and each gate is tested on its own: admin-only through the same gate cron, logs and backups use; a sink must be registered, which
registerDevEmailSinkrefuses to do underNODE_ENV=production; and the handler re-readsNODE_ENVper request, so a sink registered before the environment was set is still not readable there. There is no configuration that turns it on in production.Not done: the panel view. This is the route the panel would call, not the panel. Adding a view means new UI strings, and the untranslated ratchet holds the count at its baseline across six locales — that is a translation pass, not a component, and it should not be smuggled in behind a backend change.
One-click deploy templates: ticked, they already existed.
infra/blueprints/hasrender.yaml,railway.json,fly.tomlanddo-app.yaml, with Coolify (and anything else that speaks Compose) covered byinfra/docker/docker-compose.selfhost.yml. The README there names the four things every one of them has to get right.Item 3 is genuinely half-done, and the half that is missing is the whole point.
infra/docker/quickstart.shgeneratesPOSTGRES_PASSWORD,JWT_SECRETandREBASE_SERVICE_KEYon first run, and boot provisions collection tables and their RLS with no push needed — so the secrets and the schema clauses hold. What does not hold is "no Node or pnpm required on the host": the compose file mountsdist-bundle, and producing one isrebase build, which needs the project's toolchain. Somebody with only Docker still cannot get to a running backend.Closing that gap means the runtime image being able to come up with no bundle at all — a starter project baked into the image, or fetched — which is an image change, and it is the same change item 5 needs. I did not attempt it tonight because this machine cannot reach Docker Hub, so nothing about it could have been verified by running it, and an unverifiable change to the first-run path is worse than none.
(While in there: both files told the reader to run
./docker/quickstart.sh, which moved toinfra/docker/some time ago. Fixed.)Landed on
mainlocally and not pushed — pushing to main publishes a canary, which is yours to trigger.feat(server): read the development mailbox over HTTP, not off the ter…
feat(website): a roadmap page, and an Enterprise tier that sells support