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.
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:
- Provision PostgreSQL and set the connection string (see
.env.example). - Deploy the API and run
bun run db:migrate. - Serve the web app pointed at the API’s
ORIGIN. - 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.dbto PostgreSQL (Drizzle +pg). There is no in-place migration from the old SQLite database — this is a fresh schema. Provision a Postgres instance and runbun run db:migrateagainst it before starting the API. - Configuration changes. The API requires a Postgres connection and a resolvable
ORIGIN. Review.env.exampleand 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:
- Provision PostgreSQL and set the connection string (see
.env.example). - Deploy
apps/apias a service and runbun run db:migrate. - Build and serve
apps/web(static) pointed at the API’sORIGIN. - Recreate ingest tokens and re-add users; data is not carried over from the SQLite database.