RepositoryPythonCZCzechia
YA

yaqwsx/jlcparts

Better parametric search for components available for JLC PCB assembly

849stars
78forks
18issues
7views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: smt

#1 Repository of the week

1
TINIX TRENDING·Topic: jlc

#1 Repository of the week

2
TINIX TRENDING·Topic: jlcpcb

#2 Repository of the week

Logo

JLC PCB SMD Assembly Component Catalogue

A better tool to browse the components offered by the JLC PCB SMT Assembly Service.

How To Use It?

Just visit: https://yaqwsx.github.io/jlcparts/

Why?

Probably all of us love JLC PCB SMT assembly service. It is easy to use, cheap and fast. However, you can use only components from their catalogue. This is not as bad, since the library is quite broad. However, the library UI sucks. You can only browse the categories, do full-text search. You cannot do parametric search nor sort by property. That's why I created a simple page which presents the catalogue in much nicer form. You can:

  • do full-text search
  • browse categories
  • parametric search
  • sort by any component attribute
  • sort by price based on quantity
  • easily access datasheet and LCSC product page.

Do You Enjoy It? Does It Make Your Life Easier?

ko-fi

Support on Ko-Fi allows me to develop such tools as this one and perform hardware-related experiments.

How Does It Look Like?

Title page

Preview 1

Property filter

Preview 2

Component detail

Preview 3

How Does It Work?

The page has no backend so it can be easily hosted on GitHub Pages. Therefore, Travis CI download XLS spreadsheet from the JLC PCB page, a Python script process it and it generates per-category JSON file with components.

The frontend uses IndexedDB in the browser to store the component library and perform queries on it. Therefore, before the first use, you have to download the component library and it can take a while. Then, all the queries are performed locally.

Development

To get started with developing the frontend, you will need NodeJS & Python 3.

Set up the Python portion of the program by running:

$ virtualenv venv
$ source venv/bin/activate
$ pip install -e .

Download the cached parts database as shown in the GitHub Actions workflow, then process it:

$ mkdir -p web/public/data/
$ jlcparts buildtables --jobs 0 --ignoreoldstock 30 cache.sqlite3 web/public/data

To launch the frontend web server, run:

$ cd web
$ npm install
$ npm start

Attribute Normalization Tests

When changing one attribute normalization rule, use the focused section scan instead of rebuilding the whole generated database:

$ PYTHONPATH=. pytest -q test/test_attribute_section_scan.py --attribute-section 'Peak Forward Surge Current'

If cache-v2.sqlite3 is present in the repository root, this command reads raw values for only that selected section directly from the compact source database. It does not rebuild the frontend datatables.

Pass --attribute-section multiple times to test a small batch. To test raw values before rebuilding datatables, pass them directly:

$ PYTHONPATH=. pytest -q test/test_attribute_section_scan.py \
    --attribute-section 'Vbo (Range Value)' \
    --attribute-value '35V~45V'

To test one section against a non-default compact source database path, point the same test at it explicitly:

$ PYTHONPATH=. pytest -q test/test_attribute_section_scan.py \
    --attribute-section 'Peak Forward Surge Current' \
    --attribute-source-db cache-v2.sqlite3

The legacy cache.sqlite3 format is also supported with --attribute-sqlite, but it is slower because raw attributes are stored inside larger JSON blobs.

For textual sections whose values do not contain numbers, include all generated strings explicitly:

$ PYTHONPATH=. pytest -q test/test_attribute_section_scan.py \
    --attribute-section 'Features' \
    --attribute-all-strings

The Page Is Broken!

Feel free to open an issue on GitHub.

You Might Also Be Interested

  • KiKit: a tool for automatic panelization of KiCAD PCBs. It can also perform fully automatic export of manufacturing data for JLC PCB assembly - read the documentation or produce a solder-paste stencil for populating components missing at JLC PCB - read the documentation.
  • PcbDraw: a tool for making nice schematic drawings of your boards and population manuals.

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
Bouni/kicad-jlcpcb-tools

Plugin to generate BOM + CPL files for JLCPCB, assigning LCSC part numbers directly from the plugin, query the JLCPCB parts database, lookup datasheets and much more.

2.2k
Nov 27, 2026
RepositoryPython
CDFER/JLCPCB-Kicad-Library

A set of symbols, footprints and 3d models of the basic components from JLCPCB's smt assembly

629
Sep 21, 2026
RepositoryPython
openscopeproject/InteractiveHtmlBom

Interactive HTML BOM generation plugin for KiCad, EasyEDA, Eagle, Fusion360 and Allegro PCB designer

4.7k
Nov 13, 2026
RepositoryPython
trailofbits/manticore

Symbolic execution tool

3.9k
Jun 24, 2026
RepositoryPython
yaqwsx/KiKit

Automation tools for KiCAD

2.1k
Nov 8, 2026
RepositoryPython
yaqwsx/PcbDraw

Convert your KiCAD board into a nicely looking 2D drawing suitable for pinout diagrams

1.5k
Oct 9, 2026
RepositoryPython
py2many/py2many

Transpiler of Python to many other languages

1.4k
Nov 3, 2026
RepositoryPython
drandyhaas/KiCadRoutingTools

A set of Python/Rust tools to aid routing in KiCad

928
Dec 2, 2026
RepositoryPython
pysmt/pysmt

pySMT: A library for SMT formulae manipulation and solving

640
Nov 25, 2026