Skip to content
Projetos

Manimater/manimater-components

Ver no GitHub

Sobre

Open-source, tested, reusable Manim animation components (JSON-driven). The component library behind Manimater.

Aprendizado e educação

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
+1
em 7 dias
+1
em 15 dias
Coletando histórico
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

manimater-components: the open source component library

Open-source, tested, reusable animation components for Manim.
The open source library behind Manimater, and the part we want the world to build on.

License: MIT Contributions welcome

Quick start · Contribute · Write a component · Catalog · Manimater


manimater-components

Components across many subjects: electrical and power systems, control and signals, microelectronics, machine learning, computer science, finance, physics, chemistry, databases and more. Each is written once, tested, and driven by plain JSON.

Manimater turns a prompt into a narrated explainer video. This library is what makes that possible, and it is open source (MIT) so that anyone can use it, extend it and ship their own videos with it.

// A component is a name plus parameters. No animation code.
{ "component": "synchronous_motor", "params": { "poles": 2, "frequency_hz": 50 } }
synchronous motor component
synchronous_motor
electrical
cpu pipeline component
cpu_pipeline
microelectronics
neural network component
neural_network
machine learning
pid response component
pid_response
control systems
binary search tree component
binary_search_tree
computer science
order book matching component
order_book_matching
finance

Six of the components, rendered from their own example parameters with python -m manimate.preview.

Why components

  • No generated code. An LLM (or you) only picks a component and fills in its parameters as JSON. manimate.storyboard validates every value against the catalog before anything runs, so nothing arbitrary is executed.
  • Tested. Every component has an example that must render, and CI dry-runs all of them against a real Manim scene.
  • Reusable. Written once, used in every video. Adding a component makes every project that uses the library better.
  • Built on the community. 27 components draw with open-source Manim plugins, all credited in docs/THIRD_PARTY.md.

Quick start

git clone https://github.com/Manimater/manimater-components && cd manimater-components
# Manim needs ffmpeg, Cairo and Pango (https://docs.manim.community/en/stable/installation.html).
pip install -e ".[dev]"
./scripts/install_plugins.sh          # the community Manim packages some components wrap (optional)

manimate-preview --list              # every component
manimate-preview callout             # renders previews/callout.mp4 from the component's own example
manimate-catalog > catalog.json      # export the component catalog

The commands are installed by pip install. The module forms python -m manimate.preview and python -m manimate.catalog also work.

Use it from Python:

from manimate import registry
from manimate.components import load_all
from manimate.storyboard import validate

load_all()
comp = registry.get("bar_chart")
print(comp.example)                                  # parameters that are known to render

storyboard, errors = validate({"title": "Demo", "scenes": [
    {"component": "bar_chart", "params": comp.example, "narration": "Synchronous speed by pole count."}]})

catalog.json is the machine-readable list of every component (name, domain, description, parameters, example). Hand it to an LLM as the menu it picks from.

Use it with Claude

This repo ships a Claude skill, skills/manimater-components. It teaches Claude to pick components from the catalog, write valid storyboards, preview them, and write new components that follow the rules. In Claude Code it is picked up automatically when you open this repo (.claude/skills/). In claude.ai, upload the folder under Settings, Capabilities, Skills.

Contribute

New components are the best way to help, and you do not have to code.

Layout

Path What
manimate/components/ Component packs (one module per subject). Registers itself with the registry.
manimate/components/community/ Your contribution goes here: one file per component, auto-loaded.
manimate/viz/ Lower-level 3Blue1Brown-style building blocks: core, ml_advanced, microelectronics, signals, power, finance.
manimate/registry.py, ctx.py, theme.py The @component decorator, the per-scene time budget and layout helpers, the colours.
manimate/storyboard.py, catalog.py Validate JSON against the library; export catalog.json.
manimate/preview.py Render one component to MP4.
skills/manimater-components/ The Claude skill.
tests/ Fast tests plus a dry run of every component.

Relationship to Manimater

Manimater uses this library to render videos, and the two copies are kept in sync by CI: a change merged here is proposed to the app as a pull request. A component change made in the app is brought here by hand. The synced paths and the setup are in docs/SYNC.md.

License

MIT. Each community plugin keeps its own licence: see docs/THIRD_PARTY.md.


Manimater
Manimater is built on this open source library. The logo and banner in assets/ are the Manimater marks.

Explore projetos relacionados

Carregando…