JLCPCB Parts

JLCPCB Parts

Intelligent fuzzy search for JLCPCB basic and preferred electrical components with CLI interface. This TypeScript-based npm package provides smart component search capabilities by automatically managing a local database of JLCPCB parts and offering natural language search with intelligent parameter matching.

Dependencies

This package uses CDFER/jlcpcb-parts-database which provides a daily CSV download of all basic and preferred parts. That project depends on yaqwsx/jlcparts. Please consider supporting them.

Features

  • ๐Ÿ” Intelligent Fuzzy Search: Find components using natural language descriptions
  • ๐Ÿ“ฆ Automatic Database Management: Downloads and caches JLCPCB components database
  • โšก Fast CLI Interface: Quick command-line searches with formatted output
  • ๐ŸŽฏ Smart Parameter Parsing: Recognizes electrical values, packages, tolerances, and more
  • ๐Ÿ“Š Scored Results: Get ranked results with match explanations
  • ๐Ÿ”„ Auto-Updates: Keeps component database fresh (24-hour cache)
  • ๐ŸŽจ Multiple Output Formats: Detailed, compact, table, or JSON display options
  • ๐Ÿ”ง Programmatic Integration: JSON output for scripting and automation

Installation

Global Installation

npm install -g @typecad/jlcpcb-parts

After global installation, you can use the jlcpcb-search command from anywhere:

jlcpcb-search "10k resistor 0603"

Local Installation

npm install @typecad/jlcpcb-parts

Quick Start

Basic Search

# Search for a 10kฮฉ resistor in 0603 package
jlcpcb-search "10k resistor 0603"

# Search for a 100ยตF capacitor rated for 16V
jlcpcb-search "100uF capacitor 16V"

# Search for buttons
jlcpcb-search "SPST button"

Read the full documentation here