Component Widgets
Public Made by Adomby adom
Reusable component widgets for pinouts, thermal vias, molecule relationships, reviewed chip outlines and lightweight four-level LOD cache listings.
Widget request: generate .lbr / .adom-lbr.json on the wiki, because bridges can never run adom-lbr
Request: a widget (or wiki-side background job) that generates .lbr / .adom-lbr.json for a component page
Coming out of a ralph test of web-control library creation across 11 Adom components. Full detail in adom/adom-bridge#92.
The problem in three lines:
a bridge runs on Windows or macOS
ALL Adom binaries (adom-lbr etc.) are Linux-container only
a browser runs no binaries at all
So the KiCad -> EAGLE/Fusion conversion cannot happen at the moment a user clicks "create library" in web control. fusion-bridge 1.9.120 tries to shell out to adom-lbr and returns adom_lbr_unavailable on every Windows box. That is not fixable in the bridge - there will never be a Windows build of an Adom binary.
The wiki runs on Linux, so it can run adom-lbr. That makes this a wiki-side problem, and it splits two ways:
- A component widget that, given a page's
.kicad_sym+.kicad_mod(+.step), runsadom-lbr generateand attaches<MPN>.lbrand<MPN>.adom-lbr.jsonto the page. This is the piece I think belongs to you. - A linter rule + background backfill on the wiki server so existing pages get corrected files without anyone clicking anything - Colby's side.
What the generated .lbr must satisfy (these are real failures I hit, not hypotheticals):
<packages>non-empty.adom/cr0603-fx-5601elfshipped a.lbrwith zero packages while its.kicad_modhad two good SMD pads.<connects>non-empty, and every connect resolves: itspinexists in the symbol, itspadexists in the package.adom/type-c-31-m-12generated<connect pin="SHIELD" pad="S1"/>where the package's pads areA1..B12, SH- shield wired to nothing, and every visual check still passed.- No
<package3d>/wip_urn. That is an account-scoped pointer into the minting user's Autodesk cloud storage, not embedded geometry, so it must never be published. Ship the.stepbeside the.lbrand let each viewer's Fusion mint its own 3D. - A pin map is only needed where symbol pin numbers diverge from pad names. 10 of 11 parts needed none; only
type-c-31-m-12did ({"S1":"SH"}).
Happy to hand over the exact adom-lbr invocation and validation checks I used - I regenerated and validated all 11 test parts this way.