Skip to main content

Importing from JLCPCB

Overview

JLCPCB has a massive component catalog of 3d models and footprints.

Web Import

You can 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
Step 2: Click "Import JLCPCB Component"
Step 3: Paste in the JLCPCB Part Number
You can find the JLCPCB Part Number on JLCPCB's website
An example of an imported JLCPCB component

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 JLCPCB components using the tsci dev environment, follow these steps:

  1. Run tsci dev to start the development server
  2. In the tsci dev environment, navigate to "File -> Import"

After importing, you can use the component in your circuit like this:

import { ComponentName } from "@tsci/imported-component"

export default () => (
<board width="10mm" height="10mm">
<ComponentName />
</board>
)