How jamespino20/bites-n-bloom works
Sibol is presented as a cafe-and-flower ordering experience, with a 3D cafe tour and staff tools; the README also describes a standalone dot-garden prototype. The evidenced order path covers menu data, server-validated checkout, order persistence, and claim-code tracking. Other documented capabilities include wall notes and staff claiming, while the admin area manages operational tasks. The excerpts show selected API-to-database calls and tour-to-tracker use; several page-to-API connections and unexcerpted features are omitted rather than inferred.
Main entry points: page.tsx Interactive 3D tour · db.ts Postgres access · route.ts Order creation · admin Staff APIs
Components 21
Customer experience
- Menu browsing
sibol/src/app/menu/page.tsx - Cart state
sibol/src/components/cart-provider.tsx - Checkout
sibol/src/app/checkout/page.tsx - Order tracking
sibol/src/app/track/[code]/tracker.tsx - Interactive 3D tour
sibol/src/app/tour/page.tsx - Tour tree layout
sibol/src/app/tour/trees.ts - Basis transcoder
sibol/public/basis/basis_transcoder.js - Dot garden
garden.js - Garden data
dots-data.js
Ordering and data
- Order creation
sibol/src/app/api/orders/route.ts - Price and claim helpers
sibol/src/lib/pricing.ts - Public menu API
sibol/src/app/api/menu/route.ts - Menu definitions
sibol/src/lib/menu-data.ts - Postgres access
sibol/src/prisma/db.ts
Staff operations
- Staff dashboard
sibol/src/app/admin/page.tsx - Staff APIs
sibol/src/app/api/admin - Staff authorization
sibol/src/lib/admin.ts - Sign-in configuration
sibol/src/auth.ts
Cafe community
- Community wall
sibol/src/app/wall/page.tsx - Wall notes API
sibol/src/app/api/wall/route.ts
Other components
- Cafe visitor
Connections 23
- Cafe visitor → Menu browsing: browses
- Cafe visitor → Checkout: places order
- Cafe visitor → Community wall: posts notes
- Cafe visitor → Interactive 3D tour: explores
- Menu browsing → Public menu API: loads menu
- Checkout → Order creation: submits order
- Order creation → Postgres access: reads and writes
sibol/src/app/api/orders/route.ts - Order creation → Price and claim helpers: uses helpers
sibol/src/app/api/orders/route.ts - Public menu API → Postgres access: reads menu
sibol/src/app/api/menu/route.ts - Menu definitions → Postgres access: seeds menu
sibol/prisma/seed.ts - Order tracking → Order creation: tracks by code
- Interactive 3D tour → Order tracking: renders tracker
sibol/src/app/tour/page.tsx - Interactive 3D tour → Wall notes API: fetches notes
sibol/src/app/tour/page.tsx - Interactive 3D tour → Tour tree layout: uses placements
sibol/src/app/tour/page.tsx - Interactive 3D tour → Basis transcoder: loads transcoder
sibol/src/app/tour/page.tsx - Community wall → Wall notes API: loads and submits
- Wall notes API → Postgres access: reads and writes
sibol/src/app/api/wall/route.ts - Staff dashboard → Staff APIs: manages cafe
- Staff APIs → Staff authorization: checks access
sibol/src/app/api/admin/users/route.ts - Staff APIs → Postgres access: reads and writes
- Sign-in configuration → Staff authorization: supports sessions
- Cafe visitor → Dot garden: views prototype
- Dot garden → Garden data: uses dot data