{"id":51981498,"url":"https://github.com/ohansemmanuel/matcha-flowers","last_synced_at":"2026-07-30T13:30:30.535Z","repository":{"id":373680069,"uuid":"1315746125","full_name":"ohansemmanuel/matcha-flowers","owner":"ohansemmanuel","description":null,"archived":false,"fork":false,"pushed_at":"2026-07-29T08:36:52.000Z","size":5967,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-29T09:12:42.622Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://matcha-flowers.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ohansemmanuel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-29T05:52:06.000Z","updated_at":"2026-07-29T08:37:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ohansemmanuel/matcha-flowers","commit_stats":null,"previous_names":["ohansemmanuel/matcha-flowers"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ohansemmanuel/matcha-flowers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohansemmanuel%2Fmatcha-flowers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohansemmanuel%2Fmatcha-flowers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohansemmanuel%2Fmatcha-flowers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohansemmanuel%2Fmatcha-flowers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohansemmanuel","download_url":"https://codeload.github.com/ohansemmanuel/matcha-flowers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohansemmanuel%2Fmatcha-flowers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36079865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-30T02:00:05.956Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-30T13:30:29.990Z","updated_at":"2026-07-30T13:30:30.497Z","avatar_url":"https://github.com/ohansemmanuel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Matcha Flowers\n\nA fictional flower shop, built to be tested.\n\nMatcha Flowers exists so that Coldtea's agentic QA has a realistic target: a\nstorefront with a catalog, a cart, accounts and a real checkout, that can be\ndeliberately broken in a pull request so an agent has something true to find.\nIt is a demo product, not a Coldtea product, and it deliberately does not use\nColdtea's design system.\n\n## Running it\n\n```bash\nnvm use          # 22.19.0\nnpm install\nnpm run dev      # http://localhost:3010\n```\n\n## Scripts\n\n| Script              | What it does               |\n| ------------------- | -------------------------- |\n| `npm run dev`       | Dev server on port 3010    |\n| `npm run build`     | Production build           |\n| `npm run start`     | Serve the production build |\n| `npm run lint`      | ESLint                     |\n| `npm run typecheck` | `tsc --noEmit`             |\n| `npm run format`    | Prettier write             |\n\n## Stack\n\nNext.js 16 (App Router), React 19, TypeScript, Tailwind v4. Upstash Redis backs\naccounts, carts and orders; Stripe test mode backs payment. Photography is from\nUnsplash and committed to `public/images` rather than hotlinked, so a QA run can\nnever fail on a third-party CDN. See `public/images/CREDITS.md`.\n\n## Build phases\n\n1. ~~Repo, scaffold, landing hero~~\n2. ~~Storefront: catalog, filtering, product detail, cart~~\n3. ~~Auth and checkout: accounts, delivery, Stripe, orders~~\n4. ~~QA affordances: defect registry, reset endpoint, seeded account~~\n5. Regression branches: one planted defect per PR\n\n## Testing against it\n\n**Seeded account.** `qa@matchaflowers.test` / `matcha-secret-1`. Signing up is\nworth testing on its own, but most tests are about something else and should\nnot have to create an account to get there.\n\n**Reset.** `npm run qa:reset` wipes accounts, baskets and orders and puts the\nseeded account back. Pass a URL to target a deployment:\n\n```bash\nnpm run qa:reset\nnpm run qa:reset -- https://matcha-flowers.vercel.app\n```\n\nIt is a `POST /api/qa/reset` guarded by `DEMO_RESET_TOKEN`. The token is\nrequired, never optional: the endpoint is destructive and ships to every\npreview, so an unset token fails closed.\n\n**What this deployment is.** `GET /api/qa/status` reports the payment provider,\ncommit and branch, so a result can be traced back to what produced it.\n\n## Planted regressions\n\n`main` is the control: correct, with no flags and no trace of the defects. A QA\nrun against it should find nothing.\n\nEach defect lives on its own branch as a real code change, one per pull\nrequest, so the preview deployment for that PR carries exactly one bug and the\ndiff an agent reports against is the actual cause. `docs/regressions.md` lists\nthe six, what the customer sees, where the change goes and how to reproduce it.\n\n## Payment providers\n\n`PAYMENT_PROVIDER` selects how the payment step behaves. It defaults to\n`stripe` when `STRIPE_SECRET_KEY` is set, and `mock` otherwise.\n\n- `stripe` renders real Stripe Elements. Card fields live in a cross-origin\n  iframe, which is the hardest surface in the app for a browser agent.\n- `mock` renders an in-app card form with the same accept and decline\n  behaviour: `4242 4242 4242 4242` succeeds, `4000 0000 0000 0002` is declined.\n\nPayment-focused tests should run against `stripe`. Tests that merely need to\nreach an order confirmation should run against `mock`, so a flake in the iframe\ncannot fail every one of them.\n\nNo webhook is involved. The PaymentIntent is created server-side from the\nserver's own recomputation of the basket, and verified by retrieving it on the\nconfirmation page, so each preview deployment needs no webhook registration.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohansemmanuel%2Fmatcha-flowers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohansemmanuel%2Fmatcha-flowers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohansemmanuel%2Fmatcha-flowers/lists"}