Source code coming soon. The GitHub repository is private for now and opens to everyone very soon.
BetterSPICE Beta 0.8.0 Join the beta Download soon
Part VIII  Lists and dataReferenceContentsIndex
57

Install details: files, engines, browser

The steps to install are in Install and start. This chapter is the detail: what goes where, where BetterSPICE looks for ngspice and PSpice, and how the desktop app and the browser version differ.

57.1What the installer puts where

What the installer puts where
LocationWhat it holds
Install folderbetterspice.exe, bspice.exe (the command line), ngspice.dll and its code models (vendor\ngspice\bin), the examples folder and the model catalogue (the list of models). The vendor model files themselves aren't installed: Simulate finds them in a folder with the model library (Where the models come from).
%APPDATA%\BetterSPICE\window.jsonWindow size, position and maximised state. Restored at the next start if the monitor is still there.
%APPDATA%\BetterSPICE\recent.jsonThe last 10 circuits you opened or saved. File shows 8 of them.
%APPDATA%\BetterSPICE\parts\My parts: the .bspart and .bssym files you made or added.
%APPDATA%\BetterSPICE\agent-tokenThe key an AI agent needs to reach the running app (Working with an AI agent).
%APPDATA%\BetterSPICE\betterspice.logProblems the app can't show anywhere else, and start-up timings. It restarts at 1 MB and keeps the previous one as .old. Help›About BetterSPICE shows the folder.

57.2ngspice for vendor models

Simulate runs circuits with vendor subcircuit models (op-amps, regulators, current-sense amplifiers, references) in ngspice-47 through ngspice.dll. The installer ships it. BetterSPICE looks for it in this order:

  1. The folder named by the environment variable BSPICE_NGSPICE.
  2. Next to betterspice.exe.
  3. In vendor\ngspice\bin of a source checkout. scripts\fetch-ngspice.ps1 downloads it there.

The status bar says ngspice 47 ready when it's found and ngspice not found when it's not. Without ngspice, Simulate still runs circuits made only of built-in parts and discrete vendor models (diodes, transistors) in the BetterSPICE engine. A circuit that needs ngspice stops with a banner, E_NGSPICE_MISSING, and never fails silently.

57.3PSpice for TI

Some Texas Instruments models are encrypted by Cadence and only PSpice can read them. If PSpice for TI is installed (free from ti.com, default folder C:\Cadence\PSpiceTI), Simulate runs those models in PSpice, hidden, and shows the result like any other run. The progress line says Simulating in PSpice (encrypted vendor models). The environment variable BSPICE_PSPICE points to another installation, or turns PSpice off when set to 0. PSpice for encrypted models explains the limits.

57.4The browser version

The same interface runs in a current Chrome or Edge. Files open through the browser's file picker and save as downloads. Your own parts are kept in the browser's storage (IndexedDB). Simulate and the analyses run the BetterSPICE engine compiled to WebAssembly, in a pool of background workers. The browser version can't run ngspice or PSpice.

57.5The command line

bspice.exe runs the same engine without a window: check circuits, run analyses into CSV, render pictures, build reports, import boards and verify against ngspice. It's installed next to the app. The command line (bspice) lists every command and option.

57.6Desktop or browser

Desktop or browser
FeatureDesktopBrowser
Editor, live simulation, scopes, logic analyzer, inspector, library, model dialog, Part Wizard, symbol editor, examples, import, export image and netlistYesYes
Native Open and Save dialogs, Save as remembering the folderYesFile picker and downloads
Recent files, file associations, one window for every file opened from ExplorerYesNo
Reload when the open file changes on diskYesNo
Window size and position remembered, Save / Don't save / Cancel on closeYesThe browser's "Leave site?" prompt
ngspice for vendor models, PSpice for encrypted modelsYesNo, built-in engine only
ReportNative, with every analysisBuilt in the page: schematic, parts, operating point, waveforms, diagnostics
AI agentsBuilt in, port 47800Through bspice serve on the same computer
Pop-out windows for scopes, the dock and the Analysis viewYesYes, if pop-ups are allowed
My parts storage%APPDATA%\BetterSPICE\partsBrowser storage
Autosave and recovery of unsaved circuitsYesYes

57.7System requirements

System requirements
RequirementValue
Operating systemWindows 10 or 11, 64-bit
Memory8 GB. Large vendor-model transients in ngspice use more.
DisplayThe window needs at least 1024 x 640. The layout is designed for 1440 x 900 and up, and opens at 1600 x 1000.
FontsBarlow and JetBrains Mono are loaded from Google Fonts. Offline, the app falls back to the system sans-serif.
Browser versionA current Chrome or Edge