yamp deployment repo

This is the control plane and plugin marketplace for a self-hosted yamp instance — created from the yet-another-meal-planner-deployment-template. It holds your wrangler.jsonc, the deploy workflow, and the published plugin bundle — and nothing else: all data lives in Cloudflare, not in this repo — your authored corpus (recipes + guidance markdown) in an R2 bucket, all operational and per-member state plus the derived recipe index in D1, and ephemeral infra in KV, all read and written by the operator's yamp Worker. The one Actions secret it carries (CLOUDFLARE_API_TOKEN) stays encrypted — so this repo is public (which is what lets members add your marketplace without a GitHub account), and member management is the Worker's Cloudflare Access-gated /admin panel, so no invite code is ever printed into a CI log.
You do not fork the code repo. This repo is your control plane: the deploy workflow runs here as a thin caller of a reusable workflow in the public code repo — so the code repo holds no secrets and you take updates by ref. Full operator setup: docs/SELF_HOSTING.md.
Layout
This repo holds your Worker config, the thin deploy workflow, and the plugin marketplace your deploy publishes. Your authored markdown (recipes + guidance) lives in Cloudflare R2; everything operational lives in Cloudflare D1.
wrangler.jsonc # YOUR Worker config (operator-owned keys; merged onto the upstream source at deploy)
.github/workflows/deploy.yml # thin caller of the code repo's reusable deploy workflow
.claude-plugin/marketplace.json # your plugin marketplace manifest (-> ./plugin/yamp)
plugin/yamp/ # the GENERATED plugin bundle — published by the deploy, your URL baked in (do not hand-edit)
Everything else is in D1, not this repo. Each member's profile, pantry, meal plan, grocery list, cooking log, favorites/rejects, and notes — plus the shared corpus (aliases, SKU cache, stores, RSS feeds, the forwarded-newsletter discovery inbox) and the derived recipe index — all live in Cloudflare D1, isolated per tenant by a tenant column. There is no users/ subtree and no per-member TOML; per-tenant state is created in D1 on each member's first write. (Data-model details: docs/SCHEMAS.md.)
One-time setup
In Settings → Secrets and variables → Actions:
- Secret
CLOUDFLARE_API_TOKEN — a Cloudflare token with Workers + KV + D1 edit, used by the Deploy workflow. (D1 edit lets the deploy auto-provision the database and apply its schema migrations.)
- Secrets
KROGER_CLIENT_ID + KROGER_CLIENT_SECRET (optional) — the deploy sets them as Worker secrets when present.
- Variable
WORKER_HOST (e.g. yamp.cooking) — your connector host. The deploy bakes https://<WORKER_HOST>/mcp into your published plugin and stamps the README health badge. Set it before deploying — without it the deploy skips the plugin publish (you'd have no marketplace).
KV namespaces and the D1 database ship id-less and auto-provision on first deploy, pinning their ids back into wrangler.jsonc (the Deploy workflow has contents: write for this); the deploy also ensures the R2 corpus bucket. To enable the /admin panel, add a Cloudflare Access app on <your-worker-host>/admin and set ACCESS_TEAM_DOMAIN + ACCESS_AUD in wrangler.jsonc vars (non-secret identifiers). Also set ACCESS_ALLOWED_EMAILS as a Worker secret — not a committed var, since it's your email and this repo is public — for defense-in-depth (the Worker admits /admin only for a verified Access email on that list). See SELF_HOSTING steps 4–6.
This repo is public. Nothing here is secret: the CLOUDFLARE_API_TOKEN is an encrypted Actions secret (a visibility flip doesn't expose it), the wrangler.jsonc ids + ACCESS_AUD are non-secret identifiers, and recipes/member data live in R2/D1. Keep it that way — .wrangler/ is gitignored (it caches your Cloudflare account id + email; never commit it).
Deploy and Upgrade