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

@viesar/kty

v1.0.0

Published

ManimGL ported to the web — a real-time, interactive math-animation engine on Three.js + WebGL2.

Readme

kty

ManimGL for the web. A port of 3Blue1Brown's ManimGL animation engine to the browser — a real-time, interactive math-animation engine built on modern JavaScript + Three.js + WebGL2.

Published on npm as @viesar/kty. Live, interactive docs: kty.victorarce.com (test: test.kty.victorarce.com).

Status: 1.0.0 — feature-complete. Geometry, text/Tex, coordinate systems, 2D/3D mobjects, vector fields, boolean ops, the full animation system, and web-native export/embedding all render in the browser. The API is stable and additive from here (breaking changes bump the major version). See the CHANGELOG, progress.md for the stage tracker, and docs/ for the migration plan.

Install

npm install @viesar/kty

three, mathjax-full, and opentype.js come along as dependencies. kty ships as plain ESM (src/), so any bundler (Vite, webpack, Rollup, esbuild) can consume it.

Usage

import { ThreeRenderer, Circle, Square, Tex, Axes } from '@viesar/kty';

const canvas = document.querySelector('canvas');
const renderer = new ThreeRenderer({ width: 1280, height: 720 }).attach(canvas);

renderer.render([
  new Circle({ radius: 2, fillColor: '#58C4DD', fillOpacity: 1 }),
  new Square({ sideLength: 2, strokeColor: '#FC6255' }).shift([4, 0, 0]),
  new Tex('e^{i\\pi} + 1 = 0', { color: '#FFFFFF' }).shift([-4, 2, 0]),
]);

Animate by stepping an animation's alpha in a requestAnimationFrame loop (or use Scene.play):

import { ThreeRenderer, Square, Circle, Transform, smooth } from '@viesar/kty';

const r = new ThreeRenderer({ width: 1280, height: 720 }).attach(canvas);
const square = new Square({ sideLength: 2.5, fillColor: '#FC6255', fillOpacity: 1 });
const anim = new Transform(
  square,
  new Circle({ radius: 1.6, fillColor: '#58C4DD', fillOpacity: 1 })
);
anim.begin();

let t = 0;
(function frame() {
  t = (t + 0.01) % 1;
  anim.interpolate(smooth(t));
  r.render([square]);
  requestAnimationFrame(frame);
})();

Using Tex (bundler note)

Tex renders via MathJax. Its version.js references a PACKAGE_VERSION global that breaks in browsers unless defined. With Vite, add to your config:

// vite.config.js
export default {
  define: { PACKAGE_VERSION: JSON.stringify('3.2.1') },
  optimizeDeps: { esbuildOptions: { define: { PACKAGE_VERSION: JSON.stringify('3.2.1') } } },
};

(Other bundlers: define PACKAGE_VERSION similarly.)

Documentation

Develop

npm install
npm run dev          # dev harness at http://localhost:5173
npm test             # unit tests (Vitest)
npm run test:visual  # visual-regression (Playwright; goldens are generated in CI)
npm run build        # library build (Vite)
npm run lint         # ESLint

Project layout

| Path | What | | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------- | | docs/migration-guide.md | manim → kty porting cheatsheet. | | docs/api-reference.md | Curated reference of the public API. | | docs/ | The migration plan (architecture, rendering strategy, staged roadmap, testing). | | progress.md | Live task tracker, mirrors the plan's stages. | | src/ | Engine source (plain ESM JS). See docs/01-target-architecture.md. | | tests/unit/ | Vitest unit tests (math, mobjects, animations, …). | | tests/visual/ | Playwright visual-regression harness + scenes; goldens generated in CI (Linux). |

Contributing

The repository is public and MIT-licensed. Direct pushes to main are restricted — please fork and open a pull request.

License

MIT © 2026 vicArc