afazero/tscircuit-starter

Two boards are defined: a 5V red LED indicator with a 220Ω resistor and 100nF decoupling capacitor, plus a 5V RC low-pass filter using a 187Ω resistor and 10µF capacitor for transient SPICE simulation.

Version
1.0.0
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone afazero/tscircuit-starter  # download the package files into ./tscircuit-starter
tsci add afazero/tscircuit-starter    # add it to your project as @tsci/afazero.tscircuit-starter

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

package.json

{
  "name": "tscircuit-starter",
  "version": "1.0.0",
  "private": true,
  "type": "module",
  "scripts": {
    "dev": "tsci dev",
    "build": "tsci build --disable-parts-engine",
    "build:sim": "tsci build sim.tsx --disable-pcb --disable-parts-engine",
    "check": "tsci check index.tsx",
    "snapshot": "tsci snapshot index.tsx --3d --disable-parts-engine",
    "snapshot:sim": "tsci snapshot sim.tsx --simulation-only --disable-parts-engine"
  },
  "dependencies": {
    "react": "^19.0.0",
    "react-dom": "^19.0.0",
    "tscircuit": "latest"
  },
  "devDependencies": {
    "@types/react": "^19.0.0",
    "@types/react-dom": "^19.0.0",
    "typescript": "^5.6.3"
  }
}