An open-source educational space coding puzzle game (installable offline-first PWA) built to teach young learners (ages 5–10+) computational thinking — from visual interlocking SVG jigsaw blocks all the way to loops, conditional sensors, reusable functions (F1/F2), multi-portal wormholes, ice & energy-crate physics, parallel 2-robot concurrency (AstroBit + AstroByte), "Bug Hunt!" + Time-Travel debugging, and live JavaScript / Python code previews.
Built with zero runtime dependencies (native ES Modules + HTML5 Canvas 2D + procedural Web Audio API soundtrack & SFX +
node --test) so it loads instantly on any computer, tablet, or phone directly from GitHub Pages.
- 📖 Story Campaign — "Operação: Luz da Terra!" (PT-BR & EN):
- 3-scene animated Intro Cinematic, per-world Planet Arrival Briefings, custom story hooks and triumph lines for all 36 bases, and a Grand Finale Ending Cinematic with an Official Space Engineer Medal!
- 🗺️ 4-Act 60fps Interplanetary Galaxy Flight & 7 Unique Planet Biomes:
- Fly Starship Estrela-1 across 7 worlds and 42 planetary hubs (including the global Earth → Moon route:
🇧🇷 Brazil → 🇺🇸 USA → 🇪🇺 Europe → 🌍 Africa → 🇨🇳 China → 🇯🇵 Japanwith 42 real space/CS fun facts!), featuring Vertical Orbital Liftoff → Milky Way Galaxy Cruise → 4.4× Destination Planet Zoom → 1,650 °C Thermal Re-entry with live AAA LOD telemetry and ⚡ interactive Turbo Boost!
- Fly Starship Estrela-1 across 7 worlds and 42 planetary hubs (including the global Earth → Moon route:
- ⏪ Time Machine — Time-Travel Debugger:
- After any run, scrub a timeline (slider, ⏪/⏩, or ←/→ keys) to rewind AstroBit step by step: crystals reappear, buttons un-press, the running block glows in the editor and in live JS/Python, with a VHS
⏪ REWINDflash and pitch-scaled scrub ticks. Emoji markers (💎 🔓 🌀 📦 💥 🏁) flag key moments, and editing the program creates a new timeline that shows a magenta echo of the old path plus a 🔀 marker at the exact step where history changed. Powered by a pure, immutable snapshot engine (src/engine/time-machine.js) proven lossless across all 42 reference solutions.
- After any run, scrub a timeline (slider, ⏪/⏩, or ←/→ keys) to rewind AstroBit step by step: crystals reappear, buttons un-press, the running block glows in the editor and in live JS/Python, with a VHS
- 👆 Interactive Step-by-Step Kids Guided Tutorial + Live A* Pathfinder &
⚡ Raio-XAAA Overlay:- Guides kids (6–12 yrs) step-by-step on Level 1-1 (
Step 1/3 → 2/3 → 3/3with bouncing👆pointer & pulsing green▶️ Run), powered by a real-time BFS/A* Pathfinder Coach, plus a 1-click⚡ Raio-Xoverlay showing live AABB colliders, A* search frontier, Wayfinder breadcrumbs, FPS, quadratic camera trauma screen-shake, and floating action popups!
- Guides kids (6–12 yrs) step-by-step on Level 1-1 (
- 🧩 Physical SVG Interlocking Jigsaw Puzzle Editor + Tactile Mouse & Touch DnD:
- Tactile 4-direction Compass Palette (
⬆️ ⬇️ ⬅️ ➡️), true male/female SVG jigsaw connectors, C-shaped🔁 Repeatand🔎 If (sensor)clamps, reusable⚡ F1/🌟 F2stacks, magnetic mouse & touch drag-and-drop with floating ghost + glowing snap rails, live dotted path preview, and keyboard shortcuts (Space,S,R,Ctrl+Z).
- Tactile 4-direction Compass Palette (
- 🌌 8 Progressive Worlds · 48 Mathematically Proven Levels (⭐ 144 Stars):
- 🌙 Moon of Crystals — Sequences & 4-direction planning
- ⚙️ Gear Planet — Loops (
Repeat N×) & nested loops - ⚡ Laser Belt — Switches, retractable bridges, paired portals & conditional sensors (
If) - 🛰️ Function Station — Decomposition & reusable subroutines (
F1,F2) - 🌌 Engineer Nebula — 3 interactive "🐛 Bug Hunt!" debugging puzzles & Grand Finale
- 🌀 Wormhole Dimension (Bonus) — 6 multi-portal chain levels (
1–4portal pairs) with rotating vortex & quantum warp beam FX! - ❄️ Frozen Planet (Bonus) — 6 slippery ice-slide & pushable energy-crate physics puzzles!
- 🤝 Cosmic Twins (Bonus) — 6 parallel 2-robot concurrency puzzles controlling
🤖 AstroBitand🩷 AstroBytein lockstep with the⏳ Waitblock (1 tick/Signal A/Signal B), friendly collision & deadlock detection, and Binary Stars 60fps biome!
- 📲 Installable Offline-First PWA & Accessibility:
- Includes
manifest.webmanifest, vector icon, and Stale-While-Revalidate Service Worker (sw.js) for offline play on tablets/phones/classrooms, plusprefers-reduced-motionscreen-shake support and keyboard shortcuts (Space,S,R,H,X,←/→,Ctrl+Z).
- Includes
- 🕹️ Endless Arcade Mode + 👻 Holographic Ghost Replay (
?ghost=) + 🪪 Exportable PNG Passport:- Infinite 3★-guaranteed escalating puzzles with 3 Shields ❤️❤️❤️ and ×1→×5 Combos; race your own translucent cyan Ghost Replay (or share
?custom=...&ghost=...block-count challenges in 1 click); and export a 900×520 Space Engineer Passport PNG client-side!
- Infinite 3★-guaranteed escalating puzzles with 3 Shields ❤️❤️❤️ and ×1→×5 Combos; race your own translucent cyan Ghost Replay (or share
- ☁️ Pilot Center (XP
Lv.1–25· 6 Space Quests · 🏆 Global Top 20 Ranking · History · Google Cloud Sync):- Earn Space XP & Level-Up toasts across 6 live quests, track your last 50 wins in the Flight Logbook, export/restore portable
.jsonbackups, or sign in with Google (Firebase Auth + Firestore) for conflict-free cross-device cloud sync and the kid-safe Global Galaxy Hall of Fame!
- Earn Space XP & Level-Up toasts across 6 live quests, track your last 50 wins in the Flight Logbook, export/restore portable
- 🔥 Daily Space Mission & Streak + 🏆 16 Space Medals:
- Deterministic daily puzzle generator (100 consecutive days mathematically proven
3★) with Daily Streak 🔥 tracking, plus 16 unlockable Space Medals (including 🤝 Perfect Sync, ❄️ Glacial Master, 🕹️ Arcade Ace, and 🧪 AAA Game Engineer) with animated videogame unlock toasts and fanfare!
- Deterministic daily puzzle generator (100 consecutive days mathematically proven
- 🧪 AAA Game Engineering Lab (7 Interactive 60fps Simulators):
- Hands-on visual playground teaching how blockbuster games run inside strict Memory, CPU/GPU, and Energy budgets — with a live FPS Profiler Sparkline, ON/OFF optimization toggle, and Quick-Challenge Quizzes:
- 🔦 Frustum & Occlusion Culling
- 🔺 Dynamic Level of Detail (LOD)
- 📦 Open-World Data Streaming (VRAM / SSD Prefetch)
- 🧠 Layered AI (AI LOD & ECS Boids)
- 🌊 Hybrid Fluid Mesh (FFT Waves + Local Hull Physics)
- ✨ Ray Tracing & BVH Acceleration
- 🤖 AI Temporal Upscaling (DLSS / FSR / PSSR Split-Screen)
- Hands-on visual playground teaching how blockbuster games run inside strict Memory, CPU/GPU, and Energy budgets — with a live FPS Profiler Sparkline, ON/OFF optimization toggle, and Quick-Challenge Quizzes:
- 🎵 Interactive Procedural Space Soundtrack (Web Audio API):
- 7 unique planet themes synthesized in real time (zero audio files!) plus cinematic SFX (ice glide, battery curling, thermal re-entry, new record) that dynamically accelerate BPM in Turbo mode.
- 👀 Visual Step-by-Step Debugger & Live JS / Python Code Peek:
- Step one piece at a time (
⏭️), see the exact piece causing a bump, and watch your puzzle transpile line-by-line into real JavaScript or Python.
- Step one piece at a time (
- 🛠️ Creative Level Workshop (
?custom=...):- Paint custom space puzzles with click or touch-drag (including all 4 portal pairs, ice, energy crates, and 5 starter templates), test immediately, save a local family library, and share playable links via compact URL-safe Base64!
- 🎨 Robot Garage (8 Skins + 5 Collectible Companion Drones):
- Unlock 8 animated robot skins (up to 🌀 AstroQuântico
75★and ❄️ AstroGlacial95★) plus 5 floating Companion Drones (✨ Spark,🐱 Nebula Cat,🛸 Mini Probe,🦉 Comet Owl,🦊 Quantum Fox) unlocked via Space Medals!
- Unlock 8 animated robot skins (up to 🌀 AstroQuântico
Requires only Node.js 20+ (zero npm install needed):
git clone https://github.com/LucasValeQueiroz/astrobit.git
cd astrobit
# Run syntax check across all 79 JS/MJS files + all 97 automated tests (including 48-level 3★ solvability)
npm run verify
# Preview locally
npm run devassets/
├── og-preview.svg # 1200×630 vector OpenGraph social preview
└── previews/ # Real 1280×800 live screenshots (AAA Lab, Puzzle Editor, Galaxy Map)
src/
├── engine/ # Pure DOM-free grid, AST interpreter, JS/Python transpiler, validator, daily/arcade generators & custom-level codec
├── levels/ # 7-world / 42-level campaign with mathematically verified 3★ reference solutions
├── story/ # Bilingual narrative bible ("Operação: Luz da Terra!"), 7 planet biomes & orbital LOD transitions
├── renderer/ # 60fps HTML5 Canvas 2D space renderer, wormhole vortex FX, 7 expressive robot skins & particles
├── audio/ # Zero-asset Web Audio API SFX synth + 6-theme interactive procedural soundtrack
├── ui/ # SVG jigsaw workspace, magnetic touch/mouse DnD, 3-Act 3D orbital cinema, AAA Lab, workshop & PT/EN i18n
└── storage/ # Local progress, stars, space medals, daily streak, skins, drones & custom level library (localStorage)
Released under the MIT License.



