Skip to main content

Product Vibe-Coder

Design hardware products end-to-end: search components via Octopart, build a BOM, auto-generate enclosures, layout PCBs, and scaffold firmware.

Status: Scaffolded. Uses mock component data until NEXAR_API_KEY is configured.

Workflow

  1. Search components — query the Octopart database by keyword or MPN
  2. Build BOM — add components to a bill of materials
  3. Generate enclosure — auto-compute bounding box from BOM dimensions + padding
  4. Layout PCB — define board outline shape and thickness
  5. Scaffold firmware — select target MCU and language

The octopartProxy Cloud Function wraps the Nexar/Octopart GraphQL API. Currently returns mock data:

  • ESP32-WROOM-32E
  • BME280 (temperature/humidity sensor)
  • SSD1306 (OLED display)

Enclosure Generation

generateEnclosureFromBom() computes:

  • Width = max component width + 2 * wall thickness
  • Height = max component height + 2 * wall thickness
  • Depth = sum of component depths + padding

Materials: PLA, ABS, PETG, Aluminum

Supported Firmware Targets

MCULanguages
ESP32C++, MicroPython
RP2040C++, MicroPython
STM32F4C++, Rust
nRF52C++, Rust