How marufff101/codecraft works
Codecraft is a browser-based coding academy. Learners browse courses, study staged lessons, practice challenges or projects, and run edited code; successful runs can unlock completion. Course records and authored lesson content feed the learning interface, while curriculum.js adds level pathways, runnable concept labs, and references. Progress and drafts stay on the learner’s device. Code Studio uses browser previews for JavaScript, HTML, and CSS, and can optionally reach a configured Piston service through the local server proxy. Runner details are documented, but app.js runner call sites were not shown.
Main entry points: app.js Learning interface · curriculum.js Curriculum pathways · index.html App shell · server.js Local web and proxy
Components 14
Learning experience
- App shell
index.html - Learning interface
app.js - Course content
content.js - Course catalog
catalog.js - Curriculum pathways
curriculum.js - Local progress
app.js - Practice and projects
app.js
Code execution
- Code Studio
app.js - Browser previews
app.js - Local web and proxy
server.js - Piston runner
Learner support
- Study companion
cat.js - Learning references
curriculum.js
Other components
- Learner
Connections 14
- Learner → App shell: opens app
README.md - App shell → Learning interface: hosts interactions
README.md - Learning interface → Course content: uses course data
README.md - Learning interface → Course catalog: uses course data
README.md - Curriculum pathways → Course content: extends courses
curriculum.js - Learning interface → Local progress: saves progress
app.js - Learner → Learning interface: browses lessons
app.js - Learning interface → Practice and projects: shows practice
README.md - Learning interface → Code Studio: opens studio
README.md - Code Studio → Browser previews: runs browser code
README.md - Code Studio → Local web and proxy: requests runner
README.md - Local web and proxy → Piston runner: proxies requests
server.js - Curriculum pathways → Learning references: provides references
curriculum.js - Learner → Study companion: interacts
cat.js