managarten/apps/cards
Till JS c1423d2f72 fix(cards-web): missing static assets — sql-wasm-browser.wasm + PWA icons
Two 404s reported from prod:

1) sql.js's production-bundled loader requested /sql-wasm-browser.wasm
   but only sql-wasm.wasm was in static/. The browser bundle is its own
   file; copy both so the loader hits whichever variant the runtime
   picks. Without this the .apkg import dies before reading SQLite.

2) shared-pwa's manifest references pwa-192x192.png, pwa-512x512.png
   and apple-touch-icon.png. None existed → Chrome's manifest-icon
   validator failed and there was no usable icon for A2HS. Generated
   minimal indigo-stacked-cards PNGs at the three required sizes.

Note: the sync 402 reports in the same console output are a separate,
intentional behaviour — mana-sync's billing middleware blocks pull/
push when the user has no active sync subscription. No code change
needed; handled at the mana-credits layer.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 14:42:47 +02:00
..
apps/web fix(cards-web): missing static assets — sql-wasm-browser.wasm + PWA icons 2026-05-07 14:42:47 +02:00
GUIDELINES.md feat(cards): Phase-1 Spinoff — standalone cards.mana.how + cards-core extraction 2026-05-07 01:20:43 +02:00
package.json feat(cards): Phase-1 Spinoff — standalone cards.mana.how + cards-core extraction 2026-05-07 01:20:43 +02:00
README.md feat(cards): Phase-1 Spinoff — standalone cards.mana.how + cards-core extraction 2026-05-07 01:20:43 +02:00

Cards

Spaced-repetition flashcards on cards.mana.how.

Phase-1 standalone web app. The frontend lives here; data, auth, and sync are shared with the rest of the Mana stack:

  • Auth: mana-auth (SSO), *.mana.how
  • Sync: mana-sync, app-id cards
  • Storage: mana_platform.cards.* (Postgres, RLS)

The same cards data backs the mana built-in Cards module at mana.how/cards. Schema changes ship to both frontends together — see apps/cards/GUIDELINES.md.

Layout

apps/cards/
├── apps/
│   └── web/        # SvelteKit 2 + Svelte 5 — the Phase-1 surface
├── GUIDELINES.md   # Project rules (read first)
└── README.md

apps/cards/apps/mobile/ and any production apps/cards/apps/landing/ will land in Phase 2/3.

Quick start

pnpm install
pnpm --filter @cards/web dev      # cards.mana.how on http://localhost:5180