Petoi Web Coding Blocks (code.petoi.com) is a browser-based visual programming tool for Petoi robots (ESP32). It is a static single-page application — no backend, no database, no build step. The entire app is vanilla HTML/CSS/JS served by a static file server.
npm start # http-server -p 8080 -c-1
This serves the site at http://localhost:8080. The npm run dev variant adds -o to auto-open the browser.
| Page | URL path | Purpose |
|---|---|---|
| Portal | /index.html |
Language selector + links to sub-apps |
| Main IDE | /main.html |
Blockly programming workspace |
| Remote | /mobile_remote.html |
Mobile controller (under construction) |
| Help | /help.html |
Documentation |
node_modules/is committed to the repo (used directly by the browser at runtime via<script>tags). Runningnpm installis still needed to ensurehttp-serverdevDependency is available.- There is no build step, no linter, no test suite configured in this repo. The only
package.jsonscripts arestartanddev. - The app communicates with Petoi robots via WebSocket or Web Serial API — both are browser-native APIs. No robot hardware is required for UI development; the app gracefully handles missing connections.
- No
.envfiles or secrets are needed.