qmetrics.net

Konva

HTML5 Canvas 2D scene graph for the web

Konva screenshot

Konva is a JavaScript canvas framework for interactive 2D graphics in the browser. Build editors, whiteboards, diagrams, and maps with events, drag, and export.

Overview

Konva is an open-source 2D canvas framework centered on a scene graph of stages, layers, groups, and shapes. Each node can receive pointer events, be dragged, transformed, animated, cached, filtered, and exported without hand-writing low-level drawing code for every interaction.

Typical uses include design editors, whiteboards, diagrams, image annotation, floor plans, seat maps, and games or layout tools named in demos and showcase lists. Pointer and touch share one event model; tweens animate properties over time, and transformers add resize and rotate handles.

Load Konva from npm, a CDN script tag, TypeScript projects, bundlers, Node.js with a canvas backend, or Web Workers using OffscreenCanvas. Framework-specific packages exist for React, Vue, Svelte, and Angular. Server-side rendering omits DOM containers; DOM events require a browser environment.

The library targets modern browsers with ES2018 support on mobile and desktop. MIT licensing applies without a commercial key, though maintainers also offer a separate Polotno editor SDK built on Konva for full product-style design tools.

Key features

  • Stage and layer scene graph
  • Drag, transform, and events
  • Animations and tweens
  • Image filters and caching
  • Export to canvas, Blob, or data URL
  • React, Vue, Svelte, Angular bindings
  • Node.js and Web Worker rendering
  • Transformer resize and rotate handles

Use cases

  • In-browser design editors
  • Collaborative whiteboards
  • Diagram and node editors
  • Image cropping and annotation UIs

Tags

Similar software

Mermaid

Text-defined diagrams from Markdown-like syntax

Mermaid turns plain-text diagram definitions into flowcharts, sequence charts, Gantt charts, and many other diagram types. It renders in browsers, documentation tools, and GitHub Markdown.

  • Twenty-plus diagram types
  • Markdown-inspired text syntax
  • Themes and layout customization
TypeScriptCLIDetails →
★ 91.3k⟳ todayMIT
Open Source Alternative to:Google DrawingsVisio

Chart.js

Flexible JavaScript charting library for HTML5 canvas

Chart.js draws animated, customizable charts in the browser using JavaScript and the canvas element, aimed at designers and developers.

  • Multiple animated chart types
  • HTML5 canvas rendering
  • Responsive resize handling
JavaScriptDetails →
★ 67.9k⟳ 4 days agoMIT

xyflow

Node-based UI libraries for React, Svelte, and Vue

xyflow maintains React Flow, Svelte Flow, and Vue Flow—libraries for building customizable node-based editors and interactive diagrams in those frameworks.

  • React, Svelte, and Vue graph libraries
  • Shared @xyflow/system utilities
  • Customizable nodes and edges
TypeScriptDetails →
★ 39.3k⟳ yesterdayMIT

MPAndroidChart

Android and Compose charting library for mobile apps

MPAndroidChart is a Kotlin charting library for Android apps. It draws line, bar, pie, radar, bubble, candlestick, and related chart types in traditional views or Jetpack Compose.

  • Nine chart types with shared data model
  • Jetpack Compose module with chart state
  • Zoom, drag, highlight, and markers
KotlinAndroidDetails →
★ 38.2k⟳ 1 month agoApache-2.0

Recharts

Composable React chart library built on SVG and D3

Recharts helps React apps render charts from declarative components such as axes, grids, legends, and series. It targets native SVG output with a small D3 footprint and installs via npm, Deno, or UMD.

  • Declarative React chart components
  • SVG-based rendering
  • Lightweight D3 submodule usage
TypeScriptDetails →
★ 27.9k⟳ todayMIT

Motion Canvas

TypeScript animation library with web sync editor

Motion Canvas pairs a TypeScript animation library with a browser editor for live previews. It targets informative vector animations timed to voice-overs.

  • Generator-based animation API
  • Real-time preview in editor
  • Voice-over synchronization
TypeScriptWebDetails →
★ 20.7k⟳ 5 months agoMIT