npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

circuitscript

v0.8.2

Published

Interpreter for the circuitscript language

Downloads

955

Readme

Circuitscript

A code-based language for creating electronic schematics. Instead of clicking through GUI tools, you write Circuitscript to describe circuits — and get SVG/PDF schematics and KiCAD-compatible netlists as output.

Homepage: https://circuitscript.net


Features

  • Code-first design — capture schematics using a simple scripting language
  • Version control friendly — plain text files work naturally with git
  • SVG and PDF output — high-quality schematic diagrams
  • KiCAD netlist export — use generated netlists directly in KiCAD layout
  • Bill of Materials — export BOM as CSV
  • Programmatic constructs — loops, functions, conditionals, and modules for reusable circuit blocks
  • Standard library of components — resistors, capacitors, inductors, LEDs, etc.
  • Custom components — define components with arbitrary pin layouts and graphics
  • ERC — basic electrical rules check (more to be added)

Installation

Requires Node.js 16 or later.

npm install -g circuitscript

Or install locally as a library:

npm install circuitscript

Quick Start

Create a file circuit.cst:

from "std" import *

v5 = supply("5V")
gnd = dgnd()

at v5
wire down 100
add res(100k)
wire down 100
to gnd

at v5
wire down 100
add cap(100n)
wire down 100
to gnd

Generate a schematic:

circuitscript circuit.cst output.svg

CLI Usage

circuitscript [input path] [output path] [options]

Options

| Option | Description | |--------|-------------| | -w, --watch | Watch for file changes and regenerate | | -u, --update-source | Update source file with reference designator annotation | | -j, --annotated-path [file] | Save annotated source file at given path | | -n, --dump-nets | Print net information | | -d, --dump-data | Dump data during parsing | | -s, --stats | Show stats during generation | | -x, --skip-output | Skip output generation | | -e, --erc | Enable ERC output | | -b, --bom [output-path] | Generate Bill of Materials as CSV | | -i, --input text <text> | Provide input text directly instead of a file | | --version | Show version |

Examples

# Generate SVG
circuitscript schematic.cst schematic.svg

# Generate PDF
circuitscript schematic.cst schematic.pdf

# Generate BOM
circuitscript schematic.cst schematic.svg --bom bom.csv

# Print to stdout
circuitscript schematic.cst