How tscircuit/tscircuit works
This repository is the distributable tscircuit umbrella package: it re-exports circuit-building and evaluation APIs and provides a CLI entry point. The documented user workflow is to write a TypeScript/React circuit, develop and preview it with the CLI, then export manufacturing files. Most design, rendering, routing, and export behavior belongs to dependent packages rather than source implemented here; the graph distinguishes those dependencies and README-documented capabilities from the small local wrapper.
Main entry points: index.ts Circuit API exports · cli.mjs CLI launcher
Components 14
Circuit authoring
- Circuit core
- React Fiber renderer
Package runtime
- Circuit API exports
index.ts - Circuit evaluation
- CLI launcher
cli.mjs
Design capabilities
- PCB autorouting
- Footprint import
- AI footprint generation
Development and output
- Development CLI
- PCB and schematic preview
- Package registry
- Manufacturing exports
Other components
- Circuit developer
- Board manufacturer
Connections 14
- Circuit developer → Circuit API exports: authors with
README.md - Circuit API exports → Circuit core: re-exports
index.ts - Circuit API exports → Circuit evaluation: re-exports
index.ts - Circuit developer → React Fiber renderer: writes circuit components
README.md - React Fiber renderer → PCB and schematic preview: renders circuit
README.md - Circuit developer → CLI launcher: starts development
README.md - CLI launcher → Development CLI: imports
cli.mjs - Development CLI → PCB and schematic preview: serves preview
README.md - Circuit developer → PCB autorouting: uses
README.md - Circuit developer → Footprint import: imports components
README.md - Circuit developer → AI footprint generation: generates footprints
README.md - Development CLI → Package registry: adds or publishes packages
README.md - Circuit developer → Manufacturing exports: exports design files
README.md - Manufacturing exports → Board manufacturer: provides fabrication files
README.md