How swapnonil2007/wannamath works
Wanna Math is an interactive engineering-mathematics textbook: learners browse a six-volume curriculum, open a chapter, read its mathematical exposition, and use its associated interactive lab. The graph shows that route, lab dispatch and rendering, the shared expression and visualization support, and the homepage’s interactive preview. The README documents the broad curriculum and lab capabilities; source excerpts and index references support the shown wiring. Many individual labs and page implementations were not sampled, so their internal behavior is not inferred.
Main entry points: [chapter]/page.tsx Chapter Page · app/page.tsx Home Page · HeroIntegralPreview.tsx Integral Preview · MathExpressionInput.tsx Expression Input
Components 23
Curriculum and Routes
- Volume Page
src/app/[volume]/page.tsx - Module Page
src/app/[volume]/[module]/page.tsx - Curriculum Catalog
src/registry/curriculum.ts - Curriculum Registry
src/registry/index.ts - Volume Manifests
src/registry
Learning Experience
- Chapter Page
src/app/[volume]/[module]/[chapter]/page.tsx - Topic Page Shell
src/components/layout/TopicPageShell.tsx
Interactive Labs
- Dynamic Lab Renderer
src/components/visualizations/DynamicLabRenderer.tsx - Lab Loading State
src/components/visualizations/LabLoadingSkeleton.tsx - Curriculum Labs
src/components/visualizations - Shared Visual Primitives
src/components/visualizations/primitives - Demand Render Loop
src/components/visualizations/primitives/demandRenderLoop.ts
Math Support
- Expression Input
src/components/math/MathExpressionInput.tsx - Expression Compiler
src/lib/mathParser.ts - KaTeX Rendering
src/components/math/KaTeXMath.tsx
Discovery and Metadata
- Home Page
src/app/page.tsx - Preview Loader
src/components/visualizations/HeroIntegralPreviewLoader.tsx - Integral Preview
src/components/visualizations/HeroIntegralPreview.tsx - 3D Preview Viewport
src/components/visualizations/HeroIntegral3DViewport.tsx - Structured Data Output
src/components/seo/JsonLd.tsx - Structured Data Builders
src/lib/seo/structuredData.ts - Site Metadata Config
src/lib/seo/siteConfig.ts
Other components
- Learner
Connections 30
- Learner → Home Page: opens
README.md - Home Page → Curriculum Catalog: loads volumes
src/app/page.tsx - Curriculum Catalog → Curriculum Registry: uses catalog
src/registry/curriculum.ts - Curriculum Registry → Volume Manifests: aggregates volumes
src/registry/index.ts - Learner → Volume Page: browses volumes
README.md - Learner → Module Page: browses modules
README.md - Learner → Chapter Page: opens chapter
README.md - Chapter Page → Curriculum Registry: resolves chapter
src/app/[volume]/[module]/[chapter]/page.tsx - Chapter Page → Topic Page Shell: renders within
src/app/[volume]/[module]/[chapter]/page.tsx - Chapter Page → Dynamic Lab Renderer: requests lab
src/app/[volume]/[module]/[chapter]/page.tsx - Dynamic Lab Renderer → Curriculum Labs: dispatches labs
src/components/visualizations/DynamicLabRenderer.tsx - Dynamic Lab Renderer → Lab Loading State: shows while loading
src/components/visualizations/DynamicLabRenderer.tsx - Curriculum Labs → Shared Visual Primitives: uses shared primitives
src/components/visualizations/coordinate-systems/Curvilinear3DSurfacesAndElementLab.tsx - Shared Visual Primitives → Demand Render Loop: exports render support
src/components/visualizations/primitives/index.ts - Learner → Expression Input: enters expressions
README.md - Expression Input → Expression Compiler: compiles expression
src/components/math/MathExpressionInput.tsx - Expression Input → KaTeX Rendering: typesets expression
src/components/math/MathExpressionInput.tsx - Chapter Page → KaTeX Rendering: renders equations
src/app/[volume]/[module]/[chapter]/page.tsx - Home Page → Preview Loader: shows preview
src/app/page.tsx - Preview Loader → Integral Preview: loads preview
src/components/visualizations/HeroIntegralPreviewLoader.tsx - Integral Preview → Expression Compiler: compiles inputs
src/components/visualizations/HeroIntegralPreview.tsx - Integral Preview → Expression Input: renders controls
src/components/visualizations/HeroIntegralPreview.tsx - Integral Preview → KaTeX Rendering: typesets formulas
src/components/visualizations/HeroIntegralPreview.tsx - Integral Preview → 3D Preview Viewport: renders 3D view
src/components/visualizations/HeroIntegralPreview.tsx - 3D Preview Viewport → Demand Render Loop: uses render loop
src/components/visualizations/HeroIntegral3DViewport.tsx - Home Page → Structured Data Builders: builds metadata
src/app/page.tsx - Chapter Page → Structured Data Builders: builds chapter data
src/app/[volume]/[module]/[chapter]/page.tsx - Structured Data Builders → Site Metadata Config: uses site config
src/lib/seo/structuredData.ts - Home Page → Structured Data Output: emits structured data
src/app/page.tsx - Chapter Page → Structured Data Output: emits structured data
src/app/[volume]/[module]/[chapter]/page.tsx