Shopping → Standalone Family Grocery Product — Design Spec
Product: GetQwikShop (www.getqwik.shop)
Section titled “Product: GetQwikShop (www.getqwik.shop)”Version: 2.3
Last Updated: 2026-08-06 13:49:56
Status: Superseded as the working design. Canonical GetQwikShop design + first-build plan now live in the product repo: D:\Projects\GetQwikShop\docs\superpowers\specs\2026-08-06-getqwikshop-first-build-design.md and …\plans\2026-08-06-getqwikshop-first-build.md. This LynCareOS-side file is kept as historical context for debt D4 only.
Companion analysis: docs/plans/2026-08-06-shopping-module-standalone-product-extraction.md (detailed dependency inventory — read first for why; this doc is the what/how)
Superseded plan: docs/superpowers/plans/2026-08-06-shopping-mode-b-and-package-extraction.md is abandoned — it proposed adding routes and packages/shopping-* folders inside the LynCareOS repository. Revision 2.0 below rules that out. Do not execute that plan.
0a. Brand locked in revision 2.2
Section titled “0a. Brand locked in revision 2.2”- Product name: GetQwikShop
- Domain: www.getqwik.shop
- Both spelled with “Qwik” — the original “GetKwikShop” spelling (revision 2.1) was a typo on the product owner’s part, confirmed and corrected in this revision.
- This is the name/domain to use in every reference to the standalone product from this point forward — in this spec, any implementation plan, app store listing copy, and the eventual repo/package names (e.g. a repo called
getqwikshopor similar, though the exact repo name is still the product owner’s call per §8).
0. Hard constraint added in revision 2.0
Section titled “0. Hard constraint added in revision 2.0”The product owner was explicit: this is a totally separate product, sold only through the app stores, and it cannot in any way, shape, or form be attached to LynCareOS. This is stricter than “fully separate from day one” in v1.0’s §2 and changes two concrete things:
- Zero footprint in the LynCareOS repository. No routes are added to
backend/routers/shopping.py, nopackages/shopping-catalog/packages/shopping-uifolders are created insideD:\Projects\LynCareOS. Nothing about the new product is committed to this repo’s git history — not even unused/unwired code. The new product’s code lives entirely in its own, separate repository, created outside this workspace when the product owner is ready (confirmed: not yet — no path/name decided). - No Stripe, no LynCareOS billing. Purchasing and subscriptions are handled entirely through Apple StoreKit (App Store) and Google Play Billing (Play Store) — not LynCareOS’s Stripe account, not the
tiers.json/entitlements system LynCareOS uses. See §6.
Confirmed with product owner (this session):
- LynCareOS’s existing shopping code may be used privately as a reference when writing the new repo’s code — read it, adapt patterns, copy-paste once into the new repo — but nothing is imported, linked, or shared at runtime, and nothing new is added to this repo to serve as a “fork point.” The fork happens directly into the new repo, from what already exists in LynCareOS today, when that repo is created.
- The new repo’s location/name has not been decided yet. This spec and any future implementation plan describe the target architecture abstractly (
<new-repo>/...) until the product owner provides a concrete path.
1. Product framing
Section titled “1. Product framing”A new, separate product — a family grocery/household coordination app, downloaded from an app store by a parent. The parent is the tenant owner; they add other household members (spouse, kids) as tenant members. There is no “patient” concept anywhere in this product — that is the one structural difference from how the equivalent module works inside LynCareOS today, and it is a simplification, not a complication: no patient_access, no clinical audit weight, no PHI handling, no RLS tenant-vs-patient distinction.
2. Decisions locked in this session
Section titled “2. Decisions locked in this session”| Question | Decision |
|---|---|
| Product name / domain | GetQwikShop / www.getqwik.shop (locked 2026-08-06, revision 2.1 — see §0a) |
| Build speed vs. reuse | Quality first — use LynCareOS’s hardened engine as a private reference when writing the new repo, rather than rebuild blind under time pressure |
| Catalog/branding | Diverge — fork the catalog and icon set once (into the new repo, not this one), then rebrand/restyle freely (e.g. drop the pharmacy/medical list type; this is a grocery/household app, not a care app) |
| Real-time multi-device sync | Required in v1 — reimplement the SSE + Redis pub/sub pattern independently in the new repo’s own backend/Redis instance |
| Business separation | Absolute — cannot be attached to LynCareOS in any way. Own domain, own database, own repository, own git history, own infrastructure. No shared runtime, no shared code import, no LynCareOS branding anywhere in the product or its store listing |
| Billing | App Store / Play Store only. Apple StoreKit 2 (iOS) and Google Play Billing (Android) handle all money movement. No Stripe, no LynCareOS billing/entitlements system. Web/desktop installs (PWA) either piggyback on an existing mobile purchase (Apple/Google account-linked entitlement) or ship without web purchase in v1 — resolved in the new repo’s own billing design, not shared with LynCareOS’s |
| Repository footprint | Zero in this repo. No code, routes, or packages are added to LynCareOS for this initiative. LynCareOS’s existing shopping code is read-only reference material |
| Cross-platform delivery | PWA first, architected so a Capacitor native wrap is additive later, not a rewrite — covers Android/iOS/Windows/macOS via “Install app” from day one |
| Closed-app notifications | Plan for native push (Capacitor + APNs/FCM) as part of this build — the product is expected to be downloaded from an actual app store, so native push and store presence are in scope, not deferred indefinitely |
3. Why reference LynCareOS’s design instead of rebuilding blind — without touching this repo
Section titled “3. Why reference LynCareOS’s design instead of rebuilding blind — without touching this repo”06-SHOPPING-MODULE.md §2 already specifies a tenant-only “Mode B” for exactly this household-without-a-patient scenario, and LynCareOS’s repository/database layer was already designed to support it (shopping_lists.patient_id nullable, every repositories/shopping.py function takes patient_id: int | None). That means:
- When the new repo is created, its shopping router/service/repository can be written directly in tenant-only form from day one — there’s a proven pattern to read and adapt, with no patient-removal pass needed, and no need to build or land a “Mode B” feature inside LynCareOS first.
- The SSE broadcast mechanism already demonstrates, inside LynCareOS today, that a tenant-wide channel (no patient) works correctly for “family tenant, multi-device live sync” (
services/shopping_service.py—_channel(tenant_id, None)pattern). The new repo reimplements this pattern independently (own Redis, own connection pool) rather than depending on LynCareOS’s instance in any way. - This is reference-reading only. No LynCareOS feature work (a “Mode B” LynCareOS tier) is required or proposed as part of this initiative. If LynCareOS wants that as its own product feature later, that is a separate, independent decision tracked under debt D4 — not a dependency of this spin-off.
4. Target architecture
Section titled “4. Target architecture”5. Platform delivery detail
Section titled “5. Platform delivery detail”- Windows / macOS desktop, Android: installable PWA (
manifest.jsondisplay: standalone, same pattern as LynCareOS’s own manifest, written fresh for the new brand) is sufficient and reliable, including Web Push for closed-app notifications on these platforms (desktop Chrome/Edge and Android Chrome have mature Web Push support). - iOS: the one platform where PWA push is historically unreliable (Safari’s PWA push support is recent and inconsistent pre-16.4, and the product owner expects genuine app-store distribution). This is the concrete reason to plan the Capacitor wrap + APNs path from the start rather than leaning on Web Push everywhere.
- LynCareOS’s own roadmap specs a comparable transition for itself (
REQ-NATIVE-01–05in02-REQUIREMENTS.md§7.36): Capacitor wraps a React/Vite SPA in a native WebView shell with no frontend rewrite; push moves from VAPID to@capacitor/push-notifications(APNs/FCM); auth token storage moves to@capacitor/preferences(Keychain/Keystore). Reuse this as a pattern reference for the new product’s native phase — it is a public-facing platform pattern (Capacitor’s own documented approach), not LynCareOS proprietary code, so referencing it does not create any attachment between the products.
6. Billing — App Store / Play Store only
Section titled “6. Billing — App Store / Play Store only”- No Stripe. LynCareOS’s Stripe account, products, prices, and webhook handling are not used, shared, or referenced by the new product in any way.
- iOS: Apple StoreKit 2 in-app purchase / auto-renewable subscription. The new backend validates receipts server-side via Apple’s App Store Server API (JWS-signed transaction/renewal notifications) before granting entitlement — Apple collects the money, the new backend only confirms the entitlement is real and current.
- Android: Google Play Billing Library, validated server-side via the Google Play Developer API (purchases.subscriptions/products endpoints), same pattern.
- A backend is still required even though no payment is processed by it — it (a) validates receipts/subscription status so entitlement can’t be spoofed, and (b) stores the actual product data (shopping lists, items, catalog, household membership), which StoreKit/Play Billing never touch. This backend is entirely new, in the new repo, with its own database — never LynCareOS’s.
- Desktop/web PWA purchase is an open question deferred to the new repo’s own billing design (§7, Sub-project 1) — most native-first apps either restrict purchase to mobile app stores and let desktop/web log in with an existing entitlement, or add Stripe for that product’s own account later. Not decided yet; not blocking the mobile-first build.
7. What is copied vs. rebuilt
Section titled “7. What is copied vs. rebuilt”| Component | Treatment |
|---|---|
| Router / Service / Repository (shopping) | Written fresh in the new repo, tenant-only from day one, using today’s LynCareOS code as a private reading reference (not copied file-for-file, not imported) |
| Redis SSE pub/sub | Reimplemented independently in the new repo (own redis_client.py, own Redis instance), same channel pattern as reference |
| Images upload service | Reimplemented independently, same pattern as reference |
| Catalog data + icons | Forked once by hand from what exists in LynCareOS today, rebuilt as new repo’s own asset, then diverges |
| UI components | Written fresh, referencing today’s LynCareOS shopping UI for interaction patterns, re-skinned to new brand from the start |
| Auth / tenant / user | Rebuilt lightweight — no patient_access, no PHI audit rigor |
| Alerts framework | Drop or reimplement minimally |
| Billing | Apple StoreKit 2 + Google Play Billing + server-side receipt validation — no Stripe, no LynCareOS billing system (§6) |
| PWA shell / service worker | Written fresh, new branding, same versioning pattern (content-hashed assets, sw.js cache-busting) as a general web-platform technique |
| Native shell | Capacitor wrap + native push, following the public Capacitor pattern (also referenced by LynCareOS’s own unbuilt REQ-NATIVE-02/03, but not dependent on LynCareOS shipping that first) |
8. Sub-project decomposition
Section titled “8. Sub-project decomposition”Revision 2.0 removes the two sub-projects that would have modified this repo. Everything now happens in the new GetQwikShop repo, once it exists:
- Sub-project 1 — New repo bootstrap: lightweight auth/tenant/household backend, shopping router/service/repository (tenant-only, written fresh), Postgres schema, receipt-validation service for StoreKit/Play Billing.
- Sub-project 2 — New PWA frontend: shopping list UI, catalog browse/add, GetQwikShop branding, own manifest/service-worker, referencing today’s LynCareOS shopping UI for interaction patterns only.
- Sub-project 3 — Native track: Capacitor wrap, APNs/FCM native push, App Store + Play Store submission as GetQwikShop, StoreKit/Play Billing integration.
- Sub-project 4 — Marketing site: a simple marketing/landing site at www.getqwik.shop (separate from the app’s own domain/hosting if the app itself needs a distinct app-facing domain later — not yet decided). Out of scope until the product itself has a shippable v1; noted here so the domain isn’t forgotten.
All sub-projects except 4 are blocked on the product owner deciding the new code repository’s disk location/name (brand name is locked — see §0a — but that’s not the same as a git init path). No implementation plan can specify concrete file paths until then. When that path is provided, Sub-project 1’s implementation plan can be written immediately — the architecture in §4–§7 above is already decided.
9. Self-review
Section titled “9. Self-review”- Placeholder scan:
<new-repo>(disk location) is the one remaining intentional placeholder — the product owner explicitly deferred naming/creating the actual repository folder even though the product’s brand identity (§0a) is now locked; this is a known open item (§8), not an oversight. - Internal consistency: §0’s hard constraint, §0a’s brand lock, §2’s decisions, §4’s diagram, and §7’s “copied vs. rebuilt” table all agree on zero LynCareOS repo footprint, GetQwikShop branding, and reference-only reuse — no contradictions remain from v1.0/v2.0/v2.1.
- Scope: intentionally left at “ready to execute the moment a repo path exists” rather than force-fitting a plan against a location that doesn’t exist yet.
- Ambiguity check: the domain/name spelling mismatch (Qwik vs. Kwik) flagged in revision 2.1 was confirmed by the product owner as a typo and corrected in this revision — both name and domain now consistently use “Qwik.”