npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@agarwal29796/manim-js

v0.2.0

Published

Manim.js — a Manim-inspired, framework-agnostic animation engine for the web. Author scenes in code; render anywhere via a tiny Renderer interface.

Downloads

225

Readme

Manim.js

Manim-inspired, framework-agnostic animation engine for the web. Author scenes in code, compile them to a deterministic timeline, and render anywhere through a tiny Renderer interface.

npm license

🔗 Live examples & editor →

Independent project inspired by Manim; not affiliated with or endorsed by the Manim Community.

Why

  • Deterministic. A scene compiles to a Timeline whose sample(t) is a pure function of time. Scrubbing, seeking and frame-accurate export all just work — no live state to unwind.
  • Renderer-agnostic. The engine (core/) has zero dependencies and never touches a canvas. Pixels are someone else's job, behind a 2-method Renderer interface. The package ships a Canvas2D renderer; embed your own to draw through an existing pipeline.
  • Real morphing. Shapes are point sets, so transform(circle, square) interpolates any pair of shapes by resampling to a common point count.

Install

npm i @agarwal29796/manim-js

Quick start

import { Scene, circle, square, text, create, write, transform } from "@agarwal29796/manim-js";
import { CanvasRenderer, Player } from "@agarwal29796/manim-js/canvas";

const s = new Scene({ width: 1280, height: 720 });
const title = text("hello", { y: -200, size: 80 });
const c = circle({ r: 120, stroke: "#5B5BD6" });

s.play(write(title));
s.play(create(c));
s.play(transform(c, square({ size: 220, stroke: "#FF6B5B" })));

const timeline = s.compile();
const renderer = new CanvasRenderer(canvas.getContext("2d")!);
new Player(timeline, renderer, 1280, 720).play();

Authoring vocabulary

Scene.play(...anims, { run, ease }), Scene.wait(s), Scene.add(...).

  • Shapes: circle, square, rect, polygon, line, functionGraph, numberLine, text
  • Animations: create, write, fadeIn, fadeOut, transform, shift, scaleBy, rotate, indicate
  • Easing: linear, easeInOut, easeOut, easeIn, easeOutBack, thereAndBack

The seam (for custom renderers)

interface Renderer {
  clear(width: number, height: number): void;
  draw(op: DrawOp): void; // DrawOp = PolyOp | TextOp
}

That is the entire public contract between engine and pixels. Implement it and the engine runs unchanged. (This is how it renders natively inside other apps.)

Layout

src/core/     engine — mobjects, animations, scene/timeline, IR (zero deps)
src/canvas/   reference Canvas2D renderer + rAF Player
studio/       browser playground (npm run studio)

Develop

npm install
npm run build           # tsup -> dist (ESM + CJS + .d.ts)
npm run studio          # bundle + serve the live-coding playground at :8123
npm test                # vitest
npm run check:exports   # publint + are-the-types-wrong

Roadmap

  • [x] LaTeX Write@agarwal29796/manim-js/tex (MathJax → SVG paths). await initTex(), then tex("E=mc^2").
  • [x] axes() / coordinate plane (with c2p/p2c/plot), brace(), vector(), dot()
  • [x] Easing lag/stagger in play (play(..., { lag }) and stagger([...]))
  • [x] Camera moves — moveCamera() / zoomCamera()
  • [x] Frame-accurate MP4 export off the timeline — @agarwal29796/manim-js/export (exportMP4, WebCodecs)
  • [ ] More mobjects (matrices, tables), 3D

Subpath entry points

| Import | What | Extra dep | |---|---|---| | @agarwal29796/manim-js | core engine (scenes, mobjects, animations) | none | | @agarwal29796/manim-js/canvas | reference Canvas2D renderer + Player | none | | @agarwal29796/manim-js/tex | initTex, tex, texGroup (animated LaTeX) | mathjax-full | | @agarwal29796/manim-js/export | exportMP4, exportFrames (MP4 off the timeline) | mp4-muxer |

The two heavy deps are optional peers — only installed if you use those subpaths; the core stays dependency-free.

License

Apache-2.0 © Archit Agarwal