No description
  • TypeScript 73.1%
  • Svelte 24.5%
  • Shell 1.1%
  • CSS 1%
  • JavaScript 0.2%
Find a file
Duke Jones 8172894005
All checks were successful
Deploy / deploy (push) Has been skipped
Keep test-list sends out of the broadcast ledger.
A send to the test list is marked [TEST] and does not satisfy the duplicate guard, so those recipients still get the real issue.
2026-11-03 08:16:07 -08:00
.beads bd: update sync.remote 2026-08-24 12:12:24 -07:00
.claude Initial commit: SvelteKit + ElysiaJS with end-to-end Eden Treaty types 2026-06-11 12:37:09 -07:00
.design/issue-pipeline Move issues from content/*.json into Postgres 2026-09-28 20:34:50 -07:00
.forgejo/workflows Add a Forgejo workflow that can build a Zine snapshot. 2026-09-26 06:22:09 -07:00
.impeccable/live Replace story hero with poster composition 2026-09-27 11:02:05 -07:00
.vscode Initial commit: SvelteKit + ElysiaJS with end-to-end Eden Treaty types 2026-06-11 12:37:09 -07:00
content Give the Noisebridge issue a durable slug 2026-09-27 11:47:48 -07:00
docs Fold publication composition changes 2026-09-27 06:55:22 -07:00
drizzle Add an invite studio and IdentiKey login for PSD templates. 2026-10-27 16:06:49 -07:00
drizzle-sqlite Switch Zine's application database to Postgres. 2026-09-25 16:04:25 -07:00
groups chore: ignore intention scratch and keep group records 2026-10-12 22:17:15 -07:00
openspec Move issues from content/*.json into Postgres 2026-09-28 20:34:50 -07:00
scripts Move issues from content/*.json into Postgres 2026-09-28 20:34:50 -07:00
src Keep test-list sends out of the broadcast ledger. 2026-11-03 08:16:07 -08:00
static Use the compact chevron mark. 2026-10-29 12:16:48 -07:00
.env.example Switch Zine's application database to Postgres. 2026-09-25 16:04:25 -07:00
.gitignore chore: ignore intention scratch and keep group records 2026-10-12 22:17:15 -07:00
.mcp.json Initial commit: SvelteKit + ElysiaJS with end-to-end Eden Treaty types 2026-06-11 12:37:09 -07:00
.npmrc Initial commit: SvelteKit + ElysiaJS with end-to-end Eden Treaty types 2026-06-11 12:37:09 -07:00
.prettierignore PSD inspector: parser pipeline, persistence, API, zine dashboard, static export 2026-06-11 14:05:50 -07:00
.prettierrc Initial commit: SvelteKit + ElysiaJS with end-to-end Eden Treaty types 2026-06-11 12:37:09 -07:00
AGENTS.md Keep test-list sends out of the broadcast ledger. 2026-11-03 08:16:07 -08:00
bun.lock Publish a generated OpenAPI spec and an agent API guide 2026-09-27 16:43:57 -07:00
CLAUDE.md Record the 2026-09-29 Zine deploy and the deploy checklist 2026-09-29 10:33:36 -07:00
drizzle.config.ts Switch Zine's application database to Postgres. 2026-09-25 16:04:25 -07:00
eslint.config.js Initial commit: SvelteKit + ElysiaJS with end-to-end Eden Treaty types 2026-06-11 12:37:09 -07:00
mjolnir.toml Install cryptsetup without pulling a new network name. 2026-09-26 11:55:57 -07:00
package.json Move issues from content/*.json into Postgres 2026-09-28 20:34:50 -07:00
playwright.config.ts PSD inspector: parser pipeline, persistence, API, zine dashboard, static export 2026-06-11 14:05:50 -07:00
PRODUCT.md Replace story hero with poster composition 2026-09-27 11:02:05 -07:00
README.md PSD inspector: parser pipeline, persistence, API, zine dashboard, static export 2026-06-11 14:05:50 -07:00
svelte.config.js fix(build): move prerender handleHttpError into vite.config (svelte.config ignored) 2026-06-23 23:12:19 -07:00
tsconfig.json Initial commit: SvelteKit + ElysiaJS with end-to-end Eden Treaty types 2026-06-11 12:37:09 -07:00
vite.config.ts Move issues from content/*.json into Postgres 2026-09-28 20:34:50 -07:00

procreateParse

PSD inspector: parses Photoshop files into a layer inventory (every attribute we can glean — bounds, opacity, blend modes, masks, text content & fonts, effects), stores them in SQLite, and presents them as a zine/poster-styled dashboard. SvelteKit + ElysiaJS with end-to-end type safety via Eden Treaty, Drizzle ORM, Tailwind. Runs on bun.

PSD pipeline

bun run psd:parse <file.psd> --out .artifacts/<name>.json   # parse → versioned JSON artifact
bun run psd:thumbs <file.psd>                               # render layer thumbnails + composite → static/psd/<slug>/
bun run psd:ingest .artifacts/<name>.json                   # upsert into sqlite (idempotent by slug)

Then browse:

  • /psd — ingested documents (zine table of contents)
  • /psd/<slug> — the dashboard: masthead stats, layer tree, per-layer detail via ?layer=<n>
  • /styleguide — the zine design system, every component in every state
  • /export/<slug> — pure HTML+CSS rendition (prerendered, csr=false)

Static export (→ identikey-website)

bun run export:static      # build + assemble self-contained bundle into dist-export/<slug>/
bun run export:identikey   # same, but copies into ~/work/IdentiKey/identikey-website/static/psd/<slug>/

The bundle is a single index.html (CSS inlined, zero <script> tags, relative ./assets/ refs) plus thumbnails — portable to any static host or SvelteKit static/ dir at any path depth. The script self-verifies (no _app refs, all assets present) and is idempotent.

Architecture

The backend is a single Elysia app mounted into SvelteKit's router; the frontend consumes it through a fully typed Eden Treaty client — request/response types flow from the server schemas to the client with no codegen.

scripts/
  parse-psd.ts                  # bun CLI: psd → JSON artifact
  render-thumbs.ts              # bun CLI: psd → layer/composite PNGs
  ingest-psd.ts                 # bun CLI: artifact → sqlite (bun:sqlite)
  export-static.ts              # build + assemble portable static bundle
  make-fixture-psd.ts           # regenerates the tiny test fixture .psd
src/
  lib/
    api.ts                      # Eden Treaty client (createApi / api)
    ui/                         # zine design system (Masthead, TornCard, Stamp, …)
    server/
      api/
        index.ts                # Elysia app (prefix /api), exports App type
        routes/{tasks,psd}.ts   # resource plugins (typebox-validated)
        *.spec.ts               # unit tests via treaty(app), no HTTP server
      db/                       # drizzle client + schema (task, psd_document, psd_layer)
      psd/                      # extract.ts: ag-psd → typed LayerInfo[] (+ fixture & spec)
  routes/
    api/[...slugs]/+server.ts   # mounts the Elysia app (fallback → app.handle)
    psd/                        # dashboard routes (+ colocated *.e2e.ts smoke specs)
    export/[slug]/              # prerendered static rendition (csr=false)
    styleguide/                 # design-system showcase
drizzle/                        # SQL migrations (committed)
docs/                           # design-direction.md, testing.md

Every UI route ships a colocated *.e2e.ts playwright smoke spec (page loads, key landmarks, zero console errors, state variants) — see docs/testing.md.

Adding an endpoint: create a plugin in src/lib/server/api/routes/, .use() it in src/lib/server/api/index.ts, and the typed client picks it up automatically.

Developing

bun install
bun run db:migrate   # apply migrations to local.db (DATABASE_URL in .env)
bun run dev

Database

Migrations only — drizzle-kit push is intentionally not wired up.

bun run db:generate  # after editing src/lib/server/db/schema.ts
bun run db:migrate
bun run db:studio

Testing & quality

bun run test:unit    # vitest (client browser project + server project)
bun run test:e2e     # playwright
bun run check        # svelte-check
bun run lint         # prettier + eslint

Building

bun run build        # adapter-node
bun run preview