Skip to content

About

Browser-based KiCad PCB styler and assembly-view renderer

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

PCB Styler

Browser-based PCB styler and assembly-view renderer with first-class support for KiCad .kicad_pcb boards, Altium .PcbDoc boards, and PCB project .zip archives containing either format.

Live app: https://pcb-styler.app/.

Features

  • Supported EDA inputs: KiCad .kicad_pcb, Altium .PcbDoc, KiCad project ZIP archives, Altium ZIP archives containing .PcbDoc, and PCB Styler project ZIP archives that preserve the original board source
  • Client-side KiCad S-expression parsing for .kicad_pcb files through kicad-toolkit
  • Client-side Altium .PcbDoc parsing through altium-toolkit
  • ZIP project loading with automatic KiCad or Altium board-file discovery
  • PCB Styler project ZIP export/import with KiCad or Altium board source and JSON settings
  • Manual-style SVG PCB rendering with black board fill, grey pads, grey silkscreen, and a clean assembly-focused default that hides routed copper, zones, vias, and via drill holes until those layers are enabled
  • KiCad preview render preset with KiCad-like copper, pad, via, drill, and silkscreen colors for full-detail KiCad board inspection
  • Altium PCB SVG rendering from direct .PcbDoc files or ZIP-contained .PcbDoc files
  • Front/back side switching with KiCad-style backside mirroring for KiCad boards
  • Per-layer visibility, fill color, fill transparency, border color, and border-thickness controls that apply to KiCad and Altium preview, SVG export, and transparent PNG export
  • Right-side annotation sidebar for component highlights, movable text/number badges, and exports
  • Click and hover component highlighting with a user-selectable highlight color and fixed sidebar details for the hovered component
  • Badges include configurable text/border color, scale, drop shadow, per-badge rotation, and automatic pill shapes for longer labels
  • SVG and transparent-background PNG export for loaded boards; portable project ZIP export for KiCad and Altium source-backed boards
  • Early WebMCP tool registration for agent-assisted state inspection, render preset changes, styling, highlights, badges, SVG export, and transparent PNG export in supported browsers
  • Integrated imprint footer with contact, version, GitHub, and Mastodon links
  • Local Express dev server in src/server.mjs
  • Node test suite for app controller, state, integration bridge, and structure checks; parser and renderer coverage lives in the toolkit packages

Project Structure

  • src/core/: app state and board loading
  • src/ui/: DOM view, app controls, and renderer routing
  • kicad-toolkit: KiCad parsing, ZIP board loading, geometry, stroke-font primitives, and base SVG rendering
  • altium-toolkit: Altium .PcbDoc parsing and deterministic PCB SVG rendering
  • src/AppController.mjs: app orchestration and export flow
  • src/StaticDeployBuilder.mjs: Apache/shared-hosting artifact builder
  • scripts/build-static-deploy.mjs: static deployment build wrapper
  • api/: deployable PHP metadata endpoint for shared hosting
  • tests/: behavior and structure tests
  • docs/: architecture, setup, testing, security, troubleshooting
  • spec/: product scope and acceptance criteria

Documentation

Start

npm install
npm start

Open http://localhost:3001/.

Test

npm test

Deployment

npm run build:static

The static build writes .deploy-src/ with versioned browser module URLs and an Apache cache policy. The GitHub Actions FTP workflow deploys that artifact, api/, docs/, root package.json, and production node_modules/ to the configured shared-hosting target using FTP_SERVER, FTP_USERNAME, and FTP_PASSWORD secrets.

Formatting

npm run format

License

This project is available under two licensing options.

1. Open-source license

The software source code is licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).

You may use, modify, and distribute this project under the AGPL. If you modify the software and make it available to users over a network, the AGPL requires that those users can access the corresponding source code of the modified version.

Project documentation and non-code media are licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA-4.0) unless otherwise marked.

2. Commercial/proprietary license

For use in closed-source, proprietary, or otherwise AGPL-incompatible products, a separate commercial license is required.

Commercial licensing contact: [email protected]

Attribution / notices

Copyright (C) 2026 André Fiedler.

Copyright, license, attribution, and source-origin notices must be preserved as required by the AGPL, CC-BY-SA-4.0, and the notice files in this repository.

About

Browser-based KiCad PCB styler and assembly-view renderer

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages