{
  "markdown": "# vue-pwa-starter\n\nA **local-first Vue 3 PWA starter** with the part most starters skip: a complete, tiered testing strategy and the mobile app-shell boilerplate you otherwise rebuild every time.\n\nEverything lives on the device (IndexedDB via Dexie). No backend, no accounts, no spinners. Built for apps you use on a phone, offline, mid-task.\n\n## Quickstart\n\nUse this repository as a GitHub template (or clone it), then:\n\n```bash\npnpm install\npnpm dev\n```\n\nAll gates should be green out of the box:\n\n```bash\npnpm check                                        # everything below that needs no browser, in parallel (~8 s)\npnpm test && pnpm test:a11y && pnpm test:visual   # browser + a11y + visual tiers\npnpm test:e2e                                     # production build in a real browser\npnpm test:mutation                                # mutation score over the unit tier (~10 s)\npnpm build && pnpm size-limit                     # bundle budget\n```\n\n`pnpm check` is the one to reach for while you work: it runs lint, formatting,\ntypes, dead-code, the unit tier and the architecture tier concurrently, keeps\ngoing after the first failure, and prints each task's output under its own\nlabel — so one run tells you everything that is broken.\n\n## What you get\n\n| Area             | What is in the box                                                                                                                                                                                                                                                                                                                                 |\n| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| App shell        | Config-driven bottom nav ([`OrganismAppShell.vue`](src/components/organisms/OrganismAppShell.vue)), optional center FAB slot, `meta.hideNav` escape hatch, safe-area insets, `TemplatePageLayout`/`MoleculePageHeader`, keyboard-aware bottom sheet (`MoleculeDialogContent`), toast viewport                                                      |\n| UI components    | shadcn-vue-style primitives over [Reka UI](https://reka-ui.com/), copied rather than installed — compound parts, `cn()` class merging, `data-slot` targeting, `as-child`. The layer boundary is lint- and test-enforced. See [docs/ui-components.md](docs/ui-components.md)                                                                        |\n| Local-first data | Dexie schema with a converter pattern for reading old data forever, repository layer, schema-validated JSON export/import                                                                                                                                                                                                                          |\n| Testing          | Six tiers: unit (Node, ~100 ms), browser (Vitest browser mode), a11y (axe-core), visual (screenshots), architecture (ArchUnitTS), e2e (playwright-bdd against the production build). See [docs/testing-strategy.md](docs/testing-strategy.md)                                                                                                      |\n| Test quality     | Stryker mutation testing scoped to the unit tier — grades whether the assertions would notice a bug, not whether the lines ran. Runs in ~10 s, own CI job. See [docs/mutation-testing.md](docs/mutation-testing.md)                                                                                                                                |\n| Quality gates    | oxlint + ESLint + Prettier + markdownlint, knip (dead exports), size-limit (bundle budget), husky pre-commit gate (~15 s)                                                                                                                                                                                                                          |\n| PWA              | vite-plugin-pwa with update prompt, icons generated from one SVG at build time, offline precache, web-vitals seam                                                                                                                                                                                                                                  |\n| Observability    | Every db operation is a named Effect span already; opt into OTLP export in development with one env var — no `@opentelemetry/*` dependency, nothing in the production bundle. See [Tracing in development](#tracing-in-development)                                                                                                                |\n| CI               | Sharded GitHub Actions pipeline, actions pinned by SHA, zizmor-clean                                                                                                                                                                                                                                                                               |\n| i18n             | vue-i18n with typed message keys, English + German                                                                                                                                                                                                                                                                                                 |\n| Agent-ready      | No `CLAUDE.md`, no `AGENTS.md` — [`docs/`](docs/index.md) is an [Open Knowledge Format](https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md) bundle of concept files (including a full Effect v4 reference), and a `SessionStart` hook injects its index into every agent session. Humans and agents read the same file |\n\n## Stack\n\nVue 3.5 · TypeScript (strict) · Vite · Tailwind CSS v4 · reka-ui · VueUse · Dexie · Effect v4 · vue-router · vue-i18n · Vitest 4 (browser mode) · Playwright · pnpm (with catalogs — pnpm is required)\n\n## Philosophy: local-first\n\nDesign tie-breakers, borrowed from [Ink & Switch's local-first ideals](https://www.inkandswitch.com/local-first/):\n\n1. **No spinners** — instant input, never block on network\n2. **Network optional** — fully offline\n3. **The Long Now** — data readable after the app dies (export, schema stability, converters)\n4. **Ownership & control** — user owns the data, no accounts, exportable any time\n\nHow the data layer implements this: [docs/local-first.md](docs/local-first.md)\n\n## Project structure\n\n```text\nsrc/features/      Feature-owned UI, state, and domain logic (features never import features)\nsrc/db/            Dexie schema, converters, repositories — the only place that touches storage\nsrc/stores/        Shared app-wide state (@effect/atom-vue atoms, not Pinia)\nsrc/composables/   Shared reactive logic (2+ consumers)\nsrc/views/         Route-level pages; may compose multiple features\nsrc/components/    Shared components, tiered by atomic design — docs/atomic-design.md\n                   atoms/ molecules/ organisms/ templates/; every atom is a styled\n                   primitive (shadcn-style, yours to edit — docs/ui-components.md),\n                   as is a directory with a barrel; a flat .vue above atoms/ is a\n                   composite\nsrc/__tests__/     All tests, mirroring the source tree — not colocated\ntest/e2e/          playwright-bdd features + steps\n```\n\nThese boundaries are not just documentation — they are enforced by [architecture tests](src/__tests__/architecture/architecture.test.ts) over the module graph and by `no-restricted-imports` rules in [eslint.config.ts](eslint.config.ts), which also cover `.vue` files. [A negative test](src/__tests__/architecture/boundaries.test.ts) proves the enforcement actually fires.\n\n## Tracing in development\n\nThe instrumentation is already there: every repository operation is wrapped in a named `Effect.fn`, the backup programs add `Effect.withSpan`, and every reported failure emits a log record annotated with `boundary` / `operation` / `failure`. What is missing by default is somewhere to send it.\n\nStart a collector and point the app at it:\n\n```bash\ndocker run --rm -p 16686:16686 -p 4318:4318 jaegertracing/all-in-one\ncp .env.example .env.local\npnpm dev\n```\n\nOpen <http://localhost:16686>, pick the `vue-pwa-starter` service, and you get a span per db operation — including the create → list pair that shows a write invalidating a reactivity key and the read atom re-reading from disk.\n\nThree things make this cheap enough to ship in a starter:\n\n- The OTLP exporters live in `effect/unstable/observability` and post JSON over `fetch`, so there is no `@opentelemetry/*` SDK to install or bundle.\n- The dev server proxies `/_otlp` to `localhost:4318`, keeping the request same-origin — a stock collector rejects the CORS preflight an OTLP payload would otherwise trigger.\n- `import.meta.env.DEV` is a literal `false` in a production build, so the exporter is dead code. `pnpm size-limit` is what keeps that honest, and telemetry about a user's own data never has the chance to leave their device.\n\n## Adding your first feature\n\nFollow the walkthrough in [docs/adding-a-feature.md](docs/adding-a-feature.md), which goes layer by layer and names the test tier each step belongs in.\n\nThe example feature the walkthrough was written against — a notes screen that touched every layer — has been removed, so `src/features/` is empty and `/` opens Settings. The `docs/` concept files still teach through it; read them for the *rule*, and git history (`git show HEAD~1`) for the code. Each of them is rewritten against the real feature as the slices in [`specs/`](specs/) land.\n\n## License\n\n[MIT](LICENSE)\n",
  "bytes": 9883,
  "sha": "2e0258e61d13befd5d4253dcb41b11215e7b6a38c839308ca1427da02f5cc2f4",
  "repo_slug": "alexanderop/rowing-workout-plan",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/okf_alexanderop_rowing_workout_plan_docs_ind_bc31e7f4/readme"
}