# CircuitJS1

Interactive browser circuit simulator with animated schematics, reusable subcircuits and web embedding\.

ID: Q1244 · Revision: 1292

Type: software · License: GPL\-2\.0\-or\-later[^cj-repo] · Status: active

Website: https://www.falstad.com/circuit/



CircuitJS1 is a browser\-based electronic circuit simulator derived from Paul Falstad's simulator and Iain Sharp's JavaScript port\. It displays an editable schematic with animated current and voltage indications, making it useful for exploring circuit behavior and explaining examples interactively\. This article concerns the JavaScript edition, rather than the original Java application\.[^cj-home][^cj-repo]

## Interactive exploration

The hosted simulator supplies example circuits and lets users operate switches, inspect component state and change component values\. Voltage colors and moving current indicators provide immediate visual feedback within the schematic\. This supports demonstrations where seeing relationships change is more important than navigating a separate numerical\-analysis workflow\. The visual representation is a simulation aid, not evidence that a particular manufactured circuit has been measured or validated\.[^cj-home]

## Reusable circuit blocks

Users can build a circuit block, label its input and output nodes and create a subcircuit model from it\. Instances then place that block in a larger circuit, with pin arrangement adjustable during creation\. The official guide says that saving a circuit also saves its subcircuit model\. These reusable blocks belong to CircuitJS's documented workflow; their existence does not establish interchange with a vendor SPICE library's similarly named subcircuit format\.[^cj-sub]

## Sharing and embedding

The repository documents embedding the simulator in an iframe and encoding circuit data in a URL\. A separate JavaScript interface permits same\-origin page code to inspect elements and set external voltage nodes\. This can support an explanatory page that controls a simulation alongside its text\. URL\-based sharing and remote circuit loading still depend on the relevant host and browser access rules; they should not be confused with a guaranteed private project\-storage service\.[^cj-repo][^cj-js]

## License and substitution limits

CircuitJS1 is GPL\-licensed, with version 2 or later allowed by its README\. It can substitute for the basic interactive circuit\-exploration portion of [LTspice](/ltspice) when a browser demonstration is the goal\. That comparison is deliberately narrower than replacing a component manufacturer's simulation environment\. The inspected sources do not establish lossless LTspice project import, universal device\-model compatibility or equivalent analysis coverage\. Existing engineering projects therefore need a separate compatibility assessment before switching\.[^cj-repo][^cj-home][^lt-pins]

## Capabilities and substitutions

### Animated interactive circuits — supported

Edit components and switches while inspecting circuit behavior in the browser\.[^cj-home]

Use case: Electronic circuit simulation · Platforms: Web browser · Region: Availability depends on platform, build and component\-model compatibility

### Reusable subcircuits — supported

Saved circuits include their custom subcircuit models\.[^cj-sub]

Use case: Electronic circuit simulation · Platforms: Web browser · Region: Availability depends on platform, build and component\-model compatibility

### LTspice project interchange — unknown

The inspected documentation does not establish lossless native\-project interchange\.[^cj-repo][^lt-pins]

Use case: Electronic circuit simulation · Platforms: Web browser · Region: Availability depends on platform, build and component\-model compatibility

### [Substitute for LTspice](/ltspice) — limited

A browser\-based alternative for demonstrations; not evidence of equivalent models, analyses or native project compatibility\.[^cj-home][^lt-pins]

Use case: Basic interactive circuit exploration · Platforms: Web browser · Region: Availability depends on platform, build and component\-model compatibility

## References

[^cj-repo]: [CircuitJS1 source repository](<https://github.com/sharpie7/circuitjs1>) — README origins, embedding, export URLs and GPL version 2 or later (vendor; retrieved 2026-10-07T03:38:18Z)

[^cj-home]: [Falstad circuit simulator](<https://www.falstad.com/circuit/>) — JavaScript edition, animated current/voltage, component editing and example circuits (vendor; retrieved 2026-10-07T03:37:57Z)

[^cj-sub]: [CircuitJS subcircuits](<https://www.falstad.com/circuit/subcircuits.html>) — Labeled ports, creating instances and saved embedded subcircuit models (vendor; retrieved 2026-10-07T03:38:07Z)

[^cj-js]: [CircuitJS JavaScript interface](<https://www.falstad.com/circuit/jsinterface.html>) — Same\-origin iframe integration and element voltage/current access (vendor; retrieved 2026-10-07T03:38:07Z)

[^lt-pins]: [Matching SPICE models to symbols](<https://ez.analog.com/ez-blogs/b/engineerzone-spotlight/posts/a-perfect-match-how-to-determine-if-a-model-is-compatible-with-an-existing-symbol>) — Symbol pin order, SUBCKT terminals and electrical compatibility (vendor; retrieved 2026-10-07T03:33:25Z)

Source revision: https://substitutefor.net/entities/Q1244?revision=1292
