[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-117270":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":22,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":9,"trendingCount":14,"starSnapshotCount":14,"syncStatus":13,"lastSyncTime":27,"discoverSource":28},117270,"circuit-studio","arslansadiq87\u002Fcircuit-studio","arslansadiq87","Free, open-source 3D circuit design and visualization tool for makers, students, and electronics enthusiasts. Build, wire, and explore electronic projects directly in your browser.",null,"TypeScript",59,23,2,0,4,7,15,56.34,"MIT License",false,"main",true,[],"2026-11-23 10:54:01","2026-11-23 09:45:57","# Circuit Studio 3D\n\nCircuit Studio is a browser-first editor for arranging, wiring and presenting 3D electronics components. The editor uses React, TypeScript, Three.js, React Three Fiber, Drei, Zustand and Zod.\n\nSee [Feature report and demo guide](docs\u002FFEATURES_AND_DEMO_GUIDE.md) for the complete feature inventory, recording outline, vlog talking points, and public-demo accuracy notes.\n\n## Run the editor\n\n```bash\nnpm install\nnpm run dev\n```\n\n## Deploy the website\n\nSee [DEPLOY.md](DEPLOY.md) for static hosting instructions and the included GitHub Actions workflow for deploying to GitHub Pages. The Pages workflow deploys pushes to `main` after GitHub Pages is enabled with **GitHub Actions** as its source.\n\nOpen the Vite URL shown in the terminal. Drag in the canvas to orbit, right-drag to pan, and use the wheel to zoom. Top, bottom, front and rear views, fit-selected, fit-circuit, and zoom controls adjust the live camera. Choose Dark Workbench, Clean White Studio, Neutral Technical, or Transparent Background from the viewport preset menu. Search the component library and click a part to add it. Select a part and edit position\u002Frotation in the inspector. Select **Wire**, then click two visible pin markers. Select a wire to edit its label, color, diameter, route mode, lift height, curvature and manual bend points.\n\n**Save** downloads a `.c3dproj` JSON project. It contains component\u002Fwire\u002Fcamera data and embeds any custom model asset as base64 so the file travels independently of browser storage. **Open** validates the document and restores embedded custom models into the local library. **Export** renders the scene at 1920x1080, 2560x1440, 3840x2160, or a custom resolution. Transparent PNG export is supported.\n\n## Create a custom component\n\n1. Click **Create component** at the bottom of the parts bin.\n2. Choose **Create PCB** or an import format.\n3. For an imported model, select a local GLB, glTF, OBJ or STL. GLB is the preferred single-file option. For glTF, select the `.gltf` and each referenced `.bin`\u002Fimage sidecar together. External references are embedded into the saved component; temporary object URLs are never saved.\n4. Set component name, category, physical width\u002Fheight\u002Fthickness in millimetres, model orientation, and origin offset.\n5. Use **Add Pin** or click a physical model location. Edit pin ID, label, local X\u002FY\u002FZ coordinates, electrical type, known voltage, orientation and wire-exit direction in the pin table. Remove unwanted pins with the trash control.\n6. For a procedural PCB, set color, total pin count, header row count and pitch; regenerate a centered pin array, then refine positions and labels.\n7. Save the component to the browser's local IndexedDB library. Use **Export package** to download a portable `.c3dcomponent` JSON package (model bytes are included as base64). **Import package** adds one to the local library. Click a custom-library entry to add it to a project.\n\nModel and sidecar imports are limited to 80 MB total. Flat models receive a minimum calibrated thickness of 0.1 mm. GLB, glTF, OBJ and STL geometry load locally; OBJ material sidecars (MTL) are not imported. A glTF with an unselected or missing external resource is rejected with a specific error.\n\n## Pin mapping and geometry status\n\nThe current board is **ESP32-S3**, using the supplied original CAD model. The retired ESP32-S3-DevKitC-1 v1.1 is no longer available for insertion or replacement; older projects retain compatibility with its saved pin definitions.\n\nUSB-A is now the supplied STEP breakout board with four measured screw-terminal wire entries. Stable signal IDs are A1 VBUS, A2 D-, A3 D+, A4 GND; labels are checked against the model's markings. Existing socket instances upgrade with their wiring preserved. See [USB breakout import](docs\u002FUSB_BREAKOUT.md).\n\n## ESP32-S3 CAD model\n\n**ESP32 WROOM** is also available in Parts Bin from the supplied `ESP32Wroom.glb`. Its runtime copy preserves all 65,200 triangles in about 442 KB. Its 38 header pins are mapped to the modeled NodeMCU ESP-32S V1.1 silkscreen, with measured underside contacts; see [ESP32 WROOM](docs\u002FESP32_WROOM.md).\n\nThe parts bin contains ESP32-S3, built from the supplied YD-ESP32-S3 v34 STEP assembly. Its source-derived GLB is bundled under `public\u002Fmodels`, and its 44 header contacts have measured 2.54 mm pitch and CAD tip coordinates. The inspector reports geometry, pin-position, and electrical-label verification separately. Select **Calibrate physical pins** to display\u002Fedit anchors, and use **Auto Arrange** to arrange the ESP32-S3, USB-A socket, and external supply. Project files reference this bundled asset by URL; custom uploads remain embedded in project files. The supplied STEP has no author or license field, and its Type-C contacts do not have a verified electrical map. Read [CAD import](docs\u002FCAD_IMPORT.md), [model calibration](docs\u002FMODEL_CALIBRATION.md), and [pin alignment](docs\u002FPIN_ALIGNMENT.md).\n\n## Project and component coordinate systems\n\nAll physical dimensions and pin local coordinates use millimetres. A component's `[x,y,z]` position is its model origin in project space. Pin `localPosition` is measured from that origin before the component's X\u002FY\u002FZ degree rotation. Wire rendering resolves the named component and pin IDs and applies the component transform to the pin coordinate. The ESP32 board origin is its center; the custom builder centers imported geometry by its bounding box and lets the user change the origin offset. Imported geometry is scaled to the saved dimensions, then rotated by the saved model orientation.\n\nA `.c3dcomponent` package is version 1 JSON with a component manifest, pin table, dimensions, geometry\u002Fimport metadata and optional base64 model bytes. It is portable but not compressed. Browser-local library records reference SHA-256-addressed binary assets in IndexedDB. **Package** saves a binary `.c3dzip` project including all used CAD LODs; **Save** retains version 1 JSON with embedded assets. **Open** accepts both formats and migrates older board\u002FUSB pin IDs.\n\n## Build and tests\n\n```bash\nnpm run build\nnpm run test\nnpx playwright install chromium\nnpm run test:e2e\n```\n\n`npm run test` runs Vitest geometry, pin-map, project migration, connection, undo\u002Fredo and IndexedDB tests. The browser regression script creates an in-memory GLB triangle, imports it, creates four pins, imports a glTF with an external binary sidecar, saves both, reloads and places them, moves\u002Frotates a part, checks camera controls, exports a project and PNG, clears IndexedDB, then opens the project and verifies embedded model restoration. The standard browser suite exercises imported model assets, save\u002Freopen and rendering paths. The separate CAD browser check loads the supplied STEP-derived assembly, verifies the two USB signal endpoint IDs, saves the project, and exports an exact 3840×2160 PNG.\n\n## Current limitations\n\nKnown gaps include full collision-aware cable routing, generated Dupont shells, orthographic projection, a fixed 16:9 viewport, complete underside CAD detail, and a manufacturer-specific USB receptacle model. The board and connector geometries are procedural approximations. Browser library data is local to that browser profile until the user exports a component package or project file.\n\n\n## Sprint 3.6: performance and portable CAD\n\nThe default USB circuit contains one original ESP32-S3 CAD board, USB-A and regulated supply with five verified connections. The retired DevKitC-1 is removed from Parts Bin and replacement choices. Select a component and choose **Replace Component Model** to review signal mappings, resolve duplicated grounds, keep its transform and preserve connections; the replacement supports Undo.\n\n**Settings** contains Balanced\u002FLow\u002FHigh\u002FUltra, detail, pixel ratio, anti-aliasing, shadow, texture, grid, UI scaling and PNG geometry controls, plus the optional Performance Monitor. Rendering stops when idle. Fit All (camera icon), Fit Selected and Center Circuit frame the visible circuit. PNG preparation loads High CAD and wire detail independently of editing settings.\n\n```powershell\nnpm run optimize:cad\nnpm run profile:performance\nnode scripts\u002Fprofile-performance.mjs optimized-hardware1080 --hardware --full-canvas\nnpm run test:e2e:performance -- --hardware\n```\n\nOptimization requires the existing master GLB and development dependencies; it never overwrites the STEP\u002Fmaster. Hardware commands use installed Chrome with ANGLE D3D11. The standard E2E command runs both the original custom-component regression and Sprint 3.6 acceptance with Playwright Chromium\u002FSwiftShader.\n\nSee [baseline](docs\u002FPERFORMANCE_BASELINE.md), [results](docs\u002FPERFORMANCE_RESULTS.md), [asset\u002Fpackage architecture](docs\u002FASSET_MANAGEMENT.md), and [graphics\u002FLOD behavior](docs\u002FGRAPHICS_AND_LOD.md). Reusable captures are in `scripts\u002Fcapture-sprint36.mjs` and `scripts\u002Fcapture-cad-comparison.mjs`.\n\nThe 3 mm LED now uses the supplied STEP model with a per-instance lens color picker. See [LED import and color controls](docs\u002FLED_3MM.md).\n\nESP32-C6 Supermini is available from the supplied STEP, with 20 measured header tips, five GPIO solder pads and two battery pads. Its searchable pin table includes USB\u002FUART roles and strapping notes. See [C6 import and pin verification](docs\u002FESP32_C6_SUPERMINI.md).\n\nESP32-C3 Zero is available from the supplied STEP, with all 18 manufacturer-numbered castellated contacts, searchable USB\u002FUART\u002FADC roles, strapping notes and measured solder-pad anchors. See [C3 Zero import and pin verification](docs\u002FESP32_C3_ZERO.md).\n\nESP32 WROOM-32 (30 pin) uses the supplied STEP with realistic embedded surface textures, metallic finishes and 30 CAD-measured header contacts. Its user-selected standard electrical map is distinguished from exact PCB verification. See [30-pin model, materials and pinout](docs\u002FESP32_30PIN.md).\n\nConnections can be drawn with **Animate all** or **Animate one by one** in the bottom panel. Both follow the saved source-to-destination routes and respect hidden nets; **Stop** restores the complete wiring. See [connection animation](docs\u002FWIRE_ANIMATION.md).\n\nUse the viewport four-arrow **Move components (X\u002FY)** tool to left-drag parts while keeping height fixed. Wires follow live, each drag has one Undo step, and Escape cancels. Select mode restores normal camera orbit. See [mouse component movement](docs\u002FCOMPONENT_MOVEMENT.md).\n\n\nSelect a wire in **Manual curve** mode and choose **Edit route with mouse** to drag its bend handles. Top view edits X\u002FY; Front edits X\u002FZ. Each drag supports Undo and Escape cancellation. See [manual wire editing](docs\u002FMANUAL_WIRE_EDITING.md).\n\nDrag the grip in the Connections table to set the one-by-one net animation sequence. The row order is saved with the project.\n\n## Automatic cinematic wiring videos (Sprint 4)\n\n**Auto Video** generates a silent, native-resolution wiring tutorial directly from the current circuit. It plans cameras from real CAD bounds and pin anchors, reveals saved wire routes in saved order, composites technical labels into every frame, and muxes a playable MP4. Optional settings provide WebM\u002FPNG fallback, 1080p\u002F1440p\u002F4K, 24\u002F30\u002F60 FPS, preview seeking, shot overrides and reusable presets. Original editor animation controls remain available.\n\n- [User workflow and presets](docs\u002FAUTO_VIDEO_GENERATOR.md)\n- [Video background presets, gradients, floor\u002Fgrid controls, alpha limits and saved settings](docs\u002FVIDEO_BACKGROUNDS.md)\n- [Automatic camera planning and limitations](docs\u002FAUTO_CAMERA_PLANNING.md)\n- [Deterministic timeline](docs\u002FANIMATION_TIMELINE.md)\n- [Encoding and memory pipeline](docs\u002FVIDEO_RENDER_PIPELINE.md)\n- [Acceptance tests and media artifacts](docs\u002FVIDEO_EXPORT_TESTING.md)\n- [Example 1080p30 MP4](artifacts\u002Fsprint4-tutorial-1080p30.mp4)\n- [Short native 4K MP4](artifacts\u002Fsprint4-sample-4k.mp4)\n\nRun `npm run test:e2e:video` for the real Chromium video acceptance, or `npm run test:e2e` for all browser regressions. The Vite development server must be running on port 5173. Video acceptance requires installed Chrome with working WebCodecs and FFmpeg\u002Fffprobe on PATH; unsupported H.264 is reported as a failure for the acceptance example, not skipped.\n\n### Local model drop folder\n\nPlace source models in the repository's `Custom Components\u002F` folder. This folder is ignored by Git. Keep any `.gltf` file together with its referenced `.bin` and image files. In Component Workshop, choose the matching model format and select the file from this folder (for glTF, select its sidecars too). Then calibrate dimensions and pins, save the part to the local library, and add it to the project. An agent working in this repository can read models from this folder and prepare the component metadata; a browser cannot automatically read arbitrary local files without a file selection. For a portable project, use **Save** or **Package** to embed the imported model.\n","2026-11-24 04:55:13","CREATED_QUERY"]