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
- Search components — query the Octopart database by keyword or MPN
- Build BOM — add components to a bill of materials
- Generate enclosure — auto-compute bounding box from BOM dimensions + padding
- Layout PCB — define board outline shape and thickness
- Scaffold firmware — select target MCU and language
Component Search
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
| MCU | Languages |
|---|---|
| ESP32 | C++, MicroPython |
| RP2040 | C++, MicroPython |
| STM32F4 | C++, Rust |
| nRF52 | C++, Rust |