How peaz6/mosaic-site works
Mosaic is a small product-distribution website with a browser storefront and two operating modes: a static demo and a local Node/SQLite experience. The user-facing flow includes browsing/searching the site, placing a food order or submitting a contact message, and—locally—using account, password-reset, and inbox features. The sampled code shows the browser clients, API handling, and database schema; page-specific HTML behavior is not sampled, so page-to-script links are omitted.
Main entry points: script.js Site interactions · shop.js Cart and orders · index.html Home page · server.js HTTP server and API
Components 12
Site experience
- Home page
index.html - Food page
food.html - Team page
team.html - Site interactions
script.js
Ordering and contact
- Shop page
shop.html - Cart and orders
shop.js
Local services
- HTTP server and API
server.js - SQLite data
- Browser demo storage
Other components
- Visitor
- Email application
- Static file host
Connections 13
- Visitor → Home page: browses
README.md - Visitor → Food page: browses
README.md - Visitor → Shop page: orders from
- Visitor → Team page: browses
README.md - Home page → Site interactions: uses interactions
- Site interactions → HTTP server and API: requests API
script.js - Site interactions → Browser demo storage: stores demo accounts
README.md - Site interactions → Email application: opens mailto
script.js - Shop page → Cart and orders: uses cart
- Cart and orders → HTTP server and API: posts orders
shop.js - Cart and orders → Email application: opens mailto
shop.js - HTTP server and API → SQLite data: reads and writes
server.js - Static file host → Home page: serves site
README.md