Open-source browser library · MPL-2.0

KiCad WebView

Explore the board.

Schematics, PCB layouts and selectable 3D assemblies in your browser. Link design views, present interactive displays, and bring the saved design into your documentation.

1.2.1SDK · npm/CDN 1.2.1Navigate dense drawings and 3D assemblies more smoothly, inspect saved schematic classes, and locate parts from a linked bill of materials.

Self-hosted SDK 1.2.1 · npm/CDN 1.2.1 · Release details ↗

  • Read-only
  • Self-hosted
  • No rendering server
  • KiCad · Gerber · Excellon

An AA-powered FLIR camera for PCB testing. Store captures locally or access them over USB or wireless.

  • AA powered
  • PCB testing
  • Local storage
  • USB
  • Wireless
Computed Fast PI / 1 A unit loadIRCA copper voltage-drop study
Rendered IRCA assembly with camera, display, controller module, USB connector and buttons
Live 3D demo · drag or select a part to pause

Interactive hardware preview · camera images are simulated.

Explore the layout and schematic, or select individual components in the 3D assembly.

Read-only review geometry. One IC model is nominal. Original project and CAD source files are not included.

KiCad WebView in action

Screenshots from the KiCad WebView 1.2.0 walkthrough. The live examples use the current SDK where indicated.

An embedded KERO board fitted to a KiCad worksheet with a border and title block.

Embed a drawing at the right scale

Place a compact board viewer in a documentation page or give it a full-width workspace. Fit a saved drawing to its worksheet for page context, or switch to the board outline or copper when inspecting the layout.

A KERO PCB and schematic shown side by side in a linked webpage embed.

Link selections and webpage controls

Connect the PCB and schematic so a selection in one can locate the same component in the other. Use webpage controls to preview a part on hover or inspect its saved properties on click.

Angled 3D view of the IRCA thermal camera board with its display installed.

Inspect a model-backed assembly

Orbit the IRCA review model to see component placement and the underside. Use the exploded view to see how the board, copper and components fit together visually.

Embedded KERO board beside a saved WayriCAD Quick PI voltage field.

Show saved results alongside the design

Pair a schematic with a webpage plot of saved KiCad SPICE traces, or overlay saved WayriCAD voltage and temperature fields on the matching PCB. Readers can interpret the result with its design and units in view.

Drawing fidelity & inspection

Read the detail. Keep the context.

The stable 1.0 embed API brings linked inspection, cleaner copper rendering and camera-preserving net focus to browser embeds.

Published SDK: 1.2.1 · npm/CDN: 1.2.1. See the 1.2.0 benchmark ↗ · See the 1.2.1 changes ↗

Viewer refresh / 0.6.0

Inspect assemblies and navigate schematics

Exploded 3D inspection, saved drawing styles and a floating schematic browser in the 0.6 viewer refresh.

The 0.6 guide describes the source refresh; current self-hosted SDK: 1.2.1. npm/CDN: 1.2.1. Explode spacing is display-only; registered result overlays and probes are hidden while exploded. Text wrapping is approximate. Three concurrent hierarchy fetches and a four-snapshot exact-source camera cache are bounded loading/navigation behavior, not physical-phone benchmarks.

Inspection controls / introduced in 0.2.1

Highlights, layers and embed settings

New inspection controls and mobile embedding improvements in the published npm, CDN and self-hosted SDK.

In a bounded 340-pixel desktop-browser sample, median PCB loading and 3D mounting were about 42% lower. This is not a physical-phone benchmark. The release notes explain the fixture, measurements and limits. Internal copper appears in Translucent mode; layer focus and fit are 2D PCB controls.

Cross-functional / WayriCAD / introduced in 0.4.0

View analysis results on the board

View saved PI, SI and thermal results in the browser, with their source identity, units and assumptions.

No solver runs here. The public generated examples retain their assumptions and unknown values; they are not measured hardware or production boards. Independent 3D fields require saved elevation. Supported fields register on the native 2D/3D PCB, with saved-layer controls and linked probe markers. Full numerical data remains available.

Add interactive displays & controls to a model ↗Try public hardware examples ↓

Latest shared rendering improvements · source preview

Explore KERO in linked views.

Saved schematic, copper and 3D selection. Current stable npm/CDN: 1.2.1. The linked workspace uses the current SDK with saved KERO drawings.

Updated drawing text and saved variables, graphics, sheet navigation and multilayer inspection. Copper uses its layer colors; plated vias stay gold. Stable overlapping copper uses resolved edge smoothing instead of multisample depth. Approximate models remain labelled.

Interactive design workspace

Inspect the design.

IRCA review geometry · PCB, schematic and full assembly

Fast PI / IRCA copper

See the voltage drop along the copper.

Computed 3.3 V rail study · normalized 1 A load

—maximum drop · mV
—copper loss · mW
Study & assumptions ↓
Explore with a tour

Explore each slide yourself with Previous and Next, or choose Play for a guided tour. Using the viewer pauses playback; choose Play to resume.

Loading the IRCA review…

Try this:

Pan and zoom the drawing; Fit restores its framing. Open Inspect to search parts. In 3D, drag to orbit and use the surface measurement controls. In fabrication view, toggle layers or measure distances in mm.

Inspection controls

Every control updates the live design.

01 / Find a component

Find a part on the board

02 / Peel back the board

Separate the copper layers.

Isolate saved copper geometry. Zoom in to follow individual tracks; select a track to inspect its saved net.

03 / Read the circuit

Open a schematic sheet.

IRCA’s schematic and PCB use the same derived review identities. Inspect shows the selected drawing’s symbols or footprints.

04 / Inspect a pad

Inspect pad properties

Select a component, then choose one of its pads in Inspect to see its net, dimensions and layers. These are review properties, not simulation results.

05 / Explore in 3D

Inspect the 3D assembly

Drag to orbit; scroll to zoom. Named views, orbit, tilt, roll and zoom buttons also work in compact embeds. Focus the viewer to use 1 / 2 for top / bottom, 0 for isometric and Shift + arrows to rotate. Use Measure for surface distances. Missing models use approximate stand-ins.

06 / Check fabrication

Inspect the fabrication geometry.

Toggle IRCA’s exported layers in Layers. Select drill geometry for tool attributes, or use the ruler for a two-click measurement in mm.

07 / Follow the copper

See the path behind a net.

Select a trace or use Inspect → Nets to search saved net names. Associated copper is highlighted while unrelated geometry dims. Turn off “Highlight entire net” for object-only selection. Hidden layers stay hidden.

Read-only preview. Missing component models use approximate stand-ins, not verified mechanical geometry. The viewer does not edit designs, run ERC/DRC or execute simulation solvers. Local files opened here are read in your browser, not uploaded by this page.

Advanced / Project workspace

Two drawings. One place to inspect.

Search the project and compare schematic, PCB and 3D panes.

Loads on request; the compact demo above stays available.

Navigate: search Files, Parts or Nets. Choose the active pane before opening a drawing. Saved child-sheet links open listed project sheets; unresolved links stay disabled.

Cross-probe: keep Link selection enabled, then select a component or pad whose schematic sheet is open in the other pane. Saved symbol identities link components; a PCB trace does not select an unrelated schematic net. Try component cross-probe opens and locates a uniquely matched IRCA component in both drawings.

Share: Create view link in the viewer toolbar captures the loaded drawings, cameras and selection. Opening that URL restores the same saved revision automatically.

Read-only, with no comments or annotation editor. Component linking does not infer identity from reference labels. Nets remain local to their drawing: matching short names across sheets are not proof of connectivity. Approximate 3D model notices still apply.

Link independent embeds, too.

Use linkViewers([schematic, board, assembly]) to connect separate viewers in an article or application. Saved component identities link schematic and PCB selection; matching board views can also share exact pads, copper objects and nets. Each camera stays independent. Source-bound view links restore supported cameras, layers and selections after the host loads the same saved revision.

Linking does not guess electrical connectivity from matching labels. Dispose the link group when its viewers unmount.

Embed the IRCA workspace
// Load kicad-webview.min.js and the site-specific irca-project.js first.
await IRCAProject.ready();
const project = IRCAProject.createWorkspace('#project', {
  theme: 'dark', layout: 'split', linkedSelection: true
});
await IRCAProject.load(project);
// Give #project an explicit height, e.g. 760px.
// project.dispose() releases both panes when leaving.

Scripted 3D presentations

Full-color TFT & virtual controls.

Graphics and input attached to the actual displayed geometry.

Paint an OLED, LCD, matrix or full-color TFT surface, drive a virtual LED, and respond to buttons, knobs or viewer-scoped keys. The host supplies the graphics and behavior; the saved design stays unchanged.

Load IRCA, then choose a component face for the virtual display.

These are virtual presentation effects. They do not execute firmware, emulate an electrical bus, connect to hardware or run a solver. Choosing a face does not establish that the part is a physical display. Source or view replacement suspends the controls.

Saved design data

A BoM beside the board.

Search saved parts and locate unique identities on the drawing.

Explore the credited OLIMEX ESP32-P4-DevKit, group its BoM and review saved track lengths, counts and zone polygon sums. The interactive example loads only when requested.

Source-based summaries are not clearance checks, copper unions or proof of placement. OLIMEX hardware is credited in the demo and provenance files.

Independent project tree

Follow every sheet.

Root, nested subsheets and repeated sheet instances.

Explore Marble’s complete saved hierarchy, or compare IRCA’s single sheet. Expand a branch or select a sheet to open its actual schematic. Enable linked PCB and 3D views to highlight saved component counterparts. Selecting a board part opens its actual sheet and turns 3D to the saved mounting side. The tree still works independently.

Opening the source-derived Marble sheet tree…

Marble: 25 schematic files, 26 saved sheet instances at revision a426777 · CERN-OHL-1.2 · The Regents of the University of California through LBNL and upstream contributors. Full credits and source ↗ · Hierarchy provenance · Open dedicated hierarchy demo ↗

Links use saved UUIDs, exact sheet-instance paths and verified native multi-unit annotations. Matching labels or local net names alone do not establish a link. Unmatched and ambiguous objects remain unlinked. The lightweight diagram is not an electrical netlist. A selected Marble schematic is fetched from its pinned public source. Local files stay in your browser. Missing, cyclic and ambiguous links remain labelled. SVG export contains the diagram only.

02 / Simple

A board in a blog post.

Keep the article simple. Let the drawing do the explaining.

From the bench / IRCA layout

Follow the copper.

A static picture gives an overview. An embedded drawing lets readers zoom into routing, inspect saved component properties and choose the layers they want to see.

The same IRCA layout, embedded in the article. Click a part to inspect it.

Embed the same IRCA review.

This example uses the viewer plus this site’s IRCA review adapter. The adapter loads derived review geometry and display models; it is separate from the native viewer API.

<script src="https://wayri.github.io/assets/lib/kicad-webview/releases/1.2.1/kicad-webview.min.js"></script>
<script src="https://wayri.github.io/assets/js/irca-project.js"></script>
<div id="board" style="height:500px"></div>
<script>
(async () => {
  await IRCAProject.ready();
  const viewer = IRCAProject.createViewer('#board', { theme: 'dark' });
  await IRCAProject.load(viewer, { view: 'pcb' });
})();
</script>
Or use a few lines of JavaScript
await IRCAProject.ready();
const viewer = IRCAProject.createViewer('#board');
await IRCAProject.load(viewer, { view: '3d' });
viewer.setInspectorOpen(true);
// For your own native design, use the viewer API directly:
// const ownViewer = new KiCadWebView.Viewer('#own-board');
// await ownViewer.load('/designs/board.kicad_pcb');

For another site, use the full project URL or host your own copy. Cross-origin sources must permit CORS. The library is free to use, including commercially, under MPL-2.0; paid integration help is optional.

Versioned browser library

Self-hosted SDK 1.2.1 · npm / CDN 1.2.1 · 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 ↗

Use a script tag or install from npm

Load the library directly from jsDelivr or UNPKG in a plain HTML page. No Node.js, npm installation or build step is needed for these browser examples. npm and self-hosted static bundles are also available. Keep the license and notices when redistributing.

iframe embed

A viewer page for hosts that accept an iframe. Supply the design URL in src; cross-origin sources need CORS.

Open iframe example ↗

Browser-only HTML export

Choose local design files or a project ZIP, then download one self-contained interactive HTML file. Your design stays in the browser.

Create an HTML viewer ↗

Approved IRCA showcase

Explore the existing public IRCA review integration, or export your own files into HTML. Original IRCA CAD and model sources are not offered as downloads.

Open IRCA review ↗Export your own HTML ↗

The current self-hosted SDK uses MPL-2.0, including commercial use under its terms. Preserve notices and provide corresponding covered source when distributing the software. Matching SDK source ↗ · Third-party notices ↗. Historical beta downloads remain separately labelled in the archive.

Self-hosted SDK 1.2.1 · no Node.js
<div id="board" style="height:70dvh;min-height:360px"></div>
<script src="https://wayri.github.io/assets/lib/kicad-webview/releases/1.2.1/kicad-webview.min.js"></script>
<script>
const viewer = new KiCadWebView.Viewer('#board');
viewer.load('https://wayri.github.io/assets/demos/public-hardware/olimex-p4-project.json', { view: '3d' });
</script>
npm/CDN 1.2.1 direct script · no Node.js
<div id="board" style="height:70dvh;min-height:360px"></div>
<script src="https://cdn.jsdelivr.net/npm/@wayrisignals/kicad-webview@1.2.1/dist/kicad-webview.min.js"></script>
<script>
const viewer = new KiCadWebView.Viewer('#board');
viewer.load('https://wayri.github.io/assets/demos/public-hardware/olimex-p4-project.json', { view: '3d' });
</script>
Browser ES module example · no Node.js
<div id="board" style="height:70dvh;min-height:360px"></div>
<script type="module">
import { Viewer } from 'https://unpkg.com/@wayrisignals/kicad-webview@1.2.1/dist/kivi-viewer.js';
const viewer = new Viewer('#board');
await viewer.load('https://wayri.github.io/assets/demos/public-hardware/olimex-p4-project.json', { view: '3d' });
</script>
iframe usage
<iframe
  title="Interactive OLIMEX public design"
  src="https://wayri.github.io/assets/demos/embed.html?src=%2Fassets%2Fdemos%2Fpublic-hardware%2Folimex-p4-project.json&amp;view=3d&amp;theme=dark"
  style="width:100%;height:70dvh;min-height:360px;border:0"
  loading="lazy">
</iframe>

Replace the sample source with your own design URL. Relative iframe sources resolve against embed.html. External files must permit CORS; the viewer does not bypass authorization. Generated HTML contains your design: review it before sharing. HTML attachments depend on the receiving application’s support.

IRCA / Computed study

IRCA copper
DC study.

A normalized 1 A unit load on IRCA’s saved 3.3 V regulator-to-controller rail, with 35 µm copper. Device operating currents were not documented; this is a copper-model example, not a measured operating condition.

Computed copper drop and loss are shown above the interactive viewer.

Quick PI computed this field offline from the saved IRCA copper. The browser displays the result; it does not run a solver.

The continuous gradient interpolates the computed nodal voltage within each solved FEM triangle. Unsolved and floating regions remain blank; the display does not blur results across gaps or between separate copper regions.

The coupled front/back copper model includes plated barrels at 20 °C with assumed 25 µm plating. It excludes regulator dynamics, switching, package/contact resistance, the loaded return path and thermal feedback. Final voltage drop changed 0.472% under mesh refinement; local current-density hotspots are not qualified.

The original editable circuit files and individual CAD source models are not offered as downloads.

Computed front and back IRCA copper voltage-drop field for a normalized 1 A regulator-to-controller load
Actual computed IRCA finite-element field. The 1 A load is a declared normalization, not a measured device current.

Public hardware / 0.3.0

Explore open hardware.

Pinned upstream designs, loaded only when you choose an example. Source, license and rendering limits stay visible.

OLIMEX ESP32-P4-DevKit

Rev.D1 PCB, matching schematic and 28 supplied component models. The drawing and individual models load only when needed. Inspect parts, follow nets, switch layers and open 3D.

Hardware: CERN-OHL-S-2.0. OLIMEX Ltd and upstream contributors. Upstream software is GPLv3 and documentation is CC BY-SA 4.0; these are separate from the hardware and viewer licenses.

Pinned revision 26705d3. Display PCB remaps model paths and normalizes equivalent legacy footprint identity fields so the browser can use converted GLB/WRL assets. 141 of 142 saved model references supplied; the optional microSD card model remains unresolved. Original drawing limits and diagnostics stay visible.

BerkeleyLab Marble

Full saved project: PCB layout and all 25 schematic sheets. The approximately 44 MB board loads when requested; other drawings and available models load on demand. Use the file menu or project navigator to reach every sheet.

Hardware: CERN-OHL v1.2. © 2019–2023 The Regents of the University of California, through LBNL. Credits include Michal Gaska / WUT, Larry Doolittle / LBNL, BACI/GARD support and WUT/Creotech collaboration; see the complete upstream credits.

Pinned revision a426777. Layout, part/net inspection and 3D navigation are available. Most custom CERN/vendor 3D models are absent from the public project; only exact available models are supplied, and other parts remain labelled stand-ins. This is not a complete mechanical assembly. The display PCB remaps model paths and normalizes equivalent legacy footprint identity fields.

Opening an example loads a model-path-adapted PCB from this site, pinned original schematics from raw.githubusercontent.com and available component models on demand. The software’s MPL license does not relicense upstream hardware or trademarks. These examples imply no affiliation, endorsement or engineering certification. Exact drawing sources & notices · Model sources, coverage & conversion evidence.

Open source / MPL-2.0

License and support

KiCad WebView is free to use, including commercially, under MPL-2.0. No payment or individual commercial-use approval is required.

Need help embedding or customizing KiCad WebView? Optional paid implementation, maintenance, and support are available at support.kivi@sigharmonic.com. You do not need to buy these services to use or integrate the library. Support ongoing development through voluntary sponsorship ↗

The self-hosted 1.2.1 SDK and npm/CDN 1.2.1 package are published under the Mozilla Public License 2.0. Commercial use and integration are permitted under its terms. MPL applies to covered source files; keep notices and make the corresponding covered source available when distributing the software.

Matching 1.2.1 SDK source, 1.2.1 npm/CDN source and release licensing notes are public. Third-party components, example hardware and trademarks retain their separate terms.

The approved IRCA demonstrations use the current MPL-2.0 SDK with a separately maintained review-data adapter and public display assets. Previous demonstrations used a separately maintained site-demo bundle with its supplied license and additional demo APIs. Those historical demo files remain distinct from the versioned SDK; IRCA design data retains its own terms. The archived beta.1 files retain their original notices; the historical beta.2 download is preserved; the current self-hosted SDK and npm/CDN versions are listed above with matching public source. Native 3D WayriCAD field registration was introduced in the self-hosted 0.4.0 SDK.