Skip to content

Latest commit

 

History

History
70 lines (56 loc) · 2.54 KB

README.md

File metadata and controls

70 lines (56 loc) · 2.54 KB

⏣ tscircuit - React for Circuits

Make electronics using Typescript and React.

tscircuit is a library complemented by a registry, package manager, and command line tool that makes it easy to create, share, export and manufacture electronic circuits.

const Circuit = () => (
  <>
    <bug
      name="B1"
      port_arrangement={{ left_size: 3, right_size: 3 }}
      center={[0, 0]}
      footprint="sot236"
      port_labels={{
        1: "PWR",
        2: "NC",
        3: "RG",
        4: "D0",
        5: "D1",
        6: "GND",
      }}
    />
    <resistor
      x={2}
      y={-0.5}
      name="R1"
      resistance="10ohm"
      footprint="0805"
      pcb_x="4mm"
      pcb_y="-1mm"
    />
    <ground x={3} y={1} name="GND" />
    <trace path={[".B1 > .D0", ".R1 > .left"]} />
    <trace path={[".R1 > .right", ".GND > .gnd"]} />
  </>
)

Example Circuit Rendering

Getting Started

npm install -g tsck

tsck init

tsck dev

Development Sub-Projects / Organization

tscircuit includes a lot of different independently-runnable sub-projects. Here's a quick guide to navigating all of the sub-projects:

Core Libraries

Project Description
@tscircuit/builder A typescript-native library for building circuits (no React). Converts typescript into "the soup format"
@tscircuit/tsck The tscircuit command line tool and development environment
@tscircuit/schematic-viewer The Schematic renderer
@tscircuit/pcb-viewer The PCB renderer

Other Projects