TypeScript
import { renderPcb } from "pcb23d";
const out = await renderPcb(zipBytes, {
views: ["top", "bottom", "angle"],
width: 1600, height: 1200,
});
await Bun.write("top.png", out.images.top.png); bun add pcb23d · works in Bun, Node 18+, Deno, and browsers.