RepositoryTypeScriptDEGermany
agharsallah

agharsallah/esp-labs-web

The ESP32-S3 bench guide as a React app: live pinout, lessons with interactive simulators, a code reader for the esp-labs firmware, and the bench log. In 11 languages.

1.1kstars
167forks
0issues
18views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: esp32

#1 Repository of the week

1
TINIX TRENDING·Topic: electronics

#1 Repository of the week

1
TINIX TRENDING·Topic: esp32-s3

#1 Repository of the week

ESP32 Labs: the bench guide

Wire it, flash it, watch it, then read the code.
An interactive guide to the ESP32-S3: 32 hands-on labs with live simulators, a 3D board, a pinout, and a reader that explains the firmware line by line.

Open the live guide

React 19 TypeScript strict Vite 8 9 languages CI PRs welcome

Live guide · Firmware (esp-labs) · Architecture · Contributing · Report a bug · Propose a lab

The labs map: a progress readout, the 3D ESP32-S3 DevKitC-1 with its parts lighting up one by one, then every lab grouped by theme

Contents

What's inside

Every lab runs in the browser first

Each lesson is one sheet: the goal, the pins it uses on a live pinout, the wiring, the command to flash it, the steps to tick off and a simulator of what you should see. Type a command into the simulated serial monitor and the board answers like the real firmware does.

Lesson 02: ticking off steps, then typing blink, sos and level commands into the serial monitor while the simulated LED follows

A code reader that never overwhelms

Read the code opens the real firmware the lab flashes, taken from esp-labs at build time. Tour walks it a few lines at a time and asks you to guess first. Story follows the program as it runs, from setup() into every call. Explore explains any line you tap. New C++ words come up three at a time, and the phrasebook remembers the ones you've already met.

The code reader: tour stops with guess-first quizzes and new-word cards, then the Story mode following setup()

In your language, on your phone

The guide is in English, French, Spanish, Italian, German, Chinese (Simplified and Traditional), Japanese and Arabic (right to left). Add ?lang=fr to any link to share it in a language. It works on a phone at 390 px, in light and dark themes, and respects reduced motion.

Switching the guide from English to French, Japanese and Arabic, where the whole layout mirrors right to leftThe guide on a phone in dark mode: the labs map, then the S5 spectrum lesson and its simulator

Also inside

  • Meet the board: the DevKitC-1 in 3D (three.js) with six callouts. Each one lights up its part and lists the labs that use it.
  • The bench log: what is flashed on the board right now and every command recorded. It is plain JSON in public/data/, so you can update it without a rebuild.
  • Progress: your ticks, the last lesson you opened and the variants you picked stay in your browser, with no account.
  • The parts library at #/parts: 42 isometric drawings of every component on the bench, coloured from design tokens only.

The labs

ThemeLabsWhat you build
Intro00 Setup · 01 Hello · 02 First circuitThe toolchain, your first program, an LED you command
Display & input03 Display · 03b ShowcaseThe 1.9″ TFT and the buttons
Wi-FiW1 Scan & join · W2 Phone control · W3 Internet & AI · W4, W5 plannedScanning, a web page on the board, APIs over HTTPS
RFID & NFCR1 Wire & talk → R8 Card friendsThe 13.56 MHz field, card memory, a door with card admin
Bluetooth LEB1 Listen → B8 HostAdvertising, pairing, a phone app, a keyboard, music
SoundS1 Hear → S8 Voice FXLoudness, clap control, a recorder, a spectrum, a speaker
SensorsplannedTemperature, air and motion over I2C

The firmware for every lab is a standalone PlatformIO project in esp-labs. Each lesson links to its folder on GitHub.

Quick start

You need Node 24.14+ and pnpm 11 (corepack enable gives you the pinned version). The code reader shows the firmware from a sibling checkout of esp-labs, so clone both repos side by side:

git clone https://github.com/agharsallah/esp-labs.git
git clone https://github.com/agharsallah/esp-labs-web.git
cd esp-labs-web
pnpm install
pnpm dev              # http://localhost:5180

