Skip to content
← All releases

Two-service rewrite on PostgreSQL

A full rewrite with a standalone Hono API, a static web app, and PostgreSQL in place of SQLite, so it is not an in-place upgrade.

Version
0.3.0
Released

Rootprint 0.3.0 is a complete rewrite. The single SvelteKit server is now two parts: a Hono API that runs as its own service, and a SvelteKit web app served as static files. Data moves from SQLite to PostgreSQL.

Before you upgrade

0.3.0 is not an in-place upgrade from 0.2.x, and nothing from the SQLite database carries over. Stand up a new deployment:

  1. Provision PostgreSQL and set the connection string (see .env.example).
  2. Deploy the API and run bun run db:migrate.
  3. Serve the web app pointed at the API’s ORIGIN.
  4. Recreate ingest tokens and users.

Changelog

Complete architectural rewrite. Rootprint is now a Bun-workspace monorepo: a standalone Hono API (apps/api) and a separate SvelteKit SPA (apps/web) that talks to it over HTTP. The previous single SvelteKit-server deployment is gone, and the datastore has moved from SQLite to PostgreSQL.

⚠️ Breaking changes

  • New two-process architecture. The monolith is split into an API server (apps/api) and a static web client (apps/web). You now deploy and run the API as its own service; the web app is served as static assets.
  • PostgreSQL replaces SQLite. Persistence moved from sqlite.db to PostgreSQL (Drizzle + pg). There is no in-place migration from the old SQLite database — this is a fresh schema. Provision a Postgres instance and run bun run db:migrate against it before starting the API.
  • Configuration changes. The API requires a Postgres connection and a resolvable ORIGIN. Review .env.example and update your deployment.

Upgrade notes

Because the storage engine changed, 0.3.0 is not an in-place upgrade from 0.2.x. Stand up a new deployment:

  1. Provision PostgreSQL and set the connection string (see .env.example).
  2. Deploy apps/api as a service and run bun run db:migrate.
  3. Build and serve apps/web (static) pointed at the API’s ORIGIN.
  4. Recreate ingest tokens and re-add users; data is not carried over from the SQLite database.