
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@redwilly/anima
Advanced tools
Anima is a TypeScript animation library for creating mathematical visualizations. Built on Bun and Canvas, it provides a fluent API for programmatically generating animations of geometric shapes, text, graphs, and more.
bun add @redwilly/anima
Create a scene by extending the Scene class:
import { Scene, Circle, Rectangle, Color } from '@redwilly/anima';
export class MyScene extends Scene {
constructor() {
super({
width: 1920,
height: 1080,
frameRate: 60,
backgroundColor: Color.BLACK
});
const circle = new Circle(1)
.stroke(Color.WHITE, 2)
.pos(-2, 0);
const rect = new Rectangle(2, 1)
.fill(Color.BLUE, 0.6)
.pos(2, 0);
// Animations in the same play() call run in parallel
this.play(
circle.fadeIn(1).moveTo(0, 0, 1),
rect.fadeIn(1)
);
this.wait(0.5);
this.play(circle.fadeOut(0.5));
}
}
Render your scene:
anima render myfile.ts -s MyScene -o output.mp4
For detailed usage and examples, explore the skills directory which contains comprehensive guides on:
See SKILL.md for a complete overview of the animation engine.
# Render a scene to video
anima render scene.ts -s MyScene -o output.mp4
# Preview with lower quality for faster iteration
anima preview scene.ts -s MyScene
# Export a single frame
anima export-frame scene.ts -s MyScene -t 5.0 -o frame.png
# List all scenes in a file
anima list-scenes scene.ts
Check out the examples directory for sample scenes demonstrating:
Anima is inspired by Manim, the mathematical animation engine created by Grant Sanderson (3Blue1Brown). While Manim uses Python and OpenGL, Anima brings similar concepts to TypeScript with a focus on web-friendly Canvas rendering.
# Type checking
bun run typecheck
# Run tests
bun test
# Build
bun run build
See AGENTS.md for development guidelines and reference/STRUCTURE.md for codebase architecture.
MIT © RedWilly
Contributions are welcome! Please feel free to submit issues or pull requests.
FAQs
Animation library for mathematical visualizations
We found that @redwilly/anima demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.