# DigiKey CAD Models page (chip-fetcher playbook)

DigiKey hosts a dedicated **Footprints and Models** page per part at `digikey.com/en/models/<product-id>`. This is separate from the product detail page (`/en/products/detail/...`) and is where CAD downloads live. The product detail page has datasheets but NOT the CAD format picker.

## URL pattern

```
https://www.digikey.com/en/models/<product-id>
```

The `<product-id>` is the numeric ID from the product detail URL (e.g. `2637915` from `/en/products/detail/abracon-llc/ABM8G-24-000MHZ-B4Y-T3/2637915`).

## What the page shows

Three expandable accordion sections, each from a different upstream:

| Section | What it provides | Two-layer provenance |
|---|---|---|
| **Manufacturer Provided** | STEP file (`.stp` or `.STEP.zip`) hosted on the mfr's CDN | discovery_source=digikey, content_origin=manufacturer |
| **Ultra Librarian** | Symbol + footprint + 3D in multiple EDA formats (KiCad v5, v6+, Altium, Eagle, OrCAD, PADS, etc.) | discovery_source=digikey, content_origin=ultralibrarian |
| **SnapMagic** | Symbol + footprint + 3D, same format range | discovery_source=digikey, content_origin=snapmagic |

**Key insight:** the Manufacturer Provided STEP is often the ONLY place the mfr's own 3D model is surfaced outside the mfr's website. Abracon, for example, hosts their STEP on an Aliyun CDN (`abracon.com/Support/STEP/...`) — DigiKey links directly to it. This makes DigiKey's models page a critical stop in the ladder, not just a fallback.

## Download flow

1. Click the accordion section (e.g. "Ultra Librarian >") to expand it.
2. The section shows Symbol / Footprint / 3D Model previews.
3. Click the red **"Select Download Format"** button at the bottom.
4. A modal appears: **"Choose Download Format"** with radio buttons for every supported EDA format (3D CAD: IGES v5.3, STEP, STL; 2D Model: Altium, KiCad v5, KiCad v6+, Eagle, OrCAD, PADS, etc.).
5. Select **KiCad v6+** (or the target format).
6. Click **Download**.
7. A **DOWNLOAD AGREEMENT** modal MAY appear — it requires scrolling the agreement text to the bottom before the acceptance mechanism activates. Check for a checkbox inside the agreement modal and check it.
8. The download lands in `~/Downloads` as a zip.

## Chrome download permission issue

**As of 2026-05-08:** scripted clicks (`browser_eval → btn.click()`) are silently blocked by Chrome. The download triggers (analytics fire, agreement modal appears) but no file lands. This is a Chrome security policy for non-user-gesture downloads.

**Current workaround:** use `fetch().arrayBuffer()` + base64 transfer inside the browser context for the Manufacturer Provided STEP (direct URL is visible on the page). For UL/SnapMagic format-picked downloads, the download URL is dynamically generated and not fetchable inline.

**Permanent fix:** adom-desktop needs `Page.setDownloadBehavior({behavior:'allow'})` as a default on every pup page — see the adom-desktop prompt for "full capability mode."

## Manufacturer Provided STEP — proven inline-fetch pattern

The STEP link is a direct `<a href="https://mfr-cdn.com/.../Part.STEP.zip">` on the page. Even when Chrome blocks the download, the bytes are fetchable via:

```javascript
const r = await fetch("https://abracon.com/Support/STEP/Resonators/ABM8G.STEP.zip", {credentials:"omit"});
const b = await r.arrayBuffer();
// base64 encode + transfer back to container
```

This is the same pattern as `chip-fetcher pup-pdf-fetch`. The URL is visible in the page's `<a>` tags — scrape eval to find it.

## Two-layer provenance

When importing files from DigiKey's models page, ALWAYS record both layers:

```bash
chip-fetcher import /tmp/ABM8G.STEP.zip --mpn ABM8G-24.000MHZ-B4Y-T3 \
  --discovery-source digikey \
  --content-origin manufacturer \
  --source-url "https://abracon.com/Support/STEP/Resonators/ABM8G.STEP.zip"
```

Chipsmith reads this and shows: "found on DigiKey → made by Abracon (manufacturer)".

## When to use this playbook

- After the manufacturer's own site doesn't host CAD (Abracon, many crystal/passive mfrs)
- When SnapMagic's direct download fails ("Oh Snap!" error, Chrome blocking)
- When Ultra Librarian's login is broken
- DigiKey's models page often has ALL THREE sources in one place — check it before fighting individual vendor sites
