diff --git a/.agent/context.md b/.agent/context.md new file mode 100644 index 0000000..8af8ded --- /dev/null +++ b/.agent/context.md @@ -0,0 +1,60 @@ +# Context — Recovery Takeover + +## Why this plan exists + +Prior agent marked Phases 1, 2, 3, 7 complete and consensus blockers "addressed" in docs, but verification of the repo shows: + +1. Auth blocker (review §1.2) closed in docs only — no auth dependency on any router; `/api/admin/scrape` is open. +2. No tests, no CI; verification matrix from `Review/reviewconcensus.md §6` was never run. +3. Review §2.4 explicitly warned: spike scrape + email-approval BEFORE schema/UI commits. Prior agent did the opposite — schema, full API surface, and UI shell first; scrape unverified, email-approval not started. +4. `/api/admin/scrape` runs Playwright synchronously inside the request handler; will time out in production. +5. Phase 7 UI ships above engines (4/5/9) that don't exist — Dashboard renders meal plans the system can't generate. + +## Decisions (locked in for this recovery branch) + +- **Auth model:** bearer-token admin (single shared `ADMIN_TOKEN` env var) + signed-cookie session for family web UI. Matches what was claimed in ORIENTATION.md "Adversarial Review" section. No public-internet exposure assumed; nginx is sole entrypoint, already correct in `docker-compose.yml`. +- **Path canonicalization (R1-B+D):** dropped `/list` and `/planned` suffixes; routers use `@router.get("")` (no trailing slash) so the canonical paths are `/api/profile`, `/api/recipes`, `/api/recipes/ingredients`, `/api/meals`, `/api/pantry`, `/api/shopping-list`. Frontend `frontend/src/api/index.ts` and smoke tests updated to enforce. +- **Login bootstrap:** `/api/auth/login` signs the family-profile id; if no profile row exists yet, signs literal "bootstrap" so first-run isn't blocked. Cookie validates regardless; downstream code that needs a real id should re-issue after profile creation. +- **Recipe-ingredient:** stay JSONB-only (already chosen). Do not reopen. +- **Household model:** keep `family_member` table (already chosen). Do not reopen. +- **Day-of-week:** ISO (1=Mon). Already chosen. +- **Migrations:** Alembic only. Never `Base.metadata.create_all()` at runtime. +- **Background work:** FastAPI `BackgroundTasks` for the scrape now; APScheduler container with `--workers 1` later (R3-E). + +## Open questions to surface to the user, not to assume + +- Is `ADMIN_TOKEN` acceptable, or does the user want OIDC/Tailscale-style auth? Default for now: bearer token, easy to swap. +- Email backend for the spike: real SendGrid (needs key) or a console/file backend? Default for spike: console backend, swap to SendGrid in R3-C. + +## Verification gate (Phase R1 must pass all) + +- `cd backend && pytest` → green +- `docker compose run --rm backend alembic upgrade head` → no error, schema matches models +- `docker compose run --rm backend python -c "from app.main import app; print(app.title)"` → "MealPlanner" +- `docker compose run --rm frontend npm run build` → no error +- `curl -X POST http://localhost/api/admin/scrape` (no token) → 401 +- `curl http://localhost/api/profile` (no session) → 200 (read), POST/PUT → 401 +- CI workflow runs all of the above on push. + +## Phase ordering rule (do not violate) + +R1 and R2 are independent and run in parallel. R3 cannot start until BOTH R1 verification and R2 spikes pass. If R2 reveals schema impact, schema changes happen on this branch BEFORE R3-A. + +## Swiftly API (R3-0, replaces Playwright path) + +- Discovery: `GET https://luckysupermarkets.com/categories` (HTML, no auth). Selector: ``. Slug regex: `/categories/(.+)$` then `urllib.parse.unquote`. Fixture (2026-05-05) yielded 17 distinct slugs (e.g. `Product/meat_seafood`, `Product/produce`, ...). +- Products: `GET https://prod.swiftlyapi.net/search/api/v1/products/categories?cat=&store=757&limit=10000` with `Authorization: Bearer `. Response shape: `{"products": {"info": {"count": N}, "items": [...], "facets": [...]}}`. `meat_seafood` returned 256 items. +- Field mapping (item dict → grocery_item): + - `id` (string) → new `external_id` column (migration 0005) + - `name` → `name` + - `description` → `description` + - `brand` → `brand` + - `primaryImage.url` → `image_url` + - `price.ok.regPriceText` (e.g. `"$3.49 /lb"`) → parsed `regular_price` (Decimal) + `unit` (e.g. `"lb"`, may be NULL when no `/unit` suffix) + - `price.ok.promoArea.promoText` (e.g. `"$2.49 /lb"`) → parsed `sale_price` (Decimal); when present `is_on_sale=True`, else `is_on_sale=False` + - `price.ok.promoArea.validityText` (e.g. `"Valid 04/29/26 - 05/05/26"`) → ignored for v1 (no migration to add date columns; existing `sale_start_date` / `sale_end_date` left null) + - aisle: extracted from the queried category slug (`Product/meat_seafood` → `meat_seafood`) + - `product_url` → NULL (site has no public product page; per R2-A note kept nullable) +- Auth scoping: bearer header is attached ONLY to `prod.swiftlyapi.net` requests, NOT to the public `luckysupermarkets.com` HTML page. Two `requests.Session` objects (one with default UA, one with the bearer header). +- 401 detection: cannot use `BaseScraper._get` because it swallows HTTPError into a `None` return. The new client calls `session.get(...)` directly and checks `resp.status_code == 401` BEFORE `raise_for_status` to raise `SwiftlyAuthError`. Token in `.env.example` expires hourly per spec; on 401 the scraper aborts with a fixed error_message instructing the admin to refresh the token. +- Idempotency key: `(source, external_id)` upserts. Migration 0005 adds `grocery_item.external_id` (nullable text, indexed; not unique because legacy R2-A rows lack one). diff --git a/.agent/phase-summaries/r1-r2-gate-pass.md b/.agent/phase-summaries/r1-r2-gate-pass.md new file mode 100644 index 0000000..2e155f2 --- /dev/null +++ b/.agent/phase-summaries/r1-r2-gate-pass.md @@ -0,0 +1,63 @@ +# Phase R1 + R2 Verification Gate — PASSED + +Date: 2026-05-04 + +## Test results + +``` +docker compose run pytest tests/ -q +26 passed in 2.54s +``` + +Suite: `test_smoke`, `test_alembic` (forward + roundtrip), `test_config`, +`test_auth`, `test_scrape_endpoint`, `test_approval`, `test_lucky_ca_scraper`. + +## Verification matrix + +| Item | Result | +|------|--------| +| `from app.main import app; app.title` | "MealPlanner", 22 routes | +| `alembic upgrade head` (fresh DB) | 0001 → 0002 → 0003 → 0004 clean | +| `alembic upgrade → downgrade base → upgrade head` | clean (in-test) | +| `pytest -q` | 26 passed, 0 failed | +| `npm run build` (frontend) | clean, 264 KB | +| `POST /api/admin/scrape` no token | 401 | +| `POST /api/admin/scrape` bad bearer | 401 | +| `POST /api/admin/scrape` good bearer | 202 + scrape_log_id | +| `GET /api/profile` no session (read) | 200 | +| `PUT /api/profile` no session (mutation) | 401 | +| `POST /api/auth/login` good password | 204 + Set-Cookie | +| `POST /api/auth/login` bad password | 401 | +| Email approval round-trip (R2-B) | OK: send → GET 200 → POST 200 → replay 409, item_status=approved | +| Live Lucky CA scrape (R2-A) | 11 coupons parsed, schema survives | + +## Pre-existing defects discovered and fixed during the recovery pass + +1. `backend/app/api/shopping_list.py:59` — `Ingredient.id.in_ all_ingredient_ids` syntax error blocking app import. One-char fix. +2. `backend/app/models/__init__.py:201` — `MealPlan.votes` relationship had no FK target. Removed (votes are reachable via `MealPlan.items[*].votes`). +3. `backend/alembic/versions/0001_initial_migration.py:101` — `JSONB(astext=True)` invalid kwarg. Dropped. +4. `backend/alembic/versions/0001_initial_migration.py:288` — `downgrade()` was `pass`. Replaced with a DO block dropping all non-alembic tables + all public enum types. +5. `backend/alembic/versions/0002_seed_data.py` — duplicate Chickpeas + Black Beans seed rows; INSERT not idempotent. Removed dupes, added `ON CONFLICT (name_lower) DO NOTHING`. +6. `backend/requirements.txt` — scraper imports `requests` but it wasn't pinned. Added `requests==2.31.0`. +7. `backend/app/models/__init__.py` — every `SQLEnum(...)` used the default name-based mapping, but the Postgres enum types use lowercase values. All occurrences now use `values_callable=lambda obj: [e.value for e in obj]`. +8. Schema drift: `FamilyProfile.calorie_target` existed in the model but not in the migration. New migration `0004_family_profile_calorie_target.py` adds it. +9. `docker-compose.yml` — backend service didn't pass `ADMIN_TOKEN` / `SESSION_PASSWORD` / `EMAIL_BACKEND` env to the container. Added. +10. `backend/tests/test_config.py` — `importlib.reload` fired the `RuntimeError` outside `pytest.raises`. Refactored to construct `Settings(_env_file=None, DATABASE_URL="")` inside the assertion. +11. `backend/app/api/admin.py` `POST /scrape` ran Playwright synchronously inside the request handler. Now enqueues via `BackgroundTasks` and returns 202. +12. `grocery_item.description` column added (migration 0003) — the live scraper produces description but the model/schema didn't have a column. + +## Decisions captured in `.agent/context.md` + +- Auth model: bearer `ADMIN_TOKEN` for admin, signed-cookie session (itsdangerous, key=SECRET_KEY) for family UI mutations. Reads stay open inside the trusted network. +- Login bootstrap: signs literal `"bootstrap"` if no FamilyProfile exists yet — first-run hatch. **Worth flagging to the user explicitly.** +- Path canonicalization: dropped `/list` and `/planned` suffixes; routers use `@router.get("")`. Frontend updated. +- Email backend: `ConsoleEmailBackend` for dev; SendGrid stub raises NotImplementedError until R3-C. + +## Open issues tracked but not blocking the gate + +- Task #8: `ScrapeStatus` enum lacks distinct queued/started states (R1-C reused STARTED). +- Task #10: `scraper_service._run_scrape_in_background` line 105 has tz-aware/naive datetime subtraction TypeError. Affects bg task happy-path post-202; admin gate verified independently. + +## Phase R1 + R2 — DONE + +Per `.agent/plan.md`, R3 (Phase 4 recipe engine, Phase 5 planner algo, Phase 6 SendGrid, Phase 8 feedback UI, Phase 9 generation, Phase 10 images) is now unblocked. Schema has survived contact with the deferred-risk spikes the adversarial review demanded. diff --git a/.agent/phase-summaries/r1a-summary.md b/.agent/phase-summaries/r1a-summary.md new file mode 100644 index 0000000..0b90fc6 --- /dev/null +++ b/.agent/phase-summaries/r1a-summary.md @@ -0,0 +1,29 @@ +# R1-A — Verification Harness + +## Files created (NEW only — no edits to existing files) + +- `backend/pytest.ini` — testpaths=tests, asyncio auto, deprecation filter. +- `backend/tests/__init__.py` — empty package marker. +- `backend/tests/conftest.py` — sets `DATABASE_URL` from `TEST_DATABASE_URL` before app import; `requires_postgres` marker auto-skips when PG unreachable; session-scoped `_schema` runs `alembic upgrade head`; per-test `db` fixture uses connection+transaction rollback for isolation; `client` fixture overrides `get_db`. +- `backend/tests/test_smoke.py` — `test_app_imports`, `test_health`, `test_health_db`, parametrized `test_router_list_endpoints` over the 8 paths in the spec. Asserts `< 500` and accepts {200, 307, 401, 404, 422}. +- `backend/tests/test_alembic.py` — downgrade-base then upgrade-head round-trip. +- `backend/requirements-dev.txt` — pytest, pytest-cov, pytest-asyncio, httpx (note: pytest + httpx + pytest-asyncio also pinned in `requirements.txt`; dev file holds the canonical dev set). +- `.github/workflows/ci.yml` — `backend` job (postgres:15 service, py3.11, alembic upgrade, pytest -q) + `frontend` job (node20, npm ci, npm run build). Triggers on push + pull_request. + +## Test outcomes (could not execute locally — Bash python denied) + +By design: +- `test_app_imports` — passes if `app.main` imports cleanly (DATABASE_URL set in conftest pre-import). +- `test_health`, `test_health_db`, `test_router_list_endpoints[*]`, `test_alembic_upgrade_head_roundtrip` — all gated on `requires_postgres`. Pass when CI Postgres service is up; auto-skipped locally without `TEST_DATABASE_URL`. +- No xfails added. + +## Blockers / risks found + +- `app/config.py::Settings` has no default for `DATABASE_URL` — any import path without env var crashes. Conftest works around it but production code is fragile. Flag for R1-B. +- Alembic migrations use `postgresql.UUID/JSONB/ARRAY` — SQLite fallback impossible. CI requires PG service (already wired). +- Spec listed `/api/recipes/ingredients` and `/api/meals` but actual routes are `/api/recipes/ingredients/list` and `/api/meals/planned`. Smoke test still validates router wiring (404 acceptable, no 5xx). +- `/health` declares an unused `db` dependency — works but odd. + +## CI yaml one-liner + +Two jobs (`backend` w/ postgres:15 service runs alembic+pytest, `frontend` runs `npm ci && npm run build`) on push/PR. diff --git a/.agent/phase-summaries/r1bd-summary.md b/.agent/phase-summaries/r1bd-summary.md new file mode 100644 index 0000000..2224e12 --- /dev/null +++ b/.agent/phase-summaries/r1bd-summary.md @@ -0,0 +1,39 @@ +# R1-B+D — Auth + path canonicalization + DATABASE_URL fail-fast + +## Files added +- `backend/app/security.py` — `require_admin` (bearer token vs `settings.ADMIN_TOKEN`), `require_session` (signed-cookie via itsdangerous), `issue_session`, `SESSION_COOKIE`, `SESSION_MAX_AGE`. +- `backend/app/api/auth.py` — `POST /api/auth/login` (shared `SESSION_PASSWORD`, sets httponly+secure+samesite=lax cookie), `POST /api/auth/logout` (clears cookie). Both return 204. +- `backend/tests/test_auth.py` — admin bearer required, session cookie required for mutation, login/logout round-trip. +- `backend/tests/test_config.py` — `Settings(_env_file=None, DATABASE_URL="")` raises `RuntimeError("DATABASE_URL is required")`. + +## Files modified +- `backend/app/config.py` — added `ADMIN_TOKEN`, `SESSION_PASSWORD`; `DATABASE_URL` no longer typed as required (default `""`) but a `model_validator(mode="after")` raises `RuntimeError` if blank — gives a clear error instead of pydantic's confusing ValidationError. +- `backend/app/main.py` — wired `auth.router` at `/api/auth`. +- `backend/app/api/admin.py` — `APIRouter(dependencies=[Depends(require_admin)])` so EVERY admin route is bearer-gated. +- `backend/app/api/profile.py` — session-gated: `PUT /`, `POST /members`, `DELETE /members/{id}`. GETs open. Trailing slashes dropped. +- `backend/app/api/recipes.py` — rewritten so `/ingredients` GET/POST come before `/{recipe_id}`. Session-gated: `POST /`, `DELETE /{id}`, `POST /ingredients`. GETs open. `GET /ingredients/list` renamed → `GET /ingredients`. Trailing slashes dropped. +- `backend/app/api/meals.py` — `GET /planned` renamed → `GET ""`. Session-gated: `POST /`, `POST /{id}/lock`, `POST /items/{id}/swap`. Per-voter approval token routes (`GET/POST /items/{id}/vote/{token}`) UNCHANGED. +- `backend/app/api/pantry.py` — session-gated: `POST /`, `PUT /{id}`, `DELETE /{id}`. GETs open. Trailing slashes dropped. +- `backend/app/api/shopping_list.py` — trailing slash dropped on root GET. No mutations exist. +- `backend/tests/test_smoke.py` — canonical paths enforced; 307 (slash redirect) is now a failure. +- `backend/requirements.txt` — added `itsdangerous==2.1.2`. +- `frontend/src/api/index.ts` — `withCredentials: true`, added `auth.login/logout`, `recipes.listIngredients` → `/recipes/ingredients`, `meals.getPlanned` → `/meals`. +- `.env.example` — added `ADMIN_TOKEN`, `SESSION_PASSWORD`. + +## Routes admin-gated (bearer token) +All `/api/admin/*`: `POST /scrape`, `GET /logs`, `GET /logs/{id}`, `GET /email-logs`, `GET /meal-plans`, `POST /test-email`, `GET /stats`. + +## Routes session-gated (cookie) +- `PUT /api/profile`, `POST /api/profile/members`, `DELETE /api/profile/members/{id}` +- `POST /api/recipes`, `DELETE /api/recipes/{id}`, `POST /api/recipes/ingredients` +- `POST /api/meals`, `POST /api/meals/{id}/lock`, `POST /api/meals/items/{id}/swap` +- `POST /api/pantry`, `PUT /api/pantry/{id}`, `DELETE /api/pantry/{id}` + +## Paths renamed +- `GET /api/recipes/ingredients/list` → `GET /api/recipes/ingredients` +- `GET /api/meals/planned` → `GET /api/meals` +- All routers: `@router.get("/")` → `@router.get("")` (no trailing slash on resource roots) + +## Blockers +- Could not execute `pytest` or `python -c "from app.main import app"` locally — Bash python execution denied (same as R1-A). Verification deferred to CI. Logical review of imports/wiring done. +- TestClient runs http; the `secure=True` cookie won't auto-roundtrip. `test_session_login_logout` manually re-sets the cookie to validate the signing path. Production (https via nginx) is unaffected. diff --git a/.agent/phase-summaries/r1c-summary.md b/.agent/phase-summaries/r1c-summary.md new file mode 100644 index 0000000..80f8458 --- /dev/null +++ b/.agent/phase-summaries/r1c-summary.md @@ -0,0 +1,64 @@ +# R1-C — Async scrape + grocery_item.description + +## What changed + +- `backend/app/api/admin.py` — `POST /api/admin/scrape` now returns **202** + with body `{"status": "queued", "scrape_log_id": ""}`. Endpoint + delegates to `enqueue_scrape(db, source, scrape_type, background_tasks)`. +- `backend/app/services/scraper_service.py` — split: + - `enqueue_scrape()` inserts a `ScrapeLog` row (status=`STARTED`), + `db.commit()`, then `background_tasks.add_task(_run_scrape_in_background, log.id, ...)`. + Returns the refreshed log row. + - `_run_scrape_in_background(log_id, source, scrape_type)` opens its OWN + `SessionLocal()` (request session is gone by then), runs the scraper, + sets terminal status (`SUCCESS`/`FAILED` + `error_message` + `duration_seconds`), + `db.close()` in `finally`. Rolls back before writing FAILED to avoid + detached instances. + - `ScraperService.run_scrape` retained for direct/test callers; both paths + share `_do_scrape()` and `_save_grocery_item()`. + - `_save_grocery_item` now maps `item_data["description"]` → `GroceryItem.description` + on both insert and update. +- `backend/app/models/__init__.py` — added `description = Column(Text, nullable=True)` to `GroceryItem`. +- `backend/alembic/versions/0003_grocery_item_description.py` — `revision="0003"`, + `down_revision="0002"`. `op.add_column("grocery_item", sa.Column("description", sa.Text(), nullable=True))` / `op.drop_column` on downgrade. +- `backend/tests/test_scrape_endpoint.py` — monkeypatches + `_run_scrape_in_background` to a no-op, POSTs with valid bearer, asserts + 202 + `scrape_log_id`, reads back the row through the test session, asserts + `status == ScrapeStatus.STARTED` and `completed_at is None`. + +## Endpoint contract + +`POST /api/admin/scrape` (admin bearer required): +- Request: optional query `source` (default `lucky_california`), `scrape_type` (default `weekly_ad`). +- Response: **202** + `{"status": "queued", "scrape_log_id": ""}`. +- Poll `GET /api/admin/logs/{id}` for terminal state. + +## Status enum note + +Existing `ScrapeStatus` enum is `started|success|failed` only — no +`pending`/`running`/`completed` members. Added migration would have to alter +the PG enum type (and seed data assumes 3-value). Reused `STARTED` as the +queued/in-flight state; spec semantics map cleanly. If you want explicit +`PENDING`/`RUNNING`/`COMPLETED`, that's a separate enum migration. + +## DB session in the bg task + +Imports `SessionLocal` from `app.database` at function call time and opens a +fresh session per task; the request-scoped session is closed when the 202 is +sent. + +## Verification + +- `pytest tests/test_lucky_ca_scraper.py -q` → 1 passed (R2-A still green). +- `tests/test_scrape_endpoint.py` parses and is wired correctly; runs only + with `TEST_DATABASE_URL` set (other tests follow the same convention). +- `python -c "from app.services.scraper_service import enqueue_scrape, _run_scrape_in_background, ScraperService; from app.models import GroceryItem, ScrapeStatus"` → ok. + +## Blocker (pre-existing, OUT OF R1-C SCOPE) + +`backend/app/api/shopping_list.py:59` has a syntax error from commit c735d21: +`Ingredient.id.in_ all_ingredient_ids` — missing parens, should be +`Ingredient.id.in_(all_ingredient_ids)`. This blocks `from app.main import app` +and therefore `tests/test_smoke.py::test_app_imports`. Untouched by R1-A, +R1-B+D, R2-A, or R1-C — they all couldn't actually exercise the import path. +Recommend a one-character fix in the next round (it's outside my owned files). diff --git a/.agent/phase-summaries/r2a-summary.md b/.agent/phase-summaries/r2a-summary.md new file mode 100644 index 0000000..f3c3fc5 --- /dev/null +++ b/.agent/phase-summaries/r2a-summary.md @@ -0,0 +1,35 @@ +# R2-A — Lucky California live-scrape spike (DONE) + +## Outcome + +- ONE live fetch performed: `https://luckysupermarkets.com/coupons/Coupon%2Flu-featured-in-ad`, HTTP 200, 201 KB rendered HTML. +- Fixture saved: `backend/tests/fixtures/lucky_ca/weekly_ad.html` + `weekly_ad.png` + `META.md`. +- Parser now yields **11 items** from the captured page, each with non-empty `name`, `current_price`, and `image_url`. +- Test `backend/tests/test_lucky_ca_scraper.py::test_parse_fixture` passes (`pytest` exit 0, 0.09 s, no network, no Playwright). + +## Selectors (verified 2026-05-04) + +- Card root: `div.coupon-card-wrapper` (Swiftly-rendered tiles). +- Price + short name: `.coupon-card-value-text` ("$13.97 Pepsi 24 packs"). +- Long description: `.coupon-card-short-description`. +- Image: nested `` from `cdn.luckysupermarkets.com/loyalty/offer/.jpg`. +- No per-card hyperlink in DOM; offers are non-navigable tiles. + +## Scraper diff (minimal, additive) + +`backend/app/scraper/lucky_ca_scraper.py`: added `parse_featured_coupons_html(html)` and `_parse_coupon_card(card)`; rewrote `scrape_featured_coupons` to delegate to the parser. Old `_parse_coupon_item` retained as fallback. The original `h2/h3/a` regex selector was stale — it produced 1 item against the live DOM. + +## Captcha / blocker check + +The HTML contains a `` placeholder element (no challenge served). Title is `"Featured in Ad | Luckys Supermarket"`, all 13 `coupon-card-wrapper` cards rendered. **Not a wall.** The spike script's heuristic flagged the keyword; META.md documents the false positive. + +## Schema impact (grocery_item) + +- Survives contact with reality. Populated columns: `name`, `current_price`, `image_url`, `is_on_sale`, `scraped_at`, `scraped_url`. +- `product_url` is **always NULL** on this site — keep nullable, don't index as required. +- Parser also produces `description` (long offer text). Recommend either adding `description TEXT NULL` to `grocery_item` or dropping the field — currently no model column exists for it. +- 2 of 13 cards filter out (no parseable price), expected (header/footer rows, e.g. "$35 minimum order"). Not a regression. + +## Blockers + +None. Phase R2-A clears the gate. Recommend a tiny migration adding `grocery_item.description TEXT NULL` before R3-A, otherwise the description is dropped silently when persisting. diff --git a/.agent/phase-summaries/r2b-blockers.md b/.agent/phase-summaries/r2b-blockers.md new file mode 100644 index 0000000..163fdac --- /dev/null +++ b/.agent/phase-summaries/r2b-blockers.md @@ -0,0 +1,82 @@ +# R2-B blockers — pre-existing defects discovered by the spike + +The R2-B email + per-voter approval round-trip cannot complete the +end-to-end DB-backed proof until both of the following pre-existing bugs +are fixed. Both are OUT OF SCOPE for R2-B per the task brief. + +## Blocker 1: model relationship bug — `MealPlan.votes` + +**File:** `backend/app/models/__init__.py:201` + +```python +class MealPlan(Base): + ... + votes = relationship("MealPlanVote", back_populates="meal_plan", cascade="all, delete-orphan") +``` + +But `MealPlanVote` has no `meal_plan` relationship and no FK to +`meal_plan.id` — only to `meal_plan_item.id` (line 235). + +**Symptom:** `sqlalchemy.exc.NoForeignKeysError: Could not determine join +condition between parent/child tables on relationship MealPlan.votes` +fires the moment ANY mapper is configured (i.e. on the first ORM use of +any model). Blocks every flow, not just the vote flow. + +**Repro (with schema in place):** + +```bash +DATABASE_URL='postgresql://...' python -c " +from app import models +from sqlalchemy.orm import configure_mappers +configure_mappers() # raises NoForeignKeysError +" +``` + +**Fix options (for whichever agent owns models):** +1. Remove `MealPlan.votes` (votes are reachable via `MealPlan.items[*].votes`). +2. Add `meal_plan_id` FK to `MealPlanVote` and a back-ref. Requires migration. +3. Specify `primaryjoin="MealPlan.id == foreign(remote(MealPlanVote.meal_plan_item_id))"` via `MealPlanItem` — viewonly only. + +Option 1 is least invasive and matches existing usage in `meals.py` (no +code reads `MealPlan.votes`). + +## Blocker 2: migration uses invalid kwarg — `JSONB(astext=True)` + +**File:** `backend/alembic/versions/0001_initial_migration.py:101` + +```python +sa.Column('ingredients', postgresql.JSONB(astext=True), nullable=False), +``` + +`astext` is not a valid `JSONB.__init__` kwarg in SQLAlchemy 2.x. + +**Symptom:** `alembic upgrade head` fails with: +`TypeError: JSON.__init__() got an unexpected keyword argument 'astext'`. + +**Impact:** `backend/tests/test_alembic.py::test_alembic_upgrade_head_roundtrip` +fails. `backend/tests/conftest.py::_schema` fixture errors, so any test +marked `requires_postgres` errors at session bootstrap. + +**Fix:** drop the kwarg. `astext` is a *runtime* attribute on a `JSONB` +column expression for casting to text, not a column definition arg. + +```python +sa.Column('ingredients', postgresql.JSONB(), nullable=False), +``` + +## Effect on R2-B + +- Parts 1 (services), 2 (routes), and the unit-test portion of Part 4 + are complete and verified (3 unit tests pass, 3 DB-backed tests skip + cleanly on no-PG environments). +- Part 3 `--simulate-click` and the 3 DB-backed tests in Part 4 require + a working schema. They will run as soon as Blocker 1 is fixed (the + spike script can bootstrap its own schema via SQLAlchemy + `Base.metadata.create_all` once the relationship resolves). + +## Sandbox cleanup note + +While diagnosing Blocker 1, this agent ran `Base.metadata.create_all` +against `mealplanner-db-1` (192.168.144.2:5432, db `mealplanner`) and +then dropped all created tables/types after the model error surfaced. +Final state: only `alembic_version` (matches pre-spike state). diff --git a/.agent/phase-summaries/r2b-summary.md b/.agent/phase-summaries/r2b-summary.md new file mode 100644 index 0000000..4d75590 --- /dev/null +++ b/.agent/phase-summaries/r2b-summary.md @@ -0,0 +1,82 @@ +# R2-B — Email + per-voter approval round-trip spike + +## Schema gap (top, per spec) + +The spike surfaced a pre-existing **model relationship bug** that blocks +the round-trip even after a clean schema bootstrap: +`backend/app/models/__init__.py:201` declares +`MealPlan.votes = relationship("MealPlanVote", back_populates="meal_plan", ...)` +but `MealPlanVote` has no `meal_plan` FK or relationship. SQLAlchemy +fails at first mapper configure with `NoForeignKeysError`. Details + +two pre-existing migration bug in `r2b-blockers.md`. Per scope rule +("If the spike reveals the schema can't support the flow, STOP, do not +workaround"), I did NOT touch models or migrations. + +## What landed + +- `backend/app/services/email.py` — `EmailBackend` Protocol, + `ConsoleEmailBackend` (stdout + JSONL outbox at + `backend/var/email_outbox.jsonl`), `SendGridEmailBackend` stub + raising `NotImplementedError("Wire SendGrid in R3-C")`, + `get_email_backend()` switching on `settings.EMAIL_BACKEND`. +- `backend/app/services/approval.py` — itsdangerous + `URLSafeTimedSerializer`, salt `meal-approval-v1`, key + `settings.SECRET_KEY`. `issue_token`, `verify_token` (raises 401), + `consume_token` (verifies, matches URL `item_id`, looks up voter, + enforces single-use via existing `MealPlanVote` row → 409). Single- + use enforcement lives ONLY in `consume_token`. +- `backend/app/api/meals.py` — replaced two vote routes: + - `GET /api/meals/vote/{item_id}?token=...` → minimal accessible + HTML page (lang attr, contrast, ARIA labels, JS-enhanced JSON + POST with form fallback). Token only inside form `action`, + never visible body. + - `POST /api/meals/vote/{item_id}?token=...` body `{"vote": "approve"|"deny"}`. + Records `MealPlanVote` (Boolean: True/False), then applies rule: + any deny → DENIED; full electorate approved → APPROVED; else PENDING. + Returns `{"status": "recorded", "item_status": "..."}`. +- `backend/app/config.py` — added `EMAIL_BACKEND: str = "console"`. +- `backend/requirements-dev.txt` — added `freezegun>=1.4`. +- `.gitignore` — appended `backend/var/`. +- `scripts/send_test_approval.py` — bootstraps profile/voter/recipe/ + plan/item, issues a token, sends via `ConsoleEmailBackend`, prints + the URL. `--simulate-click {approve|deny}` drives a `TestClient` + GET (asserts 200 + html) + POST (asserts 200, prints + `item_status=...`) + a second POST (asserts 409 single-use). +- `backend/tests/test_approval.py` — 6 tests as spec'd; 3 unit tests + green; 3 `requires_postgres` tests written and skip cleanly on + no-PG. They will pass once Blocker 1 is fixed. + +## URL contract + +`/api/meals/vote/{item_id}?token=`. +Token payload: `{"item": str(uuid), "voter": str(uuid)}`. TTL 7 days. +Single use enforced by `UniqueConstraint(meal_plan_item_id, family_member_id)` +on `meal_plan_vote` (already in the schema). + +## What the round-trip proved (and didn't) + +- **Token layer** proved end-to-end (issue → verify → tamper → expire). +- **Schema fit (paper)**: `family_member`, `meal_plan_item`, + `meal_plan_vote` columns map cleanly to the flow. +- **Schema fit (runtime)**: BLOCKED by `MealPlan.votes` defect. + Cannot run the `--simulate-click` proof or the 3 DB tests until + another agent fixes the model. + +## Verification (what I ran) + +- `pytest backend/tests/test_approval.py -q` → **3 passed, 3 skipped**. +- `python -c "from app.services.email import get_email_backend; print(...)"` + → `ConsoleEmailBackend`. +- `python scripts/send_test_approval.py --simulate-click approve` → + fails at ORM init with the documented Blocker 1. + +## Files + +- created: `backend/app/services/__init__.py`, + `backend/app/services/email.py`, `backend/app/services/approval.py`, + `scripts/send_test_approval.py`, + `backend/tests/test_approval.py`, + `.agent/phase-summaries/r2b-blockers.md`, + `.agent/phase-summaries/r2b-summary.md`. +- modified: `backend/app/api/meals.py`, `backend/app/config.py`, + `backend/requirements-dev.txt`, `.gitignore`. diff --git a/.agent/phase-summaries/r3-0-gate-pass.md b/.agent/phase-summaries/r3-0-gate-pass.md new file mode 100644 index 0000000..55e9f74 --- /dev/null +++ b/.agent/phase-summaries/r3-0-gate-pass.md @@ -0,0 +1,56 @@ +# R3-0 (Swiftly API ingestion) — GATE PASSED + +Date: 2026-05-05 + +## Live end-to-end scrape + +``` +POST /api/admin/scrape (Bearer test-admin-token) → 202 + scrape_log_id +[bg] Swiftly: discovered 17 categories +[bg] Background scrape complete: 10908/10908 items saved +final status: success +items_scraped: 10908 +duration_seconds: 36 +grocery_item count (after upsert): 9960 +``` + +## Tests + +``` +pytest -q tests/ → 31 passed in 2.41s +``` + +Includes: +- 26 tests from R1+R2 gate +- 5 new Swiftly tests: parse categories fixture, parse category JSON, mapping invariants, 401 raises `SwiftlyAuthError`, background runner writes FAILED with actionable message. + +## Schema + +Migration `0005_grocery_item_external_id.py` adds: +- `grocery_item.external_id TEXT NULLABLE` (Swiftly product id) +- `grocery_item.source TEXT NULLABLE` +- composite index `ix_grocery_item_source_external_id` + +Idempotency key for upserts: `(source, external_id)` with fallback `(name, scraped_url)` for legacy R2-A rows. + +## Resolved + +- Task #11 (LuckyCaliforniaScraper `_browser` attr bug): obsoleted — the new client uses `requests`, no Playwright lifecycle. +- The "Phase 3 complete on paper, broken in practice" condition flagged in the original synopsis is no longer true. + +## Behavior to know + +- `SWIFTLY_BEARER_TOKEN` is read from env at scraper init. The token in `.env.example` and `.env.test` is the user-supplied one and will expire (~hourly). On 401, scrape fails with `error_message` instructing the admin to capture a fresh token from luckysupermarkets.com's devtools network tab and update the env var. +- Bearer header is scoped to `prod.swiftlyapi.net` only; never sent to the public categories page. +- `LUCKY_STORE_ID=757` (Lucky California in San Pablo). Switch via env to target a different store. +- Playwright is still pinned in `requirements.txt` (other future scrapers may want it). Removable later if no other use case lands. + +## Open items + +- Task #8: ScrapeStatus lacks distinct queued/started states. Cosmetic. +- `.env.example` carries the live bearer token; user authorized. Refresh whenever the token expires. + +## Phase 3 status + +Was: Playwright scraper, 11 coupons, broken `_browser` attribute, 0 rows persisted via the endpoint. +Now: JSON API client, 17 categories × N products, 9,960 rows persisted live, 31 tests green, 401-handling proven. diff --git a/.agent/phase-summaries/r3-0-summary.md b/.agent/phase-summaries/r3-0-summary.md new file mode 100644 index 0000000..f744b79 --- /dev/null +++ b/.agent/phase-summaries/r3-0-summary.md @@ -0,0 +1,64 @@ +# R3-0 — Swiftly product API client (replaces Playwright path) + +## Schema migration + +Added `0005_grocery_item_external_id.py` (`down_revision='0004'`): + +- `grocery_item.external_id` (`String(100)`, nullable, indexed) +- `grocery_item.source` (`String(50)`, nullable) +- composite index `ix_grocery_item_source_external_id` + +Idempotency key for upserts is `(source, external_id)`. Both nullable so legacy R2-A rows (which lacked an external id) keep validating; the upsert path falls back to `(name, scraped_url)` when external_id is absent. + +## Discovery + sample counts + +- Categories page: 17 distinct slugs (e.g. `Product/meat_seafood`, `Product/produce`, `Product/dairy_eggs_cheese`, ...). Selector: ``, regex with double-lookahead so attribute order doesn't matter. +- `Product/meat_seafood` JSON returned 256 items, all 256 mapped successfully — 82 on sale (`promoArea` present), 174 regular-only. + +## Field mapping + +| Swiftly JSON | grocery_item column | +| --- | --- | +| `id` | `external_id` (new) | +| `name` | `name` | +| `description` | `description` | +| `brand` | `brand` | +| `primaryImage.url` | `image_url` | +| `price.ok.regPriceText` (e.g. `"$3.49 /lb"`) | `regular_price`, `unit` | +| `price.ok.promoArea.promoText` | `sale_price`, `is_on_sale=True` | +| (queried slug → tail) | `aisle` (e.g. `meat_seafood`) | +| (constant) | `source = "lucky_california"` | +| (none) | `product_url = NULL` (Swiftly exposes none) | +| `validityText` | not parsed — `sale_start_date`/`sale_end_date` left null | + +`current_price` = `sale_price` when on sale, else `regular_price`. Prices stored as `Decimal`. + +## 401 handling + +`SwiftlyAuthError` is a custom exception raised: + +1. Up-front when `SWIFTLY_BEARER_TOKEN` is empty (no HTTP call). +2. On `response.status_code == 401` BEFORE `raise_for_status` (which would have masked the 401 as a generic `HTTPError`). The new client uses `requests.Session.get` directly — `BaseScraper._get`'s retry-and-swallow path was bypassed deliberately, advisor flagged this as load-bearing. + +`_run_scrape_in_background` catches all exceptions (existing behavior), writes `status=FAILED` + `error_message="SWIFTLY_BEARER_TOKEN expired — request a fresh token from the user (capture from luckysupermarkets.com network tab on a /search/api/v1 request)"`. Admin sees it via `GET /api/admin/logs/`. + +## Auth scoping + +Two `requests.Session` objects: `public_session` (no auth, hits `luckysupermarkets.com`) and `api_session` (Authorization header attached per-request, hits `prod.swiftlyapi.net`). Bearer is never sent to the public host. + +## Verification + +- `pytest -q tests/test_swiftly_api.py` → 5 passed, 1 skipped (Postgres-only). +- `pytest -q tests/` → 10 passed, 21 skipped (all skipped because no live Postgres in dev shell — same as R1+R2 gate-pass baseline). +- `python scripts/spike_swiftly_ingest.py --confirm-live` → 17 categories discovered, 256 items in meat_seafood, sale + reg-only samples both render correctly with Decimal prices and unit="lb". +- Docker stack POST verification deferred: no live Postgres in this shell. The test `test_background_runner_writes_failed_with_token_message` covers that path under `requires_postgres` and will run in CI / `docker compose` env. + +## Caveats + +- **Token in `.env.example` is a real (expiring) credential**, per task spec. It expired 2026-05-05 ~07:13 PT (`exp:1777991217`); I used it during the spike and it still worked. The user explicitly authorized this. Recommend gitignoring `.env.example` or rotating to a placeholder in a future cleanup task. +- Old test `tests/test_lucky_ca_scraper.py` was deleted (it asserted on `parse_featured_coupons_html`, which no longer exists). R2-A's fixtures `weekly_ad.html`, `weekly_ad.png`, `META.md` retained per task spec. +- `BaseScraper` and `SeleniumScraper` classes in `app/scraper/base.py` are no longer subclassed but kept untouched — they are still imported via `app.scraper.__init__` and may be useful for a future second store. No Playwright code path is exercised by `LuckyCaliforniaScraper` anymore, so the `_browser` attribute bug cannot recur. +- Rate limit set to 0.75s/req in the new client (between the spec's 1–2 req/sec). Sequential walk of 17 categories @ ~250 items/category should run in ~15s server-side. +- `_save_grocery_item` now `flush()`es instead of `commit()`ting per row; the outer commit happens in `_run_scrape_in_background` / `ScraperService.run_scrape`. Trade-off: a single bad row aborts the whole scrape's transaction. The API data is well-typed so this is acceptable; a future hardening could wrap each row in a savepoint. +- Legacy fallback `(name, scraped_url)` upsert path is intentionally non-colliding with new rows: the new scraper writes `scraped_url="LuckyCaliforniaScraper:Product/"` whereas R2-A wrote `scraped_url=base_url`, so the two epochs of rows coexist without false matches. +- Verification #4 (POST `/api/admin/scrape` against the live docker stack) was NOT run from this subagent shell — no live Postgres reachable. The unit test `test_background_runner_writes_failed_with_token_message` (Postgres-required, skips cleanly without it) covers the failure-path persistence; the success-path will run when the parent agent runs the suite inside `docker compose` per the R1+R2 gate-pass precedent. diff --git a/.agent/plan.md b/.agent/plan.md new file mode 100644 index 0000000..f167018 --- /dev/null +++ b/.agent/plan.md @@ -0,0 +1,28 @@ +# Recovery Plan — MealPlanner + +Goal: bring implementation back into alignment with `Review/reviewconcensus.md`. Stop building forward features until the deferred-risk spikes and the verification matrix pass. + +## Phase R1 — Stabilize (parallel-safe) + +- [ ] R1-A: Verification harness. Add `backend/tests/` with pytest config, a `conftest.py` with a transactional DB fixture, and smoke tests covering: app import, `/health`, `/health/db`, every router's GET list endpoint, Alembic `upgrade head` round-trip on a throwaway DB. Add `.github/workflows/ci.yml` running lint + pytest + frontend `npm run build`. +- [ ] R1-B: Auth dependencies on existing routers. Implement an `app.security` module with: (1) `require_admin` dep — bearer token compared to `settings.ADMIN_TOKEN`, applied to ALL `/api/admin/*` routes; (2) `require_session` dep — signed-cookie session (itsdangerous, key = `SECRET_KEY`) for profile/pantry/recipes/meals/shopping-list mutations; reads stay open inside the trusted network. Per-voter approval token flow stays as-is. Update `.env.example` with `ADMIN_TOKEN`. Document the model in `docs/SECURITY.md`. +- [ ] R1-C: Make `/api/admin/scrape` async. Convert the endpoint to enqueue a background job (FastAPI `BackgroundTasks` for now; APScheduler later). Endpoint returns 202 + `scrape_log_id`; status polled via `/api/admin/logs/{id}`. ScraperService must open its own DB session inside the task (the request-scoped `db` is gone by then). + +## Phase R2 — De-risk deferred work (parallel-safe, must run BEFORE further feature work per review §2.4) + +- [ ] R2-A: Live-scrape spike. Run `LuckyCaliforniaScraper` against `https://luckysupermarkets.com` once, capture the raw HTML/PNG to `backend/tests/fixtures/lucky_ca/`, write a unit test that parses the captured fixture (no live network in CI). Document selector decisions in `.agent/context.md`. If the page can't be parsed, file the schema impact before going further. +- [ ] R2-B: Email + approval round-trip spike. Implement minimal SendGrid sender (`app/services/email.py`), an `app/services/approval.py` that issues per-voter signed tokens (TTL, single-use), the GET confirmation page + POST submit handler (the routes already exist as stubs in `meals.py`), and a CLI script `scripts/send_test_approval.py` that creates a fake meal plan, emails one voter, and verifies the click→POST→DB write path end to end against a sandboxed inbox or `MAIL_BACKEND=console`. Goal: prove the schema (family_member, approval_token tables) survives one full round trip BEFORE building Phase 4/5/9. + +## Phase R3 — Resume feature work (sequential, only after R1+R2 green) + +- [ ] R3-A: Phase 4 Recipe Engine — search, tagging, never-suggest filter. +- [ ] R3-B: Phase 9 Meal Planner generation algorithm. +- [ ] R3-C: Phase 6 SendGrid templated emails (proposal, reminder, confirmation). +- [ ] R3-D: Phase 8 Feedback UI. +- [ ] R3-E: APScheduler with `--workers 1` for weekly scrape + plan generation + email send. +- [ ] R3-F: Phase 10 image strategy. + +## Halt conditions + +- R2 spikes fail → stop, propose schema/spec change, await approval. +- Verification matrix in `Review/reviewconcensus.md §6` not green → no R3 work begins. diff --git a/.env.example b/.env.example index e267a78..55c88f7 100644 --- a/.env.example +++ b/.env.example @@ -13,6 +13,15 @@ RECIPES_EMAIL=you@example.com # Lucky California LUCKY_CA_URL=https://luckysupermarkets.com +# Swiftly product API (Lucky CA backend). Token expires hourly; capture a +# fresh one from the luckysupermarkets.com network panel on any +# /search/api/v1 request and paste it here. The scraper aborts with a +# FAILED ScrapeLog row whose error_message asks for a refresh on 401. +LUCKY_STORE_ID=757 +SWIFTLY_API_BASE=https://prod.swiftlyapi.net +SWIFTLY_CATEGORIES_URL=https://luckysupermarkets.com/categories +SWIFTLY_BEARER_TOKEN=eyJhbGciOiJSUzI1NiIsImtpZCI6IjJiMzZhYjQxYTczOTJlMTRlNjM1ZmRlM2M2YWYwOWZlYmFhM2YyZDYiLCJ0eXAiOiJKV1QifQ.eyJzd2lmdGx5U2hvcHBlcklkIjoiYWQ2NjMyYjItOGY1Ny00NzgyLTgwZDAtOTJjMDZjNDI4YjY0IiwiYmFubmVySWQiOiJhM2IxMTcxNy1mNGNhLTQxOTYtYjY3MC1lNTE0MmMyMDVkZWUiLCJzZWxlY3RlZFN0b3JlIjoiNzU3IiwicHJvdmlkZXJfaWQiOiJhbm9ueW1vdXMiLCJpc3MiOiJodHRwczovL3NlY3VyZXRva2VuLmdvb2dsZS5jb20vc3dpZnRseS1sdS1wcm9kIiwiYXVkIjoic3dpZnRseS1sdS1wcm9kIiwiYXV0aF90aW1lIjoxNzc3OTg3NTcwLCJ1c2VyX2lkIjoicHJWUkh0Ujd5OFBKNEpyQTJtaGw4RW04VkpzMSIsInN1YiI6InByVlJIdFI3eThQSjRKckEybWhsOEVtOFZKczEiLCJpYXQiOjE3Nzc5ODc2MTcsImV4cCI6MTc3Nzk5MTIxNywiZmlyZWJhc2UiOnsiaWRlbnRpdGllcyI6e30sInNpZ25faW5fcHJvdmlkZXIiOiJhbm9ueW1vdXMifX0.VjlmFQVKrHy9RAqqqXpA8anaOhtYrgR9Odi77qlDcArnxb_4k_6imwNm48yuoH4umCMRKJSb3qcbWyBWSvcSjwtAKFhZLfH_QGX5VYMuyrJXtov8Hyy26jA12zLWxGxmOwmhow30ZTiElwqS0FSrA2GNPNF3l7ZLCIPnED8ijQo4XGb7NnZJ7egFdcvHwbpiZ6a4pFgY-74VBM411c9f4NQBamc3S5Xwez5T7bSA3KJ2ST6MpJ3G5_fIG-53ah1XqfsDBllqM4KxgQ0c1Nbux37kW4U3kVzNx9rCx8JZHBp8gHe_mDsbNO0bSXAzicQJuLIKGRPQtNLcZdtckMAetA + # AI Image Generation (optional) AI_IMAGE_ENABLED=false AI_IMAGE_PROVIDER=openai @@ -21,3 +30,7 @@ AI_IMAGE_API_KEY=sk-your-api-key # Application LOG_LEVEL=INFO SECRET_KEY=change-me-to-a-random-secret-key + +# Auth +ADMIN_TOKEN=change-me-to-a-random-admin-token +SESSION_PASSWORD=change-me-to-the-family-shared-password diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9b49c85 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,89 @@ +name: CI + +on: + push: + branches: ["**"] + pull_request: + +jobs: + backend: + name: backend (pytest + alembic) + runs-on: ubuntu-latest + services: + postgres: + image: postgres:15 + env: + POSTGRES_USER: mealplanner + POSTGRES_PASSWORD: password + POSTGRES_DB: mealplanner_test + ports: + - 5432:5432 + options: >- + --health-cmd pg_isready + --health-interval 5s + --health-timeout 5s + --health-retries 10 + env: + TEST_DATABASE_URL: postgresql://mealplanner:password@localhost:5432/mealplanner_test + DATABASE_URL: postgresql://mealplanner:password@localhost:5432/mealplanner_test + SECRET_KEY: ci-secret-key-not-for-prod + ADMIN_TOKEN: ci-admin-token + SESSION_PASSWORD: test-family-password + EMAIL_BACKEND: console + defaults: + run: + working-directory: backend + steps: + - uses: actions/checkout@v4 + + - name: Set up Python 3.11 + uses: actions/setup-python@v5 + with: + python-version: "3.11" + cache: pip + cache-dependency-path: | + backend/requirements.txt + backend/requirements-dev.txt + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -r requirements-dev.txt + + - name: Wait for Postgres + run: | + for i in $(seq 1 30); do + pg_isready -h localhost -p 5432 -U mealplanner && exit 0 + sleep 1 + done + echo "Postgres never became ready" >&2 + exit 1 + + - name: Alembic upgrade head + run: alembic upgrade head + + - name: Run pytest + run: pytest -q + + frontend: + name: frontend (build) + runs-on: ubuntu-latest + defaults: + run: + working-directory: frontend + steps: + - uses: actions/checkout@v4 + + - name: Set up Node 20 + uses: actions/setup-node@v4 + with: + node-version: "20" + cache: npm + cache-dependency-path: frontend/package-lock.json + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build diff --git a/.gitignore b/.gitignore index 8171cf9..c34cfc1 100644 --- a/.gitignore +++ b/.gitignore @@ -146,3 +146,9 @@ nginx/ssl/*.pem # Node node_modules/ + +# R2-B email console outbox (local-only spike artifact) +backend/var/ + +# Local verification helper — has weak test credentials, not for the repo +.env.test diff --git a/backend/alembic/versions/0001_initial_migration.py b/backend/alembic/versions/0001_initial_migration.py index 42cac92..d515fd6 100644 --- a/backend/alembic/versions/0001_initial_migration.py +++ b/backend/alembic/versions/0001_initial_migration.py @@ -98,7 +98,7 @@ def upgrade() -> None: sa.Column('dietary_tags', postgresql.ARRAY(sa.String(length=50)), nullable=True), sa.Column('protein_type', sa.String(length=50), nullable=True), sa.Column('spice_level', sa.Integer(), nullable=True), - sa.Column('ingredients', postgresql.JSONB(astext=True), nullable=False), + sa.Column('ingredients', postgresql.JSONB(), nullable=False), sa.Column('instructions', postgresql.ARRAY(sa.Text()), nullable=False), sa.Column('source_url', sa.Text(), nullable=True), sa.Column('scraped_at', sa.DateTime(timezone=True), nullable=True), @@ -286,4 +286,17 @@ def upgrade() -> None: def downgrade() -> None: - pass \ No newline at end of file + op.execute( + """ + DO $$ DECLARE + r RECORD; + BEGIN + FOR r IN (SELECT tablename FROM pg_tables WHERE schemaname = 'public' AND tablename != 'alembic_version') LOOP + EXECUTE 'DROP TABLE IF EXISTS public.' || quote_ident(r.tablename) || ' CASCADE'; + END LOOP; + FOR r IN (SELECT t.typname FROM pg_type t JOIN pg_namespace n ON n.oid = t.typnamespace WHERE t.typtype = 'e' AND n.nspname = 'public') LOOP + EXECUTE 'DROP TYPE IF EXISTS public.' || quote_ident(r.typname) || ' CASCADE'; + END LOOP; + END $$; + """ + ) \ No newline at end of file diff --git a/backend/alembic/versions/0002_seed_data.py b/backend/alembic/versions/0002_seed_data.py index a5976ac..c38b953 100644 --- a/backend/alembic/versions/0002_seed_data.py +++ b/backend/alembic/versions/0002_seed_data.py @@ -95,8 +95,6 @@ def upgrade() -> None: ('Sugar', 'sugar', 'lb', 'Pantry', 2.49), ('Brown Rice', 'brown rice', 'lb', 'Grains', 3.49), ('Oats', 'oats', 'lb', 'Grains', 2.99), - ('Chickpeas', 'chickpeas', 'can', 'Canned Goods', 1.49), - ('Black Beans', 'black beans', 'can', 'Canned Goods', 1.29), ('Kidney Beans', 'kidney beans', 'can', 'Canned Goods', 1.29), ('Corn', 'corn', 'can', 'Canned Goods', 1.49), ('Green Beans', 'green beans', 'can', 'Canned Goods', 1.49), @@ -107,6 +105,7 @@ def upgrade() -> None: op.execute(f""" INSERT INTO ingredient (id, name, name_lower, unit, aisle, typical_price) VALUES (uuid_generate_v4(), '{name}', '{name_lower}', '{unit}', '{aisle}', {price}) + ON CONFLICT (name_lower) DO NOTHING """) diff --git a/backend/alembic/versions/0003_grocery_item_description.py b/backend/alembic/versions/0003_grocery_item_description.py new file mode 100644 index 0000000..e5e81a9 --- /dev/null +++ b/backend/alembic/versions/0003_grocery_item_description.py @@ -0,0 +1,32 @@ +"""Add nullable description column to grocery_item. + +The Lucky California parser produces a long-form description per coupon +(class ``coupon-card-short-description``); without this column it is dropped +silently when persisting. See R2-A spike notes in +``.agent/phase-summaries/r2a-summary.md``. + +Revision ID: 0003 +Revises: 0002 +Create Date: 2026-05-04 +""" +from typing import Sequence, Union + +from alembic import op +import sqlalchemy as sa + + +revision: str = '0003' +down_revision: Union[str, None] = '0002' +branch_labels: Union[str, Sequence[str], None] = None +depends_on: Union[str, Sequence[str], None] = None + + +def upgrade() -> None: + op.add_column( + "grocery_item", + sa.Column("description", sa.Text(), nullable=True), + ) + + +def downgrade() -> None: + op.drop_column("grocery_item", "description") diff --git a/backend/alembic/versions/0004_family_profile_calorie_target.py b/backend/alembic/versions/0004_family_profile_calorie_target.py new file mode 100644 index 0000000..24747d4 --- /dev/null +++ b/backend/alembic/versions/0004_family_profile_calorie_target.py @@ -0,0 +1,30 @@ +"""Add calorie_target to family_profile + +Revision ID: 0004 +Revises: 0003 +Create Date: 2026-05-04 + +The model has carried `calorie_target` on FamilyProfile since Phase 2, +but the initial migration omitted it. SELECT * from family_profile fails +without this column. Adversarial review §1.6 flagged the model/schema +drift. +""" +from alembic import op +import sqlalchemy as sa + + +revision = "0004" +down_revision = "0003" +branch_labels = None +depends_on = None + + +def upgrade() -> None: + op.add_column( + "family_profile", + sa.Column("calorie_target", sa.Integer(), nullable=True), + ) + + +def downgrade() -> None: + op.drop_column("family_profile", "calorie_target") diff --git a/backend/alembic/versions/0005_grocery_item_external_id.py b/backend/alembic/versions/0005_grocery_item_external_id.py new file mode 100644 index 0000000..21ba7d3 --- /dev/null +++ b/backend/alembic/versions/0005_grocery_item_external_id.py @@ -0,0 +1,48 @@ +"""Add nullable indexed external_id and source columns to grocery_item. + +The Swiftly API exposes a stable ``id`` per product (e.g. ``"46556"``). +Persisting it as ``grocery_item.external_id`` lets the scraper UPSERT by +``(source, external_id)`` rather than create duplicates on every run. +``source`` distinguishes overlapping IDs across future banners (e.g. a +second Save Mart store using the same Swiftly tenant). See R3-0 notes in +``.agent/phase-summaries/r3-0-summary.md``. + +Revision ID: 0005 +Revises: 0004 +Create Date: 2026-05-05 +""" +from typing import Sequence, Union + +from alembic import op +import sqlalchemy as sa + + +revision: str = '0005' +down_revision: Union[str, None] = '0004' +branch_labels: Union[str, Sequence[str], None] = None +depends_on: Union[str, Sequence[str], None] = None + + +def upgrade() -> None: + op.add_column( + "grocery_item", + sa.Column("external_id", sa.String(length=100), nullable=True), + ) + op.add_column( + "grocery_item", + sa.Column( + "source", sa.String(length=50), nullable=True, + ), + ) + op.create_index( + "ix_grocery_item_source_external_id", + "grocery_item", + ["source", "external_id"], + unique=False, + ) + + +def downgrade() -> None: + op.drop_index("ix_grocery_item_source_external_id", table_name="grocery_item") + op.drop_column("grocery_item", "source") + op.drop_column("grocery_item", "external_id") diff --git a/backend/app/api/admin.py b/backend/app/api/admin.py index f62fe11..0a55c4b 100644 --- a/backend/app/api/admin.py +++ b/backend/app/api/admin.py @@ -1,20 +1,29 @@ -from fastapi import APIRouter, Depends, HTTPException +from fastapi import APIRouter, BackgroundTasks, Depends, HTTPException from sqlalchemy.orm import Session from app.database import get_db from app.models import ScrapeLog, EmailLog, MealPlan -from app.services.scraper_service import ScraperService +from app.security import require_admin +from app.services.scraper_service import ScraperService, enqueue_scrape from typing import List, Optional from datetime import datetime, timedelta -router = APIRouter() +router = APIRouter(dependencies=[Depends(require_admin)]) -@router.post("/scrape") -def trigger_scrape(source: str = "lucky_california", scrape_type: str = "weekly_ad", db: Session = Depends(get_db)): - scraper_service = ScraperService(db) - result = scraper_service.run_scrape(source=source, scrape_type=scrape_type) - - return result +@router.post("/scrape", status_code=202) +def trigger_scrape( + background_tasks: BackgroundTasks, + source: str = "lucky_california", + scrape_type: str = "weekly_ad", + db: Session = Depends(get_db), +): + log = enqueue_scrape( + db, + source=source, + scrape_type=scrape_type, + background_tasks=background_tasks, + ) + return {"status": "queued", "scrape_log_id": str(log.id)} @router.get("/logs") diff --git a/backend/app/api/auth.py b/backend/app/api/auth.py new file mode 100644 index 0000000..6737e43 --- /dev/null +++ b/backend/app/api/auth.py @@ -0,0 +1,67 @@ +""" +Family-shared session login. + +POST /api/auth/login — body ``{"password": "..."}`` — must match +``settings.SESSION_PASSWORD``. On success: signs the first FamilyProfile.id +and writes it as the ``mp_session`` cookie, returns 204. + +POST /api/auth/logout — clears the cookie, returns 204. + +The session is intentionally simple: a single shared family password gates +mutations behind nginx on the trusted network. No per-user auth. +""" + +from fastapi import APIRouter, Depends, HTTPException, Response, status +from pydantic import BaseModel +from sqlalchemy.orm import Session + +from app.config import settings +from app.database import get_db +from app.models import FamilyProfile +from app.security import SESSION_COOKIE, SESSION_MAX_AGE, issue_session + +router = APIRouter() + + +class LoginRequest(BaseModel): + password: str + + +@router.post("/login") +def login(payload: LoginRequest, db: Session = Depends(get_db)): + expected = settings.SESSION_PASSWORD + if not expected: + raise HTTPException( + status_code=status.HTTP_503_SERVICE_UNAVAILABLE, + detail="Session auth not configured", + ) + if payload.password != expected: + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, detail="Invalid password" + ) + + profile = db.query(FamilyProfile).first() + # If no profile exists yet, sign a placeholder so the cookie still + # validates; the family-id will be re-issued the first time a profile + # is created. This avoids login being blocked on first-run. + family_id = str(profile.id) if profile else "bootstrap" + cookie_value = issue_session(family_id) + + response = Response(status_code=status.HTTP_204_NO_CONTENT) + response.set_cookie( + key=SESSION_COOKIE, + value=cookie_value, + max_age=SESSION_MAX_AGE, + httponly=True, + secure=True, + samesite="lax", + path="/", + ) + return response + + +@router.post("/logout") +def logout(): + response = Response(status_code=status.HTTP_204_NO_CONTENT) + response.delete_cookie(key=SESSION_COOKIE, path="/") + return response diff --git a/backend/app/api/meals.py b/backend/app/api/meals.py index 1eaffef..b913488 100644 --- a/backend/app/api/meals.py +++ b/backend/app/api/meals.py @@ -1,4 +1,7 @@ -from fastapi import APIRouter, Depends, HTTPException +from fastapi import APIRouter, Depends, HTTPException, Query +from fastapi.responses import HTMLResponse +from html import escape as _html_escape +from pydantic import BaseModel, Field from sqlalchemy.orm import Session, joinedload from app.database import get_db from app.models import ( @@ -10,6 +13,8 @@ from app.schemas import ( MealPlanResponse, MealPlanCreate, MealPlanItemResponse, VoteRequest, VoteResponse ) +from app.security import require_session +from app.services import approval as approval_service from uuid import UUID from typing import List, Optional from datetime import datetime, timedelta @@ -17,7 +22,7 @@ from datetime import datetime, timedelta router = APIRouter() -@router.get("/planned", response_model=Optional[MealPlanResponse]) +@router.get("", response_model=Optional[MealPlanResponse]) def get_planned_meals(db: Session = Depends(get_db)): profile = db.query(FamilyProfile).first() if not profile: @@ -33,7 +38,7 @@ def get_planned_meals(db: Session = Depends(get_db)): return meal_plan -@router.post("/", response_model=MealPlanResponse) +@router.post("", response_model=MealPlanResponse, dependencies=[Depends(require_session)]) def create_meal_plan(meal_plan_data: MealPlanCreate, db: Session = Depends(get_db)): profile = db.query(FamilyProfile).first() if not profile: @@ -80,7 +85,7 @@ def get_meal_plan(meal_plan_id: UUID, db: Session = Depends(get_db)): return meal_plan -@router.post("/{meal_plan_id}/lock") +@router.post("/{meal_plan_id}/lock", dependencies=[Depends(require_session)]) def lock_meal_plan(meal_plan_id: UUID, db: Session = Depends(get_db)): meal_plan = db.query(MealPlan).filter(MealPlan.id == meal_plan_id).first() if not meal_plan: @@ -91,76 +96,169 @@ def lock_meal_plan(meal_plan_id: UUID, db: Session = Depends(get_db)): return {"message": "Meal plan locked", "status": meal_plan.status.value} -@router.get("/items/{item_id}/vote/{token}") -def get_vote_page(item_id: UUID, token: str, db: Session = Depends(get_db)): - approval_token = db.query(ApprovalToken).filter(ApprovalToken.token == token).first() - if not approval_token: - raise HTTPException(status_code=404, detail="Invalid token") +_DAY_NAMES = { + 1: "Monday", 2: "Tuesday", 3: "Wednesday", 4: "Thursday", + 5: "Friday", 6: "Saturday", 7: "Sunday", +} - if approval_token.meal_plan_item_id != item_id: + +class VoteSubmission(BaseModel): + """Body for POST /vote/{item_id}?token=... + + Spec body: {"vote": "approve" | "deny"}. + """ + + vote: str = Field(..., pattern="^(approve|deny)$") + + +@router.get("/vote/{item_id}", response_class=HTMLResponse) +def get_vote_page( + item_id: UUID, + token: str = Query(..., description="Per-voter signed token"), + db: Session = Depends(get_db), +): + """Render the per-voter approval confirmation page. + + Verifies the signed token (no consume) and returns minimal accessible + HTML with Approve / Deny buttons that POST to the same URL. + """ + payload = approval_service.verify_token(token) + if str(payload.get("item")) != str(item_id): raise HTTPException(status_code=400, detail="Token not valid for this meal") - if approval_token.status != ApprovalTokenStatus.ACTIVE: - raise HTTPException(status_code=400, detail="Token has already been used or expired") + voter = ( + db.query(FamilyMember) + .filter(FamilyMember.id == UUID(str(payload["voter"]))) + .first() + ) + if not voter: + raise HTTPException(status_code=404, detail="Voter not found") - if approval_token.expires_at < datetime.now(): - raise HTTPException(status_code=400, detail="Token has expired") + item = ( + db.query(MealPlanItem) + .options(joinedload(MealPlanItem.recipe)) + .filter(MealPlanItem.id == item_id) + .first() + ) + if not item: + raise HTTPException(status_code=404, detail="Meal plan item not found") + + recipe_name = item.recipe.name if item.recipe else "Unnamed meal" + day_name = _DAY_NAMES.get(int(item.day_of_week), str(item.day_of_week)) + meal_type = item.meal_type.value if item.meal_type else "" + + # Token is included only inside the form action (href), never in the + # visible body. POST is performed by JS so we can submit JSON without + # leaving the page; non-JS users still get a usable form fallback. + safe_voter = _html_escape(voter.name) + safe_recipe = _html_escape(recipe_name) + safe_day = _html_escape(day_name) + safe_meal = _html_escape(meal_type) + action_url = f"/api/meals/vote/{item_id}?token={_html_escape(token, quote=True)}" + + html = f""" + + + +Approve meal + + + + +

Hi {safe_voter}, please vote on this meal

+
+
{safe_recipe}
+
{safe_day} · {safe_meal}
+
+
+ + +
+
+ + + +""" + return HTMLResponse(content=html, status_code=200) + + +@router.post("/vote/{item_id}") +def submit_vote( + item_id: UUID, + submission: VoteSubmission, + token: str = Query(..., description="Per-voter signed token"), + db: Session = Depends(get_db), +): + """Record a per-voter vote and apply the approval rule. + + - Single-use enforcement lives in `approval_service.consume_token`. + - Approval rule: any deny -> item.denied; all-approve -> item.approved; + otherwise pending (waiting on remaining voters). + """ + voter = approval_service.consume_token(db, token, item_id) item = db.query(MealPlanItem).filter(MealPlanItem.id == item_id).first() if not item: raise HTTPException(status_code=404, detail="Meal plan item not found") - return { - "item_id": str(item_id), - "family_member_id": str(approval_token.family_member_id), - "meal_plan_item": item - } - - -@router.post("/items/{item_id}/vote/{token}", response_model=VoteResponse) -def submit_vote(item_id: UUID, token: str, vote_data: VoteRequest, db: Session = Depends(get_db)): - approval_token = db.query(ApprovalToken).filter(ApprovalToken.token == token).first() - if not approval_token: - raise HTTPException(status_code=404, detail="Invalid token") - - if approval_token.meal_plan_item_id != item_id: - raise HTTPException(status_code=400, detail="Token not valid for this meal") - - if approval_token.status != ApprovalTokenStatus.ACTIVE: - raise HTTPException(status_code=400, detail="Token has already been used or expired") - - if approval_token.expires_at < datetime.now(): - approval_token.status = ApprovalTokenStatus.EXPIRED - db.commit() - raise HTTPException(status_code=400, detail="Token has expired") - - existing_vote = db.query(MealPlanVote).filter( - MealPlanVote.meal_plan_item_id == item_id, - MealPlanVote.family_member_id == approval_token.family_member_id - ).first() - - if existing_vote: - raise HTTPException(status_code=400, detail="You have already voted on this meal") - - vote = MealPlanVote( + vote_bool = submission.vote == "approve" + db.add(MealPlanVote( meal_plan_item_id=item_id, - family_member_id=approval_token.family_member_id, - vote=vote_data.vote - ) - db.add(vote) + family_member_id=voter.id, + vote=vote_bool, + )) + db.flush() - approval_token.status = ApprovalTokenStatus.USED - approval_token.used_at = datetime.now() + # Approval rule: count electorate (all family members on this profile) + # vs votes recorded so far. + profile_id = item.meal_plan.family_profile_id + electorate_ids = { + m.id for m in db.query(FamilyMember) + .filter(FamilyMember.family_profile_id == profile_id) + .all() + } + votes = db.query(MealPlanVote).filter( + MealPlanVote.meal_plan_item_id == item_id, + ).all() - item = db.query(MealPlanItem).filter(MealPlanItem.id == item_id).first() - if not vote_data.vote and vote_data.denial_reason: + if any(v.vote is False for v in votes): item.approval_status = MealPlanItemStatus.DENIED - item.denial_reason = vote_data.denial_reason - item.denial_details = vote_data.denial_details + elif electorate_ids and {v.family_member_id for v in votes} >= electorate_ids: + item.approval_status = MealPlanItemStatus.APPROVED + else: + item.approval_status = MealPlanItemStatus.PENDING db.commit() - db.refresh(vote) - return vote + return {"status": "recorded", "item_status": item.approval_status.value} @router.get("/items/{item_id}", response_model=MealPlanItemResponse) @@ -173,7 +271,7 @@ def get_meal_item(item_id: UUID, db: Session = Depends(get_db)): return item -@router.post("/items/{item_id}/swap") +@router.post("/items/{item_id}/swap", dependencies=[Depends(require_session)]) def swap_meal_item(item_id: UUID, new_recipe_id: UUID, db: Session = Depends(get_db)): item = db.query(MealPlanItem).filter(MealPlanItem.id == item_id).first() if not item: diff --git a/backend/app/api/pantry.py b/backend/app/api/pantry.py index 44c3e84..6371655 100644 --- a/backend/app/api/pantry.py +++ b/backend/app/api/pantry.py @@ -3,13 +3,14 @@ from sqlalchemy.orm import Session from app.database import get_db from app.models import HomePantry, Ingredient, FamilyProfile from app.schemas import HomePantryResponse, HomePantryCreate +from app.security import require_session from uuid import UUID from typing import List router = APIRouter() -@router.get("/", response_model=List[HomePantryResponse]) +@router.get("", response_model=List[HomePantryResponse]) def get_pantry_items(db: Session = Depends(get_db)): profile = db.query(FamilyProfile).first() if not profile: @@ -21,7 +22,7 @@ def get_pantry_items(db: Session = Depends(get_db)): return items -@router.post("/", response_model=HomePantryResponse) +@router.post("", response_model=HomePantryResponse, dependencies=[Depends(require_session)]) def add_pantry_item(item: HomePantryCreate, db: Session = Depends(get_db)): profile = db.query(FamilyProfile).first() if not profile: @@ -54,7 +55,7 @@ def add_pantry_item(item: HomePantryCreate, db: Session = Depends(get_db)): return db_item -@router.delete("/{item_id}") +@router.delete("/{item_id}", dependencies=[Depends(require_session)]) def remove_pantry_item(item_id: UUID, db: Session = Depends(get_db)): item = db.query(HomePantry).filter(HomePantry.id == item_id).first() if not item: @@ -65,7 +66,7 @@ def remove_pantry_item(item_id: UUID, db: Session = Depends(get_db)): return {"message": "Pantry item removed"} -@router.put("/{item_id}", response_model=HomePantryResponse) +@router.put("/{item_id}", response_model=HomePantryResponse, dependencies=[Depends(require_session)]) def update_pantry_item(item_id: UUID, update: HomePantryCreate, db: Session = Depends(get_db)): item = db.query(HomePantry).filter(HomePantry.id == item_id).first() if not item: diff --git a/backend/app/api/profile.py b/backend/app/api/profile.py index 60fe248..15f0145 100644 --- a/backend/app/api/profile.py +++ b/backend/app/api/profile.py @@ -6,13 +6,14 @@ from app.schemas import ( FamilyProfileResponse, FamilyProfileUpdate, FamilyProfileCreate, FamilyMemberResponse, FamilyMemberCreate ) +from app.security import require_session from uuid import UUID from typing import List router = APIRouter() -@router.get("/", response_model=FamilyProfileResponse) +@router.get("", response_model=FamilyProfileResponse) def get_profile(db: Session = Depends(get_db)): profile = db.query(FamilyProfile).first() if not profile: @@ -20,7 +21,7 @@ def get_profile(db: Session = Depends(get_db)): return profile -@router.put("/", response_model=FamilyProfileResponse) +@router.put("", response_model=FamilyProfileResponse, dependencies=[Depends(require_session)]) def update_profile(update: FamilyProfileUpdate, db: Session = Depends(get_db)): profile = db.query(FamilyProfile).first() if not profile: @@ -43,7 +44,7 @@ def get_members(db: Session = Depends(get_db)): return profile.members -@router.post("/members", response_model=FamilyMemberResponse) +@router.post("/members", response_model=FamilyMemberResponse, dependencies=[Depends(require_session)]) def add_member(member: FamilyMemberCreate, db: Session = Depends(get_db)): profile = db.query(FamilyProfile).first() if not profile: @@ -69,7 +70,7 @@ def add_member(member: FamilyMemberCreate, db: Session = Depends(get_db)): return db_member -@router.delete("/members/{member_id}") +@router.delete("/members/{member_id}", dependencies=[Depends(require_session)]) def delete_member(member_id: UUID, db: Session = Depends(get_db)): member = db.query(FamilyMember).filter(FamilyMember.id == member_id).first() if not member: diff --git a/backend/app/api/recipes.py b/backend/app/api/recipes.py index 7baf557..39abb3a 100644 --- a/backend/app/api/recipes.py +++ b/backend/app/api/recipes.py @@ -3,13 +3,14 @@ from sqlalchemy.orm import Session, joinedload from app.database import get_db from app.models import Recipe, FamilyProfile from app.schemas import RecipeResponse, RecipeCreate, IngredientCreate, IngredientResponse +from app.security import require_session from uuid import UUID from typing import List, Optional router = APIRouter() -@router.get("/", response_model=List[RecipeResponse]) +@router.get("", response_model=List[RecipeResponse]) def get_recipes( skip: int = 0, limit: int = 50, @@ -31,6 +32,37 @@ def get_recipes( return recipes +@router.get("/ingredients", response_model=List[IngredientResponse]) +def list_ingredients(skip: int = 0, limit: int = 100, db: Session = Depends(get_db)): + from app.models import Ingredient + ingredients = db.query(Ingredient).offset(skip).limit(limit).all() + return ingredients + + +@router.post("/ingredients", response_model=IngredientResponse, dependencies=[Depends(require_session)]) +def create_ingredient(ingredient: IngredientCreate, db: Session = Depends(get_db)): + from app.models import Ingredient + + existing = db.query(Ingredient).filter(Ingredient.name_lower == ingredient.name_lower).first() + if existing: + raise HTTPException(status_code=400, detail="Ingredient with this name already exists") + + db_ingredient = Ingredient( + name=ingredient.name, + name_lower=ingredient.name_lower, + plural_name=ingredient.plural_name, + aisle=ingredient.aisle, + typical_price=ingredient.typical_price, + unit=ingredient.unit, + season_months=ingredient.season_months + ) + + db.add(db_ingredient) + db.commit() + db.refresh(db_ingredient) + return db_ingredient + + @router.get("/{recipe_id}", response_model=RecipeResponse) def get_recipe(recipe_id: UUID, db: Session = Depends(get_db)): recipe = db.query(Recipe).filter(Recipe.id == recipe_id).first() @@ -39,7 +71,7 @@ def get_recipe(recipe_id: UUID, db: Session = Depends(get_db)): return recipe -@router.post("/", response_model=RecipeResponse) +@router.post("", response_model=RecipeResponse, dependencies=[Depends(require_session)]) def create_recipe(recipe: RecipeCreate, db: Session = Depends(get_db)): profile = db.query(FamilyProfile).first() @@ -69,7 +101,7 @@ def create_recipe(recipe: RecipeCreate, db: Session = Depends(get_db)): return db_recipe -@router.delete("/{recipe_id}") +@router.delete("/{recipe_id}", dependencies=[Depends(require_session)]) def delete_recipe(recipe_id: UUID, db: Session = Depends(get_db)): recipe = db.query(Recipe).filter(Recipe.id == recipe_id).first() if not recipe: @@ -78,34 +110,3 @@ def delete_recipe(recipe_id: UUID, db: Session = Depends(get_db)): db.delete(recipe) db.commit() return {"message": "Recipe deleted"} - - -@router.get("/ingredients/list", response_model=List[IngredientResponse]) -def list_ingredients(skip: int = 0, limit: int = 100, db: Session = Depends(get_db)): - from app.models import Ingredient - ingredients = db.query(Ingredient).offset(skip).limit(limit).all() - return ingredients - - -@router.post("/ingredients", response_model=IngredientResponse) -def create_ingredient(ingredient: IngredientCreate, db: Session = Depends(get_db)): - from app.models import Ingredient - - existing = db.query(Ingredient).filter(Ingredient.name_lower == ingredient.name_lower).first() - if existing: - raise HTTPException(status_code=400, detail="Ingredient with this name already exists") - - db_ingredient = Ingredient( - name=ingredient.name, - name_lower=ingredient.name_lower, - plural_name=ingredient.plural_name, - aisle=ingredient.aisle, - typical_price=ingredient.typical_price, - unit=ingredient.unit, - season_months=ingredient.season_months - ) - - db.add(db_ingredient) - db.commit() - db.refresh(db_ingredient) - return db_ingredient \ No newline at end of file diff --git a/backend/app/api/shopping_list.py b/backend/app/api/shopping_list.py index c965c25..5856267 100644 --- a/backend/app/api/shopping_list.py +++ b/backend/app/api/shopping_list.py @@ -14,7 +14,7 @@ from collections import defaultdict router = APIRouter() -@router.get("/", response_model=ShoppingListResponse) +@router.get("", response_model=ShoppingListResponse) def get_shopping_list(db: Session = Depends(get_db)): profile = db.query(FamilyProfile).first() if not profile: @@ -56,7 +56,7 @@ def get_shopping_list(db: Session = Depends(get_db)): if all_ingredient_ids: ingredients = db.query(Ingredient).filter( - Ingredient.id.in_ all_ingredient_ids + Ingredient.id.in_(all_ingredient_ids) ).all() ingredient_map = {i.id: i for i in ingredients} diff --git a/backend/app/config.py b/backend/app/config.py index ec93e31..25d19e1 100644 --- a/backend/app/config.py +++ b/backend/app/config.py @@ -1,17 +1,30 @@ from pydantic_settings import BaseSettings +from pydantic import model_validator from typing import Optional class Settings(BaseSettings): - DATABASE_URL: str + # Required — fail fast at import time if unset. + DATABASE_URL: str = "" + SENDGRID_API_KEY: Optional[str] = None + EMAIL_BACKEND: str = "console" LUCKY_CA_URL: str = "https://www.luckyncal.com" + # R3-0: Swiftly product API (replaces Playwright path). + SWIFTLY_BEARER_TOKEN: str = "" + LUCKY_STORE_ID: str = "757" + SWIFTLY_API_BASE: str = "https://prod.swiftlyapi.net" + SWIFTLY_CATEGORIES_URL: str = "https://luckysupermarkets.com/categories" AI_IMAGE_ENABLED: bool = False AI_IMAGE_PROVIDER: Optional[str] = None AI_IMAGE_API_KEY: Optional[str] = None LOG_LEVEL: str = "INFO" SECRET_KEY: str = "dev-secret-key" + # Auth (R1-B+D) + ADMIN_TOKEN: str = "" + SESSION_PASSWORD: str = "" + FAMILY_EMAIL_1: Optional[str] = None FAMILY_EMAIL_2: Optional[str] = None RECIPES_EMAIL: Optional[str] = None @@ -19,5 +32,11 @@ class Settings(BaseSettings): class Config: env_file = ".env" + @model_validator(mode="after") + def _require_database_url(self) -> "Settings": + if not self.DATABASE_URL: + raise RuntimeError("DATABASE_URL is required") + return self + settings = Settings() diff --git a/backend/app/main.py b/backend/app/main.py index 56fbb72..9c07191 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -29,8 +29,9 @@ def health_check_db(db: Session = Depends(get_db)): return {"status": "error", "database": "disconnected", "error": str(e)} -from app.api import profile, recipes, meals, shopping_list, pantry, admin +from app.api import profile, recipes, meals, shopping_list, pantry, admin, auth +app.include_router(auth.router, prefix="/api/auth", tags=["auth"]) app.include_router(profile.router, prefix="/api/profile", tags=["profile"]) app.include_router(recipes.router, prefix="/api/recipes", tags=["recipes"]) app.include_router(meals.router, prefix="/api/meals", tags=["meals"]) diff --git a/backend/app/models/__init__.py b/backend/app/models/__init__.py index c1413be..3e2d89a 100644 --- a/backend/app/models/__init__.py +++ b/backend/app/models/__init__.py @@ -114,7 +114,7 @@ class FamilyMember(Base): family_profile_id = Column(UUID(as_uuid=True), ForeignKey("family_profile.id", ondelete="CASCADE")) name = Column(String(100), nullable=False) email = Column(String(300)) - role = Column(SQLEnum(FamilyMemberRole, name="family_member_role_enum", create_type=False), nullable=False) + role = Column(SQLEnum(FamilyMemberRole, name="family_member_role_enum", create_type=False, values_callable=lambda obj: [e.value for e in obj]), nullable=False) likes_mushrooms = Column(Boolean, default=False) created_at = Column(DateTime(timezone=True), server_default=func.now()) updated_at = Column(DateTime(timezone=True), server_default=func.now(), onupdate=func.now()) @@ -185,7 +185,7 @@ class MealPlan(Base): id = Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4) family_profile_id = Column(UUID(as_uuid=True), ForeignKey("family_profile.id")) week_start_date = Column(Date, nullable=False) - status = Column(SQLEnum(MealPlanStatus, name="meal_plan_status_enum", create_type=False), nullable=False, default=MealPlanStatus.DRAFT) + status = Column(SQLEnum(MealPlanStatus, name="meal_plan_status_enum", create_type=False, values_callable=lambda obj: [e.value for e in obj]), nullable=False, default=MealPlanStatus.DRAFT) approval_deadline = Column(DateTime(timezone=True)) total_estimated_cost = Column(Numeric(10, 2)) notes = Column(Text) @@ -198,7 +198,6 @@ class MealPlan(Base): family_profile = relationship("FamilyProfile", back_populates="meal_plans") items = relationship("MealPlanItem", back_populates="meal_plan", cascade="all, delete-orphan") - votes = relationship("MealPlanVote", back_populates="meal_plan", cascade="all, delete-orphan") class MealPlanItem(Base): @@ -208,9 +207,9 @@ class MealPlanItem(Base): meal_plan_id = Column(UUID(as_uuid=True), ForeignKey("meal_plan.id", ondelete="CASCADE")) recipe_id = Column(UUID(as_uuid=True), ForeignKey("recipe.id")) day_of_week = Column(Integer, nullable=False) - meal_type = Column(SQLEnum(MealType, name="meal_type_enum", create_type=False), nullable=False) - approval_status = Column(SQLEnum(MealPlanItemStatus, name="meal_plan_item_status_enum", create_type=False), default=MealPlanItemStatus.PENDING) - denial_reason = Column(SQLEnum(DenialReason, name="denial_reason_enum", create_type=False)) + meal_type = Column(SQLEnum(MealType, name="meal_type_enum", create_type=False, values_callable=lambda obj: [e.value for e in obj]), nullable=False) + approval_status = Column(SQLEnum(MealPlanItemStatus, name="meal_plan_item_status_enum", create_type=False, values_callable=lambda obj: [e.value for e in obj]), default=MealPlanItemStatus.PENDING) + denial_reason = Column(SQLEnum(DenialReason, name="denial_reason_enum", create_type=False, values_callable=lambda obj: [e.value for e in obj])) denial_details = Column(Text) estimated_cost = Column(Numeric(10, 2)) used_pantry_items = Column(ARRAY(UUID(as_uuid=True))) @@ -252,7 +251,7 @@ class ApprovalToken(Base): meal_plan_item_id = Column(UUID(as_uuid=True), ForeignKey("meal_plan_item.id", ondelete="CASCADE")) family_member_id = Column(UUID(as_uuid=True), ForeignKey("family_member.id", ondelete="CASCADE")) token = Column(String(64), nullable=False, unique=True) - status = Column(SQLEnum(ApprovalTokenStatus, name="approval_token_status_enum", create_type=False), default=ApprovalTokenStatus.ACTIVE) + status = Column(SQLEnum(ApprovalTokenStatus, name="approval_token_status_enum", create_type=False, values_callable=lambda obj: [e.value for e in obj]), default=ApprovalTokenStatus.ACTIVE) expires_at = Column(DateTime(timezone=True), nullable=False) used_at = Column(DateTime(timezone=True)) created_at = Column(DateTime(timezone=True), server_default=func.now()) @@ -294,7 +293,7 @@ class Feedback(Base): meal_plan_item_id = Column(UUID(as_uuid=True), ForeignKey("meal_plan_item.id", ondelete="CASCADE")) rating = Column(Integer) never_suggest = Column(Boolean, default=False) - denial_reason = Column(SQLEnum(DenialReason, name="denial_reason_enum", create_type=False)) + denial_reason = Column(SQLEnum(DenialReason, name="denial_reason_enum", create_type=False, values_callable=lambda obj: [e.value for e in obj])) feedback_text = Column(Text) created_at = Column(DateTime(timezone=True), server_default=func.now()) @@ -314,7 +313,7 @@ class NeverSuggest(Base): family_profile_id = Column(UUID(as_uuid=True), ForeignKey("family_profile.id", ondelete="CASCADE")) ingredient_id = Column(UUID(as_uuid=True), ForeignKey("ingredient.id", ondelete="CASCADE")) recipe_id = Column(UUID(as_uuid=True), ForeignKey("recipe.id", ondelete="CASCADE")) - reason = Column(SQLEnum(NeverSuggestReason, name="never_suggest_reason_enum", create_type=False)) + reason = Column(SQLEnum(NeverSuggestReason, name="never_suggest_reason_enum", create_type=False, values_callable=lambda obj: [e.value for e in obj])) notes = Column(Text) created_at = Column(DateTime(timezone=True), server_default=func.now()) @@ -335,12 +334,16 @@ class GroceryItem(Base): aisle = Column(String(100)) image_url = Column(Text) product_url = Column(Text) + description = Column(Text, nullable=True) is_on_sale = Column(Boolean, default=False) sale_start_date = Column(Date) sale_end_date = Column(Date) in_season = Column(Boolean, default=False) scraped_at = Column(DateTime(timezone=True), server_default=func.now()) scraped_url = Column(Text) + # R3-0: Swiftly API idempotency key. (source, external_id) → upsert. + external_id = Column(String(100), nullable=True, index=True) + source = Column(String(50), nullable=True) ingredient = relationship("Ingredient", back_populates="grocery_item_links") @@ -351,7 +354,7 @@ class ScrapeLog(Base): id = Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4) source = Column(String(50), nullable=False) scrape_type = Column(String(50), nullable=False) - status = Column(SQLEnum(ScrapeStatus, name="scrape_status_enum", create_type=False), nullable=False) + status = Column(SQLEnum(ScrapeStatus, name="scrape_status_enum", create_type=False, values_callable=lambda obj: [e.value for e in obj]), nullable=False) items_scraped = Column(Integer, default=0) error_message = Column(Text) started_at = Column(DateTime(timezone=True), server_default=func.now()) @@ -369,7 +372,7 @@ class EmailLog(Base): meal_plan_id = Column(UUID(as_uuid=True), ForeignKey("meal_plan.id")) meal_plan_item_id = Column(UUID(as_uuid=True), ForeignKey("meal_plan_item.id")) sendgrid_message_id = Column(String(100)) - status = Column(SQLEnum(EmailStatus, name="email_status_enum", create_type=False), nullable=False) + status = Column(SQLEnum(EmailStatus, name="email_status_enum", create_type=False, values_callable=lambda obj: [e.value for e in obj]), nullable=False) error_message = Column(Text) created_at = Column(DateTime(timezone=True), server_default=func.now()) delivered_at = Column(DateTime(timezone=True)) diff --git a/backend/app/scraper/__init__.py b/backend/app/scraper/__init__.py index 8f9829f..f007956 100644 --- a/backend/app/scraper/__init__.py +++ b/backend/app/scraper/__init__.py @@ -1,4 +1,4 @@ from .base import BaseScraper -from .lucky_ca_scraper import LuckyCaliforniaScraper +from .lucky_ca_scraper import LuckyCaliforniaScraper, SwiftlyAuthError -__all__ = ["BaseScraper", "LuckyCaliforniaScraper"] \ No newline at end of file +__all__ = ["BaseScraper", "LuckyCaliforniaScraper", "SwiftlyAuthError"] \ No newline at end of file diff --git a/backend/app/scraper/lucky_ca_scraper.py b/backend/app/scraper/lucky_ca_scraper.py index f231443..003d28d 100644 --- a/backend/app/scraper/lucky_ca_scraper.py +++ b/backend/app/scraper/lucky_ca_scraper.py @@ -1,180 +1,325 @@ +"""Lucky California / Swiftly product API client. + +Replaces the prior Playwright + HTML coupon-card path (R2-A) with the +underlying JSON API the website itself calls. The API exposes the full +inventory per category — no rendering, no Chromium, and far more items +than the visible coupon strip (256 in `Product/meat_seafood` vs the 11 +the HTML parser saw). + +Two endpoints (no public docs; reverse-engineered from the network panel +on luckysupermarkets.com — see ``.agent/context.md`` "Swiftly API"): + + GET https://luckysupermarkets.com/categories + → HTML page; anchors with ``class="swiftlyCouponCategory"`` carry + ``href="/categories/Product%2F"``. + + GET https://prod.swiftlyapi.net/search/api/v1/products/categories + ?cat=&store=&limit=10000 + Authorization: Bearer + → ``{"products": {"info": {...}, "items": [...], "facets": [...]}}`` + +The bearer token expires roughly hourly. On 401 we raise +``SwiftlyAuthError`` so the background runner records the error_message +that asks the admin to refresh ``SWIFTLY_BEARER_TOKEN`` and retry. +""" +from __future__ import annotations + import logging import re -from typing import Dict, Any, List, Optional +import time +import urllib.parse from datetime import datetime -from urllib.parse import urljoin +from decimal import Decimal, InvalidOperation +from typing import Any, Dict, Iterator, List, Optional, Tuple + +import requests from bs4 import BeautifulSoup -from .base import SeleniumScraper + +from app.config import settings logger = logging.getLogger(__name__) -class LuckyCaliforniaScraper(SeleniumScraper): - def __init__(self, base_url: str = "https://luckysupermarkets.com"): - super().__init__(base_url=base_url, rate_limit_seconds=3.0) - self.ingredients_cache = {} +class SwiftlyAuthError(Exception): + """Raised when the Swiftly API returns 401. + The exception message is surfaced verbatim to the ScrapeLog row by + ``_run_scrape_in_background``; keep it actionable. + """ + + +_USER_AGENT = ( + "MealPlannerBot/1.0 (+https://mealplanner.local; contact peter@research.bike)" +) + +_AUTH_ERROR_MESSAGE = ( + "SWIFTLY_BEARER_TOKEN expired — request a fresh token from the user " + "(capture from luckysupermarkets.com network tab on a /search/api/v1 request)" +) + + +class LuckyCaliforniaScraper: + """Swiftly product-API client for the Lucky California banner. + + The class name is preserved (``LuckyCaliforniaScraper``) so existing + import sites in ``app.scraper.__init__`` and + ``ScraperService._do_scrape`` keep working. Internally it is no + longer a ``BaseScraper`` subclass: that class wires Playwright + + ``_get`` retry-with-swallow, neither of which we want here. The + client uses two ``requests.Session`` objects so the bearer header + is scoped strictly to the API host (the public categories page + is unauthenticated). + """ + + SOURCE = "lucky_california" + SLUG_HREF_RE = re.compile( + r']*\bclass="swiftlyCouponCategory")(?=[^>]*\bhref="([^"]+)")[^>]*>', + re.IGNORECASE, + ) + + def __init__( + self, + *, + bearer_token: Optional[str] = None, + store_id: Optional[str] = None, + api_base: Optional[str] = None, + categories_url: Optional[str] = None, + rate_limit_seconds: float = 0.75, + timeout: int = 60, + ) -> None: + self.bearer_token = bearer_token or settings.SWIFTLY_BEARER_TOKEN + self.store_id = store_id or settings.LUCKY_STORE_ID + self.api_base = (api_base or settings.SWIFTLY_API_BASE).rstrip("/") + self.categories_url = categories_url or settings.SWIFTLY_CATEGORIES_URL + self.rate_limit_seconds = rate_limit_seconds + self.timeout = timeout + self._last_request = 0.0 + + self.public_session = requests.Session() + self.public_session.headers.update( + { + "User-Agent": _USER_AGENT, + "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", + "Accept-Language": "en-US,en;q=0.5", + } + ) + + self.api_session = requests.Session() + self.api_session.headers.update( + { + "User-Agent": _USER_AGENT, + "Accept": "application/json", + } + ) + # base_url retained for code paths that still introspect it. + self.base_url = "https://luckysupermarkets.com" + + # ------------------------------------------------------------------ + # Lifecycle (no-op; preserves cleanup() contract from BaseScraper). + # ------------------------------------------------------------------ + def cleanup(self) -> None: + try: + self.public_session.close() + finally: + self.api_session.close() + + # ------------------------------------------------------------------ + # Public scrape entrypoints + # ------------------------------------------------------------------ def scrape(self) -> Dict[str, Any]: - logger.info("Starting Lucky California scrape") - result = { - "source": "lucky_california", + """Synchronous top-level scrape. + + Kept for the legacy ``ScraperService.run_scrape`` path used by + tests. Walks every category and returns ``{"items": [...], ...}`` + with mapped product dicts ready for ``_save_grocery_item``. + """ + started = datetime.now().isoformat() + items: List[Dict[str, Any]] = list(self.fetch_all()) + return { + "source": self.SOURCE, "scrape_type": "weekly_ad", - "started_at": datetime.now().isoformat(), - "items_scraped": 0, - "items": [] + "started_at": started, + "completed_at": datetime.now().isoformat(), + "items_scraped": len(items), + "items": items, + "status": "success", } - try: - featured_items = self.scrape_featured_coupons() - result["items"].extend(featured_items) - result["items_scraped"] = len(featured_items) - - result["completed_at"] = datetime.now().isoformat() - result["status"] = "success" - logger.info(f"Lucky California scrape complete: {result['items_scraped']} items") - - except Exception as e: - logger.error(f"Lucky California scrape failed: {e}") - result["status"] = "failed" - result["error_message"] = str(e) - result["completed_at"] = datetime.now().isoformat() - - return result - - def scrape_featured_coupons(self) -> List[Dict[str, Any]]: - url = f"{self.base_url}/coupons/Coupon%2Flu-featured-in-ad" - logger.info(f"Scraping featured coupons from {url}") - - page = self.get_browser_page(url) - content = page.content() - page.close() - - soup = BeautifulSoup(content, "html.parser") - items = [] - - coupon_items = soup.find_all("div", class_=re.compile(r"coupon|item|product", re.I)) - if not coupon_items: - headline = soup.find("h1") - if headline: - logger.info(f"Page loaded, headline: {headline.get_text().strip()}") - - titles = soup.find_all(["h2", "h3", "a"], string=re.compile(r"\$[\d\.]+")) - for title_elem in titles[:20]: + def fetch_all(self) -> Iterator[Dict[str, Any]]: + """Yield mapped product dicts across every discovered category.""" + slugs = self.discover_categories() + logger.info("Swiftly: discovered %d categories", len(slugs)) + for slug in slugs: try: - item = self._parse_coupon_item(title_elem) - if item: - items.append(item) - except Exception as e: - logger.debug(f"Failed to parse item: {e}") + products = self.fetch_category(slug) + except SwiftlyAuthError: + # Hard fail — token must be refreshed before any further work. + raise + except requests.RequestException as exc: + logger.warning("Swiftly: skipping %s after error: %s", slug, exc) continue + aisle = self._aisle_from_slug(slug) + for product in products: + mapped = self.map_product(product, aisle=aisle, source_slug=slug) + if mapped is not None: + yield mapped - logger.info(f"Found {len(items)} coupon items") + # ------------------------------------------------------------------ + # Category discovery + # ------------------------------------------------------------------ + def discover_categories(self) -> List[str]: + """Fetch the categories page and return the list of API slugs. + + The slugs look like ``Product/meat_seafood``. Order is preserved + from the HTML (which is the order shown to the user). + """ + self._rate_limit() + resp = self.public_session.get(self.categories_url, timeout=self.timeout) + resp.raise_for_status() + return self.parse_categories_html(resp.text) + + @classmethod + def parse_categories_html(cls, html: str) -> List[str]: + """Pure parser used by tests against a saved fixture.""" + slugs: List[str] = [] + seen: set[str] = set() + for href in cls.SLUG_HREF_RE.findall(html): + m = re.match(r"^/categories/(.+)$", href) + if not m: + continue + slug = urllib.parse.unquote(m.group(1)) + if slug not in seen: + seen.add(slug) + slugs.append(slug) + return slugs + + # ------------------------------------------------------------------ + # Per-category fetch + # ------------------------------------------------------------------ + def fetch_category(self, slug: str) -> List[Dict[str, Any]]: + """Fetch every product in a category. Raises ``SwiftlyAuthError`` on 401.""" + if not self.bearer_token: + raise SwiftlyAuthError(_AUTH_ERROR_MESSAGE) + + self._rate_limit() + url = f"{self.api_base}/search/api/v1/products/categories" + params = {"cat": slug, "store": self.store_id, "limit": 10000} + headers = {"Authorization": f"Bearer {self.bearer_token}"} + resp = self.api_session.get( + url, params=params, headers=headers, timeout=self.timeout + ) + if resp.status_code == 401: + raise SwiftlyAuthError(_AUTH_ERROR_MESSAGE) + resp.raise_for_status() + payload = resp.json() + return self.parse_category_response(payload) + + @staticmethod + def parse_category_response(payload: Dict[str, Any]) -> List[Dict[str, Any]]: + """Pure parser used by tests against a saved fixture.""" + if not isinstance(payload, dict): + return [] + products = payload.get("products") or {} + items = products.get("items") + if not isinstance(items, list): + return [] return items - def _parse_coupon_item(self, element) -> Optional[Dict[str, Any]]: - text = element.get_text().strip() + # ------------------------------------------------------------------ + # Field mapping + # ------------------------------------------------------------------ + @classmethod + def map_product( + cls, + product: Dict[str, Any], + *, + aisle: Optional[str] = None, + source_slug: Optional[str] = None, + ) -> Optional[Dict[str, Any]]: + """Convert one Swiftly product dict to a grocery_item-ready dict. - price_match = re.search(r'\$[\d,]+\.?\d*', text) - if not price_match: + Returns ``None`` for products with no parseable price or no name — + those are usually placeholder/unavailable rows. + """ + external_id = product.get("id") + name = (product.get("name") or "").strip() + if not name: return None - price_str = price_match.group().replace("$", "").replace(",", "") - try: - price = float(price_str) - except ValueError: + price_block = (product.get("price") or {}).get("ok") or {} + reg_price, reg_unit = cls._parse_price(price_block.get("regPriceText")) + promo = price_block.get("promoArea") or {} + sale_price, sale_unit = cls._parse_price(promo.get("promoText")) + + if reg_price is None and sale_price is None: + # No usable price; skip rather than persist garbage. return None - name_elem = element.find_parent("a") or element.find_parent("div") - name = text.split("$")[0].strip() if "$" in text else text - name = re.sub(r'\s+', " ", name).strip()[:200] + unit = sale_unit or reg_unit + is_on_sale = sale_price is not None and reg_price is not None and sale_price < reg_price + # current_price = "what the customer pays today" → sale_price when on sale. + current_price = sale_price if is_on_sale else reg_price - if not name or len(name) < 3: - return None + image_url: Optional[str] = None + primary_image = product.get("primaryImage") + if isinstance(primary_image, dict): + image_url = primary_image.get("url") - image_url = None - img_elem = element.find_parent().find("img") if element.find_parent() else None - if img_elem and img_elem.get("src"): - image_url = img_elem["src"] + brand = product.get("brand") + description = product.get("description") - product_url = None - link_elem = element.find_parent("a") if element.find_parent() else element.find("a") - if link_elem and link_elem.get("href"): - product_url = urljoin(self.base_url, link_elem["href"]) - - item = { - "name": name, - "current_price": price, + return { + "external_id": str(external_id) if external_id is not None else None, + "source": cls.SOURCE, + "name": name[:300], + "brand": (brand or None), + "description": description, + "current_price": current_price, + "regular_price": reg_price, + "sale_price": sale_price, + "is_on_sale": bool(is_on_sale), + "unit": unit, + "aisle": aisle, "image_url": image_url, - "product_url": product_url, - "is_on_sale": True, + "product_url": None, # Swiftly does not expose a public product URL "scraped_at": datetime.now().isoformat(), - "scraped_url": self.base_url + "scraped_url": f"{cls.__name__}:{source_slug}" if source_slug else None, } - return item + # ------------------------------------------------------------------ + # Helpers + # ------------------------------------------------------------------ + @staticmethod + def _parse_price(text: Optional[str]) -> Tuple[Optional[Decimal], Optional[str]]: + """Extract ``(price, unit)`` from strings like ``"$3.49 /lb"``. - def scrape_produce(self) -> List[Dict[str, Any]]: - url = f"{self.base_url}/coupons/Coupon%2Flu-produce" - logger.info(f"Scraping produce from {url}") + Returns ``(None, None)`` when ``text`` is empty or unparseable. + """ + if not text: + return None, None + m = re.search(r"\$\s*([\d,]+(?:\.\d+)?)", text) + if not m: + return None, None + raw = m.group(1).replace(",", "") + try: + price = Decimal(raw) + except (InvalidOperation, ValueError): + return None, None + unit_match = re.search(r"/\s*([A-Za-z]+)", text) + unit = unit_match.group(1).lower() if unit_match else None + return price, unit - page = self.get_browser_page(url) - content = page.content() - page.close() + @staticmethod + def _aisle_from_slug(slug: str) -> Optional[str]: + """``Product/meat_seafood`` → ``meat_seafood``.""" + if not slug: + return None + if "/" in slug: + return slug.rsplit("/", 1)[1] + return slug - soup = BeautifulSoup(content, "html.parser") - items = [] - - for item_elem in soup.find_all("div", class_=re.compile(r"product|item|coupon")): - try: - item = self._parse_coupon_item(item_elem) - if item: - item["aisle"] = "Produce" - items.append(item) - except Exception: - continue - - return items - - def scrape_meat_seafood(self) -> List[Dict[str, Any]]: - url = f"{self.base_url}/coupons/Coupon%2Flu-meat-seafood" - logger.info(f"Scraping meat & seafood from {url}") - - page = self.get_browser_page(url) - content = page.content() - page.close() - - soup = BeautifulSoup(content, "html.parser") - items = [] - - for item_elem in soup.find_all("div", class_=re.compile(r"product|item|coupon")): - try: - item = self._parse_coupon_item(item_elem) - if item: - item["aisle"] = "Meat" - items.append(item) - except Exception: - continue - - return items - - def scrape_dairy_eggs(self) -> List[Dict[str, Any]]: - url = f"{self.base_url}/coupons/Coupon%2Flu-dairy-eggs" - logger.info(f"Scraping dairy & eggs from {url}") - - page = self.get_browser_page(url) - content = page.content() - page.close() - - soup = BeautifulSoup(content, "html.parser") - items = [] - - for item_elem in soup.find_all("div", class_=re.compile(r"product|item|coupon")): - try: - item = self._parse_coupon_item(item_elem) - if item: - item["aisle"] = "Dairy" - items.append(item) - except Exception: - continue - - return items \ No newline at end of file + def _rate_limit(self) -> None: + elapsed = time.time() - self._last_request + if elapsed < self.rate_limit_seconds: + time.sleep(self.rate_limit_seconds - elapsed) + self._last_request = time.time() diff --git a/backend/app/security.py b/backend/app/security.py new file mode 100644 index 0000000..2bcdda5 --- /dev/null +++ b/backend/app/security.py @@ -0,0 +1,70 @@ +""" +Auth dependencies for the MealPlanner backend. + +Two flavors: +- ``require_admin`` — bearer token for ``/api/admin/*`` routes; token compared + to ``settings.ADMIN_TOKEN`` (must be set in env). +- ``require_session`` — signed-cookie session (``itsdangerous``) gating + mutations on the family-facing routers; reads stay open inside the + trusted network. + +The per-voter approval-token flow on meal items is intentionally NOT covered +here — it has its own short-lived single-use tokens elsewhere. +""" + +from fastapi import HTTPException, Request, status +from itsdangerous import BadSignature, SignatureExpired, TimestampSigner + +from app.config import settings + +bearer_header = "Authorization" + +SESSION_COOKIE = "mp_session" +SESSION_MAX_AGE = 60 * 60 * 24 * 30 # 30 days + + +def require_admin(request: Request) -> None: + """Enforce a shared bearer token. 401 on bad/missing token, 503 if unset.""" + expected = settings.ADMIN_TOKEN + if not expected: + raise HTTPException( + status_code=status.HTTP_503_SERVICE_UNAVAILABLE, + detail="Admin auth not configured", + ) + auth = request.headers.get(bearer_header, "") + if not auth.startswith("Bearer ") or auth[7:] != expected: + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="Invalid admin token", + ) + + +def _signer() -> TimestampSigner: + return TimestampSigner(settings.SECRET_KEY) + + +def issue_session(family_profile_id: str) -> str: + """Sign the family_profile_id and return the cookie value.""" + return _signer().sign(family_profile_id.encode()).decode() + + +def require_session(request: Request) -> str: + """Return the family_profile_id stored in the signed session cookie.""" + raw = request.cookies.get(SESSION_COOKIE) + if not raw: + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, detail="Session required" + ) + try: + family_id = ( + _signer().unsign(raw.encode(), max_age=SESSION_MAX_AGE).decode() + ) + except SignatureExpired: + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, detail="Session expired" + ) + except BadSignature: + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, detail="Invalid session" + ) + return family_id diff --git a/backend/app/services/__init__.py b/backend/app/services/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/backend/app/services/approval.py b/backend/app/services/approval.py new file mode 100644 index 0000000..10c825f --- /dev/null +++ b/backend/app/services/approval.py @@ -0,0 +1,89 @@ +""" +Per-voter approval tokens. + +Stateless signed tokens (itsdangerous) keyed on settings.SECRET_KEY with a +versioned salt. Single-use is enforced by the presence of a MealPlanVote +row for (item, voter) — the table already has UniqueConstraint on that +pair, so the DB is the source of truth, not a token-status column. +""" + +from __future__ import annotations + +from typing import TYPE_CHECKING +from uuid import UUID + +from fastapi import HTTPException +from itsdangerous import ( + BadSignature, + SignatureExpired, + URLSafeTimedSerializer, +) + +from app.config import settings +from app.models import FamilyMember, MealPlanVote + +if TYPE_CHECKING: # pragma: no cover + from sqlalchemy.orm import Session + + +SALT = "meal-approval-v1" +DEFAULT_MAX_AGE_SECONDS = 7 * 24 * 3600 + + +def _serializer() -> URLSafeTimedSerializer: + return URLSafeTimedSerializer(secret_key=settings.SECRET_KEY, salt=SALT) + + +def issue_token(meal_plan_item_id: UUID, family_member_id: UUID) -> str: + payload = { + "item": str(meal_plan_item_id), + "voter": str(family_member_id), + } + return _serializer().dumps(payload) + + +def verify_token(token: str, max_age_seconds: int = DEFAULT_MAX_AGE_SECONDS) -> dict: + try: + payload = _serializer().loads(token, max_age=max_age_seconds) + except SignatureExpired: + raise HTTPException(status_code=401, detail="Token expired") + except BadSignature: + raise HTTPException(status_code=401, detail="Invalid token") + if not isinstance(payload, dict) or "item" not in payload or "voter" not in payload: + raise HTTPException(status_code=401, detail="Invalid token payload") + return payload + + +def consume_token( + db: "Session", + token: str, + meal_plan_item_id: UUID, + max_age_seconds: int = DEFAULT_MAX_AGE_SECONDS, +) -> FamilyMember: + """Verify + match URL + enforce single-use. Returns the voter on success. + + Single-use is checked by looking for an existing MealPlanVote row for + (item, voter). If one exists, raise 409. + """ + payload = verify_token(token, max_age_seconds=max_age_seconds) + + if str(payload["item"]) != str(meal_plan_item_id): + raise HTTPException(status_code=400, detail="Token not valid for this meal") + + voter_id = UUID(str(payload["voter"])) + voter = db.query(FamilyMember).filter(FamilyMember.id == voter_id).first() + if not voter: + raise HTTPException(status_code=404, detail="Voter not found") + + existing = ( + db.query(MealPlanVote) + .filter( + MealPlanVote.meal_plan_item_id == meal_plan_item_id, + MealPlanVote.family_member_id == voter_id, + ) + .first() + ) + if existing: + raise HTTPException(status_code=409, detail="Already voted") + + return voter diff --git a/backend/app/services/email.py b/backend/app/services/email.py new file mode 100644 index 0000000..af61b49 --- /dev/null +++ b/backend/app/services/email.py @@ -0,0 +1,89 @@ +""" +Email backends. + +R2-B spike: only ConsoleEmailBackend is functional. SendGrid is a stub +intentionally left to be wired in R3-C. +""" + +from __future__ import annotations + +import json +import os +import sys +from datetime import datetime, timezone +from pathlib import Path +from typing import Optional, Protocol + +from app.config import settings + + +# Repository convention: backend/var/email_outbox.jsonl +# This module lives at backend/app/services/email.py — go up two levels to +# reach backend/, then var/. +_BACKEND_ROOT = Path(__file__).resolve().parent.parent.parent +OUTBOX_PATH = _BACKEND_ROOT / "var" / "email_outbox.jsonl" + + +class EmailBackend(Protocol): + def send( + self, + to: str, + subject: str, + html: str, + text: Optional[str] = None, + ) -> None: + ... + + +class ConsoleEmailBackend: + """Dev/spike backend. Prints to stdout AND appends a JSON line to + backend/var/email_outbox.jsonl so the round-trip can be inspected + after the fact. + """ + + def send( + self, + to: str, + subject: str, + html: str, + text: Optional[str] = None, + ) -> None: + record = { + "ts": datetime.now(timezone.utc).isoformat(), + "to": to, + "subject": subject, + "html": html, + "text": text, + } + print( + f"[ConsoleEmailBackend] -> {to} | {subject}", + file=sys.stdout, + flush=True, + ) + OUTBOX_PATH.parent.mkdir(parents=True, exist_ok=True) + with OUTBOX_PATH.open("a", encoding="utf-8") as f: + f.write(json.dumps(record) + "\n") + + +class SendGridEmailBackend: + """Stub. Wire in R3-C (real SendGrid client + sandbox mode + retries). + + Deliberately raises so a misconfigured prod env fails loudly instead of + silently dropping mail. + """ + + def send( + self, + to: str, + subject: str, + html: str, + text: Optional[str] = None, + ) -> None: # pragma: no cover - stub + raise NotImplementedError("Wire SendGrid in R3-C") + + +def get_email_backend() -> EmailBackend: + backend = (settings.EMAIL_BACKEND or "console").lower() + if backend == "sendgrid": + return SendGridEmailBackend() + return ConsoleEmailBackend() diff --git a/backend/app/services/scraper_service.py b/backend/app/services/scraper_service.py index ed6f3e4..177a4c8 100644 --- a/backend/app/services/scraper_service.py +++ b/backend/app/services/scraper_service.py @@ -1,87 +1,204 @@ +"""Scraper service. + +Two entry points: + +- ``enqueue_scrape(db, source, scrape_type, background_tasks)``: synchronously + inserts a ``ScrapeLog`` row in status ``STARTED`` (the existing enum has no + ``pending`` member; ``STARTED`` is reused for the queued state) and registers + ``_run_scrape_in_background`` to fire after the response is sent. +- ``_run_scrape_in_background(log_id, source, scrape_type)``: runs in a + FastAPI background task with its OWN ``SessionLocal()`` (the request-scoped + ``db`` is closed by the time this fires). Writes terminal status + (``SUCCESS``/``FAILED``) and ``error_message``. + +``ScraperService.run_scrape`` is preserved for direct/test invocation; the +``/api/admin/scrape`` endpoint now goes through ``enqueue_scrape``. +""" +from __future__ import annotations + import logging -from typing import Dict, Any, Optional -from datetime import datetime -from uuid import uuid4 +from typing import Any, Dict, Optional +from datetime import datetime, timezone +from uuid import UUID, uuid4 + +from fastapi import BackgroundTasks from sqlalchemy.orm import Session +from app.database import SessionLocal +from app.models import GroceryItem, Ingredient, ScrapeLog, ScrapeStatus + logger = logging.getLogger(__name__) +# --------------------------------------------------------------------------- +# Public API: enqueue + background runner +# --------------------------------------------------------------------------- +def enqueue_scrape( + db: Session, + *, + source: str, + scrape_type: str, + background_tasks: BackgroundTasks, +) -> ScrapeLog: + """Create the ScrapeLog row, commit, and schedule the background scrape. + + Returns the persisted ``ScrapeLog`` instance (refreshed). The actual + scraping work runs after FastAPI sends the 202 response. + """ + log = ScrapeLog( + id=uuid4(), + source=source, + scrape_type=scrape_type, + status=ScrapeStatus.STARTED, + started_at=datetime.now(timezone.utc), + ) + db.add(log) + db.commit() + db.refresh(log) + + background_tasks.add_task( + _run_scrape_in_background, log.id, source, scrape_type + ) + return log + + +def _run_scrape_in_background( + log_id: UUID, source: str, scrape_type: str +) -> None: + """Background entry point. Opens a fresh DB session — the request-scoped + session is gone by the time this runs. + """ + db: Session = SessionLocal() + try: + log = db.query(ScrapeLog).filter(ScrapeLog.id == log_id).first() + if log is None: + logger.error("ScrapeLog %s vanished before background run", log_id) + return + + # No "running" state in the enum; STARTED already covers in-flight. + # Mark started_at fresh in case there was lag between enqueue and run. + try: + service = ScraperService(db) + saved_count, items_found = service._do_scrape(source=source) + log.status = ScrapeStatus.SUCCESS + log.items_scraped = saved_count + log.completed_at = datetime.now(timezone.utc) + log.duration_seconds = int( + (log.completed_at - log.started_at).total_seconds() + ) + db.commit() + logger.info( + "Background scrape %s complete: %s/%s items saved", + log_id, saved_count, items_found, + ) + except Exception as exc: # noqa: BLE001 — must catch all to mark failed + logger.exception("Background scrape %s failed", log_id) + db.rollback() + # Re-fetch in case the rollback detached the instance. + log = db.query(ScrapeLog).filter(ScrapeLog.id == log_id).first() + if log is not None: + log.status = ScrapeStatus.FAILED + log.error_message = str(exc) + log.completed_at = datetime.now(timezone.utc) + if log.started_at: + log.duration_seconds = int( + (log.completed_at - log.started_at).total_seconds() + ) + db.commit() + finally: + db.close() + + +# --------------------------------------------------------------------------- +# Service class (kept for direct/test use) +# --------------------------------------------------------------------------- class ScraperService: def __init__(self, db: Session): self.db = db - def run_scrape(self, source: str = "lucky_california", scrape_type: str = "weekly_ad") -> Dict[str, Any]: - from app.scraper import LuckyCaliforniaScraper - from app.models import ScrapeLog, GroceryItem, Ingredient - - scrape_log = ScrapeLog( + def run_scrape( + self, source: str = "lucky_california", scrape_type: str = "weekly_ad" + ) -> Dict[str, Any]: + """Synchronous end-to-end scrape (legacy path). Creates the log row, + runs the scrape, commits terminal status. Used by direct callers and + tests; the API endpoint goes through ``enqueue_scrape``. + """ + log = ScrapeLog( id=uuid4(), source=source, scrape_type=scrape_type, - status="started", - started_at=datetime.now() + status=ScrapeStatus.STARTED, + started_at=datetime.now(timezone.utc), ) - self.db.add(scrape_log) + self.db.add(log) self.db.commit() - logger.info(f"Starting {source} {scrape_type} scrape") + logger.info("Starting %s %s scrape", source, scrape_type) try: - scraper = LuckyCaliforniaScraper() - result = scraper.scrape() - scraper.cleanup() - - items = result.get("items", []) - saved_count = 0 - - for item_data in items: - saved_item = self._save_grocery_item(item_data) - if saved_item: - saved_count += 1 - - scrape_log.status = "success" - scrape_log.items_scraped = saved_count - scrape_log.completed_at = datetime.now() - scrape_log.duration_seconds = int( - (scrape_log.completed_at - scrape_log.started_at).total_seconds() + saved_count, items_found = self._do_scrape(source=source) + log.status = ScrapeStatus.SUCCESS + log.items_scraped = saved_count + log.completed_at = datetime.now(timezone.utc) + log.duration_seconds = int( + (log.completed_at - log.started_at).total_seconds() ) - self.db.commit() - - logger.info(f"Scrape complete: {saved_count} items saved") - + logger.info("Scrape complete: %s items saved", saved_count) return { - "scrape_id": str(scrape_log.id), + "scrape_id": str(log.id), "status": "success", "items_scraped": saved_count, - "items_found": len(items) + "items_found": items_found, } - - except Exception as e: - logger.error(f"Scrape failed: {e}") - scrape_log.status = "failed" - scrape_log.error_message = str(e) - scrape_log.completed_at = datetime.now() - scrape_log.duration_seconds = int( - (scrape_log.completed_at - scrape_log.started_at).total_seconds() + except Exception as e: # noqa: BLE001 + logger.error("Scrape failed: %s", e) + log.status = ScrapeStatus.FAILED + log.error_message = str(e) + log.completed_at = datetime.now(timezone.utc) + log.duration_seconds = int( + (log.completed_at - log.started_at).total_seconds() ) self.db.commit() - return { - "scrape_id": str(scrape_log.id), + "scrape_id": str(log.id), "status": "failed", - "error": str(e) + "error": str(e), } - def _save_grocery_item(self, item_data: Dict[str, Any]) -> Optional[GroceryItem]: - from app.models import GroceryItem, Ingredient + # ------------------------------------------------------------------ + # Internals + # ------------------------------------------------------------------ + def _do_scrape(self, *, source: str) -> tuple[int, int]: + """Run the scraper and persist items. Returns (saved, found). - name = item_data.get("name", "").strip() + Raises any scraper exception (including ``SwiftlyAuthError``) to + the caller for status mapping. + """ + from app.scraper import LuckyCaliforniaScraper + + scraper = LuckyCaliforniaScraper() + saved_count = 0 + found_count = 0 + try: + for item_data in scraper.fetch_all(): + found_count += 1 + if self._save_grocery_item(item_data) is not None: + saved_count += 1 + finally: + scraper.cleanup() + return saved_count, found_count + + def _save_grocery_item( + self, item_data: Dict[str, Any] + ) -> Optional[GroceryItem]: + name = (item_data.get("name") or "").strip() if not name: return None name_lower = name.lower() + source = item_data.get("source") or "lucky_california" + external_id = item_data.get("external_id") ingredient = self.db.query(Ingredient).filter( Ingredient.name_lower == name_lower @@ -93,22 +210,41 @@ class ScraperService: name=name, name_lower=name_lower, aisle=item_data.get("aisle"), - typical_price=item_data.get("current_price") + typical_price=item_data.get("current_price"), ) self.db.add(ingredient) self.db.flush() - existing = self.db.query(GroceryItem).filter( - GroceryItem.name == name, - GroceryItem.scraped_url == item_data.get("scraped_url") - ).first() + # Idempotency: + # 1) (source, external_id) when both present (Swiftly path); + # 2) fall back to (name, scraped_url) for legacy rows from R2-A. + existing: Optional[GroceryItem] = None + if external_id: + existing = self.db.query(GroceryItem).filter( + GroceryItem.source == source, + GroceryItem.external_id == external_id, + ).first() + if existing is None: + existing = self.db.query(GroceryItem).filter( + GroceryItem.name == name, + GroceryItem.scraped_url == item_data.get("scraped_url"), + ).first() if existing: + existing.ingredient_id = ingredient.id + existing.brand = item_data.get("brand") existing.current_price = item_data.get("current_price") - existing.is_on_sale = item_data.get("is_on_sale", True) + existing.regular_price = item_data.get("regular_price") + existing.unit = item_data.get("unit") + existing.aisle = item_data.get("aisle") existing.image_url = item_data.get("image_url") existing.product_url = item_data.get("product_url") - existing.scraped_at = datetime.now() + existing.description = item_data.get("description") + existing.is_on_sale = bool(item_data.get("is_on_sale", False)) + existing.scraped_at = datetime.now(timezone.utc) + existing.scraped_url = item_data.get("scraped_url") + existing.external_id = external_id + existing.source = source self.db.flush() return existing @@ -116,31 +252,31 @@ class ScraperService: id=uuid4(), ingredient_id=ingredient.id, name=name, + brand=item_data.get("brand"), current_price=item_data.get("current_price"), regular_price=item_data.get("regular_price"), unit=item_data.get("unit"), aisle=item_data.get("aisle"), image_url=item_data.get("image_url"), product_url=item_data.get("product_url"), - is_on_sale=item_data.get("is_on_sale", True), + description=item_data.get("description"), + is_on_sale=bool(item_data.get("is_on_sale", False)), sale_start_date=item_data.get("sale_start_date"), sale_end_date=item_data.get("sale_end_date"), in_season=item_data.get("in_season", False), - scraped_at=datetime.now(), - scraped_url=item_data.get("scraped_url") + scraped_at=datetime.now(timezone.utc), + scraped_url=item_data.get("scraped_url"), + external_id=external_id, + source=source, ) self.db.add(grocery_item) - self.db.commit() - self.db.refresh(grocery_item) - + self.db.flush() return grocery_item def get_sale_items(self, limit: int = 50) -> list: - from app.models import GroceryItem - items = self.db.query(GroceryItem).filter( - GroceryItem.is_on_sale == True + GroceryItem.is_on_sale == True # noqa: E712 — SQLAlchemy idiom ).order_by(GroceryItem.scraped_at.desc()).limit(limit).all() return [ @@ -152,7 +288,8 @@ class ScraperService: "aisle": item.aisle, "image_url": item.image_url, "product_url": item.product_url, - "scraped_at": item.scraped_at.isoformat() if item.scraped_at else None + "description": item.description, + "scraped_at": item.scraped_at.isoformat() if item.scraped_at else None, } for item in items - ] \ No newline at end of file + ] diff --git a/backend/pytest.ini b/backend/pytest.ini new file mode 100644 index 0000000..f019feb --- /dev/null +++ b/backend/pytest.ini @@ -0,0 +1,6 @@ +[pytest] +testpaths = tests +asyncio_mode = auto +addopts = -ra +filterwarnings = + ignore::DeprecationWarning diff --git a/backend/requirements-dev.txt b/backend/requirements-dev.txt new file mode 100644 index 0000000..cd28709 --- /dev/null +++ b/backend/requirements-dev.txt @@ -0,0 +1,6 @@ +# Dev / test-only dependencies. Production deps live in requirements.txt. +pytest>=7.4 +pytest-cov>=4.1 +pytest-asyncio>=0.23 +httpx>=0.25 +freezegun>=1.4 diff --git a/backend/requirements.txt b/backend/requirements.txt index 81b1fb3..9396b0e 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -11,6 +11,8 @@ beautifulsoup4==4.12.3 lxml==5.1.0 apscheduler==3.10.4 python-dotenv==1.0.0 +itsdangerous==2.1.2 httpx==0.26.0 +requests==2.31.0 pytest==7.4.4 pytest-asyncio==0.23.3 diff --git a/backend/tests/__init__.py b/backend/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/backend/tests/conftest.py b/backend/tests/conftest.py new file mode 100644 index 0000000..1b62e8a --- /dev/null +++ b/backend/tests/conftest.py @@ -0,0 +1,205 @@ +""" +Pytest fixtures for MealPlanner backend. + +DB strategy +----------- +- If env ``TEST_DATABASE_URL`` is set, use it (must be a Postgres URL — the + current Alembic migrations use ``postgresql.UUID``/``JSONB``/``ARRAY`` types + which are not portable to SQLite). +- Else fall back to ``DATABASE_URL`` if it points at Postgres. +- Else skip Postgres-only tests (marker: ``requires_postgres``). + +Each test using the ``db`` fixture runs inside a SAVEPOINT-style nested +transaction that rolls back on teardown so tests do not leak state. +""" + +from __future__ import annotations + +import os +import sys +import pathlib +import subprocess +from typing import Iterator + +import pytest + +# Ensure DATABASE_URL is set BEFORE importing app.config (Settings requires it). +# We default to the TEST_DATABASE_URL or a sentinel that lets imports succeed; +# tests that actually need the DB rely on the marker / fixture skip path below. +_DEFAULT_DSN = "postgresql://mealplanner:password@localhost:5432/mealplanner_test" +os.environ.setdefault( + "DATABASE_URL", + os.environ.get("TEST_DATABASE_URL", _DEFAULT_DSN), +) + +# Make backend/ importable when pytest is invoked from repo root. +BACKEND_ROOT = pathlib.Path(__file__).resolve().parent.parent +if str(BACKEND_ROOT) not in sys.path: + sys.path.insert(0, str(BACKEND_ROOT)) + +from sqlalchemy import create_engine, text # noqa: E402 +from sqlalchemy.orm import sessionmaker # noqa: E402 +from sqlalchemy.exc import OperationalError # noqa: E402 + + +def _resolve_test_dsn() -> str | None: + dsn = os.environ.get("TEST_DATABASE_URL") or os.environ.get("DATABASE_URL") + if not dsn: + return None + if not dsn.startswith(("postgresql://", "postgresql+psycopg2://")): + return None + return dsn + + +def _postgres_reachable(dsn: str) -> bool: + try: + eng = create_engine( + dsn.replace("postgresql://", "postgresql+psycopg2://"), + pool_pre_ping=True, + ) + with eng.connect() as conn: + conn.execute(text("SELECT 1")) + eng.dispose() + return True + except Exception: + return False + + +_DSN = _resolve_test_dsn() +_PG_AVAILABLE = bool(_DSN) and _postgres_reachable(_DSN) + + +def pytest_collection_modifyitems(config, items): + """Skip postgres-only tests when no live Postgres is available.""" + if _PG_AVAILABLE: + return + skip_pg = pytest.mark.skip( + reason="Postgres not reachable; set TEST_DATABASE_URL to enable." + ) + for item in items: + if "requires_postgres" in item.keywords: + item.add_marker(skip_pg) + + +def pytest_configure(config): + config.addinivalue_line( + "markers", + "requires_postgres: test needs a live Postgres reachable via TEST_DATABASE_URL", + ) + config.addinivalue_line( + "markers", + "scraper_offline: parser-only test; uses saved HTML fixture; no " + "network or Playwright/Chromium required (CI-safe).", + ) + config.addinivalue_line( + "markers", + "scraper_live: hits the live grocery website; requires Playwright " + "and Chromium; skipped by default in CI.", + ) + + +# --------------------------------------------------------------------------- +# Schema bootstrap (session-scoped): run alembic upgrade head once per session. +# --------------------------------------------------------------------------- +@pytest.fixture(scope="session") +def _schema() -> Iterator[None]: + if not _PG_AVAILABLE: + yield + return + env = os.environ.copy() + env["DATABASE_URL"] = _DSN # Alembic env.py reads from settings.DATABASE_URL + # alembic.ini lives in backend/, run from there. + subprocess.run( + ["alembic", "upgrade", "head"], + cwd=str(BACKEND_ROOT), + env=env, + check=True, + ) + yield + # Best-effort cleanup so re-running the suite locally is idempotent. + subprocess.run( + ["alembic", "downgrade", "base"], + cwd=str(BACKEND_ROOT), + env=env, + check=False, + ) + + +@pytest.fixture(scope="session") +def _engine(_schema): + if not _PG_AVAILABLE: + yield None + return + eng = create_engine( + _DSN.replace("postgresql://", "postgresql+psycopg2://"), + pool_pre_ping=True, + ) + yield eng + eng.dispose() + + +@pytest.fixture() +def db(_engine): + """Per-test transactional session that rolls back at teardown.""" + if _engine is None: + pytest.skip("Postgres not reachable") + connection = _engine.connect() + trans = connection.begin() + Session = sessionmaker(bind=connection, autocommit=False, autoflush=False) + session = Session() + try: + yield session + finally: + session.close() + trans.rollback() + connection.close() + + +@pytest.fixture() +def client(db): + """TestClient with get_db overridden to yield the test session.""" + from fastapi.testclient import TestClient + from app.main import app + from app.database import get_db + + def _override(): + try: + yield db + finally: + pass + + app.dependency_overrides[get_db] = _override + try: + with TestClient(app) as c: + yield c + finally: + app.dependency_overrides.pop(get_db, None) + + +@pytest.fixture() +def client_no_db(): + """TestClient that does NOT require a live DB — for pure import/wiring smoke.""" + from fastapi.testclient import TestClient + from app.main import app + from app.database import get_db + + class _StubSession: + def execute(self, *a, **kw): + from sqlalchemy.engine import Result # noqa: F401 + raise RuntimeError("DB not available in this fixture") + + def query(self, *a, **kw): + raise RuntimeError("DB not available in this fixture") + + def close(self): + pass + + def _override(): + yield _StubSession() + + app.dependency_overrides[get_db] = _override + try: + with TestClient(app) as c: + yield c + finally: + app.dependency_overrides.pop(get_db, None) diff --git a/backend/tests/fixtures/lucky_ca/META.md b/backend/tests/fixtures/lucky_ca/META.md new file mode 100644 index 0000000..a7b7d2b --- /dev/null +++ b/backend/tests/fixtures/lucky_ca/META.md @@ -0,0 +1,50 @@ +# Lucky California weekly-ad spike (R2-A) + +| Field | Value | +| --- | --- | +| URL | https://luckysupermarkets.com/coupons/Coupon%2Flu-featured-in-ad | +| Final URL | https://luckysupermarkets.com/coupons/Coupon%2Flu-featured-in-ad | +| Fetched (UTC) | 2026-05-04 (single live fetch via scripts/spike_lucky_scrape.py) | +| HTTP status | 200 | +| HTML bytes | 201224 | +| Items parsed (current parser) | 11 | +| Captcha/block signal | benign — page contains an empty `` placeholder, no actual challenge served. Title: "Featured in Ad \| Luckys Supermarket". 13 real `coupon-card-wrapper` cards rendered. | +| Error | none | +| User-Agent | `Mozilla/5.0 (compatible; MealPlannerSpike/0.1; +https://github.com/MealPlanner; spike=R2-A)` | + +## Selectors used (verified against this fixture) + +- Card root: `div.coupon-card-wrapper` (fallback: `div.coupon-card-container`) +- Price + short name: `.coupon-card-value-text` (e.g. `"$13.97 Pepsi 24 packs"`) +- Long description: `.coupon-card-short-description` +- Image: `img` inside `.coupon-card-img-container` (CDN URL: `cdn.luckysupermarkets.com/loyalty/offer/.jpg`) +- No per-card link is present in the rendered DOM (offers are non-navigable tiles). + +## First parsed item (sample) + +```json +{ + "name": "Pepsi 24 packs", + "description": "$13.97 Pepsi Products 24 pack, Poppi 8 pack, Gatorade 18 pack, Rockstar 10 pack, or Pure Leaf 12 pack, select varieties +CRV in CA. While supplies last.", + "current_price": 13.97, + "image_url": "https://cdn.luckysupermarkets.com/loyalty/offer/205213.jpg", + "product_url": null, + "is_on_sale": true, + "scraped_at": "2026-05-04T21:42:56.952936", + "scraped_url": "https://luckysupermarkets.com" +} +``` + +## Notes + +- ONE live fetch performed by `scripts/spike_lucky_scrape.py`. Do not rerun without reason. +- HTML and PNG saved alongside this file (`weekly_ad.html`, `weekly_ad.png`). +- Initial parser (regex-based on `h2/h3/a` text) produced only 1 item; selectors were + stale. A minimal additive fix landed in `backend/app/scraper/lucky_ca_scraper.py`: + new `_parse_coupon_card` + `parse_featured_coupons_html` methods that target + Swiftly-style `.coupon-card-wrapper` cards. Old `_parse_coupon_item` retained + as a fallback path. +- Schema impact: `grocery_item` columns (name, current_price, image_url, is_on_sale, + scraped_at, scraped_url) are all populated. `product_url` is None for every + card (no per-offer link in DOM) — keep nullable. New optional `description` + field is produced; either add a `description TEXT` column or drop it. diff --git a/backend/tests/fixtures/lucky_ca/categories.html b/backend/tests/fixtures/lucky_ca/categories.html new file mode 100644 index 0000000..daa7c83 --- /dev/null +++ b/backend/tests/fixtures/lucky_ca/categories.html @@ -0,0 +1,80 @@ +Product Categories | Lucky Supermarket
\ No newline at end of file diff --git a/backend/tests/fixtures/lucky_ca/category_meat_seafood.json b/backend/tests/fixtures/lucky_ca/category_meat_seafood.json new file mode 100644 index 0000000..e4d6a80 --- /dev/null +++ b/backend/tests/fixtures/lucky_ca/category_meat_seafood.json @@ -0,0 +1 @@ +{"products":{"info":{"count":256,"queryTime":128,"isManagedQuery":false,"isRewriteQuery":false,"hasBoostedItems":false},"items":[{"id":"46556","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$3.49 /lb","promoArea":{"promoText":"$2.49 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Foster Farms, Fresh and Natural Chicken Thigh Fillets Value Pack ","description":"Foster Farms, Fresh and Natural Chicken Thigh Fillets Value Pack ","brand":"FOSTER FARMS MEAT","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062862_594d50a0-db9f-4efb-8924-6edfe1343b42.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.99014"},"productCodes":["00205405000000","00254153000008","00260846000002","00260873000006","00270873000005","0205405000000","0254153000008","0260846000002","0260873000006","0270873000005","20540500000","205405000000","25415300000","254153000008","26084600000","260846000002","26087300000","260873000006","27087300000","270873000005"],"rank":{"salesPrice":233884,"salesQuantity":16009,"impressionCount":727}},{"id":"46589","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$5.99 /lb","template":"RegPrice"}},"name":"Wings, Maxx Pack ","description":"Wings, Maxx Pack ","brand":"MASTER CUT MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/8309468_7946dccd-b38b-467a-9db1-3c5f8011bbe0.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.98873"},"productCodes":["00200765000004","00231874000005","00254229000000","00268464000008","00280966000003","0200765000004","0231874000005","0254229000000","0268464000008","0280966000003","20076500000","200765000004","23187400000","231874000005","25422900000","254229000000","26846400000","268464000008","28096600000","280966000003"],"rank":{"salesPrice":131345,"salesQuantity":11756,"impressionCount":74}},{"id":"46587","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$2.99 /lb","template":"RegPrice"}},"name":"Master Cut, Chicken Drumsticks, Maxx Pack ","description":"Master Cut Chicken Drumsticks, Maxx Pack, 3 lbs. minimum required ","brand":"MASTER CUT MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062874_8d719ffd-1f98-4019-9705-9288b8208503.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.98838"},"productCodes":["00231872000007","00254227000002","00268462000000","00280964000005","0231872000007","0254227000002","0268462000000","0280964000005","23187200000","231872000007","25422700000","254227000002","26846200000","268462000000","28096400000","280964000005"],"rank":{"salesPrice":191057,"salesQuantity":14422,"impressionCount":126}},{"id":"67617","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$5.99 /lb","promoArea":{"promoText":"$4.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Bag Pork Butt Roast ","description":"Bag Pork Butt Roast ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062799_864441ba-58f5-4a31-93b0-99358b7bfd0a.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.98791"},"productCodes":["00251609000001","0251609000001","25160900000","251609000001"],"rank":{"salesPrice":77769,"salesQuantity":7076,"impressionCount":562}},{"id":"46555","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$3.49 /lb","promoArea":{"promoText":"$2.49 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Foster Farms, Fresh and Natural Cage Free Drumsticks Value Pack ","description":"Foster Farms, Fresh and Natural Cage Free Drumsticks Value Pack ","brand":"FOSTER FARMS MEAT","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062861_da796390-227a-4520-b6d1-947e92814cf1.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.98615"},"productCodes":["00205406000009","00254152000009","00260872000007","00260897000006","00270872000006","0205406000009","0254152000009","0260872000007","0260897000006","0270872000006","20540600000","205406000009","25415200000","254152000009","26087200000","260872000007","26089700000","260897000006","27087200000","270872000006"],"rank":{"salesPrice":102172,"salesQuantity":7656,"impressionCount":187}},{"id":"46107","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/ground_beef_beef_patties","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/ground_beef_beef_patties"],"price":{"ok":{"regPriceText":"$11.49 /lb","template":"RegPrice"}},"name":"Ground Beef, 80% Lean, Maxx Pack ","description":"80% Lean Ground Beef, Maxx Pack, 3 lbs. minimum required ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062641_9430b291-f783-4022-bf29-07a3d615d16f.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.98579"},"productCodes":["00250509000005","0250509000005","25050900000","250509000005"],"rank":{"salesPrice":217515,"salesQuantity":13660,"impressionCount":636}},{"id":"46740","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/fish","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/fish"],"price":{"ok":{"regPriceText":"$12.99 /lb","promoArea":{"promoText":"$9.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Fresh Atlantic Salmon Fillet, Farm Raised ","description":"Fresh Atlantic Salmon Fillet, Natural Color Added ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062957_a296fe2b-3136-4e6b-9e8c-a45bd34d7595.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.98568"},"productCodes":["00255024000004","0255024000004","25502400000","255024000004"],"rank":{"salesPrice":246339,"salesQuantity":9817,"impressionCount":1090}},{"id":"858929","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/ham_smoked_cuts","Product/pork","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/ham_smoked_cuts"],"price":{"ok":{"regPriceText":"$4.99 /lb","promoArea":{"promoText":"$1.99 /lb","validityText":"Valid 04/08/26 - 05/06/26"},"template":"NewPrice"}},"name":"Cook's, Spiral Cut Hickory Ham ","description":"Cook's, Spiral Cut Hickory Ham ","brand":"COOKS HAM","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9981469_94ad0dba-388c-4260-866d-05f6ea08bc70.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.98462"},"productCodes":["00256240000007","0256240000007","25624000000","256240000007","25624047"],"rank":{"salesPrice":2529,"salesQuantity":232,"impressionCount":214}},{"id":"46018","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/ground_beef_beef_patties","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/ground_beef_beef_patties"],"price":{"ok":{"regPriceText":"$11.99 /lb","template":"RegPrice"}},"name":"80% Lean Ground Beef ","description":"80% Lean Ground Beef ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062566_ef6b6a45-0196-42b8-b343-7ebe119e639a.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.98377"},"productCodes":["00250009000000","0250009000000","25000900000","250009000000"],"rank":{"salesPrice":212864,"salesQuantity":19452,"impressionCount":410}},{"id":"192027","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$7.99 /lb","template":"RegPrice"}},"name":"Pork Spareribs, Frozen ","description":"Pork Spareribs, Frozen ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062804_5c786220-6ae2-4d9f-8c3b-402f5fec9f8c.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.98263"},"productCodes":["00251620000004","0251620000004","25162000000","251620000004","25162044"],"rank":{"salesPrice":27256,"salesQuantity":1548,"impressionCount":227}},{"id":"46172","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$17.99 /lb","promoArea":{"promoText":"$8.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Choice Beef Chuck Roast, Bnls ","description":"Choice Beef Chuck Roast, Bnls ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062698_968a45d2-9bf8-455f-9a89-a022c129c3b7.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.98145"},"productCodes":["00250661000004","0250661000004","25066100000","250661000004"],"rank":{"salesPrice":152226,"salesQuantity":5728,"impressionCount":694}},{"id":"46179","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$26.99 /lb","template":"RegPrice"}},"name":"CHOICE BEEF RIB ROAST - bone-in 6-18","description":"CERTIFIED ANGUS BEEF STANDING RIB ROAST SMALL END","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062707_87ef5abe-ee97-4fc4-a767-bf93e5c32274.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.98124"},"productCodes":["00250679000003","0250679000003","25067900000","250679000003"],"rank":{"salesPrice":68357,"salesQuantity":1107,"impressionCount":1489}},{"id":"633156","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/ground_beef_beef_patties","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/ground_beef_beef_patties"],"price":{"ok":{"regPriceText":"$12.49 /lb","template":"RegPrice"}},"name":"85% Lean Ground Beef ","description":"85% Lean Ground Beef ","brand":"MORAN'S (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062564_4ea5b8c5-28b3-404e-b265-bc98cd4e0d88.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.98004"},"productCodes":["00250006000003","0250006000003","25000600000","250006000003"],"rank":{"salesPrice":156410,"salesQuantity":16404,"impressionCount":156}},{"id":"46189","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$18.99 /lb","promoArea":{"promoText":"$12.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Tri Tip, Beef Loin Roast, Choice, Trimmed ","description":"Tri Tip, Beef Loin Roast, Choice, Trimmed ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7322428_b3933d6f-836a-4f45-94d3-9a5f4b11737e.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.97734"},"productCodes":["00250692000004","0250692000004","25069200000","250692000004"],"rank":{"salesPrice":79925,"salesQuantity":2379,"impressionCount":452}},{"id":"773089","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/shrimp","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/shrimp"],"price":{"ok":{"regPriceText":"$31.99","promoArea":{"promoText":"$27.98","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Raw Shrimp, Easy Peel, 13/15 ct ","description":"Raw Shrimp, Easy Peel, 13/15 ct ","brand":"MASTER CATCH","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7061926_d57da29c-b892-4e0c-aed0-4dc1ba131f0e.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.97699"},"productCodes":["00098487009500","00810011173590","00829944010902","0098487009500","0810011173590","0829944010902","09848700950","098487009500","81001117359","810011173590","82994401090","829944010902"],"rank":{"salesPrice":112864,"salesQuantity":3676,"impressionCount":1733}},{"id":"46335","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$5.99 /lb","promoArea":{"promoText":"$3.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Country Style Pork Ribs, Maxx Pack ","description":"Country Style Pork Ribs, Maxx Pack, 3 lbs. minimum required ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062787_41edca07-4424-4c65-83ac-dcf1e8cf099f.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.97546"},"productCodes":["00251518000000","0251518000000","25151800000","251518000000"],"rank":{"salesPrice":49132,"salesQuantity":5432,"impressionCount":273}},{"id":"101138","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/turkey","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/turkey"],"price":{"ok":{"regPriceText":"$6.99","template":"RegPrice"}},"name":"Butterball , 85%/15% Ground Turkey ","description":"Butterball , 85%/15% Ground Turkey ","brand":"BUTTERBALL MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7682479_e8d5b6c4-c2a7-425f-a672-51eb0f9f679b.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.97253"},"productCodes":["00022655715467","0022655715467","02265571546","022655715467"],"rank":{"salesPrice":79005,"salesQuantity":11334,"impressionCount":184}},{"id":"46546","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$8.99 /lb","template":"RegPrice"}},"name":"Foster Farms, Simply Raised Free Range Boneless Skinless Breast Fillets ","description":"Foster Farms, Simply Raised Free Range Boneless Skinless Breast Fillets ","brand":"FOSTER FARMS MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062855_6e0f9c25-c1a7-48c2-b3c2-667324d75693.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.97135"},"productCodes":["00254140000004","00260829000005","0254140000004","0260829000005","25414000000","254140000004","25414044","26082900000","260829000005"],"rank":{"salesPrice":99960,"salesQuantity":7166,"impressionCount":80}},{"id":"46592","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$6.69 /lb","template":"RegPrice"}},"name":"Boneless Skinless Chicken Thighs, Maxx Pack ","description":"Boneless Skinless Chicken Thighs, Maxx Pack ","brand":"MASTER CUT MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062878_9dbc3f22-d87d-436a-9454-ede7fa978a26.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.97053"},"productCodes":["00231667000007","00254234000002","00268460000002","00280958000004","0231667000007","0254234000002","0268460000002","0280958000004","23166700000","231667000007","25423400000","254234000002","26846000000","268460000002","26846042","28095800000","280958000004"],"rank":{"salesPrice":76878,"salesQuantity":3956,"impressionCount":107}},{"id":"46524","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$2.69","template":"RegPrice"}},"name":"Ff Fryer Bagged ","description":"Ff Fryer Bagged ","brand":"Miller Amish","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062850_c9aba475-d0e0-491d-9fef-852235656dec.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.97042"},"productCodes":["00217617000006","00254101000005","00260805000005","00270805000004","00270972000005","0217617000006","0254101000005","0260805000005","0270805000004","0270972000005","21761700000","217617000006","25410100000","254101000005","26080500000","260805000005","27080500000","270805000004","27097200000","270972000005"],"rank":{"salesPrice":89410,"salesQuantity":5942,"impressionCount":103}},{"id":"46167","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$17.49 /lb","template":"RegPrice"}},"name":"Choice Beef Bottom Round Steak Carne Asada ","description":"Choice Beef Bottom Round Steak Carne Asada ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062696_fceae9c1-ceb2-48ae-bb6a-470a44656fa8.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.96983"},"productCodes":["00250654000004","0250654000004","25065400000","250654000004"],"rank":{"salesPrice":174626,"salesQuantity":7147,"impressionCount":202}},{"id":"77024","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/shrimp","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/shrimp"],"price":{"ok":{"regPriceText":"$23.99","promoArea":{"promoText":"$19.98","validityText":"Valid 04/23/26 - 05/12/26"},"template":"NewPrice"}},"name":"Mcatch 21/30 Raw Shrimp Ez Peel 2lb","description":"Mcatch 21/30 Raw Shrimp Ez Peel 2lb","brand":"MASTER CATCH","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062275_646328ac-94d4-4628-b19b-3ac9ce64f6bd.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.96948"},"productCodes":["00098487963949","0098487963949","09848796394","098487963949"],"rank":{"salesPrice":60284,"salesQuantity":2282,"impressionCount":831}},{"id":"46998","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/ham_smoked_cuts","Product/pork","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/ham_smoked_cuts"],"price":{"ok":{"regPriceText":"$3.99 /lb","promoArea":{"promoText":"$1.69 /lb","validityText":"Valid 04/08/26 - 05/06/26"},"template":"NewPrice"}},"name":"COOKS HAM BUTT 5-7 lb","description":"Cooks Fresh Butt Portion Ham","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7063071_40acb43c-0cca-499e-957f-3a28c7dcf2a4.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.96936"},"productCodes":["00256207000002","00293391000005","0256207000002","0293391000005","25620700000","256207000002","29339100000","293391000005"],"rank":{"salesPrice":4820,"salesQuantity":609,"impressionCount":58}},{"id":"760134","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/turkey","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/turkey"],"price":{"ok":{"regPriceText":"$8.99","template":"RegPrice"}},"name":"Jennie-O , Fresh 93%/7% Ground Turkey ","description":"Jennie-O , Fresh 93%/7% Ground Turkey ","brand":"JENNIE-O (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7055905_4236e41d-a35c-4ab3-8434-5f0e6430f4d0.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.96877"},"productCodes":["00042222302005","0042222302005","04222230200","042222302005"],"rank":{"salesPrice":91675,"salesQuantity":10752,"impressionCount":129}},{"id":"46280","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$6.49 /lb","promoArea":{"promoText":"$5.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Pork Shoulder Butt Roast, Boneless ","description":"Pork Shoulder Butt Roast, Boneless ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062761_a28a1410-1e8e-4135-9488-59e14f71d0ec.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.96713"},"productCodes":["00251107000008","0251107000008","25110700000","251107000008"],"rank":{"salesPrice":31944,"salesQuantity":2461,"impressionCount":226}},{"id":"46532","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$3.99 /lb","template":"RegPrice"}},"name":"Foster Farms, Simply Raised Free Range Chicken Thighs ","description":"Foster Farms, Simply Raised Free Range Chicken Thighs ","brand":"FOSTER FARMS MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062853_264eadc7-2eeb-4a4a-b660-ca38272cbdd1.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.96654"},"productCodes":["00254111000002","00260809000001","00270645000004","0254111000002","0260809000001","0270645000004","25411100000","254111000002","26080900000","260809000001","27064500000","270645000004"],"rank":{"salesPrice":39466,"salesQuantity":5353,"impressionCount":168}},{"id":"194177","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$10","template":"RegPrice"}},"name":"Beef Tri-Tip Steak Thin Cut ","description":"Beef Tri-Tip Steak Thin Cut ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/10011750_ee6d0597-f9c0-430d-8f11-8fd0199025ef.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.96455"},"productCodes":["00254118000005","0254118000005","25411800000","254118000005"],"rank":{"salesPrice":158085,"salesQuantity":15812,"impressionCount":310}},{"id":"105301","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/fish","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/fish"],"price":{"ok":{"regPriceText":"$14.99 /lb","promoArea":{"promoText":"$11.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Fresh Atlantic Salmon, Center Cut Fillet ","description":"Fresh Atlantic Salmon, Center Cut Fillet ","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9543850_8fffacb6-55db-4603-bcd6-18733c1e921c.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.96408"},"productCodes":["00255092000005","0255092000005","25509200000","255092000005"],"rank":{"salesPrice":117280,"salesQuantity":9134,"impressionCount":173}},{"id":"101139","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/turkey","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/turkey"],"price":{"ok":{"regPriceText":"$8.49","template":"RegPrice"}},"name":"Butterball , 93%/7% Ground Turkey ","description":"Make All Natural Butterball ground turkey meat the star of your favorite recipe for a low-fat, gluten-free choice. Always tender and juicy, lean Butterball turkey is minimally processed with no artificial ingredients and no hormones or steroids.* Enjoy Butterball's fresh ground turkey all year long for family dinners, party appetizers or grilled lunches. Butterball is American Humane Certified. *Federal regulations do not permit the use of hormones in poultry. ","brand":"BUTTERBALL MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7682480_57338b82-9e5d-4ad0-b2db-b76b39489faf.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.96232"},"productCodes":["00022655715610","0022655715610","02265571561","022655715610"],"rank":{"salesPrice":66953,"salesQuantity":7726,"impressionCount":427}},{"id":"156945","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$12.99 /lb","template":"RegPrice"}},"name":"Pasture Raised Beef Ribeye Steak ","description":"Pasture Raised Beef Ribeye Steak ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/8943305_6d794ce3-bf06-4aab-8be7-356b96ed4645.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.95926"},"productCodes":["00250124000008","0250124000008","25012400000","250124000008"],"rank":{"salesPrice":130209,"salesQuantity":8436,"impressionCount":609}},{"id":"46547","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$8.79 /lb","template":"RegPrice"}},"name":"Foster Farms, Simply Raised Free Range Boneless Skinless Chicken Thigh Fillets ","description":"Foster Farms, Simply Raised Free Range Boneless Skinless Chicken Thigh Fillets ","brand":"FOSTER FARMS MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7768596_fb91b85b-ba0b-437d-93dc-b3bc1f7d9144.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.95879"},"productCodes":["00254141000003","00260865000007","00270865000006","0254141000003","0260865000007","0270865000006","25414100000","254141000003","26086500000","260865000007","27086500000","270865000006"],"rank":{"salesPrice":75638,"salesQuantity":5449,"impressionCount":108}},{"id":"46022","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/ground_beef_beef_patties","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/ground_beef_beef_patties"],"price":{"ok":{"regPriceText":"$12.99 /lb","template":"RegPrice"}},"name":"Ground Beef Sirloin ","description":"Ground Beef Sirloin ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062570_550fb22d-7daa-4111-80eb-0b2c309dafd1.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.95433"},"productCodes":["00250025000008","0250025000008","25002500000","250025000008"],"rank":{"salesPrice":85300,"salesQuantity":5024,"impressionCount":65}},{"id":"152033","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/turkey","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/turkey"],"price":{"ok":{"regPriceText":"$8.99","promoArea":{"promoText":"$8.49","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Butterball , 98%/2% Ground Turkey Breast ","description":"Butterball extra lean ground turkey offers a convenient and delicious way to share a wholesome meal with someone you love. Swap Butterball 98/2 ground turkey in your recipes for a lean option that delivers exceptional tenderness and flavor, making it an excellent choice for those looking to keep their meals light. Made with no artificial ingredients, hormones, or steroids* and boasting 26 grams of protein per serving, this Butterball fresh all-natural** turkey lets you serve nutritious, guilt-free meals. Our high-quality lean turkey is perfect for creating savory dishes like turkey meatballs, tacos or even a turkey chili. Choose Butterball fresh ground turkey to elevate your everyday meals because, today, we turkey. no artificial ingredients. *Federal regulations prohibit the use of hormones and steroids in poultry. **All Natural means no artificial ingredients and minimally processed. ","brand":"BUTTERBALL MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9151848_9d1cc3dd-f113-4ec9-81d2-eae047f60e7b.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.95398"},"productCodes":["00022655722502","00022655722519","00022655722717","0022655722502","0022655722519","0022655722717","02265572250","022655722502","02265572251","022655722519","02265572271","022655722717"],"rank":{"salesPrice":23301,"salesQuantity":2706,"impressionCount":81}},{"id":"137404","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$3.99 /lb","promoArea":{"promoText":"$3.49 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"TSMC PORK LOIN ASSORTED CHOPS","description":"TSMC PORK LOIN ASSORTED CHOPS","brand":"THE SAVE MART COMPANY","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.95363"},"productCodes":["00251301000002","0251301000002","25130100000","251301000002"],"rank":{"salesPrice":1270,"salesQuantity":131,"impressionCount":8}},{"id":"667665","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$9.99 /lb","template":"RegPrice"}},"name":"Choice Beef Stew Meat Boneless ","description":"Choice Beef Stew Meat Boneless ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062701_65ecc80e-5460-428f-a436-e3d7e92c9008.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.95316"},"productCodes":["00250667000008","0250667000008","25066700000","250667000008"],"rank":{"salesPrice":78312,"salesQuantity":5963,"impressionCount":270}},{"id":"46305","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$11.99 /lb","template":"RegPrice"}},"name":"Pork Loin New York Chops, Boneless ","description":"Pork Loin New York Chops, Boneless ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062772_59480e26-54f4-458b-8266-15a70397609f.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.94917"},"productCodes":["00251325000002","0251325000002","25132500000","251325000002"],"rank":{"salesPrice":36341,"salesQuantity":4560,"impressionCount":116}},{"id":"74154","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$6.59 /lb","template":"RegPrice"}},"name":"Chicken, Al Pastor","description":"Randalls Chicken, Al Pastor ","brand":"RANDALLS","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.94834"},"productCodes":["00256754000005","0256754000005","25675400000","256754000005"],"rank":{"salesPrice":45725,"salesQuantity":2959,"impressionCount":5}},{"id":"735479","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$27.99 /lb","template":"RegPrice"}},"name":"Choice Beef Ribeye Steak Maxx Pack Choice Beef Ribeye Steak Maxx Pack","description":"Choice Beef Ribeye Steak Maxx Pack,, 3 lbs. minimum required Choice Beef Ribeye Steak Maxx Pack,3 lbs. minimum required","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062651_1283dff7-31c9-479a-beb5-2331a6744a3d.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.94829"},"productCodes":["00250523000005","02505230000007","0250523000005","25052300000","2505230000007","250523000005"],"rank":{"salesPrice":40408,"salesQuantity":1058,"impressionCount":410}},{"id":"46336","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$6.49 /lb","promoArea":{"promoText":"$5.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Catelli Brothers , American Half Semi-Boneless Lamb Leg Roast ","description":"Great on grill. All natural (no artificial ingredients, minimally processed). Hand Zabiha halal. A Tradition of Quality Veal & Lamb Products. ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062788_8acaa0e0-720f-481f-ba5a-87f65f8e2213.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.94494"},"productCodes":["00251519000009","0251519000009","25151900000","251519000009"],"rank":{"salesPrice":21303,"salesQuantity":1500,"impressionCount":286}},{"id":"46077","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$26.99 /lb","template":"RegPrice"}},"name":"New York Steak, Bone-In ","description":"New York Steak, Bone-In ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062621_a82b3307-c006-4a8e-9768-fef0ce86623f.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.93707"},"productCodes":["00250318000005","0250318000005","25031800000","250318000005"],"rank":{"salesPrice":48514,"salesQuantity":2990,"impressionCount":136}},{"id":"46176","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$29.99 /lb","template":"RegPrice"}},"name":"Choice Beef Rib Steak Boneless ","description":"Choice Beef Rib Steak Boneless ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062704_bb256a08-ad6d-4f43-866d-ddb8e811ec45.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.93696"},"productCodes":["00250671000001","0250671000001","25067100000","250671000001"],"rank":{"salesPrice":63752,"salesQuantity":2599,"impressionCount":352}},{"id":"604341","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/fish","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/fish"],"price":{"ok":{"regPriceText":"$13.99 /lb","promoArea":{"promoText":"$10.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Fresh Salmon Fillet Portions Nor Cal Farm Raised ","description":"Fresh Salmon Fillet Portions Nor Cal Farm Raised ","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7063044_cb4fff32-1f6d-491d-b5eb-5232338bea8c.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.9359"},"productCodes":["00255832000005","0255832000005","25583200000","255832000005"],"rank":{"salesPrice":64021,"salesQuantity":6262,"impressionCount":175}},{"id":"46550","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$9.49 /lb","template":"RegPrice"}},"name":"Foster Farms, Simply Raised Free Range Boneless and Skinless Thin Sliced Chicken Breasts ","description":"Foster Farms, Simply Raised Free Range Boneless and Skinless Thin Sliced Chicken Breasts ","brand":"FOSTER FARMS MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062859_d5a99847-1bd1-4f6a-8194-f49a6d4679b5.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.93367"},"productCodes":["00254146000008","00260831000000","0254146000008","0260831000000","25414600000","254146000008","26083100000","260831000000"],"rank":{"salesPrice":49953,"salesQuantity":3161,"impressionCount":57}},{"id":"46192","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$16.99 /lb","promoArea":{"promoText":"$9.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Choice Beef London Broil ","description":"Choice Beef London Broil ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062712_4e248aaa-3e18-4628-9567-ff33d8b8c1f1.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.93332"},"productCodes":["00250696000000","0250696000000","25069600000","250696000000"],"rank":{"salesPrice":41765,"salesQuantity":2276,"impressionCount":168}},{"id":"46549","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$8.99 /lb","template":"RegPrice"}},"name":"Foster Farms, Simply Raised Free Range Boneless Skinless Chicken Breast Tenders ","description":"Foster Farms, Simply Raised Free Range Boneless Skinless Chicken Breast Tenders ","brand":"FOSTER FARMS MEAT","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062857_ec7e9288-0b0e-4b1e-ad4f-cb5ee11930b3.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.93214"},"productCodes":["00254144000000","00260936000004","0254144000000","0260936000004","25414400000","254144000000","26093600000","260936000004"],"rank":{"salesPrice":45991,"salesQuantity":3939,"impressionCount":48}},{"id":"71145","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$11.79","promoArea":{"promoText":"$11.49","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"85%/15% Ground Beef","description":"85% lean. 15% fat. Simply put, it's good for you, the animals and our land. Our farmers and ranchers raise cattle the way generations before them raised cattle, producing nutritious and delicious American beef. Grass Run Farms cattle are free to roam and graze serene pastures and never given antibiotics or hormones. Taste the goodness of grass fed beef. Taste the difference of Grass Run Farms. 100% grass fed. No antibiotics or added hormones. Never given animal by-products. US inspected and passed by Department of Agriculture. www.grassrunfarms.com. Born, pasture raised & harvested in the USA. ","brand":"GRASS RUN FARMS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7091402_fbb5a97d-9a8d-4017-9022-282ac6715680.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.93132"},"productCodes":["00076338965045","0076338965045","07633896504","076338965045"],"rank":{"salesPrice":53536,"salesQuantity":4782,"impressionCount":109}},{"id":"74276","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$12.99","template":"RegPrice"}},"name":"Organic Ground Beef, Grass Fed, 93-7 ","description":"Organic Ground Beef, Grass Fed, 93-7 ","brand":"DIAMOND VALLEY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9266886_26cf2182-9a98-49bf-bbfd-cb91c0edcd12.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.93073"},"productCodes":["00083608198577","0083608198577","08360819857","083608198577"],"rank":{"salesPrice":83031,"salesQuantity":6598,"impressionCount":201}},{"id":"46531","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$4.29 /lb","template":"RegPrice"}},"name":"Foster Farms, Simply Raised Free Range Chicken Drumsticks ","description":"Foster Farms, Simply Raised Free Range Chicken Drumsticks ","brand":"FOSTER FARMS MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062852_7c3ba3ba-f59a-4e01-a786-3470caafb7a8.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.92944"},"productCodes":["00254110000003","00260808000002","00270808000001","0254110000003","0260808000002","0270808000001","25411000000","254110000003","25411043","26080800000","260808000002","27080800000","270808000001"],"rank":{"salesPrice":22024,"salesQuantity":2857,"impressionCount":25}},{"id":"963363","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$19.99 /lb","promoArea":{"promoText":"$14.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Choice Tri Tip Steak, Beef Loin ","description":"Choice Tri Tip Steak, Beef Loin ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9194223_96c5848d-8ff7-44ad-a297-3eafe9520a6d.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.92451"},"productCodes":["00250323000007","0250323000007","25032300000","250323000007"],"rank":{"salesPrice":39463,"salesQuantity":2365,"impressionCount":332}},{"id":"46306","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$12.99 /lb","template":"RegPrice"}},"name":"Pork Loin New York Chops, Boneless, Thin Cut ","description":"Pork Loin New York Chops, Boneless, Thin Cut ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062773_5250696f-8433-4b02-8333-c9e60c76c7d3.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.92287"},"productCodes":["00251326000001","0251326000001","25132600000","251326000001"],"rank":{"salesPrice":29463,"salesQuantity":3097,"impressionCount":81}},{"id":"156942","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$13.99 /lb","template":"RegPrice"}},"name":"TSMC PASTURED RAISED BEEF FILET MIGNON STEAK","description":"TSMC PASTURED RAISED BEEF FILET MIGNON STEAK","brand":"THE SAVE MART COMPANY","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.92193"},"productCodes":["00250123000009","0250123000009","25012300000","250123000009"],"rank":{"salesPrice":65579,"salesQuantity":4833,"impressionCount":51}},{"id":"963843","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$6.99","template":"RegPrice"}},"name":"NYSTYLE PORK FRESH GROUND","description":"NYSTYLE PORK FRESH GROUND","brand":"NEW YORK STYLE SAUSAGE","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.92158"},"productCodes":["00042629003253","0042629003253","04262900325","042629003253"],"rank":{"salesPrice":24025,"salesQuantity":3446,"impressionCount":22}},{"id":"46632","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$4.79 /lb","template":"RegPrice"}},"name":"Tyson Game Hen 2pk Fz","description":"Tyson Game Hen 2pk Fz","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062894_d3aff514-d235-49a4-8644-23631cb58627.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.92146"},"productCodes":["00254420000007","0254420000007","25442000000","254420000007","25442047"],"rank":{"salesPrice":15451,"salesQuantity":1031,"impressionCount":111}},{"id":"632081","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/prepared_marinated_beef","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/prepared_marinated_beef"],"price":{"ok":{"regPriceText":"$11.19 /lb","template":"RegPrice"}},"name":"Colorado Premium, Corned Beef Brisket Flats ","description":"Colorado Premium, Corned Beef Brisket Flats ","brand":"O'DONNELL'S","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7063095_e7a5edf3-97e5-423a-9d94-c7d7bc6adba0.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.91911"},"productCodes":["00257007000001","0257007000001","25700700000","257007000001"],"rank":{"salesPrice":13105,"salesQuantity":480,"impressionCount":22}},{"id":"736334","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$6.49 /lb","template":"RegPrice"}},"name":"RNDLS P5 CITRUS CHICKEN BREAST PIECES C/R","description":"RNDLS P5 CITRUS CHICKEN BREAST PIECES C/R","brand":"RANDALLS","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.919"},"productCodes":["00251407000005","00272034000008","00272038000004","0251407000005","0272034000008","0272038000004","25140700000","251407000005","27203400000","272034000008","27203800000","272038000004"],"rank":{"salesPrice":29340,"salesQuantity":2108,"impressionCount":0}},{"id":"457116","categories":["Product/meat_seafood","Product/sausage_ham_bacon","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/sausage_ham_bacon","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$3.29","promoArea":{"promoText":"$1.99","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Gluten Free Pork Chorizo","description":"Cacique , Gluten Free Pork Chorizo ","brand":"CACIQUE","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7059353_82030e55-4da3-4d15-8735-89c831df2d6b.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.91559"},"productCodes":["00074562005094","0074562005094","07456200509","074562005094"],"rank":{"salesPrice":10644,"salesQuantity":4288,"impressionCount":54}},{"id":"149993","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/fish","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/fish"],"price":{"ok":{"regPriceText":"$7.99","template":"RegPrice"}},"name":"Ahi Tuna Steaks, Previously Frozen ","description":"Ahi Tuna Steaks, Previously Frozen ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/8510759_8c79cb32-5ba9-4829-9e35-cc48e5a8afe3.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.91512"},"productCodes":["00255304000007","0255304000007","25530400000","255304000007"],"rank":{"salesPrice":23757,"salesQuantity":2102,"impressionCount":191}},{"id":"160003","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$10","template":"RegPrice"}},"name":"Boneless Pork Loin Chops ","description":"Boneless Pork Loin Chops ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9365958_6dbfe862-7f83-490d-a237-00da06b81293.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.91489"},"productCodes":["00251324000003","0251324000003","25132400000","251324000003"],"rank":{"salesPrice":52920,"salesQuantity":5292,"impressionCount":76}},{"id":"785518","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$8.49 /lb","promoArea":{"promoText":"$7.99 /lb","validityText":"Valid 04/14/26 - 12/30/26"},"template":"NewPrice"}},"name":"Traditional Beef Taco Meat ","description":"Beef Taco Meat Traditional ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062597_dea692a5-1295-4fdd-9c01-f1145f8a70aa.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.91406"},"productCodes":["00250200000007","0250200000007","25000027","25020000000","250200000007"],"rank":{"salesPrice":44672,"salesQuantity":4372,"impressionCount":44}},{"id":"200381","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/shrimp","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/shrimp"],"price":{"ok":{"regPriceText":"$31.99","promoArea":{"promoText":"$27.98","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"13/15 EZPL VANNAMEI WHITE IQF SHRIMP","description":"13/15 EZPL VANNAMEI WHITE IQF SHRIMP","brand":"ROYAL WHITE (SURAM TRADING)","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.91125"},"productCodes":["00081841790015","0081841790015","08184179001","081841790015"],"rank":{"salesPrice":34947,"salesQuantity":1256,"impressionCount":83}},{"id":"242940","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/turkey","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/turkey"],"price":{"ok":{"regPriceText":"$8.49","template":"RegPrice"}},"name":"Jennie-O , Fresh 93%/7% Turkey Patties ","description":"Jennie-O , Fresh 93%/7% Turkey Patties ","brand":"JENNIE-O (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7083847_1138fdc3-658e-4b52-ad84-49fb737960c5.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.90913"},"productCodes":["00039272000623","0039272000623","03927200062","039272000623"],"rank":{"salesPrice":38922,"salesQuantity":4610,"impressionCount":39}},{"id":"46381","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$6.99 /lb","template":"RegPrice"}},"name":"Pork Chili Verde ","description":"Pork Chili Verde ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062813_04ab2fed-222c-40c0-8732-4a97a6636c7a.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.9062"},"productCodes":["00251729000004","0251729000004","25172900000","251729000004"],"rank":{"salesPrice":29559,"salesQuantity":2480,"impressionCount":4}},{"id":"46634","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$11.49 /lb","template":"RegPrice"}},"name":"Foster Farms, Organic Boneless Skinless Chicken Breast Fillets ","description":"Foster Farms, Organic Boneless Skinless Chicken Breast Fillets ","brand":"FOSTER FARMS MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7540470_4a23d22b-7a57-4345-911b-b1f8918e7b7d.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.90561"},"productCodes":["00203160000006","00254442000009","00260622000004","0203160000006","0254442000009","0260622000004","20316000000","203160000006","20316046","25444200000","254442000009","26062200000","260622000004"],"rank":{"salesPrice":47201,"salesQuantity":2432,"impressionCount":13}},{"id":"46124","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$18.99 /lb","promoArea":{"promoText":"$12.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Choice Tri Tip Steak, Beef Loin, Maxx Pack ","description":"Choice Tri Tip Steak, Beef Loin, Maxx Pack ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9194226_66d951fa-896d-4bb2-a6ea-9facb2e32a43.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.90467"},"productCodes":["00250535000000","0250535000000","25053500000","250535000000"],"rank":{"salesPrice":22145,"salesQuantity":814,"impressionCount":169}},{"id":"46175","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$28.99 /lb","template":"RegPrice"}},"name":"Choice Beef Rib Steak ","description":"Choice Beef Rib Steak ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062703_a71672b2-7209-4bac-a6dc-8c70be3c13cd.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.90432"},"productCodes":["00250670000002","0250670000002","25067000000","250670000002","25067042"],"rank":{"salesPrice":50224,"salesQuantity":1918,"impressionCount":268}},{"id":"47042","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/ham_smoked_cuts","Product/pork","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/ham_smoked_cuts"],"price":{"ok":{"regPriceText":"$5.99 /lb","template":"RegPrice"}},"name":"Smoked Pork Hocks ","description":"Smoked Pork Hocks ","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7063088_5e0c9559-faf1-4af7-8a38-5794430e8f40.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.90162"},"productCodes":["00256703000001","0256703000001","25670300000","256703000001"],"rank":{"salesPrice":15715,"salesQuantity":1177,"impressionCount":57}},{"id":"46276","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$6.99 /lb","promoArea":{"promoText":"$6.49 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Pork Blade Steak ","description":"Pork Blade Steak ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062758_cd5e9c89-9218-4b9f-b3e7-98b11c8f9e19.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.8934"},"productCodes":["00251103000002","0251103000002","25110300000","251103000002"],"rank":{"salesPrice":13231,"salesQuantity":1435,"impressionCount":99}},{"id":"83692","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$10.99","template":"RegPrice"}},"name":"Grass Run Farms , 80/20 Ground Beef ","description":"80% lean 20% fat. 100% grass fed. No antibiotics or added hormones. Never given animal by-products. Simply put, it's good for you, the animals and our land. Our farmers and ranchers raise cattle the way generations before them raised cattle, producing nutritious and delicious American beef. Grass Run Farms cattle are free to roam and graze serene pastures and never given antibiotics or hormones. Taste the goodness of grass fed beef. Taste the difference of Grass Run Farms. US inspected and passed by Department of Agriculture. www.grassrunfarms.com. Born, pasture raised & harvested in the USA. ","brand":"SWIFT (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7091403_375732a8-1c7c-454f-a1d7-d2bc167d936d.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.89211"},"productCodes":["00076338965250","0076338965250","07633896525","076338965250"],"rank":{"salesPrice":35065,"salesQuantity":3290,"impressionCount":64}},{"id":"713158","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$10.99","template":"RegPrice"}},"name":"Just Bare , Hand-Trimmed Boneless Skinless ","description":"Just Bare , Hand-Trimmed Boneless Skinless ","brand":"JUST BARE CHICKEN","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7078001_5fcb96a9-d213-497d-b437-bea27a52614b.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.88929"},"productCodes":["00024105592055","00074960596675","0024105592055","0074960596675","02410559205","024105592055","07496059667","074960596675"],"rank":{"salesPrice":48406,"salesQuantity":4468,"impressionCount":81}},{"id":"457117","categories":["Product/meat_seafood","Product/sausage_ham_bacon","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/sausage_ham_bacon","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$3.29","promoArea":{"promoText":"$1.99","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Gluten Free Beef Chorizo","description":"Cacique , Gluten Free Beef Chorizo ","brand":"CACIQUE","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7059352_404a86f9-705d-451b-b068-f6549927fd79.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.88718"},"productCodes":["00074562005087","0074562005087","07456200508","074562005087"],"rank":{"salesPrice":9201,"salesQuantity":3626,"impressionCount":100}},{"id":"209912","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$10","template":"RegPrice"}},"name":"TSMC PASTURE RAISED RIBEYE STEAK","description":"TSMC PASTURE RAISED RIBEYE STEAK","brand":"THE SAVE MART COMPANY","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.88471"},"productCodes":["00250019000007","0250019000007","25001900000","250019000007"],"rank":{"salesPrice":94706,"salesQuantity":9474,"impressionCount":47}},{"id":"46196","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$14.99 /lb","template":"RegPrice"}},"name":"Beef Chuck Shortribs ","description":"Beef Chuck Shortribs ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062714_10ac095b-b25a-4b9e-abfd-a3a76ba58a22.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.88248"},"productCodes":["00250700000002","0250700000002","25070000000","250700000002","25070032"],"rank":{"salesPrice":36111,"salesQuantity":1355,"impressionCount":93}},{"id":"713156","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$11.29","template":"RegPrice"}},"name":"Just Bare , Boneless Skinless ","description":"Just Bare , Boneless Skinless ","brand":"JUST BARE CHICKEN","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7078000_35ffa38c-2090-4d81-929f-08f186f543dc.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.87955"},"productCodes":["00024105584050","00024105591058","0024105584050","0024105591058","02410558405","024105584050","02410559105","024105591058"],"rank":{"salesPrice":37139,"salesQuantity":3332,"impressionCount":16}},{"id":"209565","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/shrimp","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/shrimp"],"price":{"ok":{"regPriceText":"$27.99","promoArea":{"promoText":"$12.98","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"BLUE SEA 16/20 RAW HEAD LESS SHELL SHRIMP","description":"BLUE SEA 16/20 RAW HEAD LESS SHELL SHRIMP","brand":"BLUE SEA PRODUCTS","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.87826"},"productCodes":["00876059001066","0876059001066","87605900106","876059001066"],"rank":{"salesPrice":225818,"salesQuantity":10680,"impressionCount":1206}},{"id":"686903","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/turkey","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/turkey"],"price":{"ok":{"regPriceText":"$17.99","template":"RegPrice"}},"name":"Jennie-O , 85%/15% Fresh Ground Turkey ","description":"Jennie-O , 85%/15% Fresh Ground Turkey ","brand":"JENNIE-O (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7055902_732109d1-c78e-4eec-8d0b-48c3906b9613.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.87509"},"productCodes":["00042222130271","0042222130271","04222213027","042222130271"],"rank":{"salesPrice":65197,"salesQuantity":3476,"impressionCount":54}},{"id":"194165","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$10","template":"RegPrice"}},"name":"Chicken Cutlets, Boneless, Skinless ","description":"Chicken Breast Cutlets, Boneless and Skinless ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/10011747_f8e9c9d0-9df3-4c81-a10d-c690d13aa913.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.8718"},"productCodes":["00254115000008","0254115000008","25411500000","254115000008"],"rank":{"salesPrice":50580,"salesQuantity":5058,"impressionCount":99}},{"id":"46195","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$18.99 /lb","template":"RegPrice"}},"name":"Choice Cube Steaks Small Pak, Mechanically Tenderized ","description":"Choice Cube Steaks Small Pak, Mechanically Tenderized ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7634126_8f84abbb-de92-46c8-bb5f-b56158c72253.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.861"},"productCodes":["00250699000007","0250699000007","25069900000","250699000007"],"rank":{"salesPrice":63008,"salesQuantity":2931,"impressionCount":53}},{"id":"194159","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$10","template":"RegPrice"}},"name":"Fresh Chicken Drums and Thighs Combo, Bone-In ","description":"Fresh Chicken Drums and Thighs Combo, Bone-In ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/10011746_db8555db-0c27-4e41-b596-ba977b55a77f.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.85853"},"productCodes":["00254114000009","0254114000009","25411400000","254114000009"],"rank":{"salesPrice":47440,"salesQuantity":4746,"impressionCount":55}},{"id":"46542","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$3.99 /lb","template":"RegPrice"}},"name":"Foster Farms, Fresh and Natural Cage Free Chicken Livers ","description":"Foster Farms, Fresh and Natural Cage Free Chicken Livers ","brand":"FOSTER FARMS MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7768595_3a56ccb1-c13b-464b-b9d3-9113676bb1f7.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.85126"},"productCodes":["00254125000005","00260813000004","0254125000005","0260813000004","25412500000","254125000005","26081300000","260813000004"],"rank":{"salesPrice":13544,"salesQuantity":2350,"impressionCount":56}},{"id":"76186","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/turkey","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/turkey"],"price":{"ok":{"regPriceText":"$10.99","template":"RegPrice"}},"name":"Isernio''s , 94%/6% Ground Chicken ","description":"Isernio''s , 94%/6% Ground Chicken ","brand":"ISERNIO'S","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7092813_f3ef2ff2-0cf6-4789-95b3-0e07e9edbd45.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.8455"},"productCodes":["00084632441967","0084632441967","08463244196","084632441967"],"rank":{"salesPrice":27344,"salesQuantity":2530,"impressionCount":75}},{"id":"667667","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$10.99 /lb","promoArea":{"promoText":"$9.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Choice Beef Stir Fry ","description":"Choice Beef Stir Fry ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062702_7807065f-6881-4bff-b934-dde6cacec281.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.84456"},"productCodes":["00250668000007","0250668000007","25066800000","250668000007"],"rank":{"salesPrice":32880,"salesQuantity":2775,"impressionCount":90}},{"id":"46173","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$20.99 /lb","promoArea":{"promoText":"$13.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Choice Beef Chuck Eye Steak ","description":"Choice Beef Chuck Eye Steak ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062700_4dff7f1a-6d28-4436-9404-0ad431d2613b.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.84116"},"productCodes":["00250663000002","0250663000002","25066300000","250663000002"],"rank":{"salesPrice":25364,"salesQuantity":1480,"impressionCount":288}},{"id":"210231","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$11.99 /lb","template":"RegPrice"}},"name":"PASTURE RAISED BONELESS NY STEAK THIN CUT P5","description":"PASTURE RAISED BONELESS NY STEAK THIN CUT P5","brand":"THE SAVE MART COMPANY","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.83705"},"productCodes":["00250879000001","0250879000001","25087900000","250879000001"],"rank":{"salesPrice":83160,"salesQuantity":5343,"impressionCount":32}},{"id":"733445","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$30.99 /lb","template":"RegPrice"}},"name":"Beef Ribeye Steaks Thin Cut Boneless ","description":"Beef Ribeye Steaks Thin Cut Boneless ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9518929_365c552f-eebd-482b-827c-d88f02037c7b.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.82308"},"productCodes":["00250723000003","0250723000003","25072300000","250723000003"],"rank":{"salesPrice":41992,"salesQuantity":1735,"impressionCount":173}},{"id":"173085","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/fish","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/fish"],"price":{"ok":{"regPriceText":"$14.99 /lb","promoArea":{"promoText":"$11.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Fresh Atlantic Salmon Fillet ","description":"Fresh Atlantic Salmon Fillet ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9322284_6df2b058-50e4-46cb-adb1-27e6cc9cdcda.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.82003"},"productCodes":["00255820000000","0255820000000","25582000000","255820000000","25582040"],"rank":{"salesPrice":23677,"salesQuantity":1631,"impressionCount":85}},{"id":"46310","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$7.99 /lb","template":"RegPrice"}},"name":"Sirloin Chop, Boneless ","description":"Sirloin Chop, Boneless ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062777_70f4aeea-11ac-4353-b42b-d93bb67c2f71.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.79444"},"productCodes":["00251350000008","0251350000008","25135000000","251350000008","25135048"],"rank":{"salesPrice":17057,"salesQuantity":1557,"impressionCount":37}},{"id":"194175","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$10","template":"RegPrice"}},"name":"Taco Meat, Diced Chicken Breast ","description":"Chicken Taco Meat, Boneless Skinless Breast ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/10011749_5e4e5f8e-df65-4b40-ac3e-43a9b2a78841.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.79021"},"productCodes":["00254117000006","0254117000006","25411700000","254117000006"],"rank":{"salesPrice":36448,"salesQuantity":3646,"impressionCount":39}},{"id":"191434","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$11.99 /lb","template":"RegPrice"}},"name":"Pasture Raised Boneless New York Steak ","description":"Pasture Raised Boneless New York Steak ","brand":"THE SAVE MART COMPANY","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.78587"},"productCodes":["00250325000005","0250325000005","25032500000","250325000005"],"rank":{"salesPrice":66169,"salesQuantity":4665,"impressionCount":104}},{"id":"427319","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/crab_lobster","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/crab_lobster"],"price":{"ok":{"regPriceText":"$5.99","promoArea":{"promoText":"$5.49","validityText":"Valid 05/04/26 - 05/24/26"},"template":"NewPrice"}},"name":"Flake Style Imitation Crab","description":"Fully cooked. Ready to eat. MSC: Certified sustainable seafood. msc.org. Certified Sustainable Seafood. MSC. Www.msc.org. The Alaska Pollock and Pacific Whiting in this product comes from a fishery that has been independently certified to the MSC's standard for a well-managed and sustainable fishery. www.msc.org. ","brand":"TRANSOCEAN","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7065719_f1081715-dc64-47e3-aed3-3b5ff5a1a874.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.76814"},"productCodes":["00715166086071","0715166086071","71516608607","715166086071"],"rank":{"salesPrice":11430,"salesQuantity":1990,"impressionCount":122}},{"id":"202771","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/ground_beef_beef_patties","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/ground_beef_beef_patties"],"price":{"ok":{"regPriceText":"$10","template":"RegPrice"}},"name":"WM 80 PERCENT PATTY FMLY 8 FOR $10","description":"WM 80 PERCENT PATTY FMLY 8 FOR $10","brand":"WILMAR BEEF","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.76602"},"productCodes":["00050233000209","0050233000209","05023300020","050233000209"],"rank":{"salesPrice":29824,"salesQuantity":2996,"impressionCount":25}},{"id":"36072","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$13.99","promoArea":{"promoText":"$11.99","validityText":"Valid 03/29/26 - 06/27/26"},"template":"NewPrice"}},"name":"Foster Farms , Crispy Strips, Classic ","description":"Foster Farms , Crispy Strips, Classic ","brand":"FOSTER FARMS MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7090907_a200263a-8da2-45d6-b652-b510e1fcd89b.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.76239"},"productCodes":["00075278909744","0075278909744","07527890974","075278909744"],"rank":{"salesPrice":24907,"salesQuantity":2080,"impressionCount":29}},{"id":"733383","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$18.99 /lb","promoArea":{"promoText":"$10.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Choice Beef Chuck Steak, Bnls, Thin ","description":"Choice Beef Chuck Steak, Bnls, Thin ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062682_59af80bc-c2d0-488a-ad7d-8c65286a5107.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.75769"},"productCodes":["00250625000002","0250625000002","25062500000","250625000002"],"rank":{"salesPrice":20782,"salesQuantity":1305,"impressionCount":109}},{"id":"46541","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$4.49 /lb","template":"RegPrice"}},"name":"Foster Farms, Fresh and Natural Chicken Gizzards and Hearts ","description":"Foster Farms, Fresh and Natural Chicken Gizzards and Hearts ","brand":"FOSTER FARMS MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7768594_58aa4c1a-b8b0-4dfe-8f74-b590e8b7b0f8.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.74701"},"productCodes":["00205400000005","00254124000006","00260812000005","0205400000005","0254124000006","0260812000005","20540000000","205400000005","20540035","25412400000","254124000006","26081200000","260812000005"],"rank":{"salesPrice":8918,"salesQuantity":1399,"impressionCount":9}},{"id":"46074","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$19.99 /lb","promoArea":{"promoText":"$13.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Tri Tip, Beef Loin, Choice ","description":"Tri Tip, Beef Loin, Choice ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7322425_8ac1662f-d08e-4bcd-8c15-327c23c59255.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.71719"},"productCodes":["00250315000008","0250315000008","25031500000","250315000008"],"rank":{"salesPrice":11353,"salesQuantity":398,"impressionCount":13}},{"id":"46194","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$17.99 /lb","promoArea":{"promoText":"$11.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Choice Beef Top Round Steak ","description":"Choice Beef Top Round Steak ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062713_9b149109-5bcc-417d-beec-26cf233a17a2.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.71273"},"productCodes":["00250698000008","0250698000008","25069800000","250698000008"],"rank":{"salesPrice":15658,"salesQuantity":1082,"impressionCount":41}},{"id":"281328","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/crab_lobster","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/crab_lobster"],"price":{"ok":{"regPriceText":"$3.99","template":"RegPrice"}},"name":"Flake Style Imitation Crab","description":"Fully cooked. Pasteurized. Ready-to-eat. Crab Classic is healthy, great-tasting seafood. The Heart-Check mark does not apply to recipe ideas or serving suggestion. MSC: Certified sustainable seafood. msc.org. This seafood has met the MSC's global standard for sustainability. www.msc.org. Genuine Alaska Pollock. www.alaskapollock.org. ","brand":"TRANSOCEAN","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7065716_3b96f5a9-fff5-44e6-92f2-61b02ff9a45b.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.68878"},"productCodes":["00715166044170","0715166044170","71516604417","715166044170"],"rank":{"salesPrice":5518,"salesQuantity":1484,"impressionCount":64}},{"id":"46309","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$11.99 /lb","template":"RegPrice"}},"name":"Pork Loin Backribs Bnls . ","description":"Pork Loin Backribs Bnls . ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062776_61fc6a6f-ed4d-46a3-83dd-23a03e901c95.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.68326"},"productCodes":["00251341000000","0251341000000","25134100000","251341000000"],"rank":{"salesPrice":8031,"salesQuantity":937,"impressionCount":56}},{"id":"281329","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/crab_lobster","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/crab_lobster"],"price":{"ok":{"regPriceText":"$3.99","template":"RegPrice"}},"name":"Crab Classic Leg Style Imitation Crab","description":"TransOcean , Crab Classic Leg Style Imitation Crab ","brand":"TRANSOCEAN","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7065717_7cd455a9-2002-4b42-ba1c-c966d7fe6af3.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.67798"},"productCodes":["00715166044187","0715166044187","71516604418","715166044187"],"rank":{"salesPrice":5462,"salesQuantity":1464,"impressionCount":52}},{"id":"47049","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/turkey","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/turkey"],"price":{"ok":{"regPriceText":"$7.99 /lb","template":"RegPrice"}},"name":"SMOKED TURKEY DRUMSTICKS C/R","description":"SMOKED TURKEY DRUMSTICKS C/R","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.67774"},"productCodes":["00017520800027","0017520800027","00256721000007","00290134000001","01752080002","017520800027","0256721000007","0290134000001","25672100000","256721000007","29013400000","290134000001"],"rank":{"salesPrice":10280,"salesQuantity":606,"impressionCount":24}},{"id":"46725","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/fish","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/fish"],"price":{"ok":{"regPriceText":"$7.99 /lb","template":"RegPrice"}},"name":"Dover Sole Fillet, Fresh, Wild ","description":"Dover Sole Fillet, Fresh, Wild ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062953_c5575823-f0ef-4536-baea-0efab17b2dca.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.67739"},"productCodes":["00255007000007","0255007000007","25500700000","255007000007"],"rank":{"salesPrice":14472,"salesQuantity":1837,"impressionCount":72}},{"id":"203328","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/clams_oysters_scallops","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/clams_oysters_scallops"],"price":{"ok":{"regPriceText":"$1.49","template":"RegPrice"}},"name":"FAMRED PACIFIC BBQ OYSTERS IN THE SHELL","description":"FAMRED PACIFIC BBQ OYSTERS IN THE SHELL","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.66612"},"productCodes":["00252260000003","0252260000003","25226000000","252260000003","25226043"],"rank":{"salesPrice":21200,"salesQuantity":1990,"impressionCount":131}},{"id":"86315","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/shrimp","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/shrimp"],"price":{"ok":{"regPriceText":"$9.99","template":"RegPrice"}},"name":"WILD COLDWATER SALAD SHRIMP","description":"WILD COLDWATER SALAD SHRIMP","brand":"BORNSTEIN SEAFOODS (BORNSTEIN SEAFOODS, INC.)","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.666"},"productCodes":["00614133200246","0614133200246","61413320024","614133200246"],"rank":{"salesPrice":12547,"salesQuantity":1256,"impressionCount":64}},{"id":"46185","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$32.99 /lb","template":"RegPrice"}},"name":"Choice New York Steak ","description":"Choice New York Steak ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062710_fdd0b85b-db2b-4235-a31a-7fec10372b47.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.65168"},"productCodes":["00250685000004","0250685000004","25068500000","250685000004"],"rank":{"salesPrice":27412,"salesQuantity":1696,"impressionCount":105}},{"id":"36068","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$11.99","promoArea":{"promoText":"$8.99","validityText":"Valid 03/26/26 - 06/25/26"},"template":"NewPrice"}},"name":"Foster Farms , Breast Nuggets, Classic, Value Pack ","description":"Foster Farms , Breast Nuggets, Classic, Value Pack ","brand":"FOSTER FARMS MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7090906_1b3d951e-7c4c-4191-b7b5-3d3646aa9044.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.64651"},"productCodes":["00075278909690","0075278909690","07527890969","075278909690"],"rank":{"salesPrice":16619,"salesQuantity":1828,"impressionCount":25}},{"id":"173288","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/shrimp","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/shrimp"],"price":{"ok":{"regPriceText":"$6.99","template":"RegPrice"}},"name":"SHRIMP RING CIS 51/60 WITH SAUCE 10 OZ","description":"SHRIMP RING CIS 51/60 WITH SAUCE 10 OZ","brand":"SHRIMP KING","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.63888"},"productCodes":["00850008378287","0850008378287","85000837828","850008378287"],"rank":{"salesPrice":2628,"salesQuantity":376,"impressionCount":121}},{"id":"733430","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$18.99 /lb","promoArea":{"promoText":"$12.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Beef Top Round Steak Thin, Choice Sm Pak ","description":"Beef Top Round Steak Thin, Choice Sm Pak ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062705_a350bfc5-f819-492c-994d-16341aef8a7a.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.62198"},"productCodes":["00250672000000","0250672000000","25067200000","250672000000"],"rank":{"salesPrice":13337,"salesQuantity":903,"impressionCount":17}},{"id":"85512","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$17.99","template":"RegPrice"}},"name":"Tilapia Fillets ","description":"Tilapia Fillets ","brand":"GREAT AMERICAN","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/11454441_86271d28-ad83-4780-9f0a-42d8126e4d33.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.62033"},"productCodes":["00829944092144","0829944092144","82994409214","829944092144"],"rank":{"salesPrice":11809,"salesQuantity":622,"impressionCount":107}},{"id":"83713","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/fish","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/fish"],"price":{"ok":{"regPriceText":"$5.99","template":"RegPrice"}},"name":"Green Valley , Lactose Free 3 Cheese Mexican Shredded Cheese ","description":"Green Valley , Lactose Free 3 Cheese Mexican Shredded Cheese ","brand":"GREEN VALLEY CREAMERY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7092218_f99f8227-fb11-4fb5-9f23-ad2f7cfcff9e.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.61564"},"productCodes":["00081312851023","0081312851023","08131285102","081312851023"],"rank":{"salesPrice":6876,"salesQuantity":1082,"impressionCount":17}},{"id":"160001","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/ground_beef_beef_patties","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/ground_beef_beef_patties"],"price":{"ok":{"regPriceText":"$10.99","template":"RegPrice"}},"name":"The Signature Blend 75%/25% Ground Beef","description":"Schweid & Sons , The Signature Blend 75%/25% Ground Beef ","brand":"SCHWEID & SONS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9114266_2c827b63-4052-450d-94c2-5189b34786b1.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.61376"},"productCodes":["00023964616018","0023964616018","02396461601","023964616018"],"rank":{"salesPrice":18197,"salesQuantity":1656,"impressionCount":31}},{"id":"773066","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/shrimp","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/shrimp"],"price":{"ok":{"regPriceText":"$35.99","promoArea":{"promoText":"$31.98","validityText":"Valid 05/04/26 - 05/05/26"},"template":"NewPrice"}},"name":"Cooked Shrimp, Tail on 16/20","description":"Master Catch, Cooked Shrimp, Tail on 16/20 ","brand":"MASTER CATCH","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7061927_9b8c2f18-65eb-43ac-b433-6a4c83d3b8ef.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.61153"},"productCodes":["00070041120166","00070041820165","00098487009517","0070041120166","0070041820165","00731149651968","00823237041895","00843237041695","0098487009517","00984870095178","07004112016","070041120166","07004182016","070041820165","0731149651968","0823237041895","0843237041695","09848700951","098487009517","0984870095178","73114965196","731149651968","82323704189","823237041895","84323704169","843237041695","98487009517","984870095178"],"rank":{"salesPrice":32725,"salesQuantity":900,"impressionCount":274}},{"id":"201269","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/turkey","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/turkey"],"price":{"ok":{"regPriceText":"$4.99","template":"RegPrice"}},"name":"Honeysuckle White, 85/15 Ground Turkey ","description":"85% lean 15% fat. Per Serving: 240 calories; 5 g sat fat (25% DV); 115 mg sodium (5% DV). 21 g protein. This product contains 17 g fat, compared to 33.9 g of fat in regular ground beef, per 4 oz raw serving. Gluten free. Featured farm. - G&J Anderson. Raised by independent family farmers. No growth-promoting antibiotics. Antibiotics responsibly used only when needed for treatment or prevention of illness. No added hormones (Turkeys raised with no added hormones or steroids) or steroids (Federal regulations prohibit the use of hormones or steroids in poultry). Our turkeys are raised by independent family farmers that are trained on animal handling practices. No preservatives. Inspected for wholesomeness by U.S. Department of Agriculture. honeysucklewhite.com. See honeysucklewhite.com for more information about how the turkeys are raised and the certification of our farming program. Attn: Honeysuckle White Brand P.O. Box 2519hita, KS 67201-2519 1-800-532-5756 M-F 8:00 a.m. - 5:00 p.m. CST, honeysucklewhite.com. Product of USA. ","brand":"HONEY SUCKLE WHITE POULTRY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/11127810_62e49405-d38f-4429-a791-0b92eedb2e2a.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.59075"},"productCodes":["00038057500914","0038057500914","03805750091","038057500914"],"rank":{"salesPrice":2254,"salesQuantity":386,"impressionCount":21}},{"id":"46178","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$29.99 /lb","template":"RegPrice"}},"name":"Rib Eye Steaks Bone-In, Thin Choice ","description":"Rib Eye Steaks Bone-In, Thin Choice ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7615489_fef3a19d-685c-450b-a36c-bd446c41a6e4.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.59028"},"productCodes":["00250678000004","0250678000004","25067800000","250678000004"],"rank":{"salesPrice":12206,"salesQuantity":457,"impressionCount":75}},{"id":"147034","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$12.99","template":"RegPrice"}},"name":"Gorton''s , Beer Battered Fish Fillets ","description":"Gorton''s , Beer Battered Fish Fillets ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7086097_9843deb0-c99a-4751-8e02-9816ae337581.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.58746"},"productCodes":["00044400153508","0044400153508","04440015350","044400153508"],"rank":{"salesPrice":6027,"salesQuantity":474,"impressionCount":46}},{"id":"935921","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/ham_smoked_cuts","Product/pork","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/ham_smoked_cuts"],"price":{"ok":{"regPriceText":"$5.79 /lb","template":"RegPrice"}},"name":"Cook's, Bone-In Ham, Brown Sugar ","description":"Cook's, Bone-In Ham, Brown Sugar ","brand":"COOKS HAM","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9981470_7b8f2c5e-16d8-486d-bd0b-62ab6340fe42.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.57373"},"productCodes":["00256504000002","0256504000002","25650400000","256504000002"],"rank":{"salesPrice":6718,"salesQuantity":831,"impressionCount":17}},{"id":"86505","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/ground_beef_beef_patties","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/ground_beef_beef_patties"],"price":{"ok":{"regPriceText":"$11.89","template":"RegPrice"}},"name":"The Butcher''s Blend 80%/20% Ground Beef Burgers","description":"Schweid & Sons , The Butcher''s Blend 80%/20% Ground Beef Burgers ","brand":"SCHWEID & SONS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7077817_1121cff3-ca85-4ab9-9c48-25e78178ae75.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.56786"},"productCodes":["00023964745053","00023964765051","0023964745053","0023964765051","02396474505","023964745053","02396476505","023964765051"],"rank":{"salesPrice":19543,"salesQuantity":1644,"impressionCount":47}},{"id":"935920","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/ham_smoked_cuts","Product/pork","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/ham_smoked_cuts"],"price":{"ok":{"regPriceText":"$5.79 /lb","template":"RegPrice"}},"name":"COOKS BONE-IN HAM STEAK PINEAPPLE","description":"COOKS BONE-IN HAM STEAK PINEAPPLE","brand":"COOKS HAM","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.56246"},"productCodes":["00256503000003","0256503000003","25650300000","256503000003"],"rank":{"salesPrice":5116,"salesQuantity":605,"impressionCount":4}},{"id":"20505","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$11.99","template":"RegPrice"}},"name":"Gorton''s , Crispy Battered Fish Portions Value Pack ","description":"Gorton''s , Crispy Battered Fish Portions Value Pack ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7086090_934c34ef-f53b-4254-9355-b670d68aac87.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.56093"},"productCodes":["00044400112505","0044400112505","04440011250","044400112505"],"rank":{"salesPrice":6306,"salesQuantity":526,"impressionCount":18}},{"id":"46431","categories":["Product/meat_seafood","Product/lamb_veal","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/lamb_veal","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$12.99 /lb","template":"RegPrice"}},"name":"Lamb Blade Chops","description":"Lamb Blade Chops","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062836_3515d52d-839b-4c94-af4e-c5aab9260f60.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.5486"},"productCodes":["00252101000001","0252101000001","25210100000","252101000001"],"rank":{"salesPrice":12166,"salesQuantity":760,"impressionCount":19}},{"id":"20522","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$12.99","template":"RegPrice"}},"name":"Gorton''s , Whole Crispy Battered Fish Fillets ","description":"Gorton''s , Whole Crispy Battered Fish Fillets ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7086104_0b9eb40e-8047-44f8-8a86-b17707a6dd86.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.54567"},"productCodes":["00044400157506","0044400157506","04440015750","044400157506"],"rank":{"salesPrice":6017,"salesQuantity":480,"impressionCount":18}},{"id":"62459","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$14.99","template":"RegPrice"}},"name":"Tyson , Crispy Chicken Breast Strips ","description":"Tyson , Crispy Chicken Breast Strips ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7077771_ee36fe50-f917-4505-93c2-1590081f8b79.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.54062"},"productCodes":["00023700014108","00023700038036","0023700014108","0023700038036","02370001410","023700014108","02370003803","023700038036"],"rank":{"salesPrice":11411,"salesQuantity":888,"impressionCount":40}},{"id":"601655","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$13.99","promoArea":{"promoText":"$11.99","validityText":"Valid 03/29/26 - 06/27/26"},"template":"NewPrice"}},"name":"Foster Farms , Popcorn Chicken, Classic ","description":"Foster Farms , Popcorn Chicken, Classic ","brand":"FOSTER FARMS MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7090924_95bd72ad-2943-43fe-a81c-45dade1e0853.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.53005"},"productCodes":["00075278995471","0075278995471","07527899547","075278995471"],"rank":{"salesPrice":9502,"salesQuantity":790,"impressionCount":24}},{"id":"319845","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$5.99 /lb","promoArea":{"promoText":"$3.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Chicken Breast, Boneless and Skinless ","description":"Chicken Breast, Boneless and Skinless ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/10123137_96a474a1-89d9-4336-8f6f-6677b1d42726.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.52865"},"productCodes":["00048000167071","00254270000004","00280961000008","00480000167079","0048000167071","0254270000004","0280961000008","0480000167079","04800016707","048000167071","25427000000","254270000004","25427044","28096100000","280961000008","48000016707","480000167079"],"rank":{"salesPrice":3837,"salesQuantity":549,"impressionCount":14}},{"id":"178942","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$7.99","template":"RegPrice"}},"name":"Beef Shaved Steak","description":"22 g protein per serving. Gluten free. Since 1914. Family owned. Quality foods. U.S. inspected and passed by Department of Agriculture. oldneighborhoodfoods.com. ","brand":"DEMAKES BROS.","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9933231_81fcbb91-4ca7-40de-bc2f-fbd629520590.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.52336"},"productCodes":["00052294008873","0052294008873","05229400887","052294008873"],"rank":{"salesPrice":7974,"salesQuantity":998,"impressionCount":67}},{"id":"20503","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$11.99","template":"RegPrice"}},"name":"Gorton''s , Fish Sticks Value Pack ","description":"Gorton''s , Fish Sticks Value Pack ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7086088_2e6932e2-32df-4e9e-972c-d038025275f5.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.51925"},"productCodes":["00044400102704","0044400102704","04440010270","044400102704"],"rank":{"salesPrice":6844,"salesQuantity":572,"impressionCount":19}},{"id":"173088","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/fish","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/fish"],"price":{"ok":{"regPriceText":"$14.99 /lb","promoArea":{"promoText":"$11.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Fresh Atlantic Salmon Fillet ","description":"Fresh Atlantic Salmon Fillet ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9292425_e4c97280-233c-4e4a-b818-3d0ec06ab416.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.51831"},"productCodes":["00255821000009","0255821000009","25582100000","255821000009"],"rank":{"salesPrice":11035,"salesQuantity":1077,"impressionCount":26}},{"id":"55747","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/crab_lobster","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/crab_lobster"],"price":{"ok":{"regPriceText":"$3.99","template":"RegPrice"}},"name":"Chunk Style Crab Classic Imitation Crab","description":"TransOcean , Chunk Style Crab Classic Imitation Crab ","brand":"TRANSOCEAN","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7065720_a786c532-ec28-40f1-a879-71038ee7b8fa.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.51573"},"productCodes":["00715166104010","0715166104010","71516610401","715166104010"],"rank":{"salesPrice":3130,"salesQuantity":858,"impressionCount":5}},{"id":"18868","categories":["Product/meat_seafood","Product/sausage_ham_bacon","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/sausage_ham_bacon","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$5.99","template":"RegPrice"}},"name":"Cured Longaniza","description":"El Mexicano , Cured Longaniza ","brand":"EL MEXICANO","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7056105_d4def335-cbd7-45c6-9a0a-ab57b793b448.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.5135"},"productCodes":["00042743180137","0042743180137","04274318013","042743180137"],"rank":{"salesPrice":5402,"salesQuantity":902,"impressionCount":5}},{"id":"77607","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$16.99","promoArea":{"promoText":"$14.49","validityText":"Valid 03/29/26 - 06/28/26"},"template":"NewPrice"}},"name":"Just Bare , Lightly Breaded Original Chicken Breast Strips ","description":"Just Bare , Lightly Breaded Original Chicken Breast Strips ","brand":"JUST BARE CHICKEN","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7059959_09afd2e5-2eaa-44ed-8b79-2bdf03c313c7.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.50646"},"productCodes":["00077013615590","0077013615590","07701361559","077013615590"],"rank":{"salesPrice":13059,"salesQuantity":894,"impressionCount":47}},{"id":"236644","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$13.49","template":"RegPrice"}},"name":"Tyson , Dino Nuggets ","description":"Tyson , Dino Nuggets ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7077775_38f7b107-e1fb-40a1-b152-9fd753d9492b.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.49061"},"productCodes":["00023700014528","00023700041890","0023700014528","0023700041890","02370001452","023700014528","02370004189","023700041890"],"rank":{"salesPrice":9603,"salesQuantity":862,"impressionCount":11}},{"id":"859639","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$15.99","promoArea":{"promoText":"$11.99","validityText":"Valid 03/29/26 - 06/27/26"},"template":"NewPrice"}},"name":"Foster Farms , Chicken Wings, Hot ''N Spicy ","description":"Foster Farms , Chicken Wings, Hot ''N Spicy ","brand":"FOSTER FARMS MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7090921_0273dd95-23a8-44d7-a398-946cae50720f.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.48873"},"productCodes":["00075278994962","0075278994962","07527899496","075278994962"],"rank":{"salesPrice":8978,"salesQuantity":742,"impressionCount":91}},{"id":"20517","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$12.99","template":"RegPrice"}},"name":"Gorton''s , Crunchy Breaded Fish Fillets ","description":"Gorton''s , Crunchy Breaded Fish Fillets ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7086099_1006019e-07d5-467b-a02e-47e52ae3b8c2.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.48826"},"productCodes":["00044400154505","0044400154505","04440015450","044400154505"],"rank":{"salesPrice":4632,"salesQuantity":364,"impressionCount":16}},{"id":"88995","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/crab_lobster","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/crab_lobster"],"price":{"ok":{"regPriceText":"$19.99","template":"RegPrice"}},"name":"HRBRS PASTEURIZED CRAB MEAT CLAW MEAT","description":"HRBRS PASTEURIZED CRAB MEAT CLAW MEAT","brand":"HARBOR SEAFOOD","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.48368"},"productCodes":["00049029700003","0049029700003","04902970000","049029700003"],"rank":{"salesPrice":13093,"salesQuantity":614,"impressionCount":72}},{"id":"103218","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$11.99","template":"RegPrice"}},"name":"Swift , Beef Marrow Bones ","description":"Swift meats. Chosen by families since 1855. Delicious. Every time. For more than 160 years, Swift meats have been at the center of your favorite home-cooked meals. We're committed to bringing high-quality, delicious meats for this generation and the next. ","brand":"SWIFT (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7614222_5eb41a1d-da12-4c73-b0f9-cc7b1d66e8ac.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.4818"},"productCodes":["00076338997046","0076338997046","07633899704","076338997046"],"rank":{"salesPrice":9208,"salesQuantity":770,"impressionCount":53}},{"id":"83712","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/fish","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/fish"],"price":{"ok":{"regPriceText":"$5.99","template":"RegPrice"}},"name":"Green Valley , Low-Moisture Part-Skim Lactose Free Mozzarella Shredded Cheese ","description":"Green Valley , Low-Moisture Part-Skim Lactose Free Mozzarella Shredded Cheese ","brand":"GREEN VALLEY CREAMERY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7092217_006ce906-4fe9-4aad-b3ef-7fda3cab0137.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.4818"},"productCodes":["00081312851016","0081312851016","08131285101","081312851016"],"rank":{"salesPrice":4352,"salesQuantity":682,"impressionCount":6}},{"id":"77606","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$16.99","promoArea":{"promoText":"$14.49","validityText":"Valid 03/29/26 - 06/28/26"},"template":"NewPrice"}},"name":"Just Bare , Lightly Breaded Original Chicken Breast Bites ","description":"Just Bare , Lightly Breaded Original Chicken Breast Bites ","brand":"JUST BARE CHICKEN","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7059958_a6030a21-668b-4dc6-a197-cae0f7a19ebc.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.47194"},"productCodes":["00077013615576","0077013615576","07701361557","077013615576"],"rank":{"salesPrice":13323,"salesQuantity":914,"impressionCount":51}},{"id":"199556","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_burritos_rice_bowls","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_burritos_rice_bowls"],"price":{"ok":{"regPriceText":"$5.99","template":"RegPrice"}},"name":"ECHO PACIFIC SUPREME SMKD ATLANTIC SALMON","description":"ECHO PACIFIC SUPREME SMKD ATLANTIC SALMON","brand":"ECHO FALLS","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.46819"},"productCodes":["00058138102448","0058138102448","05813810244","058138102448"],"rank":{"salesPrice":2866,"salesQuantity":494,"impressionCount":0}},{"id":"139757","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$13.49","template":"RegPrice"}},"name":"Tyson , Chicken Nuggets ","description":"Tyson , Chicken Nuggets ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/8319228_77686c36-e8e3-4f5f-9e23-05567869e28b.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.4676"},"productCodes":["00023700060266","0023700060266","02370006026","023700060266"],"rank":{"salesPrice":8440,"salesQuantity":780,"impressionCount":23}},{"id":"337136","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_burgers_patties","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_burgers_patties"],"price":{"ok":{"regPriceText":"$19.99","template":"RegPrice"}},"name":"Harris Ranch Beef Frozen Natrl Patties 73/27 ","description":"Harris Ranch Beef Frozen Natrl Patties 73/27 ","brand":"HARRIS RANCH MEAT","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7092836_e7dfedef-5105-4870-873b-b34cf68907cf.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.4649"},"productCodes":["00084706012147","0084706012147","08470601214","084706012147"],"rank":{"salesPrice":17990,"salesQuantity":900,"impressionCount":138}},{"id":"954518","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$12.99","template":"RegPrice"}},"name":"Gorton''s , Fish Sandwich ","description":"Gorton''s , Fish Sandwich ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7086098_3f946655-84b2-4faa-9cb0-ca32a4eb9534.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.46302"},"productCodes":["00044400154406","0044400154406","04440015440","044400154406"],"rank":{"salesPrice":4078,"salesQuantity":330,"impressionCount":12}},{"id":"634505","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$9.49 /lb","promoArea":{"promoText":"$7.49 /lb","validityText":"Valid 04/14/26 - 12/30/26"},"template":"NewPrice"}},"name":"SEASONED BEEF TACO MEAT","description":"SEASONED BEEF TACO MEAT","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.46255"},"productCodes":["00250199000002","0250199000002","25019900000","250199000002"],"rank":{"salesPrice":5108,"salesQuantity":525,"impressionCount":6}},{"id":"20518","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$12.99","template":"RegPrice"}},"name":"Gorton''s , Breaded Whole Fish Sticks ","description":"Gorton''s , Breaded Whole Fish Sticks ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7086100_3e7ab7c8-5385-4844-b498-de12f0f4a38f.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.46196"},"productCodes":["00044400154604","0044400154604","04440015460","044400154604"],"rank":{"salesPrice":5144,"salesQuantity":398,"impressionCount":11}},{"id":"46446","categories":["Product/meat_seafood","Product/lamb_veal","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/lamb_veal","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$9.99 /lb","template":"RegPrice"}},"name":"LEG OF LAMB C/R","description":"LEG OF LAMB C/R","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.45727"},"productCodes":["00252402000007","0252402000007","25240200000","252402000007"],"rank":{"salesPrice":5809,"salesQuantity":258,"impressionCount":68}},{"id":"83715","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/fish","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/fish"],"price":{"ok":{"regPriceText":"$5.99","template":"RegPrice"}},"name":"Green Valley , Lactose Free Mild Cheddar Sliced Cheese ","description":"Green Valley , Lactose Free Mild Cheddar Sliced Cheese ","brand":"GREEN VALLEY CREAMERY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7092220_e04448bd-65df-41c6-b4c2-c82c7368aa37.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.45245"},"productCodes":["00081312852013","0081312852013","08131285201","081312852013"],"rank":{"salesPrice":4488,"salesQuantity":716,"impressionCount":23}},{"id":"601656","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$11.99","promoArea":{"promoText":"$8.99","validityText":"Valid 03/26/26 - 06/25/26"},"template":"NewPrice"}},"name":"Foster Farms , Value Pack Classic Chicken Patties ","description":"Foster Farms , Value Pack Classic Chicken Patties ","brand":"FOSTER FARMS MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7090925_d35153a9-979e-4d5d-b70b-7d254f4fcf5a.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.45128"},"productCodes":["00075278995488","0075278995488","07527899548","075278995488"],"rank":{"salesPrice":8792,"salesQuantity":972,"impressionCount":88}},{"id":"733416","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$16.99 /lb","promoArea":{"promoText":"$9.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Top Round Roast Beef, Choice ","description":"Top Round Roast Beef, Choice ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7322427_15fd50d4-f797-42fe-85ba-a561a978ece4.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.43766"},"productCodes":["00250677000005","0250677000005","25067700000","250677000005"],"rank":{"salesPrice":6210,"salesQuantity":267,"impressionCount":4}},{"id":"198431","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$10","template":"RegPrice"}},"name":"PINK SALMON FILLET SKIN ON","description":"PINK SALMON FILLET SKIN ON","brand":"GREAT AMERICAN SEAFOOD (GREAT AMERICAN SEAFOOD IMPORTS CO)","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.42404"},"productCodes":["00829944004963","0829944004963","82994400496","829944004963"],"rank":{"salesPrice":15280,"salesQuantity":1302,"impressionCount":22}},{"id":"19775","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_burgers_patties","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_burgers_patties"],"price":{"ok":{"regPriceText":"$21.99","template":"RegPrice"}},"name":"Beef & Sirloin Patties","description":"Richwood, Beef & Sirloin Patties ","brand":"RICHWOOD","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7056366_4ccbe428-5527-456c-8c24-a64f053ba933.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.42228"},"productCodes":["00043115465104","0043115465104","04311546510","043115465104"],"rank":{"salesPrice":20276,"salesQuantity":978,"impressionCount":84}},{"id":"859641","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$15.99","promoArea":{"promoText":"$11.99","validityText":"Valid 03/29/26 - 06/27/26"},"template":"NewPrice"}},"name":"Foster Farms , Chicken Wings, Honey BBQ Glazed ","description":"FC All Nat Honey BBQ Ckn Wings ","brand":"FOSTER FARMS MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7090922_4582e19c-d52a-438d-9685-393cc1e4fba2.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.41688"},"productCodes":["00075278994979","0075278994979","07527899497","075278994979"],"rank":{"salesPrice":7333,"salesQuantity":610,"impressionCount":52}},{"id":"198208","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$10","template":"RegPrice"}},"name":"GREA CRAB CAKE RESTAURANT STYLE","description":"GREA CRAB CAKE RESTAURANT STYLE","brand":"GREAT AMERICAN","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/3217905_57e78de3-5566-4b1e-a5f2-4cc63f1334c0.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.41289"},"productCodes":["00829944013750","0829944013750","82994401375","829944013750"],"rank":{"salesPrice":11180,"salesQuantity":1070,"impressionCount":10}},{"id":"20520","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$7.99","promoArea":{"promoText":"$7.49","validityText":"Valid 03/30/26 - 06/28/26"},"template":"NewPrice"}},"name":"Gorton''s , Breaded Fish Sticks ","description":"Gorton''s , Breaded Fish Sticks ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7086103_56ee929c-8e20-40db-807e-0481fb017513.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.40855"},"productCodes":["00044400156509","0044400156509","04440015650","044400156509"],"rank":{"salesPrice":5370,"salesQuantity":716,"impressionCount":8}},{"id":"159093","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/shrimp","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/shrimp"],"price":{"ok":{"regPriceText":"$8.99","template":"RegPrice"}},"name":"GREA 31/40 RAW EZ PEEL SHRIMP","description":"GREA 31/40 RAW EZ PEEL SHRIMP","brand":"GREAT AMERICAN","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.40303"},"productCodes":["00829944012463","0829944012463","82994401246","829944012463"],"rank":{"salesPrice":5243,"salesQuantity":534,"impressionCount":73}},{"id":"159094","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/shrimp","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/shrimp"],"price":{"ok":{"regPriceText":"$10.99","promoArea":{"promoText":"$5.93","validityText":"Valid 04/28/26 - 10/25/26"},"template":"NewPrice"}},"name":"GREA 8/12 RAW EZ PEEL SHRIMP","description":"GREA 8/12 RAW EZ PEEL SHRIMP","brand":"GREAT AMERICAN","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9644950_bbabdd55-cc9a-4a45-80f3-0145ff93f24c.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.39622"},"productCodes":["00829944095367","0829944095367","82994409536","829944095367"],"rank":{"salesPrice":8430,"salesQuantity":686,"impressionCount":577}},{"id":"158603","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$11.99","template":"RegPrice"}},"name":"Seapak, Shrimp, Tempura, Oven Crispy ","description":"New look, same great taste. Includes 2 oz sauce. Sweet & spicy orange dipping sauce included. The Taste of the Coast: Great seafood is closer than you think! Create your own great meal memories! Looking for a fresh idea? Visit us at www.seapak.com for delicious seafood recipes, information on our wide variety of seafood products, and the health benefits of adding more seafood to your family's diet. Facebook. YouTube. Shrimp is Good Food: The USDA recommends eating at least 8 oz of seafood a week for a healthier diet. These shrimp are farm-raised. www.seapak.com/smartsourcing/. Find all our shrimp & seafood products at www.seapak.com/productlocator/. SeaPak's Coastal Home: You always get the best shrimp and seafood at those small, out-of-the-way places where shrimp and seafood are a way of life - where you can smell the saltwater in the air. For over 60 years now SeaPak's coastal home here on Saint Simmons Island has provided the inspiration to perfect our recipes to bring you the very best the coast has to offer. Try us and we think you'll agree. Try us and we think you'll agree - there's a taste of the coast in every delicious bite. Product of Thailand. ","brand":"SEA-PAK (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7084781_4007802b-508b-4ecc-860e-47ac541c7c51.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.39211"},"productCodes":["00041322109309","0041322109309","04132210930","041322109309"],"rank":{"salesPrice":4444,"salesQuantity":372,"impressionCount":24}},{"id":"770306","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$7.79","template":"RegPrice"}},"name":"Beef Liver","description":"Skylark , Beef Liver ","brand":"SKYLARK","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7061130_79f4c7ac-80ab-46ab-aab3-fc73c86b067e.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.38929"},"productCodes":["00079041226380","0079041226380","07904122638","079041226380"],"rank":{"salesPrice":5317,"salesQuantity":704,"impressionCount":88}},{"id":"736390","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$33.99 /lb","template":"RegPrice"}},"name":"Choice New York Steak Boneless Thin ","description":"Choice New York Steak Boneless Thin ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7062720_a2b036b6-ff27-41b7-a44c-f3dfaba5ad65.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.38859"},"productCodes":["00250717000002","0250717000002","25071700000","250717000002"],"rank":{"salesPrice":15205,"salesQuantity":955,"impressionCount":10}},{"id":"80886","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_burritos_rice_bowls","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_burritos_rice_bowls"],"price":{"ok":{"regPriceText":"$12.99","promoArea":{"promoText":"$10.49","validityText":"Valid 05/04/26 - 05/24/26"},"template":"NewPrice"}},"name":"Honey Smoked Fish Co , Cracked Pepper Honey Smoked Salmon ","description":"Fully cooked and ready to dive in. Small batch. Smoking. Made fresh from sea smoker to table. Always fresh never frozen. Sustainably fresh fir a happy ocean. Biggest catch 2x the fish. Compared to 4 oz packages. Freshness is our main ingredient. Well, that and fish. And smoke - hot smoke from honey coated 100% hickory in fact. But really, the secret to our one-of-a-kind, flavorful salmon is that they're fully cooked shortly after leaving the water and then sealed tight as soon as they exit our small-batch smoker. No freezer. Just amazingly fresh and healthy Honey Smoked Salmon that's ready to devour. ","brand":"HONEY SMOKED FISH CO.","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7065025_0db12ecd-157f-46b8-93a6-81f414582c84.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.38225"},"productCodes":["00660646000354","0660646000354","66064600035","660646000354"],"rank":{"salesPrice":8365,"salesQuantity":644,"impressionCount":0}},{"id":"16777","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$11.99","template":"RegPrice"}},"name":"SeaPak , Butterfly Shrimp, Jumbo, Golden Crispy ","description":"SeaPak , Butterfly Shrimp, Jumbo, Golden Crispy ","brand":"SEA-PAK (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7084778_4e13b138-525b-4e26-8e5d-c8ab3ad56cf2.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.37403"},"productCodes":["00041322109002","0041322109002","04132210900","041322109002"],"rank":{"salesPrice":3900,"salesQuantity":328,"impressionCount":19}},{"id":"140319","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$13.49","template":"RegPrice"}},"name":"Tyson , Chicken Patties ","description":"Tyson , Chicken Patties ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/8319225_c72c310e-36d6-48d1-9d35-a665456aca79.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.37309"},"productCodes":["00023700060235","0023700060235","02370006023","023700060235"],"rank":{"salesPrice":6570,"salesQuantity":618,"impressionCount":20}},{"id":"762788","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$12.99","template":"RegPrice"}},"name":"Gorton''s , Butterfly Shrimp ","description":"Gorton''s , Butterfly Shrimp ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7086095_115ea9ec-f4f2-4dfc-b0b8-68f999d3f4e4.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.37215"},"productCodes":["00044400139304","0044400139304","04440013930","044400139304"],"rank":{"salesPrice":2264,"salesQuantity":188,"impressionCount":12}},{"id":"961604","categories":["Product/meat_seafood","Product/plant_based","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/plant_based","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$9.99","template":"RegPrice"}},"name":"Impossible , Ground Beef ","description":"Impossible , Ground Beef ","brand":"IMPOSSIBLE - PLANT BASED","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7069983_d806c797-7d34-4344-b9e1-51646ab362ff.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.36992"},"productCodes":["00816697021002","0816697021002","81669702100","816697021002"],"rank":{"salesPrice":5470,"salesQuantity":550,"impressionCount":49}},{"id":"87327","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$14.99","promoArea":{"promoText":"$13.49","validityText":"Valid 03/30/26 - 06/28/26"},"template":"NewPrice"}},"name":"SeaPak , Butterfly Shrimp, Classic, Golden Crispy, Family Size ","description":"SeaPak , Butterfly Shrimp, Classic, Golden Crispy, Family Size ","brand":"SEA-PAK (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7084797_1b4ee056-ae37-4684-9638-d359c7024977.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.36934"},"productCodes":["00041322224972","0041322224972","04132222497","041322224972"],"rank":{"salesPrice":7856,"salesQuantity":584,"impressionCount":11}},{"id":"20514","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$7.99","promoArea":{"promoText":"$7.49","validityText":"Valid 03/30/26 - 06/28/26"},"template":"NewPrice"}},"name":"Gorton''s , Garlic & Herb Fish Fillets ","description":"Gorton''s , Garlic & Herb Fish Fillets ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7086096_40096a00-dbb1-4ed8-9dc2-a3c1c0219920.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.36476"},"productCodes":["00044400152501","0044400152501","04440015250","044400152501"],"rank":{"salesPrice":4693,"salesQuantity":628,"impressionCount":22}},{"id":"954519","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$12.99","template":"RegPrice"}},"name":"Gorton''s , Whole Breaded Parmesan Crusted Fish Fillets ","description":"Gorton''s , Whole Breaded Parmesan Crusted Fish Fillets ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7086102_ffb2e8ba-8343-4591-8b17-0be721504130.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.36464"},"productCodes":["00044400156400","0044400156400","04440015640","044400156400"],"rank":{"salesPrice":2420,"salesQuantity":192,"impressionCount":15}},{"id":"124304","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/ham_smoked_cuts","Product/pork","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/ham_smoked_cuts"],"price":{"ok":{"regPriceText":"$11.99","template":"RegPrice"}},"name":"Smithfield , Boneless Ham, Honey Cured, Sliced ","description":"All Smithfield brands are driven by the love of meat. That's why our offerings are so vast; because we all need our pork and specialty prepared meats our way. Smithfield Anytime Favorites Pre-sliced Honey Cured Boneless Ham offers a sweet, tantalizing flavor that's guaranteed to be a hit in your house. This sliced ham is fully cooked, so you can heat it up quickly, cutting down on prep time and mess. This honey ham is cured with delicious honey for a sweet and savory taste that elevates every mealtime. This boneless ham contains zero artificial ingredients and is 97% fat free. Keep this honey ham in the refrigerator to ensure peak freshness and flavor. Smithfield has set sustainability goals because we believe we can build a more sustainable business and contribute to a better future. ","brand":"SMITH FIELD MEAT","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/8305230_a0a6fb50-1bb8-40ac-bea1-2f7c23a42d2d.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.35818"},"productCodes":["00070800227402","0070800227402","07080022740","070800227402"],"rank":{"salesPrice":3568,"salesQuantity":298,"impressionCount":4}},{"id":"186536","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$9.99","promoArea":{"promoText":"$5.93","validityText":"Valid 04/28/26 - 10/25/26"},"template":"NewPrice"}},"name":"ATLANTIC SALMON SKINLESS PORTION","description":"SALT & SEA ATLANTIC SALMON SKINLESS PORTION","brand":"salt & sea","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.35701"},"productCodes":["00850066060001","0850066060001","85006606000","850066060001"],"rank":{"salesPrice":4564,"salesQuantity":574,"impressionCount":22}},{"id":"352445","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$12.99","template":"RegPrice"}},"name":"Gorton''s , Popcorn Shrimp ","description":"Gorton''s , Popcorn Shrimp ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7086105_08ebd58e-b5e5-40c0-9285-b81f1330d2a1.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.34151"},"productCodes":["00044400164009","0044400164009","04440016400","044400164009"],"rank":{"salesPrice":2467,"salesQuantity":202,"impressionCount":4}},{"id":"902465","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_burgers_patties","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_burgers_patties"],"price":{"ok":{"regPriceText":"$19.99","promoArea":{"promoText":"$18.99","validityText":"Valid 04/16/26 - 09/05/26"},"template":"NewPrice"}},"name":"Bubba Burger , Angus Beef Burgers ","description":"What do we mean when we say, ¿You¿ll never bite a burger better than a BUBBA!¿ ®?We make the Angus BUBBA burger® using only 100% USDA choice Angus beef chuck. This gives you a genuine Angus burger that¿s high in protein and gluten free, with no fillers, no additives, no preservatives and no added sodium ¿ just the delicious, high-quality Angus beef you and your family crave. Since they¿re frozen for your convenience, BUBBA burgers can go right from the freezer to the grill or the skillet and to your plate in about 10 minutes ¿ no thawing needed ¿ which makes them the perfect choice for cookouts, get-together or family meals any time you want a juicy and delicious burger. ","brand":"BUBBA FOODS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7065420_73a72101-5b81-4bc6-928a-368ea7cbdacc.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.33846"},"productCodes":["00704639990021","0704639990021","70463999002","704639990021"],"rank":{"salesPrice":10101,"salesQuantity":606,"impressionCount":62}},{"id":"762792","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_burgers_patties","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_burgers_patties"],"price":{"ok":{"regPriceText":"$19.99","template":"RegPrice"}},"name":"Moran 80/20 Beef Patties","description":"Moran 80/20 Beef Patties","brand":"MORAN'S (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7072442_4957ba16-8474-44fa-b8e0-ce279d16322e.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.33494"},"productCodes":["00034779600505","0034779600505","00854986006026","03477960050","034779600505","0854986006026","85498600602","854986006026"],"rank":{"salesPrice":11274,"salesQuantity":564,"impressionCount":15}},{"id":"20519","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$7.99","promoArea":{"promoText":"$7.49","validityText":"Valid 03/30/26 - 06/28/26"},"template":"NewPrice"}},"name":"Gorton''s , Crunchy Breaded Fish Fillets ","description":"Gorton''s , Crunchy Breaded Fish Fillets ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7086101_bd9d7d01-1c95-4ad7-9e28-83f7fd4eb83a.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.32355"},"productCodes":["00044400156004","0044400156004","04440015600","044400156004"],"rank":{"salesPrice":3809,"salesQuantity":508,"impressionCount":2}},{"id":"124331","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/ham_smoked_cuts","Product/pork","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/ham_smoked_cuts"],"price":{"ok":{"regPriceText":"$11.99","template":"RegPrice"}},"name":"Smithfield , Boneless Brown Sugar Sliced Ham ","description":"Smithfield , Boneless Brown Sugar Sliced Ham ","brand":"SMITH FIELD MEAT","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/8070899_d1177363-516d-4238-b489-86ac1efec88b.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.3205"},"productCodes":["00070800227419","0070800227419","07080022741","070800227419"],"rank":{"salesPrice":3920,"salesQuantity":326,"impressionCount":4}},{"id":"338347","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$13.99","promoArea":{"promoText":"$11.99","validityText":"Valid 03/29/26 - 06/27/26"},"template":"NewPrice"}},"name":"Foster Farms , Chicken Breast Portions, Orange Chicken, Orange Glaze ","description":"Foster Farms , Chicken Breast Portions, Orange Chicken, Orange Glaze ","brand":"FOSTER FARMS MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7090905_766ab7e6-790a-4b07-b9f0-31ed2ace62b8.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.31909"},"productCodes":["00075278909416","0075278909416","07527890941","075278909416"],"rank":{"salesPrice":5131,"salesQuantity":428,"impressionCount":19}},{"id":"46203","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$4.99 /lb","template":"RegPrice"}},"name":"TSMC BEEF BACK RIBS FROZEN","description":"TSMC BEEF BACK RIBS FROZEN","brand":"THE SAVE MART COMPANY","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.3158"},"productCodes":["00250710000009","0250710000009","25071000000","250710000009","25071049"],"rank":{"salesPrice":2461,"salesQuantity":251,"impressionCount":5}},{"id":"83716","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/fish","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/fish"],"price":{"ok":{"regPriceText":"$5.99","template":"RegPrice"}},"name":"Green Valley , Lactose Free Pepper Jack Shredded Cheese ","description":"Green Valley , Lactose Free Pepper Jack Shredded Cheese ","brand":"GREEN VALLEY CREAMERY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7092221_ad48be07-1ac5-4800-ab3a-3ebadb0e9546.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.31533"},"productCodes":["00081312852020","0081312852020","08131285202","081312852020"],"rank":{"salesPrice":2612,"salesQuantity":410,"impressionCount":1}},{"id":"46118","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$29.99 /lb","template":"RegPrice"}},"name":"Choice Beef Ribeye Steak, Boneless Thin, Maxx Pack ","description":"Choice Beef Ribeye Steak, Boneless Thin, Maxx Pack ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7615486_9592cbd1-2baf-4580-84b6-a906754bd62e.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.30899"},"productCodes":["00250525000003","0250525000003","25052500000","250525000003"],"rank":{"salesPrice":3380,"salesQuantity":95,"impressionCount":18}},{"id":"18865","categories":["Product/meat_seafood","Product/sausage_ham_bacon","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/sausage_ham_bacon","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$3.49","template":"RegPrice"}},"name":"Chorizo, Pork","description":"US inspected and passed by Department of Agriculture. Product of USA. ","brand":"EL MEXICANO","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7056103_81680bc3-9244-4e88-8897-b2e0ba7e22b2.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.30829"},"productCodes":["00042743180106","0042743180106","04274318010","042743180106"],"rank":{"salesPrice":1333,"salesQuantity":382,"impressionCount":16}},{"id":"140320","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$13.49","template":"RegPrice"}},"name":"Tyson , Spicy Chicken Patties ","description":"Tyson , Spicy Chicken Patties ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/8319226_01793cd0-ec5b-46f6-8136-f8c34c797b23.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.30277"},"productCodes":["00023700060242","0023700060242","02370006024","023700060242"],"rank":{"salesPrice":4416,"salesQuantity":400,"impressionCount":37}},{"id":"92039","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$12.99","template":"RegPrice"}},"name":"Gorton''s , Potato Crunch 100% Whole Breaded Fish Fillets ","description":"Gorton''s , Potato Crunch 100% Whole Breaded Fish Fillets ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7322351_67a03b03-cc04-4d9f-84b2-f225331fa625.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.29831"},"productCodes":["00044400153409","0044400153409","04440015340","044400153409"],"rank":{"salesPrice":1882,"salesQuantity":146,"impressionCount":0}},{"id":"762786","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$12.99","template":"RegPrice"}},"name":"Gorton''s , Shrimp, Tail-On, Breaded, Beer Batter ","description":"Gorton''s , Shrimp, Tail-On, Breaded, Beer Batter ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7086094_814d144a-329d-47a9-9039-32c4fd1d4545.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.29643"},"productCodes":["00044400139205","0044400139205","04440013920","044400139205"],"rank":{"salesPrice":1542,"salesQuantity":120,"impressionCount":16}},{"id":"85504","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$7.99","template":"RegPrice"}},"name":"Seafood , Seafood Combination","description":"A combination of blanched squid, cooked surimi bites, blanched octopus slices, fully cooked mussel, fully cooked clam, blanched shrimp. Great for bouillabaisse, casseroles, ceviche, cocktails, paella, pasta and stir fry. Use in your favorite fish or shellfish recipes. Product of China. ","brand":"GREAT AMERICAN","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7070832_3cbc9437-7850-4b77-bb68-b94a2b7e9232.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.28821"},"productCodes":["00829944011800","0829944011800","82994401180","829944011800"],"rank":{"salesPrice":2748,"salesQuantity":284,"impressionCount":45}},{"id":"209046","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$7.99","template":"RegPrice"}},"name":"SWAI FILLET","description":"MEKONG SWAI FILLET","brand":"MEKONG","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.28494"},"productCodes":["00813135023260","0813135023260","81313502326","813135023260"],"rank":{"salesPrice":5592,"salesQuantity":562,"impressionCount":11}},{"id":"92041","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$7.99","promoArea":{"promoText":"$7.49","validityText":"Valid 03/30/26 - 06/28/26"},"template":"NewPrice"}},"name":"Gorton''s , Crispy Battered Fish Fillets ","description":"Gorton''s , Crispy Battered Fish Fillets ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7605654_72af00dd-5e92-4ec1-9dc3-6922a53d2af8.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.28493"},"productCodes":["00044400157704","0044400157704","04440015770","044400157704"],"rank":{"salesPrice":2659,"salesQuantity":356,"impressionCount":6}},{"id":"87154","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$14.99","promoArea":{"promoText":"$13.49","validityText":"Valid 03/30/26 - 06/28/26"},"template":"NewPrice"}},"name":"Seapak, Coconut Shrimp, Jumbo, Oven Crispy, Family Size ","description":"8 g protein per serving. per 3 oz serving: 270 calories; 6 g sat fat (31% dv); 690 mg sodium (30% dv); 4 g total sugars. see nutrition information for total fat and saturated fat and sodium content. derived from bioengineering. since 1948. shrimp & seafood co. includes orange marmalade sauce. includes 3 oz sauce. since 1948. includes orange marmalade sauce. includes 3 oz sauce. delicious seafood, trusted quality: at seapak, seafood sustainability is our never-ending mission. we're proud of our ability to deliver the highest-quality, most-sustainable products available, conserve natural resources, and drive positive change in the industry, to ensure delicious seafood can be enjoyed by generations to come. www.seapak.com facebook; instagram; youtube. need a new favorite recipe? visit us at www.seapak.com. search for new seafood recipes, discover the health benefits of seafood, and check out a boatload of seapak products. best aquaculture practices: 4 stars. processer. farm. hatchery. feed. bapcertification.org. committed to sustainability: best aquaculture practices (bap) certification standards require companies to comprehensively address environmental and social responsibility, animal welfare, food safety, and traceability throughout their operations. this shrimp are aquaculture shrimp. shrimp is good food: the usda recommends eating at least 8 oz of seafood a week for a healthier diet. product of ecuador. ","brand":"SEA-PAK (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7694503_f9e60edb-762d-4320-a4ec-99ee87bd1b2e.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.28363"},"productCodes":["00041322224996","0041322224996","04132222499","041322224996"],"rank":{"salesPrice":3810,"salesQuantity":282,"impressionCount":4}},{"id":"173926","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_burgers_patties","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_burgers_patties"],"price":{"ok":{"regPriceText":"$13.99","template":"RegPrice"}},"name":"Shabu-Shabu Beef Chuck Roll ","description":"Shabu-Shabu Beef Chuck Roll ","brand":"KING","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/11127921_c047ec5c-550d-4a3c-80f3-ae76f82c8edc.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.27953"},"productCodes":["00816782025984","0816782025984","81678202598","816782025984"],"rank":{"salesPrice":9176,"salesQuantity":662,"impressionCount":22}},{"id":"173010","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$16.99","promoArea":{"promoText":"$14.49","validityText":"Valid 03/29/26 - 06/28/26"},"template":"NewPrice"}},"name":"Just Bare , Lightly Breaded Spicy Chicken Breast Strips ","description":"Just Bare , Lightly Breaded Spicy Chicken Breast Strips ","brand":"JUST BARE CHICKEN","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9497527_e91f0a44-b621-4dc6-a477-d01ba9e852b3.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.27906"},"productCodes":["00077013615637","0077013615637","07701361563","077013615637"],"rank":{"salesPrice":5165,"salesQuantity":358,"impressionCount":21}},{"id":"179345","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$12.99","template":"RegPrice"}},"name":"Gorton''s , Breaded Tail-On Coconut Shrimp ","description":"Gorton''s , Breaded Tail-On Coconut Shrimp ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9862016_c7fcc825-a979-4642-85b4-a2275b74d256.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.27518"},"productCodes":["00044400139601","0044400139601","04440013960","044400139601"],"rank":{"salesPrice":1804,"salesQuantity":146,"impressionCount":8}},{"id":"954427","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$9.99","promoArea":{"promoText":"$8.99","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Sea Salt & Pepper Gluten Free Calamari","description":"Oven ready, easy to prepare. Dine well, feel well, live well. Sea salt & pepper calamari. Northern Chef Sea Salt & Pepper Calamari are hand cut from wild caught loligo squid. Our tender calamari are hand tossed in a light sea salt and pepper, gluten free coating that gives them an irresistible taste and crispy texture. Serve these calamari with your sauce of choice for a snack or as a quick entree. Precooked. Look for our complete line of products under our grands: Royal Asia and Northern Chef. ","brand":"NORTHERN CHEF","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7073361_113e1f13-40b3-41ee-ab65-310adc9f7f6a.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.27495"},"productCodes":["00877971004937","0877971004937","87797100493","877971004937"],"rank":{"salesPrice":2299,"salesQuantity":238,"impressionCount":13}},{"id":"954497","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$14.99","template":"RegPrice"}},"name":"Tyson , Buffalo Style Chicken Strips ","description":"Tyson , Buffalo Style Chicken Strips ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7077770_1220e1a5-afba-4aca-8c13-da44eb9c54dc.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.27248"},"productCodes":["00023700014092","0023700014092","02370001409","023700014092"],"rank":{"salesPrice":3397,"salesQuantity":272,"impressionCount":0}},{"id":"132919","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$7.99","promoArea":{"promoText":"$7.49","validityText":"Valid 03/30/26 - 06/28/26"},"template":"NewPrice"}},"name":"Gorton''s , Beer Battered Fish Fillets ","description":"Gorton''s , Beer Battered Fish Fillets ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/8319288_1f50b529-0d66-4da5-9c3a-87f567dec391.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.27213"},"productCodes":["00044400156301","0044400156301","04440015630","044400156301"],"rank":{"salesPrice":2286,"salesQuantity":304,"impressionCount":18}},{"id":"100148","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$22.99","template":"RegPrice"}},"name":"Tyson , Dino Nuggets Family Pack ","description":"Tyson , Dino Nuggets Family Pack ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7605573_be404296-8234-4235-b639-589db26f4d65.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.27119"},"productCodes":["00023700058294","0023700058294","02370005829","023700058294"],"rank":{"salesPrice":7757,"salesQuantity":340,"impressionCount":3}},{"id":"87155","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$14.99","promoArea":{"promoText":"$13.49","validityText":"Valid 03/30/26 - 06/28/26"},"template":"NewPrice"}},"name":"SeaPak , Shrimp Crunchy Spring Rolls ","description":"SeaPak , Shrimp Crunchy Spring Rolls ","brand":"SEA-PAK (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7322327_62794dc5-05b8-4480-ac87-39ce0252f553.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.27084"},"productCodes":["00041322225009","0041322225009","04132222500","041322225009"],"rank":{"salesPrice":3976,"salesQuantity":294,"impressionCount":8}},{"id":"18866","categories":["Product/meat_seafood","Product/sausage_ham_bacon","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/sausage_ham_bacon","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$3.49","template":"RegPrice"}},"name":"Chorizo, Beef","description":"US inspected and passed by Department of Agriculture. Product of USA. ","brand":"EL MEXICANO","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7056104_9df0fd40-2207-4a84-ae0e-4a2f49e8cf2a.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.26978"},"productCodes":["00042743180113","0042743180113","04274318011","042743180113"],"rank":{"salesPrice":1500,"salesQuantity":430,"impressionCount":6}},{"id":"173906","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_burgers_patties","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_burgers_patties"],"price":{"ok":{"regPriceText":"$12.99","template":"RegPrice"}},"name":"Sliced Curl Beef Short Plate","description":"U.S. inspected and passed by Department of Agriculture. ","brand":"King","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/10050246_62a076bc-cadc-433a-9bf7-4760d7f262d2.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.26955"},"productCodes":["00816782025960","0816782025960","81678202596","816782025960"],"rank":{"salesPrice":8135,"salesQuantity":636,"impressionCount":9}},{"id":"954431","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$9.99","promoArea":{"promoText":"$8.99","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Honey Walnut Gluten Free Shrimp","description":"No preservatives added. Oven ready, easy to prepare. Northern Chef Honey Walnut Shrimp are made with our signature crispy shrimp - chemical free, lightly coated and sustainable shrimp, a creamy honey sauce, and candied California walnuts. Simply heat the shrimp then toss with our sweet and smooth honey sauce and sprinkle with the included walnuts for a restaurant quality dish. Pre-cooked. Look for our complete line of products under our brands. At Northern Chef, we take our philosophy of Dine Well, Feel Well, Live Well. Our Dine Well products are carefully chosen based upon the following criteria: High quality seafood above industry standards. Consistently great tasting flavor and texture. Responsible practices to ensure the future supply of fish. Look for our complete line of products under our brands. At Northern Chef. ","brand":"NORTHERN CHEF","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7073363_cb4ff11b-5927-411f-8ed0-d48783f44c49.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.2598"},"productCodes":["00877971007068","0877971007068","87797100706","877971007068"],"rank":{"salesPrice":1834,"salesQuantity":190,"impressionCount":22}},{"id":"87328","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$11.99","template":"RegPrice"}},"name":"SeaPak , Golden Crispy Wild Caught Clam Strips ","description":"SeaPak , Golden Crispy Wild Caught Clam Strips ","brand":"SEA-PAK (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7605632_4d3febdb-0d09-43d0-b011-63d163a33565.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.25945"},"productCodes":["00041322224989","0041322224989","04132222498","041322224989"],"rank":{"salesPrice":2925,"salesQuantity":244,"impressionCount":0}},{"id":"140321","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$22.99","template":"RegPrice"}},"name":"Tyson , Chicken Nuggets Family Pack ","description":"Tyson , Chicken Nuggets Family Pack ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/8319227_cc1e4d65-496e-40a3-aa74-184a037d1c5e.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.25828"},"productCodes":["00023700060259","0023700060259","02370006025","023700060259"],"rank":{"salesPrice":6987,"salesQuantity":306,"impressionCount":0}},{"id":"77836","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$9.99","promoArea":{"promoText":"$8.99","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Jumbo Butterfly Shrimp","description":"Dine well. Fell well. Live well. Oven ready. Northern Chef Jumbo Butterfly Shrimp are breaded in a two step process making it truly great to eat and easy to prepare. Our all natural jumbo shrimp are butterfly cut and lightly breaded with a gluten free coating. These crispy shrimp are versatile and be served as appetizer or main dish component with the included sweet chili sauce. Simply heat in the oven or air fryer and enjoy. Look for complete line of products under our brands: Royal Asia; Northern Chef. Precooked. At Northern Chef, we take our philosophy of Dine Well, Feel Well, Live Well. Our Dine Well products are carefully chosen based upon the following criteria: High quality seafood above industry standards. Consistently great tasting flavor and texture. Responsible practices to ensure the future supply of fish. Look for complete line of products under our brands Royal Asia and Northern Chef. ","brand":"NORTHERN CHEF","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7073364_cf013140-a4c3-408d-859d-58d663d43bce.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.25628"},"productCodes":["00877971007464","0877971007464","87797100746","877971007464"],"rank":{"salesPrice":2065,"salesQuantity":212,"impressionCount":91}},{"id":"87145","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$11.99","template":"RegPrice"}},"name":"SeaPak, Shrimp Scampi ","description":"Shrimp in a blend of real butter, garlic & seasonings. 10 g protein per serving. Per 5 oz Serving: 420 calories; 16 g sat fat (81% DV); 630 mg sodium (27% DV); 0 g total sugars. See nutrition information for total fat, saturated fat, cholesterol and sodium content. Shrimp is good food. The USDA recommends eating at least 8 oz of seafood a week for a healthier diet. Contains a bioengineered food ingredients. Since 1948. Shrimp & Seafood Co. Delicious Seafood, Trusted Quality. At SeaPak, seafood sustainability is our never-ending mission. We're proud of our ability to deliver the highest-quality, most-sustainable products available, conserve natural resources, and drive positive change in the industry, to ensure delicious seafood can be enjoyed by generations to come. www.seapak.com/smartsourcing. how2recycle.info. www.seapak.com. Facebook. Instagram. YouTube. Pinterest. Search for new seafood recipes, discover the health benefits of seafood, and check out a boatload of SeaPak products. Need a new favorite recipe? Visit us at www.seapak.com. These shrimp are aquaculture shrimp. www.seapak.com/smartsourcing. ","brand":"SEA-PAK (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7084789_3f1e43db-98d4-4537-9402-0f0a1afb6add.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.25281"},"productCodes":["00041322224514","0041322224514","04132222451","041322224514"],"rank":{"salesPrice":2134,"salesQuantity":178,"impressionCount":0}},{"id":"172782","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_burgers_patties","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_burgers_patties"],"price":{"ok":{"regPriceText":"$19.99","template":"RegPrice"}},"name":"Bubba Burger , Smashed Original Beef Burgers ","description":"Bubba Burger , Smashed Original Beef Burgers ","brand":"BUBBA FOODS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9292465_17ea801a-1d12-4faf-87c5-d92cbf24d069.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.25053"},"productCodes":["00704639960062","0704639960062","70463996006","704639960062"],"rank":{"salesPrice":3878,"salesQuantity":198,"impressionCount":28}},{"id":"145709","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$14.99","promoArea":{"promoText":"$13.49","validityText":"Valid 03/30/26 - 06/28/26"},"template":"NewPrice"}},"name":"SeaPak, Classic Popcorn Shrimp ","description":"10 g protein per serving. Per 3 Oz Serving: 230 calories; 1.5 g sat fat (9% DV); 560 mg sodium (25% DV); 2 g added sugars (3% DV). See nutrition information for cholesterol and sodium content. Shrimp is Good Food: The USDA recommends eating at least 8 oz of seafood a week for a healthier diet. America's favorite popcorn shrimp! Contains a bioengineered food ingredient. Since 1948. Delicious seafood for over 75 years. SeaPak, founded in 1948, is an industry leader bringing deliciously convenient seafood straight to your home. From our most popular Jumbo Butterfly Shrimp and Popcorn Shrimp, to Shrimp Spring Rolls and Clam Strips, SeaPak is committed to making great tasting, high quality seafood products. how2recycle.info. Scan this QR code for recipes, to learn more about Seapak, and follow us on all your favorite socials. Facebook. Instagram. Pinterest. Customer Service: 1-800-356-7094. ","brand":"SEA-PAK (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9292378_f362d134-b12d-49d0-bfac-689428117223.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.24935"},"productCodes":["00041322248930","0041322248930","04132224893","041322248930"],"rank":{"salesPrice":3654,"salesQuantity":270,"impressionCount":5}},{"id":"87148","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$11.99","template":"RegPrice"}},"name":"SeaPak, Calamari ","description":"Wild caught calamari in an oven crispy breading. Includes tomato Romano sauce. Includes 3 oz sauce. 8 g protein per serving. Per 3 Oz Serving: 190 calories; 1.5 g sat fat (7% DV); 740 mg sodium (32% DV); 1 g total sugars. See nutrition information for sodium content. Calamari is good food. The USDA recommends eating at least 8 oz of seafood a week for a healthier diet. Contains a bioengineered food ingredients. Since 1948. SeaPak - Shrimp & Seafood Co. Delicious seafood, trusted quality. At seapak, seafood sustainability is our never ending mission. We¿re proud of our ability to deliver the highest, most sustainable products available, conserve natural resources, and drive positive change in the industry, to ensure delicious seafood can be enjoyed by generations to come. Committed to sustainability. www.seapak.com. how2recycle.info. Facebook. Instagram. YouTube. Search new seafood recipes, discover the health benefits of seafood, and check out a boatload of SeaPak products. Need a new favorite recipe? Visit us at www.seapak.com. This squid is wild caught. www.seapak.com/smartsourcing. ","brand":"SEA-PAK (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7084794_38c63051-e537-4e9f-8ded-ce4674abd5af.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.24442"},"productCodes":["00041322224934","0041322224934","04132222493","041322224934"],"rank":{"salesPrice":1806,"salesQuantity":152,"impressionCount":9}},{"id":"227033","categories":["Product/meat_seafood","Product/sausage_ham_bacon","Product/meat_seafood","Product/bacon","Product/sausage_ham_bacon","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/sausage_ham_bacon","Mobile/P+C/Product/bacon"],"price":{"ok":{"regPriceText":"$17.99","promoArea":{"promoText":"$10","validityText":"Valid 04/07/26 - 06/28/26"},"template":"NewPrice"}},"name":"REGULAR TUX BOX","description":"FARMER JOHN REGULAR TUX BOX","brand":"FARMER JOHN","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/11574996_e931fef2-8294-49d5-88fa-02cb8669c288.jpeg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.23914"},"productCodes":["00050500229838","0050500229838","05050022983","050500229838"],"rank":{"salesPrice":21031,"salesQuantity":2060,"impressionCount":2}},{"id":"209141","categories":["Product/meat_seafood","Product/pork","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/pork","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$6.99","template":"RegPrice"}},"name":"AMAZ GROUND PORK TRAY PACK","description":"AMAZ GROUND PORK TRAY PACK","brand":"AMAZING TASTE","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.23902"},"productCodes":["00075756051507","0075756051507","07575605150","075756051507"],"rank":{"salesPrice":7002,"salesQuantity":962,"impressionCount":2}},{"id":"178931","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$14.49","template":"RegPrice"}},"name":"Tyson , Chicken Bites, Boneless, Buffalo Style ","description":"Tyson , Chicken Bites, Boneless, Buffalo Style ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9440683_4857705b-bd3c-40be-adf5-8173e0eb4d10.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.23785"},"productCodes":["00023700014054","0023700014054","02370001405","023700014054"],"rank":{"salesPrice":3229,"salesQuantity":240,"impressionCount":15}},{"id":"179346","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$10.99","template":"RegPrice"}},"name":"Gorton''s , Taco Crunchy Breaded Taco Seasoned Fish Tenders ","description":"Gorton''s , Taco Crunchy Breaded Taco Seasoned Fish Tenders ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/10123083_b7fb8fbf-895d-478b-8f0f-fba6739eb39e.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.23538"},"productCodes":["00044400158404","0044400158404","04440015840","044400158404"],"rank":{"salesPrice":2054,"salesQuantity":190,"impressionCount":10}},{"id":"179347","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$11.99","template":"RegPrice"}},"name":"Gorton''s , Cilantro Lime Flavored Taco Tenders ","description":"Gorton''s , Cilantro Lime Flavored Taco Tenders ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/10123084_e9acba28-bde8-48a4-a836-90cfa1275430.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.23268"},"productCodes":["00044400158503","0044400158503","04440015850","044400158503"],"rank":{"salesPrice":1968,"salesQuantity":172,"impressionCount":2}},{"id":"830761","categories":["Product/meat_seafood","Product/poultry","Product/meat_seafood","Product/chicken","Product/poultry","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/poultry","Mobile/P+C/Product/chicken"],"price":{"ok":{"regPriceText":"$5.99 /lb","promoArea":{"promoText":"$4.99 /lb","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"TSMC THIN SLICED BNLS CHICKEN BREAST","description":"TSMC THIN SLICED BNLS CHICKEN BREAST","brand":"THE SAVE MART COMPANY","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.22881"},"productCodes":["00254277000007","0254277000007","25427700000","254277000007"],"rank":{"salesPrice":1288,"salesQuantity":229,"impressionCount":0}},{"id":"169229","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$14.49","template":"RegPrice"}},"name":"Tyson, Grilled Boneless Chicken Bites ","description":"Fully cooked white meat chicken, seasoned, smoke flavor added. 20 g protein per serving. Chicken raised with no added hormones or steroids**. The Tyson Foods story began in 1935 with one simple thought; every family deserves quality chicken. Today, we're just as committed to that promise as ever. We've spent years creating new ways of bringing great food to make mealtimes more enjoyable for everyone. ** Federal regulations prohibit the use of added hormones or steroids in chicken. In Touch With Tyson Foods: We guarantee this product. If you're not completely satisfied, we will replace it. Proof of purchase required. Questions or comments? 800-233-6332 tyson.com/contact-us. Inspected for wholesomeness by U.S. Department of Agriculture. tyson.com. tyson.com/contact-us. Scan for more from tyson.com. Questions or comments? 800-233-6332 tyson.com/contact-us. ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9682185_9edf784b-e93a-4dce-b52d-89eb7f95cbc4.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.22822"},"productCodes":["00023700060457","0023700060457","02370006045","023700060457"],"rank":{"salesPrice":4072,"salesQuantity":304,"impressionCount":8}},{"id":"178939","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$14.49","template":"RegPrice"}},"name":"Tyson , Popcorn Chicken ","description":"Tyson , Popcorn Chicken ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9861960_8032b336-aacf-499f-99f1-42bf9b5bb2bd.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.2274"},"productCodes":["00023700060129","0023700060129","02370006012","023700060129"],"rank":{"salesPrice":3632,"salesQuantity":270,"impressionCount":0}},{"id":"954430","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$9.99","promoArea":{"promoText":"$8.99","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"Coconut Gluten Free Shrimp","description":"Oven ready, easy to prepare. No preservatives added. Coconut Shrimp: Northern Chef Coconut Shrimp are produced without the use of preservatives. These shrimp are lightly dusted by hand with coconut flakes. Just follow the easy heating instruction below to finish them off to a crunchy golden brown and serve with the included sweet thai chili dipping sauce. Look for our complete line of product under our brands: Royal Asia. Northern Chef. Pre cooked. Northern Chef. We take our philosophy of dine well, feel well, live well, to dine well products are carefully chose based upon the following criteria: High quality seafood above industry standards. Consistently great tasting flavor and texture. Responsible practice to ensure the future supply of fish. ","brand":"NORTHERN CHEF","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7073362_fd9d51a7-0b21-4250-b863-2f11ecd277b9.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.22646"},"productCodes":["00877971006344","0877971006344","87797100634","877971006344"],"rank":{"salesPrice":1560,"salesQuantity":160,"impressionCount":33}},{"id":"54957","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/fish","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/fish"],"price":{"ok":{"regPriceText":"$6.99","template":"RegPrice"}},"name":"Violife , Shreds Mexican Style Cheese Alternative ","description":"Violife , Shreds Mexican Style Cheese Alternative ","brand":"VIOLIFE FOODS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7069429_a2896570-1d51-43c2-96b3-ff8555aebd98.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.22458"},"productCodes":["00810934031137","0810934031137","81093403113","810934031137"],"rank":{"salesPrice":2083,"salesQuantity":298,"impressionCount":9}},{"id":"901525","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$14.99","template":"RegPrice"}},"name":"Tyson , Honey BBQ Flavored Chicken Strips ","description":"Tyson , Honey BBQ Flavored Chicken Strips ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7077772_4adf37b9-6790-4d29-921c-d5cdaaf75cd0.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.2227"},"productCodes":["00023700014139","0023700014139","02370001413","023700014139"],"rank":{"salesPrice":2777,"salesQuantity":220,"impressionCount":10}},{"id":"178411","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$13.29","template":"RegPrice"}},"name":"Tyson, Lemon Pepper Crispy Wings ","description":"Fully cooked dry rubbed chicken wing sections, with lemon pepper seasoning. 13 g protein per serving. Chicken raised with no added hormones or steroids**. Now more wings air fryer ready. ** Federal regulations prohibit the use of added hormones or steroids in chicken. In Touch With Tyson Foods: We guarantee this product. If you're not completely satisfied, we will replace it. Proof of purchase required. Questions or comments? 800-233-6332 tyson.com/contact-us. Inspected for wholesomeness by U.S. Department of Agriculture. tyson.com. Scan for more from tyson.com. Questions or comments? 800-233-6332; tyson.com/contact-us. ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9861962_2c30240c-4e9f-49ea-900b-23d60ebbbc47.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.222"},"productCodes":["00023700061546","0023700061546","02370006154","023700061546"],"rank":{"salesPrice":3205,"salesQuantity":246,"impressionCount":14}},{"id":"142477","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$19.99","template":"RegPrice"}},"name":"Foster Farms , Family Pack Classic Breast Nuggets ","description":"Foster Farms , Family Pack Classic Breast Nuggets ","brand":"FOSTER FARMS MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/8319337_45928465-e0f6-4450-bc21-4f3c4069eca6.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.21683"},"productCodes":["00075278996423","0075278996423","07527899642","075278996423"],"rank":{"salesPrice":4329,"salesQuantity":226,"impressionCount":6}},{"id":"169207","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$14.49","template":"RegPrice"}},"name":"Tyson, Grilled Chicken Tenders ","description":"Fully cooked boneless skinless breast with rib meat, seasoned, smoke flavor added. 20 g protein per serving. Chicken raised with no added hormones or steroids**. The Tyson Foods story began in 1935 with one simple thought; every family deserves quality chicken. Today, we're just as committed to that promise as ever. We've spent years creating new ways of bringing great food to make mealtimes more enjoyable for everyone. ** Federal regulations prohibit the use of added hormones or steroids in chicken. In Touch With Tyson Foods: We guarantee this product. If you're not completely satisfied, we will replace it. Proof of purchase required. Questions or comments? 800-233-6332 tyson.com/contact-us. Inspected for wholesomeness by U.S. Department of Agriculture. tyson.com. Scan for more from tyson.com. Questions or comments? 800-233-6332 tyson.com/contact-us. ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9280887_840dbbab-d0b2-4642-abaa-d5d4cb62badd.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.20709"},"productCodes":["00023700060433","0023700060433","02370006043","023700060433"],"rank":{"salesPrice":3520,"salesQuantity":262,"impressionCount":6}},{"id":"156926","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$11.99","promoArea":{"promoText":"$8.99","validityText":"Valid 03/26/26 - 06/25/26"},"template":"NewPrice"}},"name":"Foster Farms, Classic Dino Nuggets ","description":"Shaped breaded chicken breast patties with rib meat. Per Serving: 230 calories; 4 g sat fat (20% DV); 420 mg sodium (18% DV) <1 g total sugars; 9 g protein (16% DV). Serving families since 1939. Chicken raised with no antibiotics ever! Chicken raised with no added hormones* or steroids* ever! Ready in about 7 minutes from your air fryer. Fully cooked. Microwaveable. No preservatives. At Foster Farms, being simply better is our way of life. It's what we strive for in everything we do. Serving families since 1939, Foster Farms has always been a brand you can trust. We're helping you redefine what's possible at every meal because good food feeds good times. Better care. Better quality. Better taste. That's the Foster Farms way. * Federal regulations do not permit the use of hormones or steroids in poultry. This is Our Promise to You: If you are not satisfied with this product, we will promptly replace your purchase. Simply return this label with the reason and proof of purchase to: Foster Farm, P.O. Box 306, Livingston, CA 95334. If you have questions or comments, please call 1-800-255-7227, Monday - Friday, 8 am - 5 pm PST. Inspected for wholesomeness by U.S. Department of Agriculture. fosterfarms.com. We'd love to hear from you! Find us at fosterfarms.com and follow us on: Instagram. Facebook. X. @fosterfarms. Resealable for freshness! ","brand":"FOSTER FARMS MEAT","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/11127854_3633d570-01c8-423a-9347-3aed7072db5d.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.20333"},"productCodes":["00075278996430","0075278996430","07527899643","075278996430"],"rank":{"salesPrice":4950,"salesQuantity":542,"impressionCount":13}},{"id":"222968","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/shrimp","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/shrimp"],"price":{"ok":{"regPriceText":"$27.99","promoArea":{"promoText":"$23.98","validityText":"Valid 05/04/26 - 05/14/26"},"template":"NewPrice"}},"name":"Cooked Shrimp, 40/50 count ","description":"40-50 Cooked Shrimp ","brand":"MASTER CATCH","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7066429_82769a2c-55c0-4d94-a69f-33d6ff1ba746.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.20052"},"productCodes":["00019964205956","00027241744814","0019964205956","0027241744814","00480000224925","00717544137047","00890620001750","01996420595","019964205956","02724174481","027241744814","0480000224925","0717544137047","0890620001750","48000022492","480000224925","71754413704","717544137047","89062000175","890620001750"],"rank":{"salesPrice":21146,"salesQuantity":988,"impressionCount":138}},{"id":"193494","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/shrimp","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/shrimp"],"price":{"ok":{"regPriceText":"$31.99","promoArea":{"promoText":"$27.98","validityText":"Valid 05/04/26 - 05/14/26"},"template":"NewPrice"}},"name":"31/40 TROPICAL COOKED PD TAIL OFF SHRIMP IQF","description":"31/40 TROPICAL COOKED PD TAIL OFF SHRIMP IQF","brand":"TROPICAL","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.19324"},"productCodes":["00647283224978","0647283224978","64728322497","647283224978"],"rank":{"salesPrice":4186,"salesQuantity":122,"impressionCount":4}},{"id":"926916","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$16.99","template":"RegPrice"}},"name":"Gorton''s , Fish Sticks ","description":"Gorton''s , Fish Sticks ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7086089_0b55033c-3a98-4a96-9318-14ccbf2915f4.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.19054"},"productCodes":["00044400103107","0044400103107","04440010310","044400103107"],"rank":{"salesPrice":4043,"salesQuantity":238,"impressionCount":1}},{"id":"178413","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$13.29","template":"RegPrice"}},"name":"Tyson, Rotisserie Seasoned Crispy Wings ","description":"Fully cooked dry rubbed chicken wing sections with rotisserie style seasoning. 14 g protein per serving. Chicken raised with no added hormones or steroids **. Now more wings air fryer ready. ** Federal regulations prohibit the use of added hormones or steroids in chicken. The Tyson Foods story began in 1935 with one simple thought; every family deserves quality chicken. Today, we're just as committed to that promise as ever. We've spent years creating new ways of bringing great food to make mealtimes more enjoyable for everyone. In Touch with Tyson Foods: We guarantee this product. If you¿re not completely satisfied, we will replace it. Proof of purchase required. Inspected for wholesomeness by U.S. Department of Agriculture. tyson.com. tyson.com/contact-us. Scan for more from tyson.com. Questions or comments? 800-233-6332; tyson.com/contact-us. ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9716009_5793fd67-f4ec-49c9-a968-3a2a86861dde.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.18749"},"productCodes":["00023700061560","0023700061560","02370006156","023700061560"],"rank":{"salesPrice":1992,"salesQuantity":152,"impressionCount":4}},{"id":"178412","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$13.29","template":"RegPrice"}},"name":"Tyson, Garlic Parmesan Crispy Wings ","description":"Fully cooked dry rubbed chicken wing sections seasoned with garlic and parmesan cheese. 14 g protein per serving. Chicken raised with no added hormones or steroids**. Now more wings. Air fryer ready. The Tyson Foods story began in 1935 with one simple thought; every family deserves quality chicken. Today, we're just as committed to that promise as ever. We've spent years creating new ways of bringing great food to make mealtimes more enjoyable for everyone. ** Federal regulations prohibit the use of added hormones or steroids in chicken. In Touch with Tyson Foods: We guarantee this product. If you're not completely satisfied, we will replace it. Proof of purchase required. Inspected for wholesomeness by U.S. Department of Agriculture. tyson.com. Scan for more from tyson.com. Questions or comments? 800-233-6332 tyson.com/contact-us. ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9716008_de763a17-f253-49bf-b3c4-4f846e0f6a0e.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.18702"},"productCodes":["00023700061553","0023700061553","02370006155","023700061553"],"rank":{"salesPrice":2330,"salesQuantity":178,"impressionCount":5}},{"id":"178669","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/crab_lobster","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/crab_lobster"],"price":{"ok":{"regPriceText":"$30","template":"RegPrice"}},"name":"Crawfish Boil Bundle ","description":"Includes: Cooked crawfish, Andouille sausage, Small potatoes, Corn on the cob, Crawfish boil seasoning, and Cajun seasoning ","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9556814_79e4eb79-44b2-4a67-b951-7fe9d582afe5.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.18068"},"productCodes":["00255509000000","0255509000000","25550900000","255509000000"],"rank":{"salesPrice":4634,"salesQuantity":156,"impressionCount":6}},{"id":"945658","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/fish","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/fish"],"price":{"ok":{"regPriceText":"$6.99","template":"RegPrice"}},"name":"Violife , Cheddar Slices Cheese Alternative ","description":"Violife , Cheddar Slices Cheese Alternative ","brand":"VIOLIFE FOODS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7069424_897ac06a-e637-4693-bf5d-c659c69a8d2a.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.17985"},"productCodes":["00810934030352","0810934030352","81093403035","810934030352"],"rank":{"salesPrice":1572,"salesQuantity":226,"impressionCount":1}},{"id":"178415","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$2.79","template":"RegPrice"}},"name":"Armour, Pretzel Dog ","description":"Chicken frank wrapped in pretzel dough. Contains bioengineered food ingredients. Ready in under 2 minutes in the microwave. Inspected for wholesomeness by U.S. Department of Agriculture. www.armourmeats.com. ","brand":"ARMOUR MEATS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/11492827_10bf9001-fc61-4113-9ec9-70c6d1eb6d4d.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.17363"},"productCodes":["00027815020955","0027815020955","02781502095","027815020955"],"rank":{"salesPrice":323,"salesQuantity":116,"impressionCount":0}},{"id":"156927","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$11.99","promoArea":{"promoText":"$8.99","validityText":"Valid 03/26/26 - 06/25/26"},"template":"NewPrice"}},"name":"Foster Farms, Breast Nuggets ","description":"Shaped breaded chicken breast patties with rib meat. Per Serving: 190 calories; 3 g sat fat (15% DV); 380 mg sodium (17% DV); <1 g total sugars; 10 g protein (18% DV). Serving families since 1939. Chicken raised with no antibiotics ever! Chicken raised with no added hormones or steroids* ever! Ready in about 7 minutes from your air fryer. Fully cooked. Microwaveable. No preservatives. At Foster Farms, being simply better is our way of life. It's what we strive for in everything we do. Serving families since 1939, Foster Farms has always been a brand you can trust. We're helping you redefine what's possible at every meal because good food feeds good times. Better care. Better quality. Better taste. That's the Foster Farms way. * Federal regulations do not permit the use of hormones or steroids in poultry. This is Our Promise to You: If you are not satisfied with this product, we will promptly replace your purchase. Simply return this label with the reason and proof of purchase to: Foster Farms, P.O. Box 306, Livingston, CA 95334. If you have questions or comments, please call 1-800-255-7227, Monday - Friday, 8 am - 5 pm PST. Inspected for wholesomeness by U.S. Department of Agriculture. fosterfarms.com. We'd love to hear from you! Find us at fosterfarms.com and follow us on: Instagram. Facebook. X. @fosterfarms. Resealable for freshness! ","brand":"FOSTER FARMS MEAT","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/11197656_8e6c5f1b-fc8f-457e-9081-92f283e9e2df.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.17316"},"productCodes":["00075278996447","0075278996447","07527899644","075278996447"],"rank":{"salesPrice":4752,"salesQuantity":520,"impressionCount":3}},{"id":"945655","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/fish","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/fish"],"price":{"ok":{"regPriceText":"$6.99","template":"RegPrice"}},"name":"Violife , Shreds Cheddar Cheese Alternative ","description":"Violife , Shreds Cheddar Cheese Alternative ","brand":"VIOLIFE FOODS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7069423_a995997d-f644-4dc7-8b5a-6540a5567749.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.17175"},"productCodes":["00810934030215","0810934030215","81093403021","810934030215"],"rank":{"salesPrice":1104,"salesQuantity":158,"impressionCount":1}},{"id":"178932","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$14.49","template":"RegPrice"}},"name":"Tyson, Lightly Breaded Chicken Strips ","description":"Fully cooked breaded chicken breast strips with rib meat. 17 g of protein per serving. Chicken raised with no added hormones or steroids**. The Tyson Foods story began in 1935 with one simple thought; every family deserves quality chicken. Today, we're just as committed to that promise as ever. We've spent years creating new ways of bringing great food to make mealtimes more enjoyable for everyone. ** Federal regulations prohibit the use of added hormones or steroids in chicken. In Touch With Tyson Foods: We guarantee this product. If you're not completely satisfied, we will replace it. Proof of purchase required. Questions or comments? 800-233-6332 tyson.com/contact-us. Inspected for wholesomeness by U.S. Department of Agriculture. www.tyson.com. Scan for more from tyson.com. 800-233-6332. ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9861958_4112b9c8-925b-4a1a-a6d7-51d0e4573c43.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.16647"},"productCodes":["00023700060006","0023700060006","02370006000","023700060006"],"rank":{"salesPrice":1768,"salesQuantity":132,"impressionCount":1}},{"id":"178944","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$6.49","template":"RegPrice"}},"name":"Shaved Chicken Breast","description":"Chicken breast with rib meat. 24 g protein per serving. Gluten free. Since 1914. Family owned. Quality foods. Inspected for wholesomeness by U.S. Department of Agriculture. oldneighborhoodfoods.com. Born, raised, harvested in the U.S.A. ","brand":"DEMAKES BROS.","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9933232_8816c8c0-5e65-4a88-b006-92ce99ecd8fa.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.15802"},"productCodes":["00052294008972","0052294008972","05229400897","052294008972"],"rank":{"salesPrice":674,"salesQuantity":116,"impressionCount":0}},{"id":"85492","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_burgers_patties","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_burgers_patties"],"price":{"ok":{"regPriceText":"$12.49","template":"RegPrice"}},"name":"Red Bird , Original Chicken Burgers ","description":"Red Bird , Original Chicken Burgers ","brand":"RED BIRD FARMS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/8071027_b73ad7d3-422d-4f64-b8ae-896111a4b4e1.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.15743"},"productCodes":["00686443312001","0686443312001","68644331200","686443312001"],"rank":{"salesPrice":2035,"salesQuantity":172,"impressionCount":12}},{"id":"178938","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$14.49","template":"RegPrice"}},"name":"Tyson, Lightly Breaded Boneless Chicken Bites ","description":"Fully cooked breaded white meat chicken. 17 g protein per serving. Chicken raised with no added hormones or steroids**. The Tyson Foods story began in 1935 with one simple thought; every family deserves quality chicken. Today, we're just as committed to that promise as ever. We've spent years creating new ways of bringing great food to make mealtimes more enjoyable for everyone. **Federal regulations prohibit the use of added hormones or steroids in chicken. In Touch with Tyson Foods: We guarantee this product. If you're not completely satisfied, we will replace it. Proof of purchase required. Questions or comments? 800-233-6332; tyson.com/contact-us. Inspected for wholesomeness by U.S. Department of Agriculture. tyson.com. Scan for more from tyson.com. ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9861959_acf038b2-5652-4166-9d73-686bff788963.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.15297"},"productCodes":["00023700060037","0023700060037","02370006003","023700060037"],"rank":{"salesPrice":1937,"salesQuantity":144,"impressionCount":21}},{"id":"193882","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$10","promoArea":{"promoText":"$5","validityText":"Valid 04/28/26 - 10/25/26"},"template":"NewPrice"}},"name":"FROZEN ATLANTIC COD PORTIONS","description":"SALT & SEA FROZEN ATLANTIC COD PORTIONS","brand":"salt & sea","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.15074"},"productCodes":["00850066060025","0850066060025","85006606002","850066060025"],"rank":{"salesPrice":2440,"salesQuantity":310,"impressionCount":4}},{"id":"92042","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$18.99","template":"RegPrice"}},"name":"Gortons , Fish Fillets ","description":"Made with breadcrumbs from daily baked bread. Breaded fish fillets. 120 mg of EPA and DHA Omega-3 fatty acids per serving. Trusted since 1849. 100% real fish no fillers. Will caught. Natural omega-3. 100% Real Fish: Wild-caught Pollock, a mild, flaky white fish. Real Simple: No fillers, no artificial colors or flavors, no preservatives or hydrogenated oils, and tested mercury safe. Real delicious! The Gorton's fisherman. Trusted Catch. 100% real fish. Sourced responsibly. USDA dietary guidelines recommended seafood twice a week (Typical serving is 4 oz cooked). No one makes it easier to enjoy great-tasting seafood than Gorton's! Real fish, simple ingredients. 100% wild-caught pollock. Breadcrumb coating. Vegetable oil. Although great care is taken to remove bones, some may remain. www.gortons.com. Find easy recipes & special offers on Gortons.com & facebook.com/gortonsseafood. Learn more at gortons.com/sustainability. Questions? Comments? We value your feedback. Call 1-800-222-6846 (Mon - Fri 8:30 AM - 6:00 PM ET) or visit www.gortons.com (Please have this package for reference). Try unbeatably fresh-tasting fish sticks and fillets!: Beer Battered; fish sticks; crispy battered. Reclosable zipper! Made in the USA with domestic & imported ingredients. ","brand":"GORTON'S FISH (SEAF)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7095368_db852e70-fe7c-4d16-b23e-c663536d947b.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.14557"},"productCodes":["00044400191005","0044400191005","04440019100","044400191005"],"rank":{"salesPrice":2316,"salesQuantity":122,"impressionCount":0}},{"id":"989384","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$39.99","template":"RegPrice"}},"name":"Buffalo Style Wings","description":"Winganza , Buffalo Style Wings ","brand":"Winganza","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/8140557_0493ac18-5006-4a29-9bf8-425464a50b11.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.14158"},"productCodes":["00629859117150","0629859117150","62985911715","629859117150"],"rank":{"salesPrice":759,"salesQuantity":20,"impressionCount":4}},{"id":"73940","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_steaks_roasts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_steaks_roasts"],"price":{"ok":{"regPriceText":"$14.99 /lb","template":"RegPrice"}},"name":"Beef Chuck Flanken Short Rib, Bone-In, Sold In the Bag ","description":"Beef Chuck Flanken Short Rib, Bone-In, Sold In the Bag ","brand":"THE SAVE MART COMPANY","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.14135"},"productCodes":["00250703000009","0250703000009","25070300000","250703000009"],"rank":{"salesPrice":7781,"salesQuantity":208,"impressionCount":0}},{"id":"173104","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$13.99","promoArea":{"promoText":"$8.99","validityText":"Valid 02/04/26 - 12/31/26"},"template":"NewPrice"}},"name":"PREMIER SEAFOOD CAJUN SOCKEYE SALMON BRGR","description":"PREMIER SEAFOOD CAJUN SOCKEYE SALMON BRGR","brand":"PREMIER SEAFOODS","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.1356"},"productCodes":["00828684050155","0828684050155","82868405015","828684050155"],"rank":{"salesPrice":1762,"salesQuantity":190,"impressionCount":11}},{"id":"169237","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_poultry","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_poultry"],"price":{"ok":{"regPriceText":"$14.49","template":"RegPrice"}},"name":"Tyson, Blackened Flavored Diced Chicken Breast ","description":"Fully cooked boneless skinless with rib meat, seasoned with blackened spices. 22 g protein per serving. Chicken raised with no added hormones or steroids**. Fully cooked. The Tyson Foods story began in 1935 with one simple thought; every family deserves quality chicken. Today, we're just as committed to that promise as ever. We've spent years creating new ways of bringing great food to make mealtimes more enjoyable for everyone. ** Federal regulations prohibit the use of added hormones or steroids in chicken. In Touch With Tyson Foods: We guarantee this product. If you're not completely satisfied, we will replace it. Proof of purchase required. Questions or comments? 800-233-6332 tyson.com/contact-us. Inspected for wholesomeness by U.S. Department of Agriculture. tyson.com/contact-us. tyson.com. Scan for more from tyson.com. 800-233-6332. ","brand":"TYSON (MT)","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9996935_ee31e2e0-2823-4b43-8cc9-2f114207f9d2.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.13196"},"productCodes":["00023700060761","0023700060761","02370006076","023700060761"],"rank":{"salesPrice":1663,"salesQuantity":124,"impressionCount":0}},{"id":"173103","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$13.99","promoArea":{"promoText":"$8.99","validityText":"Valid 02/04/26 - 12/31/26"},"template":"NewPrice"}},"name":"PREMIER SFD MEDITERRANEAN SOCKEYE SLMN BRGR","description":"PREMIER SFD MEDITERRANEAN SOCKEYE SLMN BRGR","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.12828"},"productCodes":["00828684050148","0828684050148","82868405014","828684050148"],"rank":{"salesPrice":1672,"salesQuantity":174,"impressionCount":0}},{"id":"194153","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$24.99","promoArea":{"promoText":"$15.89","validityText":"Valid 04/10/26 - 04/11/27"},"template":"NewPrice"}},"name":"RASIA HONEY WALNUT SHRIMP","description":"RASIA HONEY WALNUT SHRIMP","brand":"ROYAL ASIA (FRZN)","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.12773"},"productCodes":["00877971006696","0877971006696","87797100669","877971006696"],"rank":{"salesPrice":5111,"salesQuantity":290,"impressionCount":2}},{"id":"173113","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$16.99","template":"RegPrice"}},"name":"MAMA BEAR SALMON CUBES","description":"MAMA BEAR SALMON CUBES","brand":"MAMA BEAR (SOUTHRING)","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.12597"},"productCodes":["00850040325027","0850040325027","85004032502","850040325027"],"rank":{"salesPrice":1189,"salesQuantity":62,"impressionCount":2}},{"id":"205913","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/shrimp","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/shrimp"],"price":{"ok":{"regPriceText":"$33.99","promoArea":{"promoText":"$29.98","validityText":"Valid 05/04/26 - 05/14/26"},"template":"NewPrice"}},"name":"BLUE SEA 26-30 COOKED PDTO IQF 5X2","description":"BLUE SEA 26-30 COOKED PDTO IQF 5X2","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.12515"},"productCodes":["00659878009440","0659878009440","65987800944","659878009440"],"rank":{"salesPrice":1355,"salesQuantity":42,"impressionCount":0}},{"id":"85493","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_burgers_patties","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_burgers_patties"],"price":{"ok":{"regPriceText":"$12.49","template":"RegPrice"}},"name":"Red Bird , Mild Three Chilies Chicken Patties ","description":"Red Bird , Mild Three Chilies Chicken Patties ","brand":"RED BIRD FARMS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/8071028_1ff5aa40-af19-4403-8191-17ca2fd57207.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.12268"},"productCodes":["00686443313107","0686443313107","68644331310","686443313107"],"rank":{"salesPrice":1386,"salesQuantity":114,"impressionCount":27}},{"id":"173105","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$13.99","promoArea":{"promoText":"$8.99","validityText":"Valid 02/04/26 - 12/31/26"},"template":"NewPrice"}},"name":"PREMIER SEAFOOD LEMON DILL SOCKEYE SLMN BRGR","description":"PREMIER SEAFOOD LEMON DILL SOCKEYE SLMN BRGR","brand":"PREMIER SEAFOODS","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.12233"},"productCodes":["00828684050162","0828684050162","82868405016","828684050162"],"rank":{"salesPrice":1430,"salesQuantity":158,"impressionCount":2}},{"id":"156718","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$9.99","template":"RegPrice"}},"name":"PORK NECKBONES CUT 2LB","description":"HACIENDA DEL VALLE PORK NECKBONES CUT 2LB","brand":"HACIENDA DEL VALLE","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.11153"},"productCodes":["00827492000109","0827492000109","82749200010","827492000109"],"rank":{"salesPrice":745,"salesQuantity":62,"impressionCount":0}},{"id":"172435","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$16.99","template":"RegPrice"}},"name":"MAMA BEAR ATLANTIC SALMON BURGERS","description":"MAMA BEAR ATLANTIC SALMON BURGERS","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.09833"},"productCodes":["00850040325102","0850040325102","08500403251020","85004032510","850040325102","8500403251020"],"rank":{"salesPrice":1129,"salesQuantity":52,"impressionCount":0}},{"id":"172665","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$9.99","template":"RegPrice"}},"name":"MODERN MAMA'S SHRIMP SCAMPI BITES","description":"MODERN MAMA'S SHRIMP SCAMPI BITES","brand":"MODERN MAMAS","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.09415"},"productCodes":["00860012921713","0860012921713","86001292171","860012921713"],"rank":{"salesPrice":439,"salesQuantity":44,"impressionCount":8}},{"id":"156710","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$11.79","template":"RegPrice"}},"name":"PORK FEET CUT 2LB","description":"HACIENDA DEL VALLE PORK FEET CUT 2LB","brand":"HACIENDA DEL VALLE","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.09357"},"productCodes":["00827492000024","0827492000024","82749200002","827492000024"],"rank":{"salesPrice":801,"salesQuantity":56,"impressionCount":2}},{"id":"82333","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/party_trays","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/party_trays"],"price":{"ok":{"regPriceText":"$6.99","template":"RegPrice"}},"name":"GREA COOKED SHRIMP RING 61/70","description":"GREA COOKED SHRIMP RING 61/70","brand":"GREAT AMERICAN","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/9660101_17ed4f72-c944-4243-938c-e7043c21a3f4.png"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.09357"},"productCodes":["00829944094056","0829944094056","82994409405","829944094056"],"rank":{"salesPrice":1398,"salesQuantity":200,"impressionCount":0}},{"id":"156715","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/"],"price":{"ok":{"regPriceText":"$12.79","template":"RegPrice"}},"name":"BEEF DICED TRIPE CUT 2LB","description":"HACIENDA DEL VALLE BEEF DICED TRIPE CUT 2LB","brand":"HACIENDA DEL VALLE","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.0917"},"productCodes":["00827492000055","0827492000055","82749200005","827492000055","82749255"],"rank":{"salesPrice":741,"salesQuantity":40,"impressionCount":6}},{"id":"156713","categories":["Product/meat_seafood","Product/beef","Product/meat_seafood","Product/beef_variety_cuts","Product/beef","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/beef","Mobile/P+C/Product/beef_variety_cuts"],"price":{"ok":{"regPriceText":"$14.99","template":"RegPrice"}},"name":"BEEF FEET CUT 2LB","description":"HACIENDA DEL VALLE BEEF FEET CUT 2LB","brand":"HACIENDA DEL VALLE","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.09016"},"productCodes":["00827492000048","0827492000048","82749200004","827492000048"],"rank":{"salesPrice":749,"salesQuantity":44,"impressionCount":4}},{"id":"173102","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$19.99","promoArea":{"promoText":"$13.99","validityText":"Valid 02/04/26 - 12/31/26"},"template":"NewPrice"}},"name":"PREMIER SEAFOOD WILD FISH TACO KIT","description":"PREMIER SEAFOOD WILD FISH TACO KIT","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.08347"},"productCodes":["00828684050131","0828684050131","82868405013","828684050131"],"rank":{"salesPrice":755,"salesQuantity":50,"impressionCount":4}},{"id":"172666","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$12.99","template":"RegPrice"}},"name":"MODERN MAMA'S SHRIMP JAMBALAYA BITES","description":"MODERN MAMA'S SHRIMP JAMBALAYA BITES","brand":"MODERN MAMAS","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.07784"},"productCodes":["00860012921751","0860012921751","86001292175","860012921751"],"rank":{"salesPrice":369,"salesQuantity":34,"impressionCount":4}},{"id":"179276","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/prepared_seafood","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/prepared_seafood"],"price":{"ok":{"regPriceText":"$17.99","promoArea":{"promoText":"$10.99","validityText":"Valid 04/29/26 - 05/05/26"},"template":"NewPrice"}},"name":"STARF 2/5 IVP TILAPIA FILLET 10X3LB","description":"STARF 2/5 IVP TILAPIA FILLET 10X3LB","brand":"STAR FEAST","primaryImage":{},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.07643"},"productCodes":["00813135023000","0813135023000","81313502300","813135023000"],"rank":{"salesPrice":3499,"salesQuantity":214,"impressionCount":2}},{"id":"945657","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/fish","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/fish"],"price":{"ok":{"regPriceText":"$6.99","template":"RegPrice"}},"name":"Violife , Mozzarella Shreds Cheese Alternative ","description":"Melts great! Packaged in protective atmosphere. ","brand":"VIOLIFE FOODS","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7069422_9453f3cf-a2db-4382-b2dc-70336e45ab6e.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.07525"},"productCodes":["00810934030208","0810934030208","81093403020","810934030208"],"rank":{"salesPrice":153,"salesQuantity":22,"impressionCount":0}},{"id":"227392","categories":["Product/meat_seafood","Product/frozen_meat_seafood","Product/meat_seafood","Product/frozen_burgers_patties","Product/frozen_meat_seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/frozen_meat_seafood","Mobile/P+C/Product/frozen_burgers_patties"],"price":{"ok":{"regPriceText":"$16.99","promoArea":{"promoText":"$16.49","validityText":"Valid 05/01/26 - 05/10/26"},"template":"NewPrice"}},"name":"ANGUS PATTIES FROZEN","description":"MIAMI BEEF ANGUS PATTIES FROZEN","brand":"MIAMI BEEF","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/11455889_5e7515a8-7168-4a91-ac9f-6b5aad988cb4.jpeg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.06915"},"productCodes":["00024627130810","0024627130810","02462713081","024627130810"],"rank":{"salesPrice":3089,"salesQuantity":166,"impressionCount":0}},{"id":"46947","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/party_trays","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/party_trays"],"price":{"ok":{"regPriceText":"$59.99","template":"RegPrice"}},"name":"Shrimp Supreme Platter, Large","description":"This platter is swimming with shrimp and more shrimp. A school of tender, cooked prawns circle our premium cocktail sauce. This is the supreme platter for the shrimp lover! Contains allergens: Shellfish. Serves 12-16.","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7063049_94475b87-298f-42bd-8549-3113315c41f7.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.02501"},"productCodes":["00255953000007","0255953000007","25595300000","255953000007"],"rank":{"salesPrice":119,"salesQuantity":2,"impressionCount":0}},{"id":"46948","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/party_trays","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/party_trays"],"price":{"ok":{"regPriceText":"$49.99","template":"RegPrice"}},"name":"Shrimp Supreme Platter, Medium Shrimp Supreme Platter, Medium","description":"This platter is swimming with shrimp and more shrimp. A school of tender, cooked prawns circle our premium cocktail sauce. This is the supreme platter for the shrimp lover! This platter is swimming with shrimp and more shrimp. A school of tender, cooked prawns circle our premium cocktail sauce. This is the supreme platter for the shrimp lover!","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7063050_92671c9c-8c46-44c0-a7f2-d2374752b853.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.01996"},"productCodes":["00255954000006","0255954000006","25595400000","255954000006"],"rank":{"salesPrice":6,"salesQuantity":2,"impressionCount":12}},{"id":"46949","categories":["Product/meat_seafood","Product/seafood","Product/meat_seafood","Product/party_trays","Product/seafood","Product/meat_seafood","Mobile/P+C/Product/meat_seafood","Mobile/P+C/Product/seafood","Mobile/P+C/Product/party_trays"],"price":{"ok":{"regPriceText":"$49.99","template":"RegPrice"}},"name":"Captain's Catch Tray - Large (170-250 Cal. Per Serving) Captain's Catch Tray-Large (170-250 Cal. Per Serving)","description":"A boatload of tender cooked prawns, Pacific Coast shrimp meat and delicious crab-flavored flakes, ready to dive into our premium cocktail sauce. Contains allergens: Shellfish. Serves 12-16. A boatload of tender cooked prawns, Pacific Coast shrimp meat and delicious crab-flavored flakes, ready to dive into our premium cocktail sauce. Contains allergens: Shellfish. Serves 12-16.","brand":"THE SAVE MART COMPANY","primaryImage":{"url":"https://assets.swiftlycontent.net/assets/product/7063052_e1bd2153-95b9-42e0-8093-b75caec8363f.jpg"},"eligibleFor":["SNAP_EBT"],"hasCoupon":false,"explain":{"score":"0.0","boostScore":"0.0","productScore":"0.01197"},"productCodes":["00255956000004","0255956000004","25595600000","255956000004"],"rank":{"salesPrice":99,"salesQuantity":2,"impressionCount":0}}],"facets":[{"displayName":"Brand","filter":"brand","type":"ValueFilter","items":[{"name":"AMAZING TASTE","count":1},{"name":"ARMOUR MEATS","count":1},{"name":"BLUE SEA PRODUCTS","count":1},{"name":"BORNSTEIN SEAFOODS (BORNSTEIN SEAFOODS, INC.)","count":1},{"name":"BUBBA FOODS","count":2},{"name":"BUTTERBALL MEATS","count":3},{"name":"CACIQUE","count":2},{"name":"COOKS HAM","count":3},{"name":"DEMAKES BROS.","count":2},{"name":"DIAMOND VALLEY","count":1},{"name":"ECHO FALLS","count":1},{"name":"EL MEXICANO","count":3},{"name":"FARMER JOHN","count":1},{"name":"FOSTER FARMS MEAT","count":5},{"name":"FOSTER FARMS MEATS","count":16},{"name":"GORTON'S FISH (SEAF)","count":22},{"name":"GRASS RUN FARMS","count":1},{"name":"GREAT AMERICAN","count":6},{"name":"GREAT AMERICAN SEAFOOD (GREAT AMERICAN SEAFOOD IMPORTS CO)","count":1},{"name":"GREEN VALLEY CREAMERY","count":4},{"name":"HACIENDA DEL VALLE","count":4},{"name":"HARBOR SEAFOOD","count":1},{"name":"HARRIS RANCH MEAT","count":1},{"name":"HONEY SMOKED FISH CO.","count":1},{"name":"HONEY SUCKLE WHITE POULTRY","count":1},{"name":"IMPOSSIBLE - PLANT BASED","count":1},{"name":"ISERNIO'S","count":1},{"name":"JENNIE-O (MT)","count":3},{"name":"JUST BARE CHICKEN","count":5},{"name":"KING","count":1},{"name":"MAMA BEAR (SOUTHRING)","count":1},{"name":"MASTER CATCH","count":4},{"name":"MASTER CUT MEATS","count":3},{"name":"MEKONG","count":1},{"name":"MIAMI BEEF","count":1},{"name":"Miller Amish","count":1},{"name":"MODERN MAMAS","count":2},{"name":"MORAN'S (MT)","count":2},{"name":"NEW YORK STYLE SAUSAGE","count":1},{"name":"NORTHERN CHEF","count":4},{"name":"O'DONNELL'S","count":1},{"name":"PREMIER SEAFOODS","count":2},{"name":"RANDALLS","count":2},{"name":"RED BIRD FARMS","count":2},{"name":"RICHWOOD","count":1},{"name":"ROYAL ASIA (FRZN)","count":1},{"name":"ROYAL WHITE (SURAM TRADING)","count":1},{"name":"salt & sea","count":2},{"name":"SCHWEID & SONS","count":2},{"name":"SEA-PAK (MT)","count":9},{"name":"SHRIMP KING","count":1},{"name":"SKYLARK","count":1},{"name":"SMITH FIELD MEAT","count":2},{"name":"STAR FEAST","count":1},{"name":"SWIFT (MT)","count":2},{"name":"THE SAVE MART COMPANY","count":65},{"name":"TRANSOCEAN","count":4},{"name":"TROPICAL","count":1},{"name":"TYSON (MT)","count":20},{"name":"VIOLIFE FOODS","count":4},{"name":"WILMAR BEEF","count":1},{"name":"Winganza","count":1}],"title":"product_brand"},{"displayName":"EBT Available","filter":"ebt-only","type":"Flag","items":[],"title":"sp_ebt_eligible"}]}} \ No newline at end of file diff --git a/backend/tests/fixtures/lucky_ca/weekly_ad.html b/backend/tests/fixtures/lucky_ca/weekly_ad.html new file mode 100644 index 0000000..1fe990c --- /dev/null +++ b/backend/tests/fixtures/lucky_ca/weekly_ad.html @@ -0,0 +1,89 @@ +Featured in Ad | Luckys Supermarket

Coupons

Refine

Category
Category
Brand

13 Results

:$13.97 Pepsi Products 24 pack, Poppi 8 pack, Gatorade 18 pack, Rockstar 10 pack, or Pure Leaf 12 pack, select varieties +CRV in CA. While supplies last.

$13.97 Pepsi 24 packs

$13.97 Pepsi Products 24 pack, Poppi 8 pack, Gatorade 18 pack, Rockstar 10 pack, or Pure Leaf 12 pack, select varieties +CRV in CA. While supplies last.

Expires 05/05

:$7.97 Bayview Farms Ice Cream 4 qt., select varieties. While supplies last.

$7.97 Bayview Farms

$7.97 Bayview Farms Ice Cream 4 qt., select varieties. While supplies last.

Expires 07/05

:$11.97 Quaker Rice Crisps Mix Pack 15ct., select varieties. While supplies last.

$11.97 Quaker Rice Crisps

$11.97 Quaker Rice Crisps Mix Pack 15ct., select varieties. While supplies last.

Expires 05/19

:.77 when you buy four (4) Butterfinger, Crunch, Baby Ruth or Kinder Candy Bars 1-1.9oz., select varieties . While supplies last.

.77 Butterfinger Candy Bars

.77 when you buy four (4) Butterfinger, Crunch, Baby Ruth or Kinder Candy Bars 1-1.9oz., select varieties . While supplies last.

Expires 05/19

:$4.97 Nutella, Keebler, Mothers Family Pack 9.7-18oz., select varieties. While supplies last.

$4.97 Nutella Family Pack

$4.97 Nutella, Keebler, Mothers Family Pack 9.7-18oz., select varieties. While supplies last.

Expires 05/19

:$6.97 per lb. Beef Chuck Roast Maxx Pack, while supplies last.

$6.97 lb. Beef Chuck Roast

$6.97 per lb. Beef Chuck Roast Maxx Pack, while supplies last.

Expires 05/05

:$1.97 Sunnyside Farms Shredded or Sliced Cheese 8 oz., or Sunnyside Farms Cage Free Large Grade AA Eggs 1 dozen, select varieties. Limit 4, while supplies last.

$1.97 Sunnyside Farms Cheese

$1.97 Sunnyside Farms Shredded or Sliced Cheese 8 oz., or Sunnyside Farms Cage Free Large Grade AA Eggs 1 dozen, select varieties. Limit 4, while supplies last.

Expires 05/05

:$3.97 Mission Soft Taco Flour Tortillas 20 ct. , while supplies last.

$3.97 Mission Soft Taco Flou

$3.97 Mission Soft Taco Flour Tortillas 20 ct. , while supplies last.

Expires 05/05

:$4.97 Ocean Spray Juice 3 liter, select varieties. While supplies last.

$4.97 Ocean Spray Juice

$4.97 Ocean Spray Juice 3 liter, select varieties. While supplies last.

Expires 05/05

:$4.97 when you buy five (5) Coca-Cola or 7-UP Products 12 pack 12 oz., or 7-UP 8 pack 12 oz., select varieties. Limit 1 offer, while supplies last.

$4.97 Coca-Cola 12 pack

$4.97 when you buy five (5) Coca-Cola or 7-UP Products 12 pack 12 oz., or 7-UP 8 pack 12 oz., select varieties. Limit 1 offer, while supplies last.

Expires 05/05

:$22.97 Starbucks Frappuccino 12 pack 9.5 oz., select varieties.

$22.97 Starbucks Frappuccino

$22.97 Starbucks Frappuccino 12 pack 9.5 oz., select varieties.

Expires 05/05

:$24.97 Coors, Budweiser or Miller 36 pack 12 oz., select varieties. While supplies last.

$24.97 Coors

$24.97 Coors, Budweiser or Miller 36 pack 12 oz., select varieties. While supplies last.

Expires 05/05

:.97 ea. Cilantro, Radish, or Green Onions. While supplies last.

.97 ea. Cilantro

.97 ea. Cilantro, Radish, or Green Onions. While supplies last.

Expires 05/05

\ No newline at end of file diff --git a/backend/tests/fixtures/lucky_ca/weekly_ad.png b/backend/tests/fixtures/lucky_ca/weekly_ad.png new file mode 100644 index 0000000..159df2f Binary files /dev/null and b/backend/tests/fixtures/lucky_ca/weekly_ad.png differ diff --git a/backend/tests/test_alembic.py b/backend/tests/test_alembic.py new file mode 100644 index 0000000..21b5d24 --- /dev/null +++ b/backend/tests/test_alembic.py @@ -0,0 +1,47 @@ +""" +Alembic round-trip test. + +Verifies that ``alembic upgrade head`` followed by ``alembic downgrade base`` +runs without error against a Postgres throwaway database. Skipped when no +Postgres is reachable (the migrations rely on PG-specific types and cannot +target SQLite). +""" + +from __future__ import annotations + +import os +import pathlib +import subprocess +import pytest + +BACKEND_ROOT = pathlib.Path(__file__).resolve().parent.parent + + +@pytest.mark.requires_postgres +def test_alembic_upgrade_head_roundtrip(): + dsn = os.environ.get("TEST_DATABASE_URL") or os.environ.get("DATABASE_URL") + assert dsn, "TEST_DATABASE_URL or DATABASE_URL must be set" + + env = os.environ.copy() + env["DATABASE_URL"] = dsn + + # The session fixture has already upgraded; downgrade then re-upgrade to + # exercise both paths inside this test without polluting the rest of the + # session schema state. + down = subprocess.run( + ["alembic", "downgrade", "base"], + cwd=str(BACKEND_ROOT), + env=env, + capture_output=True, + text=True, + ) + assert down.returncode == 0, f"downgrade failed: {down.stderr}" + + up = subprocess.run( + ["alembic", "upgrade", "head"], + cwd=str(BACKEND_ROOT), + env=env, + capture_output=True, + text=True, + ) + assert up.returncode == 0, f"upgrade failed: {up.stderr}" diff --git a/backend/tests/test_approval.py b/backend/tests/test_approval.py new file mode 100644 index 0000000..a559929 --- /dev/null +++ b/backend/tests/test_approval.py @@ -0,0 +1,237 @@ +""" +R2-B: approval-token + per-voter vote round-trip tests. + +- Pure unit tests for `app.services.approval` (no DB). +- DB-backed tests for `consume_token` single-use + the two vote routes. +""" + +from __future__ import annotations + +import time +import uuid +from datetime import date, timedelta + +import pytest +from fastapi import HTTPException + +from app.services import approval as approval_service + + +# --------------------------------------------------------------------------- +# Pure-unit token tests. +# --------------------------------------------------------------------------- +def test_issue_and_verify_token_roundtrip(): + item_id = uuid.uuid4() + voter_id = uuid.uuid4() + token = approval_service.issue_token(item_id, voter_id) + payload = approval_service.verify_token(token) + assert payload["item"] == str(item_id) + assert payload["voter"] == str(voter_id) + + +def test_verify_rejects_tampered_token(): + item_id = uuid.uuid4() + voter_id = uuid.uuid4() + token = approval_service.issue_token(item_id, voter_id) + tampered = token[:-2] + ("AA" if not token.endswith("AA") else "BB") + with pytest.raises(HTTPException) as excinfo: + approval_service.verify_token(tampered) + assert excinfo.value.status_code == 401 + + +def test_verify_rejects_expired_token(monkeypatch): + """itsdangerous reads `time.time()` — patch the time module's `time` + attribute on `itsdangerous.timed` to simulate clock advance. + """ + import itsdangerous.timed as _timed_mod + + item_id = uuid.uuid4() + voter_id = uuid.uuid4() + + # Issue at "now". + token = approval_service.issue_token(item_id, voter_id) + + # Advance the clock 8 days past issue time (default TTL is 7 days). + real_now = time.time() + fake_now = real_now + (8 * 24 * 3600) + + class _FakeTime: + @staticmethod + def time(): + return fake_now + + monkeypatch.setattr(_timed_mod, "time", _FakeTime) + + with pytest.raises(HTTPException) as excinfo: + approval_service.verify_token(token) + assert excinfo.value.status_code == 401 + + +# --------------------------------------------------------------------------- +# DB-backed fixtures: build a minimal scenario reused by several tests. +# --------------------------------------------------------------------------- +@pytest.fixture() +def scenario(db): + """Create profile + 2 voters + recipe + plan + item, all in one shot. + + Uses the per-test transactional session, so changes roll back on + teardown (no cross-test pollution). + """ + from app.models import ( + FamilyMember, + FamilyMemberRole, + FamilyProfile, + MealPlan, + MealPlanItem, + MealPlanStatus, + MealType, + Recipe, + ) + + suffix = uuid.uuid4().hex[:8] + + profile = FamilyProfile( + name=f"Test Family {suffix}", + household_size=2, + adult_count=2, + child_count=0, + ) + db.add(profile) + db.flush() + + voter_a = FamilyMember( + family_profile_id=profile.id, + name="Alice", + email=f"alice+{suffix}@example.com", + role=FamilyMemberRole.ADULT, + ) + voter_b = FamilyMember( + family_profile_id=profile.id, + name="Bob", + email=f"bob+{suffix}@example.com", + role=FamilyMemberRole.ADULT, + ) + db.add_all([voter_a, voter_b]) + db.flush() + + recipe = Recipe( + family_profile_id=profile.id, + name=f"Test Pasta {suffix}", + servings=2, + ingredients=[{"name": "pasta", "qty": "200g"}], + instructions=["Boil", "Drain"], + is_manually_added=True, + ) + db.add(recipe) + db.flush() + + plan = MealPlan( + family_profile_id=profile.id, + week_start_date=date.today() + timedelta(days=14), + status=MealPlanStatus.DRAFT, + ) + db.add(plan) + db.flush() + + item = MealPlanItem( + meal_plan_id=plan.id, + recipe_id=recipe.id, + day_of_week=1, + meal_type=MealType.DINNER, + ) + db.add(item) + db.flush() + + return { + "profile": profile, + "voter_a": voter_a, + "voter_b": voter_b, + "recipe": recipe, + "plan": plan, + "item": item, + } + + +# --------------------------------------------------------------------------- +# DB-backed tests. +# --------------------------------------------------------------------------- +@pytest.mark.requires_postgres +def test_consume_token_single_use(db, scenario): + from app.models import MealPlanVote + + item = scenario["item"] + voter = scenario["voter_a"] + token = approval_service.issue_token(item.id, voter.id) + + # First call: succeeds, returns the voter. + out = approval_service.consume_token(db, token, item.id) + assert out.id == voter.id + + # Simulate the route writing the vote row (consume_token itself does NOT + # write — single-use is enforced by the presence of the vote row). + db.add(MealPlanVote( + meal_plan_item_id=item.id, + family_member_id=voter.id, + vote=True, + )) + db.flush() + + # Second call: raises 409. + with pytest.raises(HTTPException) as excinfo: + approval_service.consume_token(db, token, item.id) + assert excinfo.value.status_code == 409 + + +@pytest.mark.requires_postgres +def test_vote_get_renders_html(client, db, scenario): + item = scenario["item"] + voter = scenario["voter_a"] + token = approval_service.issue_token(item.id, voter.id) + + r = client.get(f"/api/meals/vote/{item.id}", params={"token": token}) + assert r.status_code == 200, r.text + assert "text/html" in r.headers.get("content-type", "") + # Voter name appears in the visible body. + assert "Alice" in r.text + # Token is allowed inside the form `action` attribute (the link's href) + # but must not appear in the visible meal-card text. + body = r.text + card_start = body.find('
') + card_end = body.find("
", card_start) + assert card_start != -1 and card_end != -1 + visible_card = body[card_start:card_end] + assert token not in visible_card + + +@pytest.mark.requires_postgres +def test_vote_post_records_and_decides(client, db, scenario): + """First voter approves -> still pending (Bob hasn't voted). + + Then Bob approves -> approved. + """ + item = scenario["item"] + voter_a = scenario["voter_a"] + voter_b = scenario["voter_b"] + + token_a = approval_service.issue_token(item.id, voter_a.id) + r1 = client.post( + f"/api/meals/vote/{item.id}", + params={"token": token_a}, + json={"vote": "approve"}, + ) + assert r1.status_code == 200, r1.text + body1 = r1.json() + assert body1["status"] == "recorded" + assert body1["item_status"] in ("pending", "approved") + # With 2 voters, after 1 approve we should still be pending. + assert body1["item_status"] == "pending" + + token_b = approval_service.issue_token(item.id, voter_b.id) + r2 = client.post( + f"/api/meals/vote/{item.id}", + params={"token": token_b}, + json={"vote": "approve"}, + ) + assert r2.status_code == 200, r2.text + body2 = r2.json() + assert body2["item_status"] == "approved" diff --git a/backend/tests/test_auth.py b/backend/tests/test_auth.py new file mode 100644 index 0000000..00d4cb6 --- /dev/null +++ b/backend/tests/test_auth.py @@ -0,0 +1,114 @@ +""" +Auth gate tests for R1-B+D. + +Covers: +- /api/admin/* requires bearer token (401 without, not 401 with valid). +- Mutating routes on family routers require a session cookie. +- /api/auth/login + /api/auth/logout round-trip with the shared password. +""" + +from __future__ import annotations + +import os + +import pytest + + +# Configure auth secrets BEFORE app import. conftest.py runs first and sets +# DATABASE_URL; we layer auth env on top here. +os.environ.setdefault("ADMIN_TOKEN", "test-admin-token") +os.environ.setdefault("SESSION_PASSWORD", "test-family-password") +os.environ.setdefault("SECRET_KEY", "test-secret-key-do-not-use-in-prod") + + +@pytest.fixture(autouse=True) +def _reload_settings(monkeypatch): + """Force ``settings`` to re-read env (test isolation).""" + monkeypatch.setenv("ADMIN_TOKEN", "test-admin-token") + monkeypatch.setenv("SESSION_PASSWORD", "test-family-password") + monkeypatch.setenv("SECRET_KEY", "test-secret-key-do-not-use-in-prod") + # Re-instantiate the singleton so dependents pick up env. + from app import config as app_config + + app_config.settings = app_config.Settings() + yield + + +# --------------------------------------------------------------------------- +# Admin bearer token +# --------------------------------------------------------------------------- +@pytest.mark.requires_postgres +def test_admin_requires_token(client): + """No bearer → 401. Valid bearer → not 401 (handler runs).""" + r = client.post("/api/admin/scrape") + assert r.status_code == 401, r.text + + r = client.post( + "/api/admin/scrape", + headers={"Authorization": "Bearer test-admin-token"}, + ) + # Handler may 200/202/500 (Playwright not installed in CI), but NOT 401. + assert r.status_code != 401, r.text + + +@pytest.mark.requires_postgres +def test_admin_logs_requires_token(client): + r = client.get("/api/admin/logs") + assert r.status_code == 401 + + r = client.get( + "/api/admin/logs", headers={"Authorization": "Bearer test-admin-token"} + ) + assert r.status_code == 200 + + +# --------------------------------------------------------------------------- +# Session-gated mutations +# --------------------------------------------------------------------------- +@pytest.mark.requires_postgres +def test_session_required_for_mutation(client): + """POST /api/profile/members without cookie → 401.""" + r = client.post( + "/api/profile/members", + json={"name": "x", "email": "x@y.z", "role": "voter"}, + ) + assert r.status_code == 401, r.text + + +@pytest.mark.requires_postgres +def test_session_open_for_reads(client): + """GET /api/profile is NOT auth-gated (reads stay open).""" + r = client.get("/api/profile") + # Either 200 (profile exists) or 404 (no profile yet) — never 401. + assert r.status_code in (200, 404), r.text + + +# --------------------------------------------------------------------------- +# Login / logout +# --------------------------------------------------------------------------- +@pytest.mark.requires_postgres +def test_session_login_logout(client): + # Wrong password + r = client.post("/api/auth/login", json={"password": "nope"}) + assert r.status_code == 401 + + # Right password sets the cookie + r = client.post( + "/api/auth/login", json={"password": "test-family-password"} + ) + assert r.status_code == 204 + assert "mp_session" in r.cookies, r.headers + + # With cookie, mutation succeeds (or fails for non-auth reasons) + cookie_value = r.cookies.get("mp_session") + client.cookies.set("mp_session", cookie_value) + r2 = client.post( + "/api/profile/members", + json={"name": "x", "email": "test@example.com", "role": "voter"}, + ) + # 401 means the cookie was rejected — that's the bug we're guarding. + assert r2.status_code != 401, r2.text + + # Logout clears the cookie + r3 = client.post("/api/auth/logout") + assert r3.status_code == 204 diff --git a/backend/tests/test_config.py b/backend/tests/test_config.py new file mode 100644 index 0000000..ee1460c --- /dev/null +++ b/backend/tests/test_config.py @@ -0,0 +1,19 @@ +""" +Config fail-fast: importing app.config with DATABASE_URL unset must raise. +""" + +from __future__ import annotations + +import importlib + +import pytest + + +def test_database_url_required(monkeypatch): + """Settings() with empty DATABASE_URL → RuntimeError at instantiation.""" + from app import config as app_config + + monkeypatch.setenv("DATABASE_URL", "") + # Pass _env_file=None so a stray .env on disk can't satisfy the field. + with pytest.raises(RuntimeError, match="DATABASE_URL is required"): + app_config.Settings(_env_file=None, DATABASE_URL="") diff --git a/backend/tests/test_scrape_endpoint.py b/backend/tests/test_scrape_endpoint.py new file mode 100644 index 0000000..c1765f6 --- /dev/null +++ b/backend/tests/test_scrape_endpoint.py @@ -0,0 +1,68 @@ +"""Async scrape endpoint contract. + +Verifies that ``POST /api/admin/scrape``: + - returns 202 + ``scrape_log_id`` synchronously, + - persists a ``ScrapeLog`` row in status STARTED before the background task + runs (the task is monkey-patched out so it never reaches Playwright and + never opens a session outside the test transaction). +""" +from __future__ import annotations + +import os +import uuid + +import pytest + +os.environ.setdefault("ADMIN_TOKEN", "test-admin-token") + + +@pytest.fixture(autouse=True) +def _admin_token(monkeypatch): + monkeypatch.setenv("ADMIN_TOKEN", "test-admin-token") + yield + + +@pytest.mark.requires_postgres +def test_scrape_returns_202_and_log_id(client, db, monkeypatch): + """Endpoint enqueues the scrape and returns 202 + scrape_log_id. + + We replace the background runner with a no-op so the test does NOT spin up + Playwright and does NOT open a session outside the rolled-back test + transaction. + """ + calls: list[tuple] = [] + + def _fake_run(log_id, source, scrape_type): + calls.append((log_id, source, scrape_type)) + + # Patch in BOTH the service module (definition site) and the api module + # (import site) so whichever symbol the route resolved to is replaced. + monkeypatch.setattr( + "app.services.scraper_service._run_scrape_in_background", _fake_run + ) + + r = client.post( + "/api/admin/scrape", + headers={"Authorization": "Bearer test-admin-token"}, + ) + assert r.status_code == 202, r.text + body = r.json() + assert body["status"] == "queued" + assert "scrape_log_id" in body + + log_id = uuid.UUID(body["scrape_log_id"]) + + # Row was committed inside enqueue_scrape — visible on the test session. + from app.models import ScrapeLog, ScrapeStatus + + log = db.query(ScrapeLog).filter(ScrapeLog.id == log_id).first() + assert log is not None, "ScrapeLog row should exist after enqueue" + assert log.status == ScrapeStatus.STARTED + assert log.source == "lucky_california" + assert log.scrape_type == "weekly_ad" + assert log.completed_at is None + + # TestClient runs background tasks before returning from the context + # manager exit — by the time we get here, the fake runner ran exactly once. + assert len(calls) == 1 + assert calls[0][0] == log_id diff --git a/backend/tests/test_smoke.py b/backend/tests/test_smoke.py new file mode 100644 index 0000000..c3c1e56 --- /dev/null +++ b/backend/tests/test_smoke.py @@ -0,0 +1,63 @@ +""" +Smoke tests: app boots, routers wire up, no import-time crashes. + +The router-list test asserts each endpoint returns 200 or 401 (auth gate not +yet implemented in R1-A's scope) but explicitly NOT 5xx — the goal is to catch +import errors and crashing handlers, not to validate business logic. +""" + +from __future__ import annotations + +import os +import pytest + + +def test_app_imports(): + from app.main import app + assert app.title == "MealPlanner" + + +@pytest.mark.requires_postgres +def test_health(client): + r = client.get("/health") + assert r.status_code == 200 + assert r.json() == {"status": "ok"} + + +@pytest.mark.requires_postgres +def test_health_db(client): + r = client.get("/health/db") + assert r.status_code == 200 + body = r.json() + assert body.get("database") == "connected" + + +ROUTER_GET_PATHS = [ + "/api/profile", + "/api/profile/members", + "/api/recipes", + "/api/recipes/ingredients", + "/api/meals", + "/api/pantry", + "/api/shopping-list", + "/api/admin/logs", +] + + +@pytest.mark.requires_postgres +@pytest.mark.parametrize("path", ROUTER_GET_PATHS) +def test_router_list_endpoints(client, path): + """ + Each canonical GET must respond. 200 (handled), 401 (admin-gated), + 404 (handler ran but no row found) — all OK. 5xx means import/runtime + crash; 307 (trailing-slash redirect) means a handler is still mounted + on the wrong path. + """ + r = client.get(path, follow_redirects=False) + assert r.status_code < 500, ( + f"{path} returned {r.status_code}: {r.text[:300]}" + ) + # 307 is a regression — canonical paths must be the route definitions. + assert r.status_code in (200, 401, 404, 422), ( + f"{path} returned unexpected {r.status_code}" + ) diff --git a/backend/tests/test_swiftly_api.py b/backend/tests/test_swiftly_api.py new file mode 100644 index 0000000..67c3d4d --- /dev/null +++ b/backend/tests/test_swiftly_api.py @@ -0,0 +1,223 @@ +"""Offline tests for the Swiftly product-API client (R3-0). + +All tests run against saved fixtures and mocked HTTP — no live network, +no Playwright/Chromium. Captured 2026-05-05 from a single live spike; +see ``.agent/context.md`` "Swiftly API" for the field-mapping rationale. +""" +from __future__ import annotations + +import json +import sys +import uuid +from decimal import Decimal +from pathlib import Path +from unittest.mock import MagicMock, patch + +import pytest +import requests + +# Make `app.*` importable when pytest is invoked from the repo root. +BACKEND_DIR = Path(__file__).resolve().parent.parent +if str(BACKEND_DIR) not in sys.path: + sys.path.insert(0, str(BACKEND_DIR)) + +from app.scraper.lucky_ca_scraper import ( # noqa: E402 + LuckyCaliforniaScraper, + SwiftlyAuthError, +) + +FIXTURE_DIR = Path(__file__).resolve().parent / "fixtures" / "lucky_ca" +CATEGORIES_HTML = FIXTURE_DIR / "categories.html" +CATEGORY_JSON = FIXTURE_DIR / "category_meat_seafood.json" + + +pytestmark = pytest.mark.scraper_offline + + +# --------------------------------------------------------------------------- +# Pure-parser tests against captured fixtures +# --------------------------------------------------------------------------- +def test_parse_categories_fixture() -> None: + """Parser returns >=10 distinct API slugs from the captured page.""" + if not CATEGORIES_HTML.exists(): + pytest.skip(f"fixture missing: {CATEGORIES_HTML}") + html = CATEGORIES_HTML.read_text(encoding="utf-8") + + slugs = LuckyCaliforniaScraper.parse_categories_html(html) + + assert len(slugs) >= 10, f"expected >=10 categories, got {len(slugs)}" + assert len(set(slugs)) == len(slugs), "slugs must be deduplicated" + # Every slug should look like `Product/` per the API contract. + for s in slugs: + assert s.startswith("Product/"), f"unexpected slug shape: {s!r}" + # Spot-check the one we know is in the captured snapshot. + assert "Product/meat_seafood" in slugs + + +def test_parse_category_response_fixture() -> None: + """Parser returns >=10 product dicts each with the mapped fields populated.""" + if not CATEGORY_JSON.exists(): + pytest.skip(f"fixture missing: {CATEGORY_JSON}") + payload = json.loads(CATEGORY_JSON.read_text(encoding="utf-8")) + + raw_items = LuckyCaliforniaScraper.parse_category_response(payload) + assert len(raw_items) >= 10, f"expected >=10 raw items, got {len(raw_items)}" + + mapped: list[dict] = [] + for raw in raw_items: + m = LuckyCaliforniaScraper.map_product( + raw, aisle="meat_seafood", source_slug="Product/meat_seafood" + ) + if m is not None: + mapped.append(m) + + assert len(mapped) >= 10, ( + f"expected >=10 mapped products, got {len(mapped)} " + f"(from {len(raw_items)} raw)" + ) + + sample = mapped[0] + # Required fields per the field-mapping contract. + for key in ( + "external_id", + "source", + "name", + "current_price", + "regular_price", + "is_on_sale", + "image_url", + "aisle", + ): + assert key in sample, f"missing key {key!r} in mapped product: {sample!r}" + + assert sample["source"] == "lucky_california" + assert sample["aisle"] == "meat_seafood" + assert isinstance(sample["external_id"], str) and sample["external_id"] + assert isinstance(sample["name"], str) and sample["name"].strip() + assert isinstance(sample["regular_price"], Decimal) + assert sample["regular_price"] > 0 + assert isinstance(sample["is_on_sale"], bool) + + # Across the whole category at least SOME items should be on sale and + # at least some should have a regular-only price (sanity for the parser). + assert any(m["is_on_sale"] for m in mapped), "expected at least one sale item" + assert any(not m["is_on_sale"] for m in mapped), "expected at least one reg-only item" + + +def test_map_product_returns_none_for_unparseable() -> None: + """Products with no name AND no parseable price are dropped.""" + assert LuckyCaliforniaScraper.map_product({"name": ""}) is None + assert ( + LuckyCaliforniaScraper.map_product( + {"id": "x", "name": "Foo", "price": {"ok": {}}} + ) + is None + ) + + +# --------------------------------------------------------------------------- +# 401 → SwiftlyAuthError → FAILED ScrapeLog +# --------------------------------------------------------------------------- +def _mock_response(status_code: int, payload=None) -> MagicMock: + resp = MagicMock(spec=requests.Response) + resp.status_code = status_code + if payload is not None: + resp.json.return_value = payload + if status_code >= 400: + resp.raise_for_status.side_effect = requests.HTTPError( + f"{status_code} error", response=resp + ) + else: + resp.raise_for_status.return_value = None + return resp + + +def test_swiftly_auth_error_on_401_from_api() -> None: + """A 401 from the API host raises SwiftlyAuthError before raise_for_status.""" + scraper = LuckyCaliforniaScraper(bearer_token="stale-token") + + with patch.object(scraper.api_session, "get", return_value=_mock_response(401)): + with pytest.raises(SwiftlyAuthError) as excinfo: + scraper.fetch_category("Product/meat_seafood") + + assert "SWIFTLY_BEARER_TOKEN expired" in str(excinfo.value) + + +def test_swiftly_auth_error_when_token_missing() -> None: + """An empty token short-circuits to SwiftlyAuthError without any HTTP call. + + Force the token empty AFTER construction so the test is independent of + whatever ``SWIFTLY_BEARER_TOKEN`` happens to be set in the environment + (it WILL be set when pytest runs inside ``docker compose``). + """ + scraper = LuckyCaliforniaScraper() + scraper.bearer_token = "" + with patch.object(scraper.api_session, "get") as mock_get: + with pytest.raises(SwiftlyAuthError): + scraper.fetch_category("Product/meat_seafood") + mock_get.assert_not_called() + + +@pytest.mark.requires_postgres +def test_background_runner_writes_failed_with_token_message(monkeypatch): + """A 401 during the background scrape lands in ScrapeLog as FAILED + message. + + Uses a real (non-fixture) session so the bg runner's rollback+re-query + path mirrors production. The bg runner commits the FAILED row; we clean + up explicitly at the end. + """ + from app.models import ScrapeLog, ScrapeStatus + from app.services import scraper_service + from app.scraper.lucky_ca_scraper import SwiftlyAuthError, LuckyCaliforniaScraper + from app.database import SessionLocal + from datetime import datetime, timezone + + log_id = uuid.uuid4() + setup_session = SessionLocal() + try: + setup_session.add( + ScrapeLog( + id=log_id, + source="lucky_california", + scrape_type="weekly_ad", + status=ScrapeStatus.STARTED, + started_at=datetime.now(timezone.utc), + ) + ) + setup_session.commit() + finally: + setup_session.close() + + def _explode(self): + raise SwiftlyAuthError( + "SWIFTLY_BEARER_TOKEN expired — request a fresh token from the user " + "(capture from luckysupermarkets.com network tab on a /search/api/v1 request)" + ) + + monkeypatch.setattr(LuckyCaliforniaScraper, "fetch_all", _explode) + + try: + scraper_service._run_scrape_in_background( + log_id, "lucky_california", "weekly_ad" + ) + + verify_session = SessionLocal() + try: + refreshed = ( + verify_session.query(ScrapeLog) + .filter(ScrapeLog.id == log_id) + .first() + ) + assert refreshed is not None + assert refreshed.status == ScrapeStatus.FAILED + assert "SWIFTLY_BEARER_TOKEN expired" in (refreshed.error_message or "") + assert refreshed.completed_at is not None + finally: + verify_session.close() + finally: + cleanup_session = SessionLocal() + try: + cleanup_session.query(ScrapeLog).filter(ScrapeLog.id == log_id).delete() + cleanup_session.commit() + finally: + cleanup_session.close() diff --git a/docker-compose.yml b/docker-compose.yml index a51b0bb..9cb2cb8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,9 +11,16 @@ services: - DATABASE_URL=postgresql://mealplanner:${POSTGRES_PASSWORD}@db:5432/mealplanner - SENDGRID_API_KEY=${SENDGRID_API_KEY} - LUCKY_CA_URL=${LUCKY_CA_URL:-https://luckysupermarkets.com} + - LUCKY_STORE_ID=${LUCKY_STORE_ID:-757} + - SWIFTLY_API_BASE=${SWIFTLY_API_BASE:-https://prod.swiftlyapi.net} + - SWIFTLY_CATEGORIES_URL=${SWIFTLY_CATEGORIES_URL:-https://luckysupermarkets.com/categories} + - SWIFTLY_BEARER_TOKEN=${SWIFTLY_BEARER_TOKEN} - AI_IMAGE_ENABLED=${AI_IMAGE_ENABLED:-false} - LOG_LEVEL=${LOG_LEVEL:-INFO} - SECRET_KEY=${SECRET_KEY} + - ADMIN_TOKEN=${ADMIN_TOKEN} + - SESSION_PASSWORD=${SESSION_PASSWORD} + - EMAIL_BACKEND=${EMAIL_BACKEND:-console} depends_on: db: condition: service_healthy diff --git a/frontend/src/api/index.ts b/frontend/src/api/index.ts index 4cecfd9..2735924 100644 --- a/frontend/src/api/index.ts +++ b/frontend/src/api/index.ts @@ -7,9 +7,15 @@ const api = axios.create({ headers: { 'Content-Type': 'application/json', }, + withCredentials: true, }) export const mealPlannerApi = { + auth: { + login: (password: string) => api.post('/auth/login', { password }), + logout: () => api.post('/auth/logout'), + }, + profile: { get: () => api.get('/profile'), update: (data: any) => api.put('/profile', data), @@ -23,12 +29,12 @@ export const mealPlannerApi = { get: (id: string) => api.get(`/recipes/${id}`), create: (data: any) => api.post('/recipes', data), delete: (id: string) => api.delete(`/recipes/${id}`), - listIngredients: () => api.get('/recipes/ingredients/list'), + listIngredients: () => api.get('/recipes/ingredients'), createIngredient: (data: any) => api.post('/recipes/ingredients', data), }, meals: { - getPlanned: () => api.get('/meals/planned'), + getPlanned: () => api.get('/meals'), get: (id: string) => api.get(`/meals/${id}`), getItem: (id: string) => api.get(`/meals/items/${id}`), create: (data: any) => api.post('/meals', data), diff --git a/scripts/send_test_approval.py b/scripts/send_test_approval.py new file mode 100644 index 0000000..fd3c7ff --- /dev/null +++ b/scripts/send_test_approval.py @@ -0,0 +1,191 @@ +#!/usr/bin/env python +""" +R2-B end-to-end approval round-trip spike. + +Usage: + # Print URL only (you can click it in a browser running the server): + python scripts/send_test_approval.py + + # Bypass the email and exercise the full POST against a TestClient: + python scripts/send_test_approval.py --simulate-click approve + python scripts/send_test_approval.py --simulate-click deny + +This is the actual proof that the email + per-voter approval click +round-trip works against the real schema (`family_member`, +`meal_plan_item`, `meal_plan_vote`). If the script exits 0 with +`item_status=approved` (or `denied`) the spike is green. +""" + +from __future__ import annotations + +import argparse +import os +import sys +import uuid +from datetime import date, timedelta +from pathlib import Path + +# Make backend/ importable when invoked from repo root. +_REPO_ROOT = Path(__file__).resolve().parent.parent +_BACKEND_ROOT = _REPO_ROOT / "backend" +if str(_BACKEND_ROOT) not in sys.path: + sys.path.insert(0, str(_BACKEND_ROOT)) + +# DATABASE_URL must be set before importing app.config. +os.environ.setdefault( + "DATABASE_URL", + os.environ.get( + "TEST_DATABASE_URL", + "postgresql://mealplanner:password@localhost:5432/mealplanner_test", + ), +) + + +def main() -> int: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument( + "--simulate-click", + choices=["approve", "deny"], + help="Bypass email; POST the vote via TestClient and assert success.", + ) + parser.add_argument( + "--base-url", + default="http://localhost:8000", + help="Base URL for the printed link (informational only).", + ) + args = parser.parse_args() + + from sqlalchemy import create_engine + from sqlalchemy.orm import sessionmaker + + from app.config import settings + from app.models import ( + FamilyMember, + FamilyMemberRole, + FamilyProfile, + MealPlan, + MealPlanItem, + MealPlanStatus, + MealType, + Recipe, + ) + from app.services import approval as approval_service + from app.services.email import get_email_backend + + engine = create_engine( + settings.DATABASE_URL.replace("postgresql://", "postgresql+psycopg2://") + ) + Session = sessionmaker(bind=engine, autoflush=False, autocommit=False) + db = Session() + + # ------------------------------------------------------------------ + # Bootstrap a minimal scenario. Suffix everything with a UUID4 so the + # script is idempotent and can run repeatedly without unique-constraint + # collisions. + # ------------------------------------------------------------------ + suffix = uuid.uuid4().hex[:8] + + profile = FamilyProfile( + name=f"Spike Family {suffix}", + household_size=1, + adult_count=1, + child_count=0, + ) + db.add(profile) + db.flush() + + voter = FamilyMember( + family_profile_id=profile.id, + name="Spike Voter", + email=f"spike+{suffix}@example.com", + role=FamilyMemberRole.ADULT, + ) + db.add(voter) + db.flush() + + recipe = Recipe( + family_profile_id=profile.id, + name=f"Spike Pasta {suffix}", + servings=2, + ingredients=[{"name": "pasta", "qty": "200g"}], + instructions=["Boil water", "Cook pasta"], + is_manually_added=True, + ) + db.add(recipe) + db.flush() + + plan = MealPlan( + family_profile_id=profile.id, + week_start_date=date.today() + timedelta(days=(7 - date.today().weekday())), + status=MealPlanStatus.DRAFT, + ) + db.add(plan) + db.flush() + + item = MealPlanItem( + meal_plan_id=plan.id, + recipe_id=recipe.id, + day_of_week=1, + meal_type=MealType.DINNER, + ) + db.add(item) + db.commit() + + token = approval_service.issue_token(item.id, voter.id) + url = f"{args.base_url}/api/meals/vote/{item.id}?token={token}" + + # Send via configured email backend (Console writes to stdout + outbox). + backend = get_email_backend() + subject = "Action required: please vote on this week's meal" + html = ( + f"

Hi {voter.name}, please review this meal:

" + f"

{recipe.name}

" + f'

Open the approval page

' + ) + text = f"Hi {voter.name}, please review {recipe.name}: {url}" + backend.send(to=voter.email, subject=subject, html=html, text=text) + + print(f"item_id={item.id}") + print(f"voter_id={voter.id}") + print(f"approval_url={url}") + + if args.simulate_click is None: + return 0 + + # ------------------------------------------------------------------ + # End-to-end proof: drive the POST through a TestClient. + # ------------------------------------------------------------------ + from fastapi.testclient import TestClient + + from app.main import app + + with TestClient(app) as client: + # Render the GET page first to mirror a real click. + r_get = client.get(f"/api/meals/vote/{item.id}", params={"token": token}) + assert r_get.status_code == 200, (r_get.status_code, r_get.text) + assert "text/html" in r_get.headers.get("content-type", "") + + r_post = client.post( + f"/api/meals/vote/{item.id}", + params={"token": token}, + json={"vote": args.simulate_click}, + ) + assert r_post.status_code == 200, (r_post.status_code, r_post.text) + body = r_post.json() + print(f"item_status={body['item_status']}") + assert body["status"] == "recorded" + + # Single-use: a second POST must 409. + r_post2 = client.post( + f"/api/meals/vote/{item.id}", + params={"token": token}, + json={"vote": args.simulate_click}, + ) + assert r_post2.status_code == 409, (r_post2.status_code, r_post2.text) + print("single_use=enforced") + + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/scripts/spike_lucky_scrape.py b/scripts/spike_lucky_scrape.py new file mode 100644 index 0000000..d3648fc --- /dev/null +++ b/scripts/spike_lucky_scrape.py @@ -0,0 +1,169 @@ +""" +R2-A live-scrape spike for Lucky California weekly ad. + +Performs ONE live fetch of https://luckysupermarkets.com weekly-ad page, +saves the rendered HTML, a full-page screenshot, and a META.md describing +the fetch result. This is the deferred-risk spike demanded by review §2.4. + +Run once. Do not loop. Polite citizen: identifying user-agent, single +request, no auth bypass attempts. + +Usage: + python scripts/spike_lucky_scrape.py +""" + +from __future__ import annotations + +import sys +from datetime import datetime, timezone +from pathlib import Path + +from playwright.sync_api import sync_playwright + +# Path to backend/app on import path so we can reuse the parser. +REPO_ROOT = Path(__file__).resolve().parent.parent +sys.path.insert(0, str(REPO_ROOT / "backend")) + +from app.scraper.lucky_ca_scraper import LuckyCaliforniaScraper # noqa: E402 +from bs4 import BeautifulSoup # noqa: E402 + +FIXTURE_DIR = REPO_ROOT / "backend" / "tests" / "fixtures" / "lucky_ca" +TARGET_URL = "https://luckysupermarkets.com/coupons/Coupon%2Flu-featured-in-ad" +USER_AGENT = ( + "Mozilla/5.0 (compatible; MealPlannerSpike/0.1; " + "+https://github.com/MealPlanner; spike=R2-A)" +) + + +def main() -> int: + FIXTURE_DIR.mkdir(parents=True, exist_ok=True) + html_path = FIXTURE_DIR / "weekly_ad.html" + png_path = FIXTURE_DIR / "weekly_ad.png" + meta_path = FIXTURE_DIR / "META.md" + + started = datetime.now(timezone.utc) + print(f"[spike] Fetching {TARGET_URL}") + + status_code: int | None = None + final_url: str = TARGET_URL + error: str | None = None + captcha_or_block = False + captcha_signal = "" + + with sync_playwright() as p: + browser = p.chromium.launch(headless=True) + try: + ctx = browser.new_context(user_agent=USER_AGENT) + page = ctx.new_page() + + response = None + + def _capture(resp): + nonlocal response + # Capture only the main document response. + if response is None and resp.url.rstrip("/") == TARGET_URL.rstrip("/"): + response = resp + + page.on("response", _capture) + + try: + nav_resp = page.goto( + TARGET_URL, + wait_until="networkidle", + timeout=45_000, + ) + if nav_resp is not None: + status_code = nav_resp.status + final_url = nav_resp.url + elif response is not None: + status_code = response.status + final_url = response.url + except Exception as exc: # noqa: BLE001 -- spike, capture and report + error = f"{type(exc).__name__}: {exc}" + + try: + html = page.content() + except Exception as exc: # noqa: BLE001 + html = "" + error = (error or "") + f" content_err={exc}" + + html_path.write_text(html, encoding="utf-8") + + try: + page.screenshot(path=str(png_path), full_page=True) + except Exception as exc: # noqa: BLE001 + error = (error or "") + f" screenshot_err={exc}" + + # Heuristic captcha / block detection. + lower = html.lower() + for needle in ( + "captcha", + "are you a robot", + "access denied", + "akamai", + "cloudflare", + "px-captcha", + "perimeterx", + "incapsula", + ): + if needle in lower: + captcha_or_block = True + captcha_signal = needle + break + + finally: + browser.close() + + # Run parser portion against the captured HTML (no network). + scraper = LuckyCaliforniaScraper() + items: list[dict] = scraper.parse_featured_coupons_html(html) + _ = BeautifulSoup # keep import for type-stability if reused later + + completed = datetime.now(timezone.utc) + + meta = f"""# Lucky California weekly-ad spike (R2-A) + +| Field | Value | +| --- | --- | +| URL | {TARGET_URL} | +| Final URL | {final_url} | +| Started (UTC) | {started.isoformat()} | +| Completed (UTC) | {completed.isoformat()} | +| HTTP status | {status_code} | +| HTML bytes | {len(html)} | +| Items parsed | {len(items)} | +| Captcha/block signal | {"YES (" + captcha_signal + ")" if captcha_or_block else "no"} | +| Error | {error or "none"} | +| User-Agent | `{USER_AGENT}` | + +## First parsed item (sample) + +```json +{__import__("json").dumps(items[0], indent=2) if items else "null"} +``` + +## Notes + +- Single live fetch performed. Do not rerun without reason. +- HTML and PNG saved alongside this file. +- Parser used: `LuckyCaliforniaScraper._parse_coupon_item` against + elements matching `h2/h3/a` with `$N.NN` text. +""" + meta_path.write_text(meta, encoding="utf-8") + + print(f"[spike] status={status_code} html_bytes={len(html)} items={len(items)} " + f"block={captcha_or_block}") + print(f"[spike] wrote: {html_path}") + print(f"[spike] wrote: {png_path}") + print(f"[spike] wrote: {meta_path}") + + if captcha_or_block: + print("[spike] WARNING: captcha/anti-bot signal detected; review META.md") + if not items: + print("[spike] WARNING: zero items parsed; selectors may be stale") + + return 0 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/scripts/spike_swiftly_ingest.py b/scripts/spike_swiftly_ingest.py new file mode 100644 index 0000000..85424de --- /dev/null +++ b/scripts/spike_swiftly_ingest.py @@ -0,0 +1,101 @@ +"""Live spike for the Swiftly product API (R3-0, ad-hoc admin tool). + +Usage: + python scripts/spike_swiftly_ingest.py --confirm-live + +Fetches the categories page + ONE category (default ``Product/meat_seafood``) +against the live Swiftly API, prints the item count, and pretty-prints +two sample mapped products. Does NOT persist anything to Postgres — the +purpose is to verify the token + parser round-trip on demand without +running the full scrape. +""" +from __future__ import annotations + +import argparse +import json +import os +import sys +from pathlib import Path + +# Make `app.*` importable when invoked from the repo root. +REPO_ROOT = Path(__file__).resolve().parent.parent +BACKEND_DIR = REPO_ROOT / "backend" +if str(BACKEND_DIR) not in sys.path: + sys.path.insert(0, str(BACKEND_DIR)) + +# Allow running outside docker without a real Postgres URL just to exercise +# the scraper. Settings still requires DATABASE_URL to be non-empty. +os.environ.setdefault("DATABASE_URL", "postgresql://placeholder@localhost:5432/placeholder") + +from app.scraper.lucky_ca_scraper import LuckyCaliforniaScraper, SwiftlyAuthError # noqa: E402 + + +def main() -> int: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument( + "--confirm-live", + action="store_true", + help="Required: hit the live Swiftly API. Without this flag the script no-ops.", + ) + parser.add_argument( + "--category", + default="Product/meat_seafood", + help="API slug to fetch (default: Product/meat_seafood).", + ) + parser.add_argument( + "--limit", + type=int, + default=2, + help="How many sample mapped products to print (default 2).", + ) + args = parser.parse_args() + + if not args.confirm_live: + print( + "Refusing to make live HTTP calls without --confirm-live.\n" + "Pass --confirm-live to opt in.", + file=sys.stderr, + ) + return 2 + + scraper = LuckyCaliforniaScraper() + try: + slugs = scraper.discover_categories() + print(f"discovered {len(slugs)} categories") + for s in slugs[:5]: + print(f" - {s}") + if len(slugs) > 5: + print(f" ... ({len(slugs) - 5} more)") + + try: + raw_items = scraper.fetch_category(args.category) + except SwiftlyAuthError as exc: + print(f"\nAUTH FAILURE: {exc}", file=sys.stderr) + return 1 + + print(f"\ncategory={args.category!r}: {len(raw_items)} raw items") + + aisle = LuckyCaliforniaScraper._aisle_from_slug(args.category) + mapped = [] + for raw in raw_items: + m = LuckyCaliforniaScraper.map_product( + raw, aisle=aisle, source_slug=args.category + ) + if m is not None: + mapped.append(m) + print(f"{len(mapped)} mapped products (after dropping unparseable rows)") + + print("\n=== sample mapped products ===") + for m in mapped[: args.limit]: + # Decimal isn't JSON-serializable; coerce for display. + display = {k: (str(v) if k in {"current_price", "regular_price", "sale_price"} else v) for k, v in m.items()} + print(json.dumps(display, indent=2, default=str)) + print() + + return 0 + finally: + scraper.cleanup() + + +if __name__ == "__main__": + sys.exit(main())