How samael0-dev/transistorlab works
TransistorLab is a browser-based educational simulator. A learner uses the web interface to explore transistor switching, logic and binary addition, amplifier behavior, and artificial and biophysical neuron models; the controller calls the corresponding mathematical models and updates charts and readouts. The README also documents a gallery/lightbox capability. The sampled files show the controller-to-model calls and some model internals; other documented capabilities are included without assuming unshown implementation details.
Main entry points: app.js UI controller · index.html Application page · models.js Logic gates · assets LTspice references
Components 15
Browser interface
- Application page
index.html - UI controller
js/app.js
Digital models
- BJT switching
js/models.js - Transfer curve
js/models.js - Logic gates
js/models.js - 4-bit adder
js/models.js
Analog model
- Amplifier bias
js/models.js - Amplifier waveform
js/models.js
Neural models
- Artificial neuron
js/models.js - LIF dynamics
js/models.js
Visualization
- Chart.js
- Gallery lightbox
js/app.js - Responsive styling
css/style.css - LTspice references
assets
Other components
- Learner
Connections 18
- Learner → Application page: uses
README.md - Application page → UI controller: starts
README.md - UI controller → BJT switching: evaluates
js/app.js - UI controller → Transfer curve: requests curve
js/app.js - UI controller → Logic gates: evaluates
js/app.js - UI controller → 4-bit adder: calculates
js/app.js - UI controller → Amplifier bias: calculates
js/app.js - UI controller → Amplifier waveform: generates waveform
js/app.js - UI controller → Artificial neuron: evaluates
js/app.js - UI controller → LIF dynamics: simulates
js/app.js - UI controller → Chart.js: configures charts
js/app.js - UI controller → Gallery lightbox: provides
README.md - Application page → Responsive styling: styled by
README.md - Transfer curve → BJT switching: samples
js/models.js - Logic gates → BJT switching: uses switching model
js/models.js - 4-bit adder → Logic gates: builds from NAND
js/models.js - Amplifier waveform → Amplifier bias: uses operating point
js/models.js - LTspice references → Application page: illustrates behavior
README.md