Without ../esp-labs, everything else still works: the lessons, the simulators and the bench log. Only the code reader has nothing to show. Point FIRMWARE_DIR elsewhere if your checkout lives somewhere else (Configuration).

How it is built

React 19 with React Compiler, React Router 8 (data mode, hash URLs), TanStack Query 5, zod 4, i18next, three.js, CSS Modules and design tokens, built by Vite 8. Lessons are data, simulators are lazily loaded widgets, and the bench log is JSON fetched at run time.

flowchart LR
  url["#/lessons/R3"] --> loader["route loader"] --> query["TanStack Query cache"]
  query --> content["lesson content<br/>(one chunk per track)"]
  query --> data["public/data/*.json<br/>(bench status + log)"]
  loader --> page["LessonPage"] --> slot["WidgetSlot<br/>(lazy + error boundary)"] --> sim["simulator / diagram"]

The full picture: layers, the widget contract, the three simulator rules, the lab-screen engine and the code reader. It's all in docs/ARCHITECTURE.md. How text and translations work is in docs/I18N.md.

Contributing

Contributions of every size are welcome. These need no React at all:

You want to…Start here
Report something brokenBug report
Suggest a lab or a themeLab proposal
Fix or improve a translationTranslation issue or edit src/locales/<lang>/
Fix a typo or a confusing stepEdit the lesson in src/content/lessons/<track>.ts and open a PR
Add a lab, a simulator or a languageCONTRIBUTING.md: step by step, with the checks to run

Issues labelled good first issue are a good place to start. Please read the code of conduct; report security problems privately (SECURITY.md). How CI and the review rules work: docs/MAINTAINING.md.

Commands

Run them from this folder.

pnpm install          # once
pnpm dev              # http://localhost:5180
pnpm check            # typecheck + lint + tests
pnpm i18n:extract     # regenerate the English content catalogues after editing lessons
pnpm build            # static bundle in dist/ (relative paths: serve it from any folder)
pnpm preview          # serve dist/ locally (browsers will not run module scripts from file://)

Configuration

Copy .env.example to .env to override:

VariableDefaultMeaning
VITE_BENCH_DATA_URL./data/Where bench-status.json and bench-log.json are read
VITE_FIRMWARE_URL./firmware/Where the bundled lab code is read
VITE_LABS_SOURCE_URLhttps://github.com/agharsallah/esp-labs/tree/main/labs/Where each lesson's "code on GitHub" link points
VITE_LOG_LEVELinfodebug, info, warn, error or silent
FIRMWARE_DIR../esp-labsBuild time only: the firmware checkout the code reader shows

Deploy to Vercel

Local prebuilt deploys, Web Analytics and Speed Insights

Configuration is in vercel.json (Vite preset, pnpm, cache and security headers). The app uses a hash router, so no rewrite rules are needed.

The code reader bundles the firmware from the sibling esp-labs checkout at build time, and that checkout is not on Vercel's build servers. So the deploy builds locally (vercel build, using ../esp-labs) and uploads the result with --prebuilt. Git-triggered builds are turned off in vercel.json for the same reason.

vercel login          # once
vercel link           # once: creates/links the project, writes .vercel/ (git-ignored)
pnpm deploy:preview   # preview deployment, prints its URL
pnpm deploy:prod      # production deployment

Web Analytics (@vercel/analytics) and Speed Insights (@vercel/speed-insights) are mounted by src/app/VercelInsights.tsx only in builds made for Vercel (vercel build sets VERCEL). Dev and a plain pnpm build load neither. Switch both on once per project in the dashboard (Analytics and Speed Insights, then Enable) and redeploy. Because the router is hash-based, #/lessons/R3 is reported as the page /lessons/R3.

Where things live

