Skip to content
Back to projects

Live

Home Electricity — interactive course

A free course on home electricity, with simulators you can break without consequences.

Year
2026
Role
Personal project, solo
Stack
Next.js · TypeScript · MongoDB · Auth.js · Tailwind CSS · SVG
Overview of Home Electricity — interactive course

Context

I took an electricity course and came away with an idea: almost everything I learned could be explained without formulas or jargon, if someone bothered to show it instead of telling it. Electricity isn't hard, it's invisible. So I built the course I would have liked to find: nine lessons, from voltage to the GFCI, for anyone who just wants to understand what happens inside their walls.

The problem

There's nothing to point at: a text about Ohm's law helps little if you can't see what happens when you raise the voltage. And on top of that, asking someone to sign up before letting them try anything scares them off.

The solution

Nine simulators where you manipulate a circuit and watch the result: Ohm's law as a water tank, a bulb that burns out, a breaker that trips. All of them in SVG with React state, no libraries. And the whole course can be taken without an account: a guest's progress is saved in the browser and imported on sign-up.

Technical decisions

  • Guest progress stores the answers, not the score: the server recalculates on import. Otherwise editing the browser would be enough to unlock everything.
  • Lessons live in the code, not the database: they're versioned with git and each simulator is an ordinary component.
  • Unlocking is verified on the server with a single query covering all nine lessons, not one per lesson.
  • Anyone who already completed a lesson keeps access even if the course order changes: nothing already earned is taken away.
  • The entire domain is named in Spanish: the project reads like the subject it teaches.

Results

  • Nine lessons and nine simulators published and reachable without an account.
  • The course can be taken end to end as a guest, and the progress survives signing up.
  • Deployed on its own domain, after solving the reverse proxy that broke Google login.

Project screenshots

Click any image to enlarge it.