hashgraph-online/awesome-codex-plugins / plugins/aklofas/kicad-happy/skills/element14
element14
VerifiedSearch Newark, Farnell, and element14 for electronic components — find parts by MPN or distributor part number, check pricing/stock, download datasheets, analyze specifications. One unified API covers all three storefronts (Newark for US, Farnell for UK/EU, element14 for APAC). Free API key, simple query-parameter auth, no OAuth. Datasheets download directly from farnell.com CDN with no bot protection. Sync and maintain a local datasheets directory for a KiCad project, or use batch MPN-list seeding (`--mpn-list`) for bulk workflows without a project. Use this skill when the user mentions Newark, Farnell, element14, needs parts from a non-US distributor, wants to compare pricing across regions, or needs datasheets from a source that doesn't require complex API auth. For package cross-reference tables and BOM workflow, see the `bom` skill.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.1 KB |
| scripts/_core_path.py | script | 697 B |
| scripts/fetch_datasheet_element14.py | script | 6.6 KB |
| scripts/provider_element14.py | script | 10.4 KB |
| scripts/sync_datasheets_element14.py | script | 3.0 KB |
scripts/sync_datasheets_element14.py
View on GitHub#!/usr/bin/env python3
"""Sync a local datasheets directory for a KiCad project via element14 (Newark/Farnell).
Extracts components with MPNs or distributor PNs from a KiCad schematic (or
pre-computed analyzer JSON), searches the element14 Product Search API for
datasheet URLs, downloads missing PDFs, and maintains a manifest.json file
(legacy name index.json still read for backward compat).
The manifest.json format matches across distributor skills so they can
contribute to the same datasheets directory. The source field
distinguishes which distributor provided the datasheet.
Download strategy per part:
1. Try the datasheet URL from the schematic itself
2. Search element14 API → download from farnell.com CDN (direct PDF URL)
3. Try manufacturer-specific alternative URL patterns
Usage:
python3 sync_datasheets_element14.py <file.kicad_sch>
python3 sync_datasheets_element14.py <analyzer_output.json> --output ./datasheets
python3 sync_datasheets_element14.py <file.kicad_sch> --force # retry failures
python3 sync_datasheets_element14.py <file.kicad_sch> --dry-run # preview only
python3 sync_datasheets_element14.py <file.kicad_sch> --store uk.farnell.com
python3 sync_datasheets_element14.py --mpn-list mpns.txt --dry-run
python3 sync_datasheets_element14.py --mpn-list mpns.txt --output ./datasheets
Environment:
ELEMENT14_API_KEY — required (free from partner.element14.com)
Dependencies:
- requests (pip install requests) — strongly recommended
- playwright (pip install playwright && playwright install chromium) — optional, only with datasheets.allow_private_hosts
"""
import sys
from pathlib import Path
# Import from sibling script (same skill)
sys.path.insert(0, str(Path(__file__).parent))
import _core_path # noqa: F401
import provider_element14
from provider_element14 import _DEFAULT_STORE
from distributor_core import sync as core_sync
from distributor_core.cli import sync_main
# ---------------------------------------------------------------------------
# Core sync logic
# ---------------------------------------------------------------------------
def sync_datasheets(**kwargs) -> dict:
"""Sync via the shared driver (distributor_core.sync) with the element14 adapter. Returns summary dict."""
return core_sync.sync_datasheets(provider_element14, **kwargs)
def main():
sync_main(
sync_datasheets,
description=("Sync datasheets for a KiCad project via element14 (Newark/Farnell). Parts with neither an MPN nor a part "
"number from this distributor are skipped."),
vendor="element14",
delay=0.5,
delay_help="Seconds between API calls (default: 0.5)",
add_extra=lambda parser: parser.add_argument(
"--store", default=_DEFAULT_STORE,
help=f"element14 store ID (default: {_DEFAULT_STORE})",
),
extra_kwargs=("store",),
)
if __name__ == "__main__":
from kicad_core.cli import utf8_stdio
utf8_stdio()
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |