#bom #eda #pcb #web-page

interactive-html-bom

Interactive HTML BOM Generator

3 unstable releases

new 0.2.0 Jan 10, 2025
0.1.1 Jan 9, 2025
0.1.0 Jan 9, 2025

#1 in #pcb

Download history 149/week @ 2025-01-03

153 downloads per month

MIT license

155KB
3.5K SLoC

JavaScript 3K SLoC // 0.0% comments Rust 619 SLoC // 0.0% comments

Interactive HTML BOM Generator

Documentation

A Rust library implementing a subset of InteractiveHtmlBom, to generate Bill of Materials for PCBs as an interactive HTML page. See their project description for details, and check out the example output here.

This library does not re-implement the complete functionality of the upstream project. Instead, it re-uses their HTML/CSS/JS files and provides a minimal high-level API to perform just the HTML generation. Differences to the upstream project:

  • Rust instead of Python
  • No CLI, just a Rust library
  • Not a plugin for EDA tools
  • No parser for EDA project files
  • Stripped down support of the pcbdata structure, especially missing support for any geometry type other than polygon with svgdata since this type is enough to draw any kind of shape

The library has been developed for integration in LibrePCB, though it's API is generic and thus would be usable for other projects too.

License and Credits

Library is licensed under MIT license, see LICENSE for details.

A huge thanks to the developers of InteractiveHtmlBom who created the awesome HTML/CSS/JS which we're reusing in this project.

The implementation of this library was funded by the NGI Zero Commons Fund as part of the LibrePCB 2.0 project.

Dependencies

~175KB