JavaScript libraries

14 open-source ES modules (MIT) behind the OpenLibs apps: headless engines without a UI, with a documented API and TypeScript types.

Install from npm

Every library is an npm package in the @openlibsdev scope.

npm install @openlibsdev/qr-code-generator

import QrCodeGenerator from "@openlibsdev/qr-code-generator";

Or load it from the CDN

No build step: import the module straight from jsDelivr in a page.

<script type="module">
import QrCodeGenerator from "https://cdn.jsdelivr.net/npm/@openlibsdev/qr-code-generator@1.0.0/+esm";
</script>

Diagrams, schematics and charts

ChartMaker

@openlibsdev/chart-maker

Chart engine: 29 chart types drawn into a <canvas> in a container you give it. No UI of its own; you build the controls and call the API. Export to PNG, SVG, PDF and other image formats.

  • v1.0.0
  • MIT
  • ES module
  • TypeScript

DiagramEditor

@openlibsdev/diagram-editor

Diagram model and drawing: flowcharts, org charts, network and electrical diagrams. Shapes, connectors with automatic routing, groups, pages, templates, export to SVG, PNG and PDF. No DOM needed for the model.

  • v1.0.0
  • MIT
  • ES module
  • TypeScript

SchematicEditor

@openlibsdev/schematic-editor

Electrical schematics on top of diagram-editor: components with designators and values, nets, buses, power, ERC, bill of materials, GOST and ISO frames, SPICE and KiCad netlists, KiCad import and export, simulation.

  • v1.0.0
  • MIT
  • ES module
  • TypeScript

Graphics and images

ImageEditor

@openlibsdev/image-editor

Data and helpers of the image editor: color palette, shapes, color conversion and named colors in 29 languages.

  • v1.0.0
  • MIT
  • ES module
  • TypeScript

LogoMaker

@openlibsdev/logo-maker

Logo editor engine on Fabric.js: text, curved text, shapes, 200 000+ icons, templates, gradients and patterns, layers, undo, export to SVG, PNG, PDF and ZIP with all sizes.

  • v1.0.0
  • MIT
  • ES module
  • TypeScript

ImageForge

@openlibsdev/image-forge

ImageMagick in the browser (magick-wasm): encode to 100+ formats, decode HEIC, TIFF, PSD and others, generate backgrounds, patterns and gradients, make PDF and SVG. The engine loads on the first call.

  • v1.0.0
  • MIT
  • ES module
  • TypeScript

ImageConverter

@openlibsdev/image-converter

Image conversion: decode raster images, HEIC and PDF pages; crop, resize, rotate, flip, filter, reach a target file size; encode to 20+ formats; pack many files into a ZIP.

  • v1.0.0
  • MIT
  • ES module
  • TypeScript

Video and audio

VideoEditor

@openlibsdev/video-editor

Video editing in the browser on WebCodecs: trim, convert to MP4, WebM or MKV, make a GIF, extract the sound, change speed, size, rotation, apply filters and add captions. The file never leaves the computer and no codec is downloaded.

  • v1.0.0
  • MIT
  • ES module
  • TypeScript

AudioEditor

@openlibsdev/audio-editor

Engine of a multitrack audio editor: decoding, cutting and joining audio without clicks, fades and volume, live playback, mixdown and export to WAV or MP3, projects in the browser storage.

  • v1.0.0
  • MIT
  • ES module
  • TypeScript

Documents, PDF and fonts

PdfEditor

@openlibsdev/pdf-editor

PDF editing on PDFium (WebAssembly): change text in place keeping the layout, add text, pictures, highlights and drawings, hide fragments, rotate, delete, reorder and merge pages.

  • v1.0.0
  • MIT
  • ES module
  • TypeScript

FontForge

@openlibsdev/font-forge

Font families for web pages, canvas and other engines: Google Fonts, system fonts and your own files, with regular, bold and italic. Fonts are registered in the browser and handed to engines that need font bytes.

  • v1.0.0
  • MIT
  • ES module
  • TypeScript

QR codes and barcodes

QrCodeGenerator

@openlibsdev/qr-code-generator

Styled QR codes: dot and corner shapes, colors and gradients, a logo in the middle, frames with a caption. Export to PNG, JPEG, WebP and SVG. Built on qr-code-styling.

  • v1.0.0
  • MIT
  • ES module
  • TypeScript

BarcodeGenerator

@openlibsdev/barcode-generator

Barcodes of 18 types (Code 128, Code 39, EAN, UPC, ITF, MSI, Pharmacode, Codabar) with labels, check digits, batch numbering, CSV and printable label sheets. Export to SVG, PNG, JPEG, WebP, PDF and ZIP.

  • v1.0.0
  • MIT
  • ES module
  • TypeScript

Health and fitness

HealthCalculator

@openlibsdev/health-calculator

Health calculators: BMI, ideal weight, body fat, calories, heart rate zones, WHO child growth, pregnancy and others, plus a food log and a weight diary. Pure functions, no network.

  • v1.0.0
  • MIT
  • ES module
  • TypeScript