npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

kicad-toolkit

v0.2.15

Published

KiCad PCB parsing and deterministic SVG rendering utilities

Readme

KiCad Toolkit

KiCad Toolkit is an ESM JavaScript library for parsing native KiCad schematic and PCB documents and rendering deterministic, non-interactive outputs from the recovered model.

The package was extracted from PCB Styler, where it is used for browser-based KiCad board/project loading and deterministic render output, and it is also used in ECAD Forge. Its parser behavior, normalized model shape, project ZIP loading, and renderer output can be reused by other browser or Node-based tools.

Features

  • Parse standalone native .kicad_sch and .kicad_pcb files from ArrayBuffer
  • Load browser File objects or named byte entries from KiCad board files and project ZIP archives
  • Recover schematic symbols, sheet symbols, labels, nets, graphical items, embedded schematic metadata, board outlines, footprints, pads, copper segments, vias, zones, drawings, text, layer side metadata, and board bounds
  • Preserve raw KiCad board detail through the wrapped pcb.kicadBoard model so lower-level KiCad parser output remains inspectable
  • Emit versioned normalized model roots with a machine-readable JSON Schema contract
  • Render schematic SVG, PCB SVG, and grouped BOM HTML
  • Build non-interactive PCB 3D scene-description data for host applications
  • Render KiCad stroke text and a static 3D board summary
  • Run entirely with local input data; no network calls are made by the parser

Install

The package is published on npm as kicad-toolkit.

npm install kicad-toolkit

Usage

import {
    KicadParser,
    SchematicSvgRenderer,
    PcbSvgRenderer,
    preparePcbSideResolvedRenderModel,
    BomTableRenderer,
    PcbScene3dBuilder
} from 'kicad-toolkit'

const documentModel = KicadParser.parseArrayBuffer(file.name, arrayBuffer)
const backRenderModel = preparePcbSideResolvedRenderModel(documentModel, {
    side: 'back'
})

const schematicMarkup = SchematicSvgRenderer.render(documentModel)
const pcbMarkup = PcbSvgRenderer.render(backRenderModel)
const bomMarkup = BomTableRenderer.render(documentModel.bom || [])
const sceneDescription = PcbScene3dBuilder.build(documentModel)

Optional renderer CSS is available through:

import 'kicad-toolkit/styles/kicad-renderers.css'

Documentation

Examples

Run the local example server with:

npm start

Test

npm test

The test suite uses repo-owned fake KiCad fixtures only. Do not add native customer, vendor, or source project files to this repository.

License

This project is available under two licensing options.

1. Open-source software license

GNU General Public License v3.0 or later (GPL-3.0-or-later).

You may use, modify, and distribute this project under the GPL. If you distribute modified versions or larger works based on this project, they must comply with the GPL, including source-code availability requirements.

2. Commercial/proprietary license

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

Commercial licensing contact: https://github.com/SunboX

Documentation and notices

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

Copyright (C) 2026 André Fiedler.

Copyright, license, attribution, and source-origin notices must be preserved as required by the GPL, CC-BY-SA-4.0, and the notice files in this repository. See LICENSE, COMMERCIAL-LICENSE.md, and NOTICE.md.