BetterSPICE

mcp
Guvenlik Denetimi
Basarisiz
Health Gecti
  • License — License: NOASSERTION
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 102 GitHub stars
Code Basarisiz
  • rm -rf — Recursive force deletion command in .github/workflows/macos.yml
  • rm -rf — Recursive force deletion command in codemagic.yaml
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Free, open-source circuit simulator that runs while you draw. Wires show their voltage live, and full SPICE analyses match ngspice. Windows, macOS, Linux and the browser. KiCad, EasyEDA and LTspice import, MCP server for AI agents.

README.md

BetterSPICE, live circuit simulator

A circuit simulator that runs while you draw, and answers to ngspice when you need the number.
Wires show voltage and current as you edit, and microcontrollers run your program inside the circuit.
One key runs a full transient, AC or DC analysis on the same schematic.
A native app for Windows, macOS and Linux.

engine: Rust and WebAssembly runs on Windows, macOS and Linux status: 1.0.0
4,647 of 4,647 signals within tolerance of ngspice 160,807 vendor models 1,000 examples

Download BetterSPICE

Run the full app in your browser: app.bspicesim.com (free, nothing to install)

Website: bspicesim.com · Online manual · Calculators

EasyEDA Spark 2026     EasyEDA
BetterSPICE started as the simulator for my EasyEDA Spark 2026 project, a 15 V / 3 A power analyzer designed in EasyEDA Pro.
Thanks to EasyEDA and EasyEDA Spark. EasyEDA Pro schematics import straight into BetterSPICE.

Live view · Accuracy · Vendor models · Microcontrollers · Get it


A buck converter regulated by a program: the controller's code is open in the inspector while the switch node, output and inductor current run on the scope

A buck converter with no analog control loop. U1 runs the program in the inspector: it samples the output 20,000 times a second, runs a PI loop and sets the 100 kHz PWM that holds 12 V down to 5.00 V. Recorded from the real app.

In BetterSPICE the circuit runs from the moment it has a source and a ground. Wires take the colour of their voltage, dots show the current, and the scope and every part's volts, amps and watts update as you edit. Press F5 and the same schematic goes through a full transient, AC or DC analysis, with results checked against ngspice.

5,767 of 5,767 signals of 455 test circuits pass, 4,647 of them against ngspice 160,807 vendor SPICE models from more than 70 manufacturers 1,000 example circuits that open and run, every part type in at least three
144 frames a second on the scope, measured on the Windows app at 1600 x 1000 132 part types in the Part Wizard, from a resistor to a stepper driver 5 systems: Windows, macOS on Apple Silicon, Ubuntu, Arch and NixOS

Version 1.0.0, for Windows, macOS (Apple Silicon), Ubuntu, Arch and the AppImage, with NixOS following shortly (it stays on 0.9.0 until then). 1.0.0 adds Report a problem (desktop and web app), physical quantities as signals (a motor's speed, a relay's armature, a thermistor's temperature), duty cycle in %, nearly 2,000 more vendor models in the live view, recovery after a crash or an update, a daily signed update check and datasheet-checked marks on 9,294 models, after a bug hunt and code review that fixed more than 80 problems. 0.9.0 opened SPICE netlists, Multisim and Altium designs and made the live view equal Simulate to the last digit. The full app also runs in a browser at app.bspicesim.com: the same window, live view and analyses on the built-in engine, nothing to install (see In your browser). 0.8.2 brought the website, bspicesim.com, with the manual online and the calculators, share links that open there, and the installed app in a browser tab. 0.8.1 gave each of the 17 calculators an Advanced view. 0.8.0 was the beta test release: a full test suite of 52 entries checks every release. The accuracy figures were run again on 0.9.0 on 20 November 2026: every one of the 438 test circuits and 74 parameter circuits passes, and the live view equals Simulate on all 1,000 examples.

Live, from the first wire

An active high-pass filter running: wire colour shows voltage, dots show current, the scope shows input and output

An active high-pass filter, running. Select any part and change its value while the simulation runs, and the waveforms follow. Keys 1 to 4 change the speed and Ctrl+R runs or pauses, a dragged slider ramps the value in run time instead of jumping once per screen frame, and a capacitor keeps its voltage and an inductor its current when you edit its value while the circuit runs, so a 50 Hz rectifier and a 1 MHz converter can both be watched at a pace you can follow. When a circuit is too heavy for the timebase you set, the toolbar says how fast it really runs, and Live quality Balanced or Fast keeps the timebase at reduced accuracy, always with a banner that says what changed. A slider's Min, Max and Log stay with its part until the part is deleted, through Undo, copy and save.

The wires use one voltage scale from 1 mV to 1 kV, so the same voltage always has the same colour: pale yellow for millivolts, through lime to green at 48 V, then teal into blue past 50 V, and red to purple for negative voltages. A lighter wire always means a smaller voltage. Current dots grow from small dots into long dashes as the current rises and only race for large currents. View > Live look switches back to Classic at any time. A slim legend shows the scale and marks the wire under the pointer, pointing at a pin shows its voltage, current and the part's power, and after an operating point (F9) the DC voltages and currents can be written on the schematic.

The live engine is written in Rust and compiled to WebAssembly, and the desktop app also runs it natively for big boards. It solves the circuit with modified nodal analysis and Newton iteration, using ngspice's device equations, and needs no setup to start. The live view starts on exactly the step Simulate takes, so at the same step the two give the same points, and the test suite checks the live view against Simulate and the native engine against WebAssembly on every example, 8,573 checks in the 1.0.0 run. Where WebAssembly is not available, a JavaScript engine takes over, and in 0.8.0 it runs the parts with the Rust engine's own device equations.

The new live look on a push-pull inverter: 12 V wires green, the 120 V output blue, current as dashes
The New look on a push-pull inverter: the 12 V side green, the 120 V output blue, the heavy primary current as long dashes.
The same circuit in the Classic look
The same moment in the Classic look, colours scaled to the circuit and even dots.
The Inspector of a square source with Levels, Timing and Edges headings
The Inspector groups values under Levels, Timing and Edges, resets a changed value to its default, and the arrow keys nudge the focused value.
The empty scope suggesting key nets to probe
A circuit without probes gets its key nets suggested in the empty scope, once, with Add these and Not now.
The overview minimap in the corner of the canvas
A minimap for large schematics, and a Measurements table you can filter by part.
The status bar
The status bar: engine, step cost, render rate, and plainly what the last run used and what runs in parallel.

Big boards and the spread of your parts

An RC low-pass fed with 200 Hz and 20 kHz, running with the tolerance band on: the input and output traces have a shaded band for the range they take with the parts at the ends of their tolerance, and the scope says Band 4 of 4 corners

View > Tolerance band (off by default) shades the range each scope trace takes with the parts at the ends of their tolerance, while the circuit runs. Extra live engines, one for each corner and each in its own worker, follow every edit and never run ahead of the trace. Resistors default to 1 %, capacitors to 10 % and inductors to 20 %, and the label in the scope says how many corners it ran.

A circuit of 100 parts or more runs its live view on the native engine in the desktop app. On a 578-part board that is about 1.4 times as fast as WebAssembly, with the same frames bit for bit, and the status bar then reads Live MNA · native. The schematic is drawn again only when something on it changes, and the current dots draw on the graphics card, so the app uses far less of the machine.

The status bar of a 151-part RC ladder: Live MNA native, running

Press F5 for the measured answer

A transient analysis with several traces

Simulate runs the accurate analysis on the schematic in front of you: transient (F5), AC sweep (F7) and operating point (F9), with DC sweep, FFT and parameter step beside them. Results open with cursors for reading values off the plot. Noise, Pole-zero and Loop gain sit beside them, each checked against ngspice. Leave the maximum step on Auto and Simulate picks it from the circuit (its sources, edges, PWM set in code and time constants) and says why. An oscillator that sits exactly balanced, as a perfect simulation can, is offered a start-up kick of a few microvolts.

AC sweep with gain and phase
AC sweep of the active high-pass filter: gain and phase.
FFT of a Wien-bridge oscillator
FFT of a Wien-bridge oscillator, with its harmonics in view.
An AC sweep stepped across several part values
Parameter step: one AC sweep for each value of a part.
Split view with the schematic above and the analysis below
Split view: Alt+click a net on the schematic and its trace joins the plot.
Noise analysis of a common-emitter amplifier: density, each part's share and the integrated noise
Noise: output density, each part's share and the noise integrated over a band. Equal to ngspice .noise.
Pole-zero analysis: an s-plane plot and a table of poles and zeros with frequency and Q
Poles and zeros with frequency and Q, each result checked against an AC solve.
Loop gain of an op-amp driving a capacitive load: crossover 178 kHz, phase margin 20.9 degrees
Loop gain without breaking the loop: crossover, phase margin and gain margin.
Assign model comparing three MOSFET models' curves and key figures
Compare two or three models' curves and key figures before you assign one.
The Simulate setup with the maximum step on Auto and its reason
Auto maximum step, with the reason it chose that value.
The offer to kick a balanced oscillator into starting
A balanced oscillator that sat still: Kick it, or always kick oscillators.

Digits and axes

A 15 V signal with a ripple of a few microvolts: the Y axis writes the base 15.0579 V once and labels the ticks as offsets in microvolts, the Digits control in the legend strip is set to 6 and the hover box reads 15.0580 V

Digits sets how many significant digits the readouts show, Auto or 3 to 9, in the Analysis, the Split view, pop-outs and every scope: the hover box, the cursors, the chips, the signal list, the statistics, the operating point table and the named measurements of the Analysis. The live Measurements panel beside the Inspector keeps its own short values. It changes only what is shown, and CSV export and Copy as table write every digit. An axis never shows the same label on every tick: when a large value moves by a tiny amount, the base is written once in the corner and the ticks show the offset from it, on the time axis too.

Plots on the graphics card

The View menu with Plot drawing open: Automatic, Graphics card and Processor
View > Plot drawing: Automatic, the graphics card or the processor.
The notes chip at the end of the plot legend, opened into a panel of notes about the result
Notes about a result sit in one chip at the end of the legend and open in a panel.

The Analysis plot draws on the graphics card (WebGL2): up to 144 frames a second with 100 traces, from the same lowest and highest value of each pixel column, so the picture does not change. View > Plot drawing picks Automatic, Graphics card or Processor, and the processor takes over where the card is missing or fails. Big boards also simulate faster, about 15 % in 0.5.0 and about 15 % again in 0.6.0 on a 578-part board, and in 0.7.0 the devices are loaded by whichever thread is free and added in the same order, with the serial or the parallel load chosen by measured speed. Every result stays the same to the last bit. A big result needs about 40 % less memory on its way to the plot.

Notes about a result, such as a node held only by leakage or a switch to Gear after ringing, are one small chip at the end of the legend, for example "4 notes". Click it to read them in a panel. A note never covers the traces.

The Newton predictor (Simulate > Newton predictor, off by default) starts each time step's Newton solve from a point extrapolated from the last two steps. Measured on 92 circuits, it was not faster on most of them, up to 1.55 times as fast on smooth analog circuits, and it changes results slightly. So it stays off unless a long analog run needs it. A run made with it says so in its header, and bspice verify always runs exact.

Long runs and many signals

All signals on a class-D amplifier: a list of 25 signals beside the plot, seven of them plotted, with the values at the pointer

All signals opens a list of every net voltage and part current beside the plot. Type in the filter, pick voltages or currents, and click a row to plot it. Each row shows the value at the pointer, and hovering it marks the net on the schematic. Drag rows onto a chart, or onto New chart to make one, and Delete or a trace's x takes it off. A plot of 100 and more traces stays quick, and the hover box lists the traces nearest the pointer. The Analysis view also pops out into its own window, with the schematic in the main one.

The notice before a long run: up to about 35 minutes for 200,000,000 steps and 30.4 GB of data, the memory it needs, with Run, Keep less, Gear and Cancel

Before a long or data-heavy transient starts, Simulate says how long it will take and how much data it holds, with Run, Keep less, a faster Gear setting or Cancel. After a circuit's first run the estimate uses its measured speed. Run keeps every signal at every step, gigabytes too (a 2.4 GB run of 12 million steps takes about a minute), and the notice says when that needs more memory than is free. Keep less keeps the probes at every step and the other signals as the lowest and highest value of each short time slice, only when you choose it. While a long run goes, the plot draws the waveform so far with the percentage and the time left, and Export CSV writes every row of the result.

A run of vendor models in ngspice gets the same care. From a few percent into the run its final size is projected from the points so far, a warning shows while it heads for a big result, and a run that would pass the memory limit stops with its figures and Keep less one click away. The result is held once on its way to the plot, so a mains flyback with every step kept needs 3.1 GB where it needed 11.6 GB.

Tolerance, measurements and probes

A tolerance analysis of an RC filter: 200 runs drawn over the nominal curve, a histogram of the minus 3 dB frequency, the yield and the parts that matter

Tolerance analysis (Shift+F9) repeats a transient, AC sweep, DC sweep or operating point with the part values drawn inside their tolerances. Above, 200 Monte Carlo runs of an RC low-pass: the cloud of curves behind the nominal one, the spread of the -3 dB frequency as a histogram, the share of builds inside the limits you type, and a bar for each part's share of the spread. Worst case sets every part to an end of its range instead. Besides resistors, capacitors and inductors, about 20 more kinds of parts take a tolerance on the numbers a datasheet gives with one: regulator and reference voltages, op-amp and comparator offsets, LED and diode forward voltage, crystal and oscillator ppm, transformer ratios, 555 thresholds, thermistors, sensors, solar cells and converters. A part is varied only when it sets the value. The same seed gives the same runs in the app and in bspice.

Temperature and corners: Parameter step (Shift+F7) steps the circuit temperature (for example -40, 25 and 85 °C) or runs the supply low, nominal and high at each temperature, overlaid and labelled, with the measurements of each run. The circuit temperature reaches every part whose model depends on it, and matches ngspice.

Bypass a part (Ctrl+Shift+D, the right-click menu or the Inspector) leaves it out of the simulation without deleting it: open is the part not fitted, short is a wire across a two-pin part, and the result is exactly that of the circuit edited that way.

Named measurements (rise time, overshoot, settling, ripple, -3 dB frequency, phase margin, efficiency and more) take limits and say PASS or FAIL after every run. Keep as reference draws an earlier run dashed behind the next one.

One probe set to voltage and current: its volts and its amps on two charts of the scope
A probe can measure voltage, current or both. Both puts one trace of each on the scope, the volts and the amps on charts of their own.
The FFT tab with peaks, harmonics and distortion readouts
The FFT tab on the scope: window, averaging and units, with peaks, harmonics, THD, SNR, SINAD, SFDR and ENOB of the strongest tone.
The energy view on a buck converter: bands of power on the wires and a loss ledger
The energy view (Alt+E): bands of power on the wires, parts that give and take power, and a ledger of input, output, losses and efficiency that must balance.
The summary page of a generated report with measurements, limits and verdicts
The report covers every analysis you ran: measurements against limits, the tolerance yield, ratings and the convergence notes, in one HTML file.

When a run does not converge, the engine retries with other settings (a patient DC solve, a larger gmin, Gear-2, a smaller step) and a warning says which one worked. Parts that run over their power, voltage or current rating are marked while the circuit runs.

Checked against ngspice, signal by signal

bspice verify runs the same circuits through the BetterSPICE engine and ngspice and compares them point by point. A part that ngspice has no element or model for, such as the microcontroller, a control script or a behavioural block, cannot be compared with it. Such a circuit is checked against a closed form or a datasheet window instead and is counted apart, never as an ngspice pass.

Result on 28 November 2026, 1.0.0
Circuits (verification/circuits) 455 of 455 pass
Analyses 858 of 858 pass
Signals 5,767 of 5,767 pass: 4,647 against ngspice, 1,120 against a closed form or a datasheet window
Part parameters (verification/params) 74 of 74 circuits, 117 of 117 analyses, 417 of 417 signals pass
Examples (bspice verify examples --all) 238 of 238 examples compared point by point, 4,221 of 4,221 signals in 565 analyses pass. The other 762 of the 1,000 hold approximate-class or vendor parts and are skipped, with the parts named
Live view (tools/qa/live) 992 of 1,000 examples: the live view equals Simulate at every step, to the last digit. The other 8 are named in the test: 7 use the Gear method, which the live view runs as trapezoidal, and one result is too big to compare. In all, 8,573 checks of the live view against Simulate and of the native engine against WebAssembly pass, 0 fail, 115 are named skips
Analysis Tolerance
Transient Within 0.1 % of the ngspice signal's range, at every point
AC Within 0.01 dB and 0.1 degrees
DC sweep and operating point Every point within the operating-point tolerance

How close the two simulators are, measured on 1.0.0 (29 November 2026) with both at the suite's reltol of 1e-6:

Analysis Signals Median 95 % within Largest
Operating point, relative 1,098 0 (603 identical to the last bit) 1.3 × 10⁻¹² 2.1 ppm
DC sweep, relative 852 1.4 × 10⁻¹⁶ 0.92 ppm 25 ppm
AC magnitude 717 0 dB 6.3 µdB 8.22 mdB
AC phase 717 0° 0.0000084° 0.044°
Transient, of the signal's range 839 2.0 × 10⁻¹¹ 327 ppm 867 ppm

The transient row covers the signals that are not flat. 85 signals with fast edges are compared by their charge between source corners (median 0, largest 270 ppm of the largest window), and 19 signals where ngspice is wrong are bounded in their sidecars.

The report does not hide the hard cases. A pass that needs more than the plain comparison is marked as such: ngspice run at a tighter tolerance because its own answer had not converged, error confined to fast edges, or a signal where ngspice is the one that is wrong, proved against an independent reference. The rules are in docs/VERIFICATION.md, and you can run the suite yourself:

bspice verify verification/circuits

Vendor models get the same treatment across systems. A TI TLV9062 follower, with 1 V in and a 5 V supply, reads 1.00011272134857 V on Windows, Ubuntu and Arch, and 1.00011272134821 V on NixOS with its older ngspice. That is a difference of about 0.36 picovolts.

Checked against two other simulators. The same netlists went through BetterSPICE, ngspice 47 and LTspice 26.1.1 (batch mode): 271 verification circuits and 193 example circuits, 1,061 analyses in all. BetterSPICE ran 1,060 of the 1,061 to the end with its convergence rescue switched off, the same footing as the other two, and 1,061 with it on (the rescue retries a run that failed to converge with other settings, such as a patient DC solve, a larger gmin or a smaller step, and it fired once). ngspice did not finish 8. LTspice was not run again for this release: its column holds the runs of 8 November 2026 for the 678 analyses whose netlist is byte for byte the same as then, and leaves out the other 383. The agreement row uses a strict point-by-point rule that is stricter than bspice verify, which passes every signal of the suite, so a lower count here is not a contradiction. Within that strict rule BetterSPICE matches ngspice in 929 of 1,052 analyses and LTspice matches ngspice in 420 of 672 (ten times looser: 983 and 528), because LTspice's device models differ from ngspice's. Method, failure messages, versions and limits are on the comparison page.

BetterSPICE (rescue off, like ngspice and LTspice) BetterSPICE (default, with rescue) ngspice LTspice (runs of 8 November 2026, unchanged netlists)
Netlist read (1,061 analyses) 1,061 1,061 1,061 675 of 678
Ran to the end 1,060 1,061 1,053 675 of 678
Within the strict verify tolerances of ngspice 929 of 1,052 930 of 1,053 reference 420 of 672
Median time per run, process start to exit 0.06 s 0.06 s 0.08 s 0.51 s

How accurate is it, and what that does not mean

Three different checks, kept apart (the full statement, with the numbers and the dates, is in docs/VERIFICATION.md):

  • The engine against ngspice: the table above. 5,767 of 5,767 signals in 455 circuits, re-run with bspice verify verification/circuits. A part ngspice cannot simulate is "not comparable", never an ngspice pass and never a failure.
  • A model against its datasheet: the datasheet program is running and the number grows. In the 1.0.0 catalog, 9,294 of the 160,784 models (5.8 %) carry a datasheet record: 1,867 pass every figure that could be checked, 7,168 pass the figures that could be checked with others not checkable yet, 259 are flagged after a person confirmed the figure on the sheet. Everything else in the library carries the "works" label only: it simulates and gives plausible values for its kind, which is not "matches the datasheet".
  • Passives are checked against the value in their part number, not against tolerance or temperature curves.

Known limits are listed under Known limits. A bug found by comparing with ngspice or a datasheet is welcome: Help > Report a problem.

160,807 vendor models, ready to assign

The Assign model dialog listing MOSFET models from the library

Search the whole catalog from the library panel, filter by source or by verified models, and assign a part's model with its parameters in view. Each family opens into outlined groups, each with its symbols and its vendor models apart: every model is listed once, in its own group (switching regulators apart from LDOs, passives by kind, logic by function), verified models first, and Show all opens the whole group with its own search and maker filters. The catalog covers Texas Instruments, Analog Devices, Infineon, Vishay, Murata, Würth Elektronik, Rohm, NXP and more than 60 others.

The Full package carries the library itself: 207,849 files, about 3 GB. BetterSPICE runs those subcircuits in ngspice 47 and converts LTspice, PSpice and HSPICE dialects on the way in.

Models from several vendor libraries work side by side in one circuit: each library gets a namespace of its own, so two TI op-amps whose libraries both define a helper of the same name each run their own. A .lib card with a section reads that section, a PSpice LAPLACE block runs the coefficients each instance sets, and LTspice's OTA converts with its documented current limits. Where ngspice finds no operating point for a macromodel and falls back to its power-up state, as TI's OPA2990 family can, Simulate finds the operating point by Newton iteration from that state and starts the transient, the DC sweep or the AC analysis there. The UC3843 converter examples run live on stand-ins fitted to the vendor model, and the test suite holds them to Simulate of that model.

The parts library: Passives open, groups outlined with Symbols and Models
The library: each group outlined, its symbols and its vendor models apart.
Show all for op-amps: search, maker and source filters, verified models first
Show all for one group: 6,280 op-amps with search and maker filters, verified first.
Quick model: datasheet numbers on the left, fitted parameters on the right
No model for your part? Type the datasheet numbers and get fitted parameters beside them.
The Part Wizard's pins and package step
The Part Wizard turns a datasheet into a reusable part, with its pins, package and symbol.

Vendor models show their key figures in the inspector and the model dialog (gain-bandwidth, slew rate, dropout, Rds(on) and so on), each marked as measured on the model, fitted, read from the model card or taken from the datasheet.

The Part Wizard covers 132 part types with 1,310 fields. Each one offers only the packages it really comes in: an LDO gets TO-220, SOT-223, SOT-89 and DFN, and a resistor gets 0402 to 2512. It checks your values as you type, draws or imports a KiCad symbol, and saves a .bspart file you can share. Its Curves step takes a datasheet graph as typed rows, a pasted table, or a digitized image, and fits the model to the points where the model can use them.

The Part Wizard digitizing an image of a capacitance graph: two ticks per axis are calibrated and the curve is traced

Parts can also carry a package and a rating. A 1/4 W resistor running at 1.2 W says so on the canvas while the circuit runs.

Datasheet curves, rails and real fuses

Some values on a part are a curve, not one number: a capacitor's capacitance against DC bias, an inductor's inductance against current, a battery's voltage against charge, an LED's I-V curve, a comparator's delay against overdrive, a reference's voltage against temperature and a converter's INL. The curve editor in the Inspector shows the points as a table with a preview plot. Type into a cell, paste two columns from a spreadsheet or a datasheet table, or take the whole table as text, and every change is one undo step. Passives, sources, diodes, transistors, references, op-amps, comparators, regulators, logic, timers, controllers, converters and solar cells also have more of their datasheet numbers as values (temperature coefficients, noise, series resistance, delays, soft start, foldback and more). All of them are off until a part sets them, and a circuit that does not use them gives exactly the numbers it gave before. A part with a thermal resistance (diodes, LEDs, transistors, regulators, references and op-amps) heats itself, and its junction temperature is solved with the circuit. The four controlled sources take a POLY form. The ngspice export, used when you run vendor models or ask for a netlist, now covers comparators, 555 and 556 timers, regulators, LDOs, supercapacitors, ferrites, crystals and varistors, and a power MOSFET keeps its on-resistance against temperature and its gate charge. The list is in docs/DEVICES.md.

In 0.8.0 the values a part's documentation names all act, each proved by a new test circuit against a closed form, a datasheet or ngspice: a ceramic capacitor's DC bias and rated voltage, a trimmer's position, an inductor's saturation current, a relay's datasheet operate and release times, CD4000 delays that follow the supply, the 74LS output high level, an instrumentation amplifier's offset, an OTA with no bias current, an LDR's dark resistance, CAN and RS-485 drive into their bus loads, a power MOSFET's typed Rds(on) and an IGBT's Cres. A part with a thermal capacitance heats step by step, a synchronous boost IC rectifies through the body diodes of its switches, and a +5V and a -5V flag in one circuit each drive their own rail. The voltage-controlled switch now exports to ngspice and is compared with it point by point.

A power flag with a voltage is a source: place Rail +5V, +3.3V, +12V, -12V or -5V from the library or the Place menu, or give any flag a voltage in the Inspector, and its net is driven by one ideal DC source against the main ground. All flags of one name share that source.

Fuses follow their datasheets: very fast, fast and slow families and breakers with a time-current curve and a melting I²t, a visible pop when one blows, a rating warning when the current at the blow is above the breaking capacity, and Replace fuse or Reset breaker on the part. A resettable PPTC fuse follows its datasheet, also at high current, and the catalog has real fuse parts to place.

Probes take a name of your own (double-click the tag on the canvas, or the Name field in the Inspector). The name and one stored colour follow the probe into the scope, every analysis, the measurements, the report and the agent tools.

Calculators

Press Ctrl+Shift+C (or Tools > Calculators) from anywhere, type a word such as "filter", "led", "via" or "dB" and press Enter. There are 17 calculators: voltage divider, low-pass and high-pass filter, LC resonance, reactance, time constant and attenuator pads, LED resistor, op-amp gain, 555 timer, buck and boost stage, crystal load capacitors, heatsink and junction temperature, PCB trace current and width, via current and parasitics, trace impedance, wire gauge and fusing, and dB and unit conversion. With parts selected, the picker offers the calculators that fit them, with their values filled in. A button beside a field works that value out from the others, the formulas and drawings sit beside the result, and a value outside the range of a method gets an amber warning. The voltage divider solves any one of Vs, R1, R2 and Vout from the other three, with the divider current, the power in each resistor, the output resistance, the nearest E24 and E96 values and an optional load. Fields take engineering input such as 4k7, 1.5M and 3V3, and a value typed with its own unit keeps that unit whatever the field's unit menu shows.

A calculator can place the circuit it worked out, drawn with library symbols and wires with its source and probes, and run the analysis that checks it. It can also write its result into the parts you selected. Each is one undo step. The PCB calculators use IPC-2221 and IPC-2152, and the differential impedance figures are the IPC-2141A estimates, not a field solver, and the window says so.

The Inspector of a ceramic capacitor with its capacitance against DC bias as a table and a preview plot
The curve editor: a ceramic capacitor loses capacitance under DC bias. Type the points, paste two columns, and the preview shows the curve.
A +5V power flag selected: the Inspector shows the voltage the flag drives onto its net, and an LED circuit running from it
A power flag with a voltage drives its net: a +5V rail, a resistor and an LED, and no source drawn.
Three fuses on the same overload: two blown and drawn open, the third still carrying current, with Replace fuse in the Inspector
Very fast, fast and slow fuses on the same overload. The first two have blown and say so, and Replace fuse puts a new one in.
The voltage divider calculator solving R1 for 3.3 V out of 5 V with R2 10 kOhm: R1 5.15 kOhm, the nearest E24 and E96 values, the current and the power in each resistor
The voltage divider solves for any value: here R1 for 3.3 V out of 5 V, with the nearest E24 and E96 values.
The keyboard shortcuts page: every command with its key and an Edit button, Reset all to defaults at the top

Every shortcut can be changed: press ?, then Edit on a row and the new keys. A key another command already has asks before it moves, and Reset all to defaults puts them all back.

One transformer, three outputs

A flyback converter with three secondaries running live: +12 V, -12 V and +5 V outputs on the scope

A flyback with one 24-turn primary and three secondaries of 12, 12 and 5 turns on one gapped core. From a single 24 V input and one switch it makes +12.2 V, −12.3 V and +4.7 V, and the scope shows the drain voltage and the primary current while it runs. Change one load and the other two rails move with it, because they share the same stored energy. Transformers take turns ratios, leakage and magnetising inductance, and windings can have taps, as in the tapped-secondary examples.

Microcontrollers in the loop

Two microcontrollers over UART: a byte from one sets the LED brightness on the other

Two MCUs talking over UART: the byte from U1 shows in the Console and sets the LED brightness on U2. The mcu part runs a program in BetterSPICE's own small language against real pin voltages, with GPIO, edge interrupts, ADC, DAC, PWM, timers, UART, I2C and SPI masters and CAN. An ADC reads the actual voltage on its pin against the actual supply, so a sagging rail shows up in your readings.

The code can be written in the style of Arduino code, with pinMode, digitalWrite, analogRead, every and on(BTN, FALLING, debounce: 20ms), and pins can carry names of your own (pin VOUT = PA0 analog 12bit). The editor completes pin names and says what a pin reads now. While the circuit runs the pins on the symbol show their state: red high, blue low, grey floating, orange PWM, green analog. The Code tab exports an Arduino sketch or an STM32 HAL file as a starting point.

An MCU running: named pins on the symbol coloured by state, and its code with the pin map

Click a line number in the Code tab to set a breakpoint: the whole circuit stops at that instant, and Step, Continue, Pause and a variables panel take you through the program, one MCU or several. It does not run compiled firmware. docs/MCU_PERIPHERALS.md lists what is emulated and what is not.

A digital PI buck converter with its code and console output
A digital PI loop closing a buck converter, written in the Code tab, with log() output in the Console.
A binary counter driving LEDs with the Logic tab open
A binary counter driving LEDs, read on the built-in logic analyser.

Real schematics, real boards

Two isolated grounds on one schematic
Isolated grounds: the probe names say which ground they measure against.
Inside a hierarchical sheet
Hierarchical sheets, with a breadcrumb back to the parent.
The import report after a KiCad import
Import KiCad 6 to 10, EasyEDA Pro, LTspice, Altium and Multisim designs and SPICE netlists. A report lists what matched and what needs you.
The app in its light theme
The light theme.
Grounds, test points, power flags and connectors, each in four turns
Everything rotates: grounds, test points, connectors and power and rail flags, alone or in a selection.
The File menu with Reopen the last session on start ticked
The tabs of the last session open again at the next start. File > Reopen the last session on start turns it off.

Every part turns with Space and mirrors with Ctrl+E, and keeps its turn when copied (when a button has the focus, Space presses that button instead). Paste, duplicate and a part you place land centred on the pointer, and a wire you draw goes exactly where you drew it and joins the pins and wires it crosses. The app starts where you left off: saved files are read again from disk, and examples and unsaved circuits come back still marked unsaved. The window fits a small laptop screen, down to 1024 x 640.

LTspice's astable multivibrator imported: its symbols and wiring on the schematic, two 2N3904 transistors, and a transient where the oscillation starts and settles

LTspice schematics (.asc) come in through File > Import or by dropping the file on the window: parts, wiring, LTspice's own symbols and the SPICE models the schematic names, from its .model lines, the files it includes and LTspice's standard libraries. On LTspice's 61 example schematics the imported connections match LTspice's own netlists, and every part has the model LTspice uses for it. Above, its astable multivibrator with two 2N3904s, simulated. Any part's pins can also be moved as in a symbol editor (Inspector > Symbol > Move pins), and text notes are typed in place on the schematic.

Altium, Multisim and SPICE netlists come in the same way. An Altium schematic (.SchDoc, a .PrjPcb project or a .zip of its folder), a Multisim design (.ms11 to .ms14, Multisim Live exports too) or a SPICE netlist (.cir, .net, .sp, .spi, .spice, .ckt) arrives as a drawn schematic with wires, and its Import report lists every part as matched, approximated or not imported. Netlist values such as 4k7, 10UF and 1MEG read as SPICE reads them.

Most imported boards draw straight away. Fewer solve a DC operating point on the first try, and the Diagnostics tab names the part and the fix. A bare resistor value in a KiCad or EasyEDA schematic is read as ohms (500 is 500 ohm, not a marking code), and a damaged or oversized EasyEDA archive gives a short message. File > Generate report writes one self-contained HTML page with the schematic, the parts against their ratings, every analysis you ran, the tolerance results, the spectrum and the diagnostics. While it runs, a panel shows which step it is on, a bar, the time so far and Cancel, and when it is done it asks where to save the page.

The Generate report dialog: ten sections with a tick each, which ones have a result, and Run what is missing
Pick the sections. The dialog says which analyses have a result and can run the missing ones first.
The report progress panel: step 3 of 4, the tolerance analysis at run 38 of 200, a bar and Cancel
The report being made: step 3 of 4, the tolerance analysis at run 38 of 200, with Cancel.

File > Share link puts the circuit into a web address on bspicesim.com/view/ and copies it. Whoever opens it sees the circuit running in a browser viewer with the scope, sliders and inspector, and can draw wires, delete, undo and redo (W, Del, Ctrl+Z, Ctrl+Y), on a phone or tablet too. Nothing is uploaded: the circuit is inside the link. The website's browser demo runs the same viewer with twelve circuits, and app.bspicesim.com runs the whole app. Export interactive HTML saves the viewer, the engine and the circuit in one file of about 3.7 MB that opens by double-click.

An AI agent on the same schematic

An agent at work: the top bar says what it is doing, its cursor marks the part, and Activity logs each edit

Connect Claude Code through bspice mcp, or any tool through the WebSocket control API. The agent edits the circuit you have open: the top bar says what it is doing, its cursor marks the part, and the Activity tab logs each edit. You can see every change as it happens.

Scripts and agents without MCP use the same tools from the shell: bspice app add-part res --at 10,0, bspice app simulate tran --stop 10m, bspice app screenshot -o shot.png. Each command prints JSON, and bspice app help lists them all.

Drawing for the user. Whatever an agent draws where you will see it follows the rules an engineer would: library symbols instead of boxes, real part numbers for generic transistors and op-amps, wires instead of nets tied together with labels, and no shorts or wires through parts. An edit that breaks a rule is refused with the fix, and check_drawing runs the same check on any file. The rules are in docs/AGENT_API.md.

Safe for scripts. A transient that would not fit in memory is refused at once with E_MEMORY and the ways out (--max-step, --stop, --probes, --max-memory), and --timeout stops a run in time, on the command line and in MCP alike, with every step of a run that fits still kept. Agents that edit one file at the same time keep every edit: bspice app --file locks the file for each edit, and an MCP session never saves over a file another session changed. No command writes its output over the circuit it reads. bspice validate catches a missing vendor library, a net label that looks misspelt (VCX for VCC) or leaves a part with nothing connected, a wrong format version and absurd model values before a run starts, and a part placed headless is the library part, with its pins, variant and catalog defaults.

1,000 circuits to start from

The example browser

Press E. The examples run from a voltage divider to switching converters, PLLs, motor drives, transmission lines, data converters and gate-level logic, in 40 categories. Among them are 8 regulators built on real vendor chips and 50 circuits that are usually built wrong, each with the right way and the common mistake side by side. Each one comes with notes on what it does, how it works, what to watch and what to try, and every part type is in at least three of them. F1 opens the user guide, and the guided tours walk you through the app.

Get BetterSPICE

New here? docs/QUICK_START.md takes you from the installer to a first circuit and a first simulation in about ten minutes. Installing, the Windows SmartScreen and macOS Gatekeeper steps for the unsigned builds, libfuse2t64 for the AppImage on newer Ubuntu, requirements, where your settings and logs live and how to uninstall completely are in docs/INSTALL.md.

The website, bspicesim.com, has the online manual and the calculators. In the app, Help > BetterSPICE website opens it.

In your browser

app.bspicesim.com is the same program as the desktop app, running in the browser on the built-in engine. Free, nothing to install. Install the desktop app for the full vendor library and the full experience.

Runs in the browser Desktop app only
The editor, live view, scope, logic analyzer and inspector The full vendor library (160,807 models) and ngspice: the browser app has about 600 open-licensed models
Simulate on the built-in engine: transient, AC, DC, noise, pole-zero, loop gain, FFT Save in place to your own folders
Tolerance and Monte Carlo The full HTML report
Microcontrollers and the MCU debugger AI agents and the MCP server
All but 8 of the examples, the 17 calculators and the Part Wizard Full speed on large boards: up to about 1.4x faster than the browser
Import KiCad, EasyEDA Pro, LTspice, Altium and Multisim schematics and SPICE netlists
Autosave, open a file, save as a download, share a circuit as a link

Install

Every file below is on the releases page, with a SHA256SUMS.txt beside it.

Full includes the vendor model library. App only is the program alone, and the library can be added later. Every installer is 0.5.0, on every system: install one, then Help > Check for updates brings it to 1.0.0 in one step.

System Full App only Updates
Windows 10 and 11, x64 Full setup 0.5.0, 1,054 MB, with TI's PSpice part library. Setup 0.5.0, 90 MB. Library later: Model Library setup, 900 MB In the app
macOS 11 or later, Apple Silicon Full installer 0.5.0, 841 MB: the app in Applications and the library in one install .dmg 0.5.0, 70 MB In the app: the whole app, 70 MB. The library stays
Ubuntu 24.04 and other Debian-based systems Full .deb 0.5.0, 839 MB .deb 0.5.0, 75 MB. Library later: library .deb, 509 MB In the app
Arch Linux and derivatives Three packages, installed together with sudo pacman -U ./betterspice-*.pkg.tar.zst: betterspice-full, betterspice (69 MB), betterspice-models (609 MB) betterspice alone, 69 MB. Arch notes In the app
NixOS and Nix Prebuilt closure 0.9.0, 916 MB: import it and nothing is built (store paths) Flake 0.9.0, 69 MB, builds on your machine. The full build also needs the library zip, 897 MB, the one the flake expects (by name and hash). NixOS notes, checksums A new flake or closure, as here
Any Linux, x86-64 AppImage Full 0.5.0, 467 MB AppImage 0.5.0, 151 MB. On NixOS: run-betterspice-nixos.sh The app offers the next AppImage. Or replace the file yourself

Updates for a copy that is already installed: 1.0.0 for every system in the table, the same files the app downloads itself. Each one brings any copy from 0.2.0 on straight to the version in its row:

System Update Size
Windows BetterSPICE-1.0.0-Windows-Patch.exe 92 MB
macOS BetterSPICE-1.0.0-macOS-arm64.app.tar.gz, the whole app 91 MB
Ubuntu and Debian BetterSPICE-1.0.0-Linux-deb-Patch 97 MB
Arch BetterSPICE-1.0.0-Arch-Patch 94 MB
AppImage BetterSPICE-1.0.0-Linux-x86_64.AppImage, the whole app 172 MB

Checksums are in the 1.0.0 SHA256SUMS.txt for every update file and, for the installers, the 0.5.0 SHA256SUMS.txt.

Every system but NixOS is on 1.0.0, and NixOS 1.0.0 follows shortly. On NixOS there is no in-app update: take the flake or closure from the table above.

The setups are not code-signed yet, so Windows SmartScreen asks once, and on a Mac you allow the first start in System Settings > Privacy & Security > Open Anyway.

Updates

Help > Check for updates looks for new versions on this repository's releases. On Windows, Debian and Arch an update is a signed patch of only the files that changed, about 90 MB. On a Mac it replaces the whole app, and an AppImage is replaced by the new file. If anything fails, the old files go back, and your circuits, settings and model library are not touched. One patch works from any older version it names, and it also runs by itself: double-click it on Windows, or run it with sudo on Linux.

A patch only goes forward. To go back to the version you had, the Updates dialog offers Go back to and opens that release's page. On Windows, Debian and Arch the releases since 0.6.0 hold patches only: install the 0.5.0 full setup, then the patch of the version you want, for example the 0.9.0 patch (docs/INSTALL.md, Updates).

What's new

1.0.0 (Windows, macOS, Ubuntu, Arch and the AppImage, NixOS follows shortly). Report a problem: Help > Report a problem sends what happened, with the version, the system and the diagnostics, to the developer, from the desktop app and the web app. The dialog shows every field before Send, and the circuit, a picture, the part list and a contact address go only when you tick them. Physical quantities are signals: a motor's speed, angle, torque and back-EMF, a relay's armature, a thermistor's temperature and other part readouts can be probed, plotted, measured and read by agents in their own unit. Duty cycle in % on the pulse source, its labels and the switching parts. More vendor models in the live view: nearly 2,000 dual diodes, bridges and diode arrays, behavioural sources (B, E and G VALUE or TABLE) as the new part bsrc, closer op-amp and comparator stand-ins. Back after a crash or an update: the next start offers to reopen the circuits, File > Recover unsaved circuits keeps copies for 7 days, the Updates dialog shows the way back, and an update cut off half way is put back. Updates once a day from a signed file on bspicesim.com, with GitHub as the fallback. Datasheet checked marks on 9,294 models. Helper models and test benches left the library, which holds 160,784 models. More right results (4k7 values, ngspice source names, DC sweep of a sine with a phase, gain margin of a conditionally stable loop, MOSFET level 2 and 3) and a bug hunt and code review that fixed more than 80 problems.

0.9.0 (Windows, macOS, Ubuntu, Arch, NixOS and the AppImage). Open SPICE netlists, Multisim and Altium: File > Import and drag and drop take SPICE netlists (.cir, .net, .sp, .spi, .spice, .ckt), Multisim designs (.ms11 to .ms14, including Multisim Live exports) and Altium schematics (.SchDoc, .PrjPcb projects or a .zip of the folder). Each comes in as a drawn schematic with wires and an Import report that lists every part as matched, approximated or not imported. Bypass a part: leave a part out of the simulation without deleting it (Ctrl+Shift+D, the right-click menu or the Inspector). Open is the part not fitted, short is a wire across a two-pin part. The result is exactly that of the edited circuit. Temperature sweep and corners: Parameter step (Shift+F7) steps the circuit temperature (-40, 25, 85 °C) or runs supply low, nominal and high at each temperature, overlaid and labelled, with the measurements per run. The circuit temperature now reaches every part whose model depends on it, and matches ngspice. Live view equals Simulate: at Simulate's step the live view gives the same numbers, to the last digit. Find a part by its plain number: 1N5819, AMS1117 or TPS54331 find their vendor models in the library, the agent tools and the command line. 1,000 examples: every part type in at least three working examples, each with notes on what it does, how it works, what to watch and what to try. Corrected models: the triac and SSR turn off at the current zero at any step, the LDO's supply rejection, enable and power good, the PID start, IGBT temperature, the audio amplifier in shutdown, the PIR sensor, the power supply module and the NTC rating. Convergence retries end instead of running on. A bug hunt before release fixed 27 more problems, among them current sources imported backwards, netlist values like 4k7 and 10UF misread, and the bypass key on PCs where a graphics driver holds Ctrl+Shift+X.

0.8.3 (Windows, macOS, Ubuntu, Arch, NixOS and the AppImage). Your unsaved edits stay: when another program touches the open file, BetterSPICE no longer reloads it over edits you have not saved. No more freezes: a very big drawn circle or diagonal wire, long wrapped lines in the Console, a huge pasted search text and circuits with huge coordinates no longer freeze the window. Clearer messages: a loop with no resistance, a mistyped part setting, a bad circuit file, a paste that is not a circuit, an export with no ground and a negative value in a calculator field are named in plain words, with what to do. Slate: a fifth theme, a cool blue-gray between Graphite and Gray. File > Quit and Help > Open log folder in the desktop app. Undo holds up to 2,000 steps and keeps the Simulate analysis. Smaller windows: a narrower library and Inspector at 1100 px and below, and a menu bar that fits down to 600 px. Command line: per-command --help, auto-named nets in --probes and --output.

0.8.2 (Windows, macOS, Ubuntu, Arch, NixOS and the AppImage). The website: bspicesim.com has a simplified live demo to try in the browser, the online manual and the calculators, and Help > BetterSPICE website opens it. Share links that work: File > Share link gives a link that opens on bspicesim.com/view/ and copies it at once. Edit in the viewer: share links, Interactive HTML and the website demo draw wires (W), delete (Del), undo and redo (Ctrl+Z, Ctrl+Y), with Select, Wire, Delete, Undo and Redo buttons. Phones and tablets: two fingers move and zoom the circuit and a tap clicks. In a web page one finger scrolls the page. The Inspector fills its column. Graphite, Slate and Gray: three themes between Dark and Light (View > Theme, Ctrl+Shift+L steps Dark, Graphite, Slate, Gray, Light). The app in your browser: View > Open in browser (or betterspice --browser) opens the installed app in a browser tab, with ngspice, the model library, Open and Save, on this computer only. Calculators in a small window: under 820 px wide there is no full screen and the sections fit the width.

0.8.1 (Windows, Ubuntu, Arch, NixOS and the AppImage, and macOS stays on 0.8.0). Simple and Advanced calculators: each of the 17 calculators keeps the view you know as Simple and gains an Advanced view with corners, tolerance and temperature, checks with their margin, the parts to order, warnings that say what to change and plots over the whole range. Values typed in one view carry to the other, and F11 gives the calculator the whole screen. The buck and boost calculator sizes the inductor from the peak currents at full load, current limit and start-up at every input corner. Parts from the library: pick the inductor and the regulator of a buck or boost, and the op-amp of a gain stage, from the model library, ranked by the figure that matters and placed with its own model. Verify in simulation: each Advanced view places its circuit and runs it, with the calculator's numbers as the pass limits. Fixes: trace widths over a plane follow the IPC-2152 data (they came out about twice too wide), differential impedance uses the coupled-line model of the simulator, wire current comes from a heat balance, via plating follows IPC-6012, an LED's forward voltage falls with temperature, the 555 takes a bipolar or CMOS family and a propagation delay, ngspice no longer opens "Assertion failed" message boxes, a vendor model next to a capacitor with a DC-bias curve no longer crashes the run, and Vishay inductors saturate in the live view too.

0.8.0 (Windows, macOS, Ubuntu, Arch, NixOS and the AppImage). The beta test release. A full test suite with quick, pre-release and full tiers (52 entries): 438 verify circuits (259 new) for nearly every part type, 74 parameter circuits, every example that can be compared with ngspice, about 6,350 checks of the live view against Simulate, a real-app suite of about 1,100 checks with screenshot baselines, edge cases, fuzzers for MCP and for documents, and update tests on a mock server. A part that ngspice cannot simulate is checked against a closed form or a datasheet instead, never counted as a failure or an ngspice pass. Digits: the readouts show 3 to 9 significant digits in the Analysis and every scope, and an axis never repeats one label (the base written once, the ticks as offsets). The voltage divider solves for any value, with current, power, output resistance, the nearest E24 and E96 values and a load. Part values that act: capacitor DC bias, trimmer position, inductor saturation, relay operate and release times, CD4000 and 74LS levels and delays, OTA, LDR, CAN, RS-485, power MOSFET Rds(on), IGBT Cres, self-heating with thermal capacitance, and a +5V and a -5V flag in one circuit. Vendor models: several vendor libraries in one circuit, .lib sections, per-instance LAPLACE, the operating point of the OPA2990 family, the UC3843 examples live on fitted stand-ins, and a memory warning and limit for big vendor runs (a mains flyback in 3.1 GB instead of 11.6 GB). Safe for scripts: memory and time budgets on the command line and MCP, parallel edits of one file that keep every edit, and validate catches more. The JavaScript fallback engine runs the parts with the Rust engine's device equations. Slider ranges stay with their part, through Undo. Fixes: KiCad and EasyEDA resistor values in ohms, a short message for a zip bomb, the live step after an edit, an LM317 edited while it runs, a window minimum of 1024 x 640, a status bar that fits narrow windows, the power flag slider in the accent colour, and the contrast of library labels. Every bug fixed was reproduced first and the fix proved with the same run.

0.7.1 (Windows, Ubuntu, Arch, NixOS and the AppImage, and macOS stays on 0.7.0). A power flag named after its voltage follows it (+5V set to 10 V is +10V, one label). The isolated DC/DC and the isolated gate driver have an input ground and an output ground. After Simulate the Analysis shows exactly the probes of the live view, with their names and colours, and each analysis tab and view keeps its zoom when you switch. On Windows the app finds shortcut keys another program holds for the whole PC (a graphics driver's recording keys can take Ctrl+Shift+C) and marks them in Keyboard shortcuts.

0.7.0 (Windows, macOS, Ubuntu, Arch, NixOS and the AppImage). 17 calculators (Ctrl+Shift+C): circuit, part, PCB and unit calculators that can place the circuit they worked out and check it in the simulator. Datasheet curves and parameters: a curve editor for values that are a curve (capacitance against bias, inductance against current, battery voltage against charge, LED I-V, comparator delay, reference against temperature, INL), and many more datasheet numbers on passives, sources, semiconductors, references, op-amps, comparators, regulators, logic, timers, controllers, converters and solar cells, all off until set, so existing circuits give the same numbers. Tolerance for about 20 more kinds of parts, junction self-heating and POLY controlled sources. More of the ngspice export: comparators, 555 and 556, regulators, LDOs, supercaps, ferrites, crystals, varistors, VDMOS on-resistance against temperature. Power flags with a voltage are sources: Rail +5V, +3.3V, +12V, -12V and -5V. Real fuses: datasheet time-current families, a visible pop, Replace fuse and Reset breaker, a PPTC that follows its datasheet and fuse parts in the catalog. Probes with names of your own, with one colour kept for every view. Smoother live editing: dragged sliders ramp in run time, and a capacitor keeps its voltage and an inductor its current when you change its value while it runs. The editor follows your hand: paste, duplicate and placing centre on the pointer, and a drawn wire goes where it is drawn and joins what it crosses. Keys: Space rotates, Ctrl+R runs or pauses, and every shortcut can be changed and reset. LEDs glow brighter, visibly from 0.5 mA. Exact parallel load that picks serial or parallel by measured speed. 715 examples, 161 of them redrawn with clean layouts (the same netlists and results). Fixes from a bug hunt of every area: calculators that survive any input, frequency edits that keep the phase, a charged capacitor that survives a rebuild, the point where a blown fuse is replaced (it read 120 A on a 12 V supply), the scope hover card in short panes, upright text in turned symbols, and the Empty sheet hint over power flags.

0.6.0 (Windows, macOS, Ubuntu, Arch, NixOS and the AppImage). Faster big circuits: heavy boards run the live view on the native engine, about 1.4x as fast with the same frames bit for bit, and Simulate is about 15 % faster on a 578-part board (every result the same, bit for bit). Start where you left off: the tabs of the last session reopen at the next start (File > Reopen last session on start), else a blank sheet. Everything rotates, grounds, test points, connectors and power and rail flags included. Calmer plots: the notes about a result are one small chip, Energy view follows the scope when you scrub back through a paused run, and the tolerance band is easier to see and works on heavy boards. New, off by default: a Newton predictor for Simulate. AI agents that draw for you now use library symbols and wires, never a circuit tied together with net labels. Fixes from an extensive bug hunt: probes keep their pin when switched between voltage and current, Clear history while paused, pole-zero says when a transfer is zero, Simulate's numbered steps never go back, a pasted flag keeps its turn.

0.5.0 (Windows, macOS, Ubuntu, Arch, NixOS and the AppImage, with full installers for every system). Big circuits simulate faster: their parts are evaluated on several cores and added in the same order as one core, so every result is the same to the last bit (a 578-part board about 15 % faster). One math library everywhere: the desktop app, the command line and the live view share one correctly rounded math library, so a circuit gives the same numbers on Windows, Linux and macOS. The Analysis plot draws on the graphics card, up to 144 frames a second with 100 traces (View > Plot drawing picks the card or the processor). The schematic redraws only when something changes, and the current dots draw on the graphics card, so the app uses far less of the machine. Big results need about 40 % less memory. New: a live tolerance band (View > Tolerance band, off by default) shades the range each scope trace takes with the parts at their tolerance. Fixes: a submenu opening to the left sits beside its row, the plot returns to the graphics card after a lost graphics context, and a big compressed result survives an inflate worker that fails to start.

0.4.3 (Windows, Ubuntu, Arch, NixOS and the AppImage). Simulate shows every run as numbered steps, each with its own progress: reading the circuit, finding the vendor models, loading the netlist, the operating point, simulating, and wrapping up while the result is packed, received and drawn, so a long run never looks stuck. A note such as "Gear where it rang" shows once per part instead of piling up.

0.4.2 (Windows, Ubuntu, Arch, NixOS and the AppImage, and macOS stays on 0.3.7 for now). Every step of a big run: Simulate keeps every signal at every step, gigabytes too, and Keep less thins only when you choose it. A 2.4 GB run of 12 million steps takes about a minute, and a normal run comes back about a fifth faster, because results travel as binary columns. Watch a long run: the plot draws the waveform while the run goes, and CSV export writes every row. MCU debugger: breakpoints in the Code tab, Step, Continue, Pause and a variables panel. More accurate: logic parts run in ngspice runs and verify too, gates and flip-flops switch at the input crossing to the picosecond, a transient starts exactly at the operating point with JFETs, capacitors and inductors, an inductor's parallel R and C reach ngspice, and a new warning marks nodes only leakage holds. bspice app and the MCP server keep big runs in 8 bytes a number instead of running out of memory. Fixes: Space presses a focused button, four turns of a selection put it back exactly, femto values show on the schematic, a paste of hundreds of parts takes a second, and the ULN2003 stepper example turns. Every bug fixed was reproduced first and the fix proved with the same run.

0.4.1 (Windows, Ubuntu, Arch, NixOS and the AppImage, and macOS stays on 0.3.7 for now). More accurate simulation: the Auto step resolves rings of device capacitance against an inductor (a flyback's drain ring within 0.4 % instead of 5.9 % slow), a guard stops the trapezoidal rule's numerical limit cycles by switching a few steps to Gear, a failed vendor-model run retries in a fresh ngspice, the neon lamp converges at every step, and vendor parts return their pin currents. Three new analyses, each checked against ngspice: noise, pole-zero and loop gain with crossover and margins. Realistic MOSFETs and IGBTs: new parts get a real part's capacitances, with Set from rating presets and a quiet hint, and the engine matches ngspice on a full gate loop to 25 mV. The live view: a voltage legend, values when you point at a pin, the operating point on the schematic. Logic: CAN, 1-Wire, PWM and Manchester decoders saved in the circuit, channel rows that scroll, JK and T flip-flops and latches, lit 7-segment displays. Probe a pin's current from the schematic, keep up to five reference runs, compare models before assigning, and the timebase slider rolls between units. Eight new microcontroller examples, and zener, TVS, ESD and tantalum models filed under their own kinds. The New live look is now the default for everyone. Every bug fixed was reproduced first and the fix proved with the same run.

0.4.0 (Windows, Ubuntu, Arch, NixOS and the AppImage, and macOS stays on 0.3.7 for now). A new live look: one voltage scale for 1 mV to 1 kV: pale yellow turns green at 48 V and teal into blue past 50 V, and negative voltages run red to purple, and current dots that grow into dashes with the current. New installs start with it, an updated copy keeps Classic until you pick New under View > Live look. The parts library, redesigned: outlined groups with their symbols and vendor models apart, every model once in its own group, and Show all with search and maker filters. Inspector: grouped values, a reset to the default on a changed value, arrow-key nudging. Probe suggestions for circuits without probes. Auto maximum step: Simulate picks the step from the circuit and says why, and the command line, MCP and agent tools use the same rule. Start-up kick for oscillators that sit balanced. What's new after an update, and a status bar that says plainly what runs in parallel. Before the release every new part went through a bug hunt: 16 bugs reproduced, fixed and proved fixed, among them an Auto step that ignored slow source edges, PWM set in code and transformer windings, and library groups that filed switching regulators as LDOs. Against 0.3.8: the same 1,850 of 1,850 signals within tolerance of ngspice, the same results on files that save a step, and the same live speed.

0.3.8 (Windows, Ubuntu, Arch, NixOS and the AppImage, and macOS stays on 0.3.7 for now). The Analysis plot has the scope's Fit Y, on by default: each pane's vertical axis fits the zoomed part of the run and follows zoom and pan, with the scope's Max, Fixed and Manual flags. The Logic tab scrolls and zooms in time like the scope, follows the newest sample while running, has a history bar with Go to, cursors you drag, Find for decoded values and CSV export. Square and pulse sources get sliders for frequency, duty cycle, rise and fall time, and sine sources for frequency, phase and DC offset. The library has one Generic IC with pins and title you edit, Assign model and Move pins, where it had two overlapping tiles. File > Export interactive HTML works in the installed app: its viewer was missing from the release builds.

0.3.7 (Windows, macOS, Ubuntu, Arch, NixOS and the AppImage). The live scope no longer stutters on a heavy circuit at a fast timebase with the scopes zoomed out. A 73-part circuit at a 2 ns live step and 89 us/s drew about 20 frames a second, and each frame now works out only the newest columns of a trace instead of every sample again, about three times faster.

0.3.6 (Windows, macOS, Ubuntu, Arch, NixOS and the AppImage). Long runs and many signals. Before a long or data-heavy transient starts, Simulate says how long it will take and how much data it holds, with Run, a faster Gear setting or Cancel, and after a circuit's first run the estimate uses its measured speed. The bar shows the percentage and the time left, also for long runs, which before showed only the seconds so far. All signals works on any run: a run too long to keep every signal at every step keeps each as the lowest and highest value of short time slices, with the probes at every step, and switching to it no longer runs the simulation again. It opens a signal list beside the plot, with a filter, values at the pointer, drag and drop onto charts and New chart, and Delete. A plot of 100 and more traces stays quick, and the Analysis view pops out into its own window with all of it. The LTspice import gives every part the model LTspice itself uses, 224 of 224 on LTspice's 61 examples, among them library op-amps, transistors with an area factor and model names that look like numbers, and a value such as 200 is now 200 ohm. macOS and Linux also get 0.3.4 and 0.3.5.

0.3.5 (Windows). A switching circuit built from generic transistors, such as an astable multivibrator, no longer stops with "singular" when it switches: where the run would end, the engine takes one full step that jumps to the new state, as ngspice does. Simulate agrees with ngspice on it, 1138.5 Hz against 1138.1 Hz. Imported LTspice transistors, diodes and FETs carry their model's numbers, so the live view runs the real model. In Move pins, an op-amp's + and − marks move with their pins.

0.3.4 (Windows). Import LTspice schematics (.asc): parts, wiring, symbols and SPICE models, with the connections checked against LTspice's own netlists on its 61 examples. Move pins: any part's pins can be dragged to new places, as in a symbol editor. Text notes are typed in place on the schematic, in their final size and colour, with a bar for size, bold and alignment. The generic (pinout) chip takes its pins and title in the Inspector.

0.3.3 (Windows, macOS, Ubuntu, Arch, NixOS and the AppImage). Live quality next to the timebase. Exact, the default, runs the circuit as drawn and now says when it runs slower than the timebase: the toolbar shows the real speed in amber, and a banner says why. Balanced and Fast keep the timebase with reduced accuracy: a longer live step, and in Fast, sine sources too fast for the timebase held at their average. The banner and a mark on each part say exactly what is changed, with Back to Exact. Simulate (F5) never changes. Also fixed: a live edit of a source's frequency kept the old step until the circuit was reopened, so a sine raised to MHz was drawn too coarsely.

0.3.2 (Windows, macOS, Ubuntu, Arch, NixOS and the AppImage). The first update since 0.2.2 for macOS and Linux (0.2.1 for NixOS), so they now have everything from 0.2.3 to 0.3.1 below. The user manual and the in-app guide show the report dialog and its progress panel, and every picture in the PDF manual is the current one.

0.3.1 (Windows). Generate report shows its progress: which step it is on, a bar, the time so far and Cancel, then asks where to save the report. Before, nothing showed while the report ran its analyses. Keep trapezoidal now closes the long-run notice, which came straight back before.

0.3.0 (Windows). Tolerance analysis, as Monte Carlo or worst case, with a histogram, the yield against limits and the parts that matter. Named measurements with limits and PASS or FAIL, and a kept run as a dashed reference. A probe measures voltage, current or both. The scope has FFT, Logic and Console tabs, and Fit Y on a paused, zoomed run. The energy view draws where the power goes and checks that it balances. When a run does not converge, the engine retries with other settings and names the one that worked. Gear-2 is now a real second order method. Parts warn when they run over a power, voltage or current rating, and a long Simulate shows its estimate first. The MCU language takes named pins, Arduino style code and board names, shows pin states while it runs and exports an Arduino sketch or an STM32 HAL file. The Part Wizard has a Curves step with pasted tables, a digitizer and model fits, and 1,310 fields. Vendor models show key figures. A circuit can be shared as a link for the browser viewer or as one interactive HTML file. The report covers every analysis in depth. The runs against ngspice and LTspice are measured and published. 702 examples, including 8 regulators on vendor chips and 50 circuits that are usually built wrong. A new logo.

0.2.4 (Windows). bspice app: the BetterSPICE window driven from the command line, one command for each of the 37 agent tools, with JSON output, --help for every command, and status, watch and batch. An agent's event feed now notices when the window closes.

0.2.3 (Windows). AI agents connect to the BetterSPICE window also when they run under a packaged app such as Claude, and build the circuit there step by step while you watch. An agent that cannot reach the window says so instead of editing a file nobody sees, and its wires go around other parts' pins instead of through them.

0.2.2. The first Mac build, for Apple Silicon, with a Full installer that includes the model library. The Part Wizard offers each of its 132 part types only the packages it really comes in. Any other name can still be typed, and an unusual package saved earlier stays visible with a warning.

0.2.1. Updates from inside the app, and patch files. The scope no longer shimmers, and a fast switching signal draws about ten times faster: 12 to 120 frames a second on a synchronous buck at 2560 x 1400, measured in headless Chrome. The Windows setups unpack the model library with their own unpacker.

0.2.0 beta. First beta packages for Windows, Ubuntu, Arch and NixOS, with the vendor model library.

Known limits

  • Mac builds are made on Codemagic's Apple Silicon Macs, started by hand for each release, and every release since 0.5.0 ships for macOS too. There the Full installer puts all 207,849 library files in place and a TI vendor model simulates from them, but no one has used it on their own Mac yet, and the in-app update has not been tried on a Mac. Its ngspice runs on one thread, and the TI follower reads 1.0001127213997085 V, 51 picovolts from the other systems.
  • Datasheet-checked models are 5.8 % of the library today (see How accurate is it). The rest is "works", not "matches the datasheet". The stored fits of a part come from the vendor model.
  • PSpice-encrypted TI models need PSpice for TI, on Windows or under Wine on Linux. Without it they use fitted models, and BetterSPICE says so.
  • Linux packages are built and tested on Ubuntu 24.04 and current Arch, on a virtual display. The 1.0.0 Debian and Arch patches were applied there to the real 0.2.0 and 0.2.1 packages, and the patched app started and found the update. The AppImage update was built the same way but not run. Other distributions, a real GPU and Wayland are not tested.
  • The Auto maximum step reads the circuit's sources, edges, PWM, time constants and the rings an inductor makes with the capacitance of the semiconductors on its node. It never asks for more than 50,000 steps over the stop time, so a ring too fast for that is left alone, and an oscillator timed by a threshold, such as a neon lamp, reads about 1 % slow: type a smaller step for those.
  • After a patch on Arch, installing a newer package may need --overwrite /usr/lib/BetterSPICE/update.json.

License

BetterSPICE is source-available under the GNU Affero General Public License v3.0 with the Commons Clause.

  • Use it freely, for any purpose, also at work and in companies. Designing and selling products with it is allowed.
  • Fork it, change it and share it, free of charge. Anything that contains or builds on BetterSPICE's code must be released with its source under the same license, also when it runs as a service.
  • Selling BetterSPICE is not allowed: not the program, not a changed version, not a paid service or paid support built on it.
  • Keep the notices, and show "Based on BetterSPICE" in the About box. A changed version must say it is changed. The name BetterSPICE may only be used to say truthfully that a work is based on it.
  • Your circuits, parts, results, reports and exports are yours, and the license does not cover them.

The vendor model library is not part of this license: each model keeps its maker's terms.

How the code is organised

One simulation engine in Rust (crates/bs-engine) runs in every place a circuit is solved: compiled to WebAssembly for
the live view in the page (crates/bs-wasm), natively in the desktop app (src-tauri) and the bspice command line
(crates/bs-cli), and beside ngspice for vendor models (crates/bs-models, crates/bs-ngspice). The UI in ui/src is
Preact and TypeScript: the editor writes every change, by hand or by an AI agent, as the same document ops, and the live
engine follows each edit in a Web Worker.

CODEBASE.md is the guide to the code: every folder and crate, six walk-throughs of real code paths (a wire
drawn into the live view, a Simulate run, a vendor model into the library, an agent over MCP, an update, bspice verify),
the data formats, the tests and the limits. Every folder with code has a README.md that names each of its files.

Build from source

# browser UI (needs Node 20+, Rust + wasm-pack only if the engine changed)
cd ui
npm install
npm run dev            # http://localhost:5173
# desktop app
cd ui
$env:TAURI_APP_PATH = "../src-tauri"
npm run tauri dev
# the test suite: quick, prerelease or weekly (the full suite), with a JSON and an HTML report
python tools/test/run_tier.py quick

Full setup, including ngspice, the command line and MCP, is in docs/GETTING_STARTED.md. The user manual and user guide cover everything else.

Repository map
Path What
crates/bs-engine Simulation engine: live transient, op, tran, ac, dc, all devices
crates/bs-live The live engine run natively for heavy circuits in the desktop app
crates/bs-cols Number columns of big results while the desktop app packs them
crates/pxfm-fma The correctly rounded math library every engine shares
crates/bs-wasm The engine compiled to WebAssembly for the UI
crates/bs-cli bspice command line, MCP server, browser relay
crates/bs-ngspice ngspice shared library loader
crates/bs-verify Engine against ngspice comparison and reports
crates/bs-import KiCad, EasyEDA Pro, LTspice, Altium, Multisim and SPICE netlist importers
crates/bs-models Vendor SPICE model parser and converter
crates/bs-parts .bspart standard and quick-model fitting
crates/bs-update Signed patches, the update check, bs-patch
crates/bs-unzip Model library unpacker for the Windows setups
src-tauri Desktop shell, control API on 127.0.0.1:47800
ui TypeScript and Preact UI
examples Example circuits (.bsc)
parts .bspart library and templates
verification The accuracy suite: circuits compared with ngspice, closed forms and datasheet windows, and the generator of the new ones
docs Contracts and guides
scripts Installers, and scripts/release/release.py for releases
nix, flake.nix The NixOS package
.github/workflows A Mac build on GitHub Actions, started by hand
codemagic.yaml The Mac release builds on Codemagic
tools/test The test suite runner run_tier.py (quick, pre-release and full tiers) and its entries
tools End-to-end tests, the real-app UI suite, the live suite, edge cases and fuzzers, model indexer

Yorumlar (0)

Sonuc bulunamadi