SmartPantry v0.1-rebuild — Shipped
Repo: avidtech6/smartpantry-app (private)
Live deploy: https://egyp7e3dexo6.space.minimax.io
Source-of-truth archive: /workspace/smartpantry-defirebased-archive/smartpantry-defirebased.html (1.1MB monolith, UNTOUCHED throughout rebuild)
What it is
Module-organised rebuild of the de-Google'd SmartPantry vanilla-JS SPA. The original
single-file 23,390-line monolith was sliced into 5 JS files + 1 stylesheet + 1 body-clean
HTML, organised around 7 user-facing modules (landing, pantry, recipes, mealplan, shopping,
discover, manage). A Recipe Book was authored by hand for each module following the FvRE
visual-recipe-v0.5 schema. A build script inlines the body into a single
deployable index.html.
Architecture
- app/app-firebase-stubs.js — localStorage-backed replacements for Firestore/Firebase calls (since Google was ripped out)
- app/app-households.js — household create/join/switch/leave/delete
- app/app-main.js — main nav + tab switching + IPC glue
- app/app-modals.js — modal stack, auth UI hiding, DOMContentLoaded wiring
- app/app-bootstrap.js — final init: hide loading overlay, mount first view
- app/landing-stats.js — pure-read localStorage snapshot for landing dashboard
- app/styles.css — 125KB extracted from 3 <style> blocks in original
- app/body-clean.html — 105KB body markup, no <script> tags, no Firebase SDK
- scripts/build.py — inlines body into single index.html for static deploy
- recipe-book/<module>/recipe.json — 7 modules, FvRE visual-recipe-v0.5 schema
- recipe-book/app-dna/identity.json — lineage info, source file hashes, localStorage schema
- tests/feature-parity.test.js — 31/31 passing as of v0.1-rebuild final
What Mavis did NOT do (be honest)
- Did not run FvRE's
elementor-adapter extract against the SmartPantry source. SmartPantry is custom vanilla-JS, not Elementor, so the existing adapter wasn't a fit.
- Did not use FvRE's full 8-step pipeline. Wrote the Recipe Book by hand, informed by source structure analysis.
- Did not implement v0.5 namespace migration (47
pantry_* localStorage keys preserved verbatim for backward compat).
- Did not ship a clean TS rewrite. Same code, organised into modules. If operator wanted a from-scratch rewrite, this isn't that.
What FvRE did provide
- The Recipe Book mental model +
visual-recipe-v0.5 schema
- The "code follows recipe" doctrine
- The 7-component (A-H) framework: 7-module split maps to it
Verified
31/31 feature-parity tests pass. Live URL: https://egyp7e3dexo6.space.minimax.io