mirror of
https://github.com/bitbaum/printcraft.git
synced 2026-12-04 04:17:01 +01:00
Opened by bitbaum/fleet .github/workflows/internal-currency.yml. The fleet's own packages ship features in MINORS, so version-currency.mjs — which judges by major — reports nothing while consumers drift. This is the instrument that sees it, and it opens the fix rather than reporting it. If this PR is red, that is the useful outcome: it names a repo that cannot take the new version, which nothing else in the fleet would have told us. Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
PrintCraft — Web app
Composition editor for PrintCraft projects: upload figures, segment/style them, and arrange them onto print-surface panels. Built with Next.js (App Router) and a self-hosted Supabase stack.
Getting started
pnpm install
cp .env.local.example .env.local # fill in Supabase keys + AI provider tokens
pnpm run dev
Open http://localhost:3000.
Infrastructure
- Database & storage: self-hosted Supabase on the Hetzner box
(
supabase.orangecat.ch), dedicatedprintcraftschema. - Accounts:
@bitbaum/accountkiton its own screens:/login(password, passkey, an emailed sign-in link, recovery, the second factor),/registerand/account. "Continue with OrangeCat" and the shared sign-in show when their clients are set, the link and recovery when mail is. Its tables live in a host accounts database (DATABASE_URL, migrations indrizzle/; lokiaccounts-db.conf), beside the Supabase schema, which keeps the project data. API routes read that data with the service-role client and check ownership (src/lib/api/ownership.ts) against the session's user id. - People from before AccountKit signed in through OrangeCat's GoTrue.
scripts/db/accountkit-import.sql(repository root; run by lokiaccountkit-supabase.yml) gave each project owner an account under the same id, linked to OrangeCat by their actor id (never by address); they sign in with "Continue with OrangeCat" and find their projects. - Hosting: self-hosted behind Caddy at
printcraft.orangecat.ch.
See AGENTS.md for the data model and architecture, and the repository root
README.md for the generation pipeline and project layout.