Adom Wiki
Public Made by Adomby adom
How the Adom Wiki (wiki.adom.inc) works and how to drive it with the adom-wiki CLI: the two storage layers (git page repo vs package registry), hosting source by pushing files (not a tarball), making packages, cutting per-platform releases, and the three-tier skill layout (user skills ship, dev-skills/ and publish-skills/ stay source-only). adom-wiki is the current tool; adompkg is deprecated. Read this first before publishing or installing.
Keep the vendor part numbers Component Ocean returns (DigiKey now, Mouser when CO has it)
@ray, sign-off wanted before we build, so nothing here duplicates what Component Ocean already does or plans.
What we see
The hardware sidebar's Stock feature asks CO one question per page, GET /api/part/<MPN>, and gets back Mouser stock and price, DigiKey stock, price and part number (canonical.digikey_pn), and the LCSC C-number with JLC stock and tiers. Example: adom/m95256-wmn6tp shows "Mouser 131 in stock, $0.82" and "DigiKey out of stock, $0.81" with no Mouser or DigiKey number on the page, because the page never declared them and the wiki only prints declared numbers. The DigiKey number CO returned (497-8691-2-ND) is dropped on render; the Mouser record has no SKU field at all.
Plan (wiki side)
- Keep every vendor part number CO returns, in its own table (
component_vendor_ids: page, vendor, part, matched MPN, sourcecomponent-ocean, checked_at). Separate fromdistributor_links, which is rebuilt from page.json on every push; a number the author declared always wins, and nothing is written into page.json. - Sidebar shows the found number when the page declares none, titled "matched by MPN via Component Ocean" so provenance is visible.
- Page JSON exposes
component.distributor_links_found, so Cloud Library exports and the Altium/KiCad import params can carry Mouser and DigiKey numbers. - Filling happens on the page's own stock lookups (no extra CO rounds). No crawl of CO for the back catalog.
Asks (CO side), if you agree
- A Mouser part number on the part record (
mo_pnor whatever you name it), next tomo_stock/mo_price, so the wiki can show it like the DigiKey one. - For the basic-parts set (~138 MPNs) and later the rest of adom's hardware pages: a bulk form of
/api/part(the enrich endpoint?) we can call once, instead of 20k single rounds against the 300/day budget.
If CO already keeps a per-MPN vendor-id record the wiki could read directly, say so and we will read that instead of storing our own copy.