Importing from JLCPCB
Overview
JLCPCB has a massive component catalog of 3d models and footprints. You can import components using either the web interface at tscircuit.com or through RunFrame.
Web Import
You can also import JLCPCB components on tscircuit.com. After
importing the snippet, it'll be given a package name like @tsci/YOUR_NAME.CHIP_NAME
and available for import from the tscircuit registry.

Step 1: Go to tscircuit.com
and press the "new" button



You can find the JLCPCB Part Number on JLCPCB's website

After your component has been added to tscircuit, you can import it as a
@tsci/*
import like this:
import { ESP32_WROOM_32DC } from "@tsci/AnasSarkiz.ESP32_WROOM_32DC"
export default () => (
<board width="10mm" height="10mm">
<ESP32_WROOM_32DC />
</board>
)
CLI Import
To import using the CLI, run npm install -g easyeda
. This will give you the
easyeda
command line tool. You can then run easyeda convert
as shown below
# Convert a schematic and footprint for JLCPCB part number C46749 (NE555)
# to tscircuit component
easyeda convert -i C46749 -o C46749.tsx
easyeda convert -i C46749 -t tsx
This will create a tsx
file that you can import.