What’s new in KiCad WebView
Self-hosted SDK 1.2.4 · npm / CDN 1.2.4 · MPL-2.0
Core embed API 1.0 is stable. Net selection retains the 3D camera; unrelated geometry fades to translucent gray in Dim mode. The current SDK reduces rendering work during motion, inspects saved schematic classes and links 2D component hover to the BoM. Expanded 3D, saved BOM, linked previews and registered WayriCAD results remain available. The same release is available through npm/CDN. Release details and downloads ↗
1.2.4 — WebGL2 instanced SDF + stencil 2D engine, O(1) cross-selection and neutral-graphite chrome
1.2.4 is the current self-hosted SDK and npm/CDN release. The core embed API remains 1.0-compatible.
- Instanced Analytic-SDF + Stencil WebGL2 2D engine (
KiCadWebGL2):#version 300 esinstanced round-cap capsules for copper tracks/wires/arcs, analytic signed-distance-field (SDF) shaders for pads/vias/drills, two-passINCR_WRAP/DECR_WRAPstencil non-zero winding polygons directly fromFloat64ArraypackedZones, and anR8GPU selection/dimming mask (0.5–3.0 msGPU draw,60–120 FPS). Automatic lossless fallback toCanvas2Dkeepsdist/liteunder350 KBraw (349,228bytes raw /121,397bytes gzip). - O(1) cross-selection & linked viewer fast-paths: Indexed part/UUID/net/schematic-UUID lookups deliver
0.27 mscross-selection onKERO(10.76 MBJS heap),1.73 msonOLIMEX ESP32-P4-DevKit(21.45 MBJS heap — 44% lower thankicanvas.org), and5.10 mson205,702-primitiveBerkeleyLab Marble(2.08 slocal load). - Neutral-graphite & mineral-sage chrome + proportional
--ui-scalesizing: Calm neutral-graphite Dark (#181a1d/#202327/#79d7c0) and clean Light (#f4f5f7/#ffffff/#2a7b68) standalone chrome, crisp1.75pxmonochrome stroke icons, proportional--ui-scaleemsizing, fluidclamp()picker and inspector widths, and symmetric A4 worksheet framing.
Validation: 753 automated tests, canonical ESM/IIFE/lite builds, and live Edge CDP pan/zoom/selection benchmarks passed.
GitHub release and ZIP · Hosted file checksums · npm 1.2.4 · Try KERO with 1.2.4 · Large-board lab
1.2.1 — motion, saved classes and linked BoM
1.2.1 remains available on this site, GitHub and npm.
- Pan or zoom a dense 2D drawing with the current frame reused during the gesture. The viewer also reduces work during 3D camera movement. Both restore full detail when movement stops.
- Inspect saved component classes and schematic rule-area directives. Highlight nets assigned to a class in the current sheet.
- Hover over a component in the 2D drawing or the linked BoM to preview it in amber in both. Supported embedded fonts load on demand, and the viewer decodes embedded PCB models referenced by the board.
Dynamic PCB class rules, custom DRC expressions and cross-sheet rule resolution require native KiCad.
GitHub release and ZIP · Hosted file checksums · npm 1.2.1 · Try KERO with 1.2.1
1.2.0 — large boards and drawing sheets
1.2.0 is available on this site, GitHub and npm. The pinned jsDelivr and UNPKG files match the npm release. The core embed API remains 1.0-compatible.
- 2D drawing and picking share saved filled-zone coordinates. Dense views batch opaque copper strokes and restore full detail after motion.
- Overlapping traces give picking priority to the viewed side. 3D net expansion updates selected geometry with less repeated board traversal.
- Open standalone KiCad worksheets or apply one to a drawing. Fit page shows the paper and title block, and the PCB Outline preset displays saved cutouts.
On Berkeley Lab’s public Marble board, the median peak working set for parsing, the drawing model and connectivity fell from 575,116 to 525,472 KiB (about 562 to 513 MiB, down 8.6%) versus the preceding compact-tree candidate, over three runs per version. Both produced 205,702 drawing primitives and 1,374 nets. The upstream browser checks covered KERO and mobile-width IRCA and Marble embeds. Median import times were 1.36 and 1.45 seconds respectively, with overlapping samples. The memory figure is process working set for that benchmark. Device frame times and total browser or GPU memory vary.
GitHub release and ZIP · Hosted file checksums · npm 1.2.0 · Try the worksheet and PCB outline · Try KERO with 1.2.0
1.1.0 — large-project memory and saved copper fidelity
1.1.0 remains available on npm and GitHub. The core embed API remains 1.0-compatible.
- Lower-memory source preparation, shared 2D/3D parsing, bounded model residency and direct typed zone geometry.
- Correct UUID/legacy pad identity joins, separate repeated pads and rounded IRCA JP5/JP6 copper. All 139 saved Marble copper contours now render without the former point-copy omissions.
- Camera-safe linked net selection, layer-colored copper, selected-net gold vias, saved expansion and sheet-occurrence navigation.
- Compact desktop/narrow-embed examples, render diagnostics and public TypeScript declarations.
Validation: 713 automated tests, canonical builds, CI, extracted-package type/import checks and archive audits passed. Marble and IRCA passed desktop and 340px iframe checks. Marble source-preparation additional retained heap fell 38.6% in the documented comparison; this is not a total-browser/GPU RAM ceiling or physical-phone qualification. Unsupported geometry and missing/proxy models remain disclosed.
GitHub release and ZIP · npm 1.1.0 · Large-project guide · Large-board lab · Narrow embed lab
1.0.0 — stable core API and camera-preserving inspection
1.0.0 is published on npm and GitHub. Those immutable 1.0.0 assets remain available; current examples use the release shown above.
Net and pad selection retain the 3D camera. In assembled and expanded Dim net views, only matching vias remain gold; unrelated copper, model bodies and structures fade to translucent gray. Copper-depth smoothing, saved drawing improvements, linked sheets and compact controls retain the viewer’s own UI style.
The core API marker changes from 1.0-beta to 1.0; existing documented methods, saved-state schemas and Expand aliases remain. API stability and migration.
Validation: 650 automated tests, CI, strict TypeScript 5.9.3 packed-consumer checks (NodeNext, Bundler and classic globals), archive/privacy/license checks and KERO browser acceptance. Physical-phone speed, universal GPU/driver coverage and live Forge installation are not newly qualified.
GitHub release and downloads · npm · KERO linked demo
0.8.0 — Photoreal Fast, Expand mode and compact inspection
The stable 0.8.0 library adds fast PBR studio rendering without a visible floor, smooth two-stage assembly expansion, layer-colored net shine-through and gold via plating. Copper clicks highlight the complete saved net by default; the inspector states that scope while retaining the clicked object properties. Compact ribbon and inset controls keep the drawing in focus.
Native schematic text placement and bounded loading/index handling are refreshed from KiCad Online. The synthetic 20,001-part test exercises late lookup; it does not qualify maximum-size 32-layer 3D performance or a physical phone.
Photoreal Fast demo · Expand mode · Large-project limits · Release source and downloads.
0.7.0 — linked inspection and native text previews
0.7.0 is published on npm, jsDelivr, UNPKG and GitHub. At that release, website demos and direct-script examples used the matching 0.7.0 SDK. Registry integrity and CDN files were checked against the release package.
This release integrates stable resizable Properties, bounded linked contextual previews, shared saved-result palettes, safer preview replacement and an accessible cancellable loading surface. Drawing additions include explicit project-variable context, bounded deterministic numeric expressions, horizontal schematic tables and orientation fixes.
The final source passed 555 tests, pinned ESM/classic/lite/3D builds, desktop Chromium acceptance and the exact package privacy/license/source audit. OLIMEX checks covered 168 parts, 141 loaded models, linked selection and mounting-side focus; numerical-test fixtures covered GPU palettes and exploded overlay restoration. Physical-phone and universal GPU acceptance are not claimed. Detailed QA evidence.
Drawing demo · Text, graphics and table limits · Panel and inset API.
0.6.0 — viewer refresh
This guide describes the 0.6.0 source refresh. The currently listed self-hosted SDK is 1.2.4, and npm/CDN is 1.2.4. Use a matching 0.6.0 build for these additions; this page does not announce an npm/CDN publication.
- Explode a supported 3D assembly with
setExplode(0–100)and restore it at zero. Spacing is display-only; registered result overlays/probes are hidden and measurement is disabled while exploded. - Retain saved RGBA colors, fills and dashes. Preview bounded schematic text boxes and validated embedded PNGs, with explicit approximation and omission warnings.
- Reopen the advanced workspace’s floating sheet browser, or control an independent
ProjectTreecamera with zoom, fit and reset. - Restore up to four exact-source/path/view camera snapshots while releasing inactive renderers. Fetch up to three listed schematics concurrently without changing deterministic ordering or loading limits.
0.6 guide, examples and limits · No-Node self-hosting · Open the OLIMEX workspace
Hierarchy concurrency is not a physical-phone performance benchmark. These are read-only inspection features; extension comments, authentication, editing and the Fast PI solver/setup UI are not included. Existing BoM analytics and WayriCAD retained-result APIs remain available.
0.5.0 — saved BoM and board data
The 0.5.0 SDK adds a read-only BoM panel linked to a native KiCad drawing, grouping and searching saved parts, exporting CSV, and locating uniquely identified components in PCB, schematic and 3D views. A board-data view summarizes saved pad and object counts, track centreline lengths and zone polygon sums. Try the OLIMEX demo · Integration and limits.
Reports describe saved source data; overlapping fill polygons are counted repeatedly, holes are not subtracted and placement candidates do not prove containment. No copper refill, clearance check or solver is performed. See the guide for source limits and interpretation.
0.4.0 — results directly on the 3D PCB
At its publication, 0.4.0 was available as the self-hosted SDK and GitHub download, while npm/CDN remained at 0.3.0. The current release status is shown above; immutable 0.4.0 files retain these additions.
- Register supported WayriCAD PI and thermal fields on the matching native 2D/3D PCB. The through-board presentation is labelled; hidden PCB layers hide their field.
- Choose Saved result layer while retaining the quantity where available. Link spatial probe markers between result plots and the board; native saved-part and trace selection remains usable.
- Preserve exact 3D hit values, triangle identity and elevation. Change saved thermal frames without changing the field range; source changes disable registration.
- Use a refined two-pane demo, grouped controls and a taller mobile board viewport.
Try the demo · Guide and API additions · Download and source · Self-hosted manifest
The release passed 455 automated tests. Browser checks covered registered fields, saved-layer visibility, exact linked probes, native part selection, thermal frames and 2D/3D mode retention. A desktop-browser embed had equal 340 px content and viewport widths. Physical-phone performance is unmeasured. The viewer displays saved results; it does not run or qualify a solver. Registration needs exact source identity and a supported saved elevation/basis or explicitly named outer copper surface. Unknown values remain missing; grid preview cells are not clipped to copper or cutouts.
0.3.0 — saved WayriCAD results
Read retained PI fields, SI waveforms and eye traces, and steady or transient thermal grids using WayriCADResultsViewer. Probe saved values, select recorded time frames, graph a thermal cell history and browse or download complete numerical data. Independent 3D fields require explicit saved elevation and share their color range with the 2D plot.
Exact saved PCB bytes are checked before enabling supported 2D field registration and saved net/segment links. Stale, unverified or unsupported coordinate data remains independently inspectable. Unknown values stay missing; no solver runs in the viewer. Project-library identity integrity and registration onto the native PCB 3D scene are not supported in this release.
Open the public example · Import and API guide · Source and download
The library remains free to use commercially under MPL-2.0. Optional implementation, maintenance and support help is paid. The generated example runs are credited to the pinned WayriCAD source and are not measured hardware or production boards.
0.2.1 — inspection controls and mobile embedding
Version 0.2.1 is available from npm, jsDelivr, UNPKG and the versioned self-hosted files. It is free to use, including commercially, under MPL-2.0; paid implementation, maintenance and support help is optional. Release download and source.
Try PCB inspection · Explore 3D copper · Open the project workspace
Highlight the design your way
Open Highlight settings to choose Dim context, Bright only or Isolate selection, with Accent color or Source colors. Styles apply to saved parts, pads and nets in schematic, PCB and 3D views. Select a part or trace before comparing them. Clearing selection restores the source appearance, and hidden layers stay hidden.
Choose whether clicks open saved properties with inspectOnSelect. Highlight settings belong to each viewer instance; linked selections can remain synchronized while panes use independent display settings.
Find and focus layers
The Layers panel searches saved layer names and shows layer colors and primitive counts. Use All, None, Front, Back or Copper presets. In 2D PCB view, Focus dims or isolates a layer, Fit focused layer frames its geometry, and Restore view recovers the saved visibility. With the drawing focused, [ and ] cycle layers and Shift+F fits the focused layer; text fields retain their normal keys.
In 3D, choose saved copper layers independently. Reveal internal copper switches to Translucent appearance, where internal copper becomes visible through the board and models. Focus and fit are 2D PCB operations. Where a complete saved stackup is unavailable, internal layer elevations are labelled illustrative.
The advanced workspace also has a Layers navigator tab for its active pane. Cross-selection does not force every pane to use the same layer visibility.
Lighter mobile integrations
Named KiCad files reuse one source-scoped parser result for drawing geometry, net information and later 3D switches. Unchanged file menus and theme icons retain their nodes. Net-only selection avoids constructing component bounds and outline buffers.
3D frames pause when the embed is off-screen, the document is hidden, the container has no size or its graphics context is interrupted. Pending changes remain dirty and refresh when the view becomes available. This suspends drawing; it does not cancel an already-running parse, model decoding or a caller’s animation timer. Browsers without IntersectionObserver retain the document, size and context checks.
The website’s direct and embedded demos start loading the design when the viewer approaches the screen; Load starts immediately. The approved IRCA runtime is loaded only when an IRCA example is requested. Switching between it and the released SDK opens a fresh document to keep their renderers separate.
What was measured
Three samples used the credited OLIMEX ESP32-P4-DevKit Rev.D1 PCB in a 340-pixel-wide desktop Chromium embed, Balanced rendering and proxy component models. Source download was excluded.
| Measurement | Previous working build | 0.2.1 candidate |
|---|---|---|
| Median source-to-PCB load | 507.7 ms | 296.5 ms |
| Median 3D mount | 1263.3 ms | 736.0 ms |
| Draws during 20 separated off-screen display updates | 20 | 0 |
The two timing medians were approximately 42% lower in this sample. Returning the viewer to the screen produced one coalesced refresh. Selecting the sampled signal net avoided 160 bounds evaluations without bounds or outline-buffer work.
These observations are not phone FPS, total network loading, battery or peak-memory measurements. Physical-phone performance remains unverified. The library passed 416 automated tests; the website loading and runtime-switch checks passed four tests. Unit tests do not establish compatibility with every host application. See the source performance notes.
For your own website, give the embed a stable responsive height, use loading="lazy" for iframes, mount once per container and dispose on unmount. Prefer a single pane on smaller screens, Low or Balanced quality, and a Load button for large projects or metered connections. See hosting and the user guide.
Carry settings into your embed
The same initial highlightStyle, highlightColor and appearance settings are available to JavaScript viewers, validated viewer URLs and standalone HTML exports. Custom elements use highlight-style, highlight-color and appearance attributes at initial connection. The advanced project viewer uses the active pane’s layer API.
// After loading the 0.2.1 classic browser script:
const viewer = new KiCadWebView.Viewer('#board', {
inspectOnSelect: false,
highlightStyle: 'bright',
highlightColor: 'source'
});
await viewer.load(
'https://wayri.github.io/assets/demos/public-hardware/olimex-p4-project.json',
{ file: 'ESP32-P4-DevKit_Rev_D1.kicad_pcb', view: 'pcb' }
);
viewer.focusLayer('F.Cu', { mode: 'dim', fit: true });
// Later: viewer.restoreLayerView();
window.addEventListener('pagehide', () => viewer.dispose(), { once: true });
The snippet uses the classic KiCadWebView global; when importing an ES module, use its Viewer export instead. Give #board an explicit height. Copy a complete no-Node.js page.
createStandaloneHTML() is available from the main module, the classic global and the smaller /html entry. Bundle the viewer script, required notices, design and model files. The exported HTML blocks external network connections; missing models cannot be fetched later. Use the browser-only exporter, or read the export API.
More faithful schematic details
Multi-unit references display their unit letters, and saved symbol/field rotations are combined without changing field anchors or selection identities. The port was checked against retained KiCad 10.0.6 native-orientation cases; a fresh native export was not run for this update.
Existing capabilities remain available
Linked schematic, PCB and 3D selection, flip-to-part focus, shareable source-bound views, hierarchy diagrams, Gerber/Excellon and ZIP input, carousels, and scripted LEDs, displays and controls remain available within their documented scope. Translucent appearance predates 0.2.1; this release adds the inspection and integration controls described above.
The product page’s approved IRCA demonstrations use a separate site runtime. Their additional overlays and model interactions should not be assumed to be APIs of every library release. Platform adapters also retain their own host and sandbox limits. API reference · Model interaction guide · Platform integration status.
Example credits and source
The OLIMEX example belongs to OLIMEX Ltd and upstream contributors, pinned to 26705d3, with hardware under CERN-OHL-S-2.0. Display adaptations, model coverage and omissions are recorded in the public-hardware provenance. No affiliation or endorsement is implied. Viewer licensing does not replace hardware, model or third-party terms.
Read all acknowledgements, including AI assistance · Matching 0.2.1 source · License and notices.