# Licenses

What you may do with OpenLibs, and every open-source component it uses with its license and source code.

## Our code

The code of OpenLibs (the apps and the libraries) is free software under the MIT license.

## Copyleft components

These components are under copyleft licenses (LGPL, or include LGPL parts). They are loaded as separate, unmodified modules by the apps listed, and their complete source code is linked here.

- **@imagemagick/magick-wasm** (Apache-2.0 + LGPL parts): ImageMagick with libde265, libheif, LibRaw, glib, liblqr (image forge, image converter). Source code: https://github.com/dlemstra/magick-wasm/tree/40cec4c82fd8b1aed68eeeee8e6812e6bf377bae
- **@breezystack/lamejs** (LGPL-3.0): MP3 encoder (audio editor). Source code: https://github.com/shijinyu/lamejs/tree/1fb0ef5fa177413107e2e107d054a9b994e3f79c
- **eecircuit-engine** (MIT + ngspice (BSD-3-Clause, LGPL-2 parts)): ngspice circuit simulator (schematic editor). Source code: https://github.com/danchitnis/ngspice-sf-mirror/tree/724dc77b9153dc75eaec474b1f7a44f1fcf5f362

## All libraries

| Name | Version | License |
|---|---|---|
| @babel/runtime | 7.25.6 | MIT |
| @breezystack/lamejs | 1.2.7 | LGPL-3.0 |
| @embedpdf/pdfium | 2.15.1 | MIT |
| @imagemagick/magick-wasm | 0.0.35 | Apache-2.0 |
| @kurkle/color | 0.3.4 | MIT |
| @popperjs/core | 2.11.8 | MIT |
| @sgratzl/boxplots | 2.0.0 | MIT |
| @sgratzl/chartjs-chart-boxplot | 4.4.5 | MIT |
| @simonwep/pickr | 1.10.2 | MIT |
| @upsetjs/venn.js | 2.0.0 | MIT |
| automation-events | 7.1.19 | MIT |
| bootstrap-icons | 1.11.3 | MIT |
| bootstrap | 5.3.3 | MIT |
| canvas2svg | 1.0.16 | MIT |
| canvg | 4.0.3 | MIT |
| chart.js | 4.4.1 | MIT |
| chartjs-adapter-date-fns | 3.0.0 | MIT |
| chartjs-chart-error-bars | 4.4.5 | MIT |
| chartjs-chart-financial | 0.2.1 | MIT |
| chartjs-chart-funnel | 4.2.5 | MIT |
| chartjs-chart-geo | 4.3.6 | MIT |
| chartjs-chart-graph | 4.3.5 | MIT |
| chartjs-chart-matrix | 2.1.1 | MIT |
| chartjs-chart-sankey | 0.14.0 | MIT |
| chartjs-chart-treemap | 3.1.0 | MIT |
| chartjs-chart-venn | 4.3.7 | MIT |
| chartjs-chart-wordcloud | 4.4.5 | MIT |
| chartjs-plugin-annotation | 3.1.0 | MIT |
| chartjs-plugin-crosshair | 2.0.0 | MIT |
| chartjs-plugin-datalabels | 2.2.0 | MIT |
| chartjs-plugin-trendline | 3.3.0 | MIT |
| chartjs-plugin-zoom | 2.2.0 | MIT |
| chroma-js | 3.3.0 | (BSD-3-Clause AND Apache-2.0) |
| complex.js | 2.4.3 | MIT |
| d3-array | 3.2.5 | ISC |
| d3-cloud | 1.2.9 | BSD-3-Clause |
| d3-color | 3.1.1 | ISC |
| d3-dispatch | 3.0.2 | ISC |
| d3-force | 3.0.1 | ISC |
| d3-geo | 3.1.2 | ISC |
| d3-hierarchy | 3.1.3 | ISC |
| d3-interpolate | 3.0.2 | ISC |
| d3-quadtree | 3.0.2 | ISC |
| d3-scale-chromatic | 3.1.1 | ISC |
| d3-timer | 3.0.2 | ISC |
| date-fns | 4.4.0 | MIT |
| decimal.js | 10.6.0 | MIT |
| dejavu-fonts-ttf | 2.37.3 | Bitstream Vera Fonts License (free, redistributable); DejaVu changes are public domain |
| dompurify | 3.4.17 | (MPL-2.0 OR Apache-2.0) |
| eecircuit-engine | 1.9.0 | MIT |
| escape-latex | 1.2.0 | MIT |
| esm.sh node polyfills (unenv) |  | MIT, BSD-3-Clause |
| fabric | 5.3.0 | MIT |
| fflate | 0.8.2 | MIT |
| fraction.js | 4.3.4 | MIT |
| gifenc | 1.0.3 | MIT |
| hammerjs | 2.0.8 | MIT |
| html2canvas | 1.4.1 | MIT |
| iconify-icon | 2.1.0 | MIT |
| imagetracerjs | 1.2.6 | Unlicense |
| javascript-natural-sort | 0.7.1 | MIT |
| jsbarcode | 3.11.6 | MIT |
| jspdf | 2.5.2 | MIT |
| jszip | 3.10.1 | (MIT OR GPL-3.0-or-later) |
| mathjs | 12.4.3 | Apache-2.0 |
| mediabunny | 1.66.0 | MPL-2.0 |
| pdfjs-dist | 3.11.174 | Apache-2.0 |
| performance-now | 2.1.0 | MIT |
| qr-code-styling | 1.9.2 | MIT |
| raf | 3.4.1 | MIT |
| rgbcolor | 1.0.1 | MIT OR SEE LICENSE IN FEEL-FREE.md |
| seedrandom | 3.0.5 | MIT |
| stackblur-canvas | 2.7.0 | MIT |
| standardized-audio-context | 25.3.77 | MIT |
| svg-pathdata | 6.0.3 | MIT |
| tiny-emitter | 2.1.0 | MIT |
| tone | 15.5.66 | MIT |
| topojson-client | 3.1.0 | ISC |
| tslib | 2.9.1 | 0BSD |
| typed-function | 4.2.2 | MIT |
| wavesurfer.js | 7.12.12 | BSD-3-Clause |
| world-atlas | 2.0.2 | ISC |

## Questions about licenses

### Can I use what I make with OpenLibs commercially?

Yes. Licenses apply to software, not to your results: images, documents, video, audio and schematics you create are yours.

### Can I use the OpenLibs libraries in a closed-source product?

Yes, they are MIT: keep the copyright notice. Check the licenses of the dependencies you ship with them (the table above).

### How does the video editor convert video without FFmpeg?

It uses the codecs built into your browser (WebCodecs) through Mediabunny (MPL-2.0, used unmodified). OpenLibs ships no video codec, so no GPL code and no codec patents are involved; the browser makers license the codecs.

### What does LGPL mean for the MP3 encoder of the audio and video editors?

lamejs (LGPL-3.0) is loaded as a separate module that can be replaced; the editors' own code stays MIT. If you change lamejs itself and distribute it, publish those changes.

### Where is the source code?

The code of OpenLibs is on GitHub, one repository per library. The source of every third-party component is linked in the tables on this page.

