How chi-chi256/sangkap works
S.A.N.G.K.A.P. is a browser-based recipe discovery and ingredient-matching app. Users browse or search recipes, compare recipe ingredients with a basket, and view match details; they can also rate recipes, save favorites, create accounts, manage profiles, and share community recipes. The sampled code shows matching, recipe-detail rendering, rating aggregation, profile rendering, and local-storage handling. Several page modules are indexed but not excerpted, so their capabilities are represented without speculative call relationships.
Main entry points: recipes.js Recipe catalog · database.js Shared records · recipe-details.js Recipe details · profile.js Member profiles
Components 16
Recipe Discovery
- Recipe catalog
js/recipes.js - Home highlights
js/home.js - Featured recipes
js/featured.js - Recommendations
js/recommendation.js - Sponsored dishes
js/sponsored.js - Recipe details
js/recipe-details.js
Cooking & Community
- Ingredient basket
js/basket.js - Community recipes
js/community.js - Ratings
js/ratings.js - Favorites
js/favorites.js
Accounts & Profiles
- Authentication
js/auth.js - Member profiles
js/profile.js
Data & Shared UI
- Shared records
js/database.js - Local storage
js/storage.js - Shared interface
js/app.js
Other components
- Recipe seeker
Connections 12
- Recipe seeker → Recipe catalog: browses
- Recipe catalog → Shared records: gets recipes
js/recipes.js - Recipe details → Recipe catalog: gets recipe
js/recipe-details.js - Recipe details → Ingredient basket: reads basket
js/recipe-details.js - Recipe details → Recommendations: scores match
js/recipe-details.js - Sponsored dishes → Recommendations: builds basket set
js/sponsored.js - Ratings → Shared records: updates recipe
js/ratings.js - Community recipes → Shared records: shares recipe table
js/community.js - Member profiles → Ratings: counts ratings
js/profile.js - Member profiles → Recipe catalog: renders recipes
js/profile.js - Shared records → Local storage: persists data
- Shared interface → Authentication: invokes logout
js/app.js