qmetrics.net

Two.js

Renderer-agnostic 2D drawing API for browsers

Two.js screenshot

JavaScript library for vector shapes and animation with the same API on SVG, Canvas 2D, and WebGL. Includes scenegraph, SVG import, and bitmap support.

Overview

Two.js is a two-dimensional drawing API for modern web browsers. The same code can render through SVG, Canvas 2D, or WebGL because the library is renderer agnostic, which helps projects switch or compare backends without rewriting scene code.

It uses a scenegraph: paths and groups are stored objects that accept transforms such as rotation, position, and scale after creation. Groups propagate styling to child shapes. A built-in animation loop can run automatically or bind to external update events.

An SVG interpreter allows shapes authored in tools like Adobe Illustrator to enter a Two.js scene. Bitmap workflows cover single images, sprite sheets, and image sequences. It targets flat motion graphics and concise shape animation APIs.

You add the library via a script tag or npm install. ES6 imports are supported for bundlers such as webpack and Vite. Headless server rendering is possible with Node Canvas on the server side. Documentation and examples cover React, Angular, and standalone HTML pages.

Key features

  • SVG, Canvas, and WebGL renderers
  • Scenegraph paths and groups
  • Built-in animation loop
  • SVG interpreter for imports
  • Bitmap and sprite sheet loading
  • npm package and ES modules
  • Headless Node Canvas option
  • Shape transform and styling

Use cases

  • 2D web animations
  • Interactive vector graphics
  • Illustrator SVG in the browser
  • React or Angular canvases
  • Server-side frame rendering

Tags

Similar software

Manim

Programmatic animation engine for explanatory math videos

ManimGL drives precise programmatic animations for explanatory math videos. The 3Blue1Brown variant installs via the manimgl package

★ 97k⟳ 2 months agoMIT
Frameworks & PlatformsDesktop/CLI app

ImGui

Minimal immediate-mode C++ graphical user interface library

Dear ImGui is a portable C++ GUI library that emits draw batches for your renderer. It targets debug tools, editors, and in-engine tooling rather than consumer-facing apps.

★ 77.3k⟳ yesterdayMIT
Frameworks & PlatformsDesktop/CLI app

Anime.js

JavaScript library for web animations

Anime.js animates CSS properties, SVG, DOM attributes, and JavaScript objects through a modular ES module API for browsers and npm installs.

★ 75.1k⟳ 3 months agoMIT
Frameworks & PlatformsDesktop/CLI app

AdminLTE

Bootstrap 5 responsive admin dashboard UI template

AdminLTE is a responsive admin dashboard template on Bootstrap 5 with vanilla JavaScript, reusable components, and demo pages for back-office UIs.

★ 45.7k⟳ yesterdayMIT
Frameworks & PlatformsDesktop/CLI app

Chakra UI

Accessible modular React component system for web apps

Chakra UI is a React component system for building web applications and design systems. Components emphasize accessibility and work with modern React frameworks including Next.js.

★ 40.8k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app

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.

★ 39.2k⟳ 4 days agoMIT
Frameworks & PlatformsDesktop/CLI app