How alexfdez1010/mental-models works
Mental Models is a bilingual, zero-to-expert learning site. Learners browse a dependency-ordered catalog and curated learning paths, open lessons with interactive exercises, then track or transfer completion progress. The map emphasizes the documented content, catalog, and learning experience; the tree does not include page routes or MDX files, so their runtime wiring is not shown. Individual island behavior is represented as a reusable capability rather than enumerating every exercise.
Main entry points: catalog.ts Course catalog · content.ts Content helpers · CourseGraph.tsx Dependency graph · roadmaps.ts Learning paths
Components 16
Learning content
- Content helpers
src/lib/content.ts - Content collections
src/content.config.ts
Catalog and paths
- Course catalog
src/lib/catalog.ts - Dependency graph
src/components/react/CourseGraph.tsx - Catalog filters
src/lib/catalog-filter.ts - Learning paths
src/lib/roadmaps.ts - Path metadata
src/lib/roadmap-meta.ts
Interactive learning
- Lesson interactions
src/components/react - Exercises and quizzes
src/components/react - Completion controls
src/components/react/CourseComplete.tsx - Progress tracking
src/lib/progress.ts - Progress transfer
src/components/react/ProgressTransfer.tsx
Shared platform
- Locale utilities
src/i18n/utils.ts - Translated interface
src/i18n/ui.ts - Share images
src/lib/og.ts
Other components
- Learner
Connections 20
- Learner → Course catalog: browses courses
README.md - Course catalog → Content helpers: loads topics
src/lib/catalog.ts - Course catalog → Learning paths: loads paths
src/lib/catalog.ts - Course catalog → Catalog filters: filters courses
src/lib/catalog.ts - Course catalog → Dependency graph: uses graph
src/lib/catalog.ts - Dependency graph → Catalog filters: applies filters
src/components/react/CourseGraph.tsx - Dependency graph → Progress tracking: reads progress
src/components/react/CourseGraph.tsx - Learning paths → Content helpers: summarizes topics
src/lib/roadmaps.ts - Learning paths → Path metadata: uses metadata
src/lib/roadmaps.ts - Content helpers → Content collections: queries collections
src/lib/content.ts - Content helpers → Locale utilities: localizes routes
src/lib/content.ts - Path metadata → Learner: defines learning paths
README.md - Learner → Lesson interactions: uses lesson tools
README.md - Lesson interactions → Exercises and quizzes: includes assessments
src/components/react/index.ts - Learner → Completion controls: marks completion
README.md - Completion controls → Progress tracking: updates progress
src/components/react/CourseComplete.tsx - Learner → Progress transfer: imports or exports
- Progress transfer → Progress tracking: transfers records
- Locale utilities → Translated interface: reads translations
src/i18n/utils.ts - Learner → Share images: views share cards