My Learning Harness — Offline STEM & Circuit Toolkit
An offline STEM and circuit-engineering toolkit that generates vector schematics, checks equations and physical units deterministically, grades timed JEE mock exams, and compiles printable A4 formula sheets.
┌──────────────────────┐
┌─▶│ U1 · CIRCUIT DRAW │──┐
┌───────────────┤ │ RC/RLC · OpAmp · FET │ ├─▶┌───────────────┐ ┌─────────────────┐
│ IN1 · TOPIC │ └──────────────────────┘ │ │ U3 · REVIEW │─▶│ OUT1 · PDF/EXAM │
│ STEM Prompt │ ┌──────────────────────┐ │ │ Spaced Memory │ │ <1s A4 · Mocks │
└───────────────┤ │ U2 · MATH & UNITS │──┘ └───────────────┘ └─────────────────┘
└─▶│ Offline Verifiers │
└──────────────────────┘Why I built it
Ask a general-purpose chat model to solve a multi-loop JEE circuit or dilute-acid equilibrium, and it will eventually drop a minus sign, invent units, or sketch a short-circuited diagram. Rather than trusting probabilistic text for exam prep, I wired an offline Python and Typst toolchain where every schematic, unit check, spaced-repetition card, and mock-test score is computed deterministically.
How it works
- Circuit Schematic Generator: A Python script renders light- and dark-theme vector circuit diagrams from structured netlist specs and presets—covering RC/RL/RLC networks, Wheatstone bridges, voltage dividers, Kirchhoff loops, op-amp stages, transistors, and logic gates.
- Deterministic Physics, Unit & Chemistry Solvers: Dedicated local verifiers check symbolic algebra, physical constants, dimensional consistency, stoichiometry, dilute-acid pH (including water autoionization), and organic stereochemistry while rejecting unsafe expressions.
- Spaced Repetition, Timed Mock Exams & Typst Sheets: A local review engine schedules weak topics and exports decks directly to Anki. An exam runner compiles timed JEE-pattern tests, scores partial-marking rules, logs error categories, and typesets recurring traps into printable A4 PDF sheets in under a second.
What I tested & current scope
Everything executes locally on Apple Silicon with zero cloud API calls or heavy local LLM weights. An 18-check automated test suite validates expression sandboxing, chemistry boundary conditions, review intervals, mock-exam scoring, PDF output, and workspace diagnostics.
It is designed specifically around my own command-line study workflow on macOS rather than as a hosted multi-user web platform.
Tools & parts