A map of the source tree
PathWhat
src/content/Tracks (table of contents) and lessons, one file per track; code/ holds the phrasebook and hand-written code tours
src/domain/Pure, tested logic: the lesson model, progress, the board, the C++ analyser and tour builder (code/)
src/labs/<track>/That track's simulators and explainers, registered in widgets.ts
src/labs/shared/Simulation and the lab-screen engine (screen + buttons + serial)
src/features/App screens: labs map, lesson sheet and dock, navigation, board pinout, code reader, bench log, settings, progress
src/ui/Design-system pieces: Panel, Button, Terminal, SequenceDiagram, RichText…
src/ui/parts/The parts library: isometric illustrations of every component (<PartIcon name="led" />), gallery at #/parts
src/ui/stage3d/The shared 3D stage (three.js): orbit camera, toolbar, leaders, ink outlines, toon materials
src/i18n/, src/locales/Language setup and translations, one folder per language: see docs/I18N.md
src/lib/Logger, storage, theme, palette, animation loop, http, clipboard
src/styles/tokens.cssEvery colour, font and radius; light and dark themes
tools/firmware/Reads esp-labs (or an old test-esp) and ships each env's code as JSON (Vite plugin)
public/data/Bench status and log (validated with zod when fetched)
docs-llm/Offline React, React Router and TanStack Query docs used to build this (fetched, git-ignored)

Versions

All dependencies are pinned exactly (savePrefix: ""): React 19.3, React Router 8.4, TanStack Query 5.104, Vite 8.3, React Compiler 1.0, zod 4.6, three 0.186, i18next 26.4. TypeScript stays on 6.0 because typescript-eslint does not support TypeScript 7 yet.


A learning project, not affiliated with Espressif. Pin layout follows the Espressif ESP32-S3-DevKitC-1 v1.0; the labels printed on your board always win.

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.9k
Dec 2, 2026
RepositoryTypeScript
liyupi/sql-mother

程序员鱼皮编程导航原创开源项目,一款免费且纯前端实现的闯关交互式 SQL 自学教程网站(Interactive SQL Learning Platform),帮助零基础用户、程序员与数据分析师通过实战快速掌握 MySQL、SQLite、PostgreSQL 等常用 SQL 数据库语法。项目内置 30 个体系化主线关卡、15 个趣味实战自定义关卡和自由运行的 SQL 练习广场,基于 Vue 3 + TypeScript + Vite + Ant Design Vue + Pinia + Monaco Editor + sql.js(WebAssembly)+ ByteMD 构建,无需后端与本地安装数据库即可在浏览器中实时编写、格式化并自动判题,非常适合 SQL 入门自学与前端进阶实战。

4.5k
Nov 23, 2026
RepositoryJavaScript
sudheerj/reactjs-interview-questions

List of top 500 ReactJS Interview Questions & Answers....Coding exercise questions are coming soon!!

44.9k
Oct 13, 2026
RepositoryJavaScript
m3y54m/Embedded-Engineering-Roadmap

Comprehensive roadmap for aspiring Embedded Systems Engineers, featuring a curated list of learning resources

14.0k
Nov 19, 2026
RepositoryPython
platformio/platformio-core

Your Gateway to Embedded Software Development Excellence :alien:

9.6k
Nov 9, 2026
RepositoryJava
logisim-evolution/logisim-evolution

Digital logic design tool and simulator

8.0k
Dec 1, 2026
RepositoryC++
FastLED/FastLED

The FastLED library for colored LED animation on Arduino. Please direct questions/requests for help to the FastLED Reddit community: http://fastled.io/r We'd like to use github "issues" just for tracking library bugs / enhancements.

7.5k
Dec 2, 2026
RepositoryC++
bblanchon/ArduinoJson

📟 JSON library for Arduino and embedded C++. Simple and efficient.

7.3k
Nov 19, 2026
RepositoryC
lmarzen/esp32-weather-epd

A low-power E-Paper weather display powered by an ESP32 microcontroller. Utilizes the OpenWeatherMap API.

6.4k
Jul 22, 2026