# tscircuit-core **Repository Path**: liguoqiang2021/tscircuit-core ## Basic Information - **Project Name**: tscircuit-core - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-11 - **Last Updated**: 2026-03-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # @tscircuit/core The core logic used to build Circuit JSON from tscircuit React elements. [tscircuit](https://github.com/tscircuit/tscircuit) · [Development Guide](./docs/DEVELOPMENT.md) · [Core Benchmarks](https://core-benchmarks.tscircuit.com/) · [Contributor Getting Started Video](https://share.cleanshot.com/rbJpnvJZ) You can use `core` to create [Circuit JSON](https://github.com/tscircuit/circuit-json), which can then be converted into Gerbers, viewed online, and much more. ## Usage ```tsx import { Circuit } from "@tscircuit/core" const circuit = new Circuit() circuit.add( ) circuit.getCircuitJson() ``` ## Non-React Usage ```tsx import { Board, Resistor, Led, Trace, Circuit } from "@tscircuit/core" const circuit = new Circuit() const board = new Board({ width: "10mm", height: "10mm", }) circuit.add(board) const R1 = new Resistor({ resistance: "10k", footprint: "0402" }) const L1 = new Led({ footprint: "0402" }) board.add(R1) board.add(L1) const trace = new Trace({ width: "0.2mm" }) trace.connect(R1.output, L1.anode) board.add(trace) circuit.getCircuitJson() // [{ type: "board", ...}, { type: "resistor", ...}, ...] ``` ## Development - [How does core work?](./docs/DEVELOPMENT.md#overview-of-how-core-works) - [How to do benchmarking or debug performance](./docs/DEVELOPMENT.md#debugging-performance)