How karun99/plastic-waste-conservation works
This is an education-first web platform for plastic-waste literacy and conservation. Visitors learn about plastics, explore real-world case studies, estimate diversion impacts, and use a rule-based matcher and stakeholder dashboard. The optional tutor sends questions through a chat endpoint to OpenRouter, with case-study context. The graph follows README capabilities and the supplied source index; unsampled pages are represented at their documented paths, and no unverified implementation details are inferred.
Main entry points: caseStudies.js Case study content · layout.js Application shell · page.js Home overview · CaseStudyExplorer.js Case study explorer
Components 20
Site experience
- Application shell
app/layout.js - Navigation
components/Navbar.js - Footer
components/Footer.js - Home overview
app/page.js
Learning content
- Plastic literacy
app/plastics/page.js - Polymer reference
data/plastics.js - Case study index
app/case-studies/page.js - Case study explorer
components/CaseStudyExplorer.js - Case study card
components/CaseStudyCard.js - Case study detail
app/case-studies/[slug]/page.js - Case study content
data/caseStudies.js
Impact and solutions
- Impact calculator
app/calculator/page.js - Solution matcher
app/solutions/page.js - Solutions and stakeholder data
data/solutions.js - Stakeholder dashboard
app/dashboard/page.js
AI tutor
- Plastic Pal chat
components/Chatbot.js - Chat endpoint
app/api/chat/route.js - OpenRouter client and cache
lib/openrouter.js
Other components
- Site visitor
- OpenRouter service
Connections 29
- Site visitor → Application shell: opens site
README.md - Application shell → Navigation: renders
app/layout.js - Application shell → Footer: renders
app/layout.js - Application shell → Plastic Pal chat: renders
app/layout.js - Site visitor → Home overview: views
README.md - Home overview → Case study content: reads
app/page.js - Home overview → Polymer reference: reads
app/page.js - Home overview → Case study card: renders
app/page.js - Site visitor → Plastic literacy: learns
README.md - Plastic literacy → Polymer reference: reads
app/plastics/page.js - Site visitor → Case study index: explores
README.md - Case study index → Case study explorer: renders
app/case-studies/page.js - Case study explorer → Case study content: filters
components/CaseStudyExplorer.js - Case study explorer → Case study card: renders
components/CaseStudyExplorer.js - Case study card → Case study detail: links to
components/CaseStudyCard.js - Site visitor → Case study detail: reads
README.md - Case study detail → Case study content: looks up
app/case-studies/[slug]/page.js - Site visitor → Impact calculator: estimates impact
README.md - Impact calculator → Polymer reference: reads factors
app/calculator/page.js - Site visitor → Solution matcher: finds solutions
README.md - Solution matcher → Solutions and stakeholder data: matches against
app/solutions/page.js - Site visitor → Stakeholder dashboard: views needs
README.md - Stakeholder dashboard → Solutions and stakeholder data: reads
app/dashboard/page.js - Stakeholder dashboard → Case study content: reads
app/dashboard/page.js - Site visitor → Plastic Pal chat: asks question
README.md - Plastic Pal chat → Chat endpoint: posts question
components/Chatbot.js - Chat endpoint → Case study content: builds context
app/api/chat/route.js - Chat endpoint → OpenRouter client and cache: requests answer
app/api/chat/route.js - OpenRouter client and cache → OpenRouter service: calls completions API
lib/openrouter.js