Skip to content
AniMathIOPublic

About

Plugin template, examples and community index for AniMathIO 2

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

AniMathIO plugins

A cargo-generate template, working examples and the community plugin registry for AniMathIO 2. MIT licensed, like AniMathIO. Plugins are sandboxed WebAssembly components.

Contents

Community plugins

Name Author Description License ABI Source
Code Snippets AniMathIO Syntax-highlighted code with type-on reveal and token morph animations MIT AND OFL-1.1 1.1.0 AniMathIO/plugins
Molecule Studio AniMathIO Self-drawing 2D molecular structures and reactions from SMILES, with CPK colors and wedge/dash stereo MIT 1.1.0 AniMathIO/plugins
Net Lab AniMathIO Animate ARP, ICMP ping, TCP, DHCP, DNS and traceroute over teaching topologies MIT 1.1.0 AniMathIO/plugins
Physics Play AniMathIO Deterministic 2D mechanics demos: projectile, pendulum, spring, collisions and falling stacks MIT 1.1.0 AniMathIO/plugins
Ray Optics AniMathIO Animated lens and mirror rays, Snell refraction, total internal reflection and prism dispersion MIT 1.1.0 AniMathIO/plugins

Install from the editor's Plugins tab in AniMathIO 2.2+, or manually as described below. Every plugin is a versioned GitHub release with a SHA-256 checksum; the editor reads the generated community-index.json and verifies each download against it.

This table is generated from community-plugins.json. To list your plugin, open a PR adding an entry under the rules in CONTRIBUTING.md; the registry format, release convention and index are specified in docs/registry.md. A listing is not an endorsement or security audit.

Installing a plugin

In AniMathIO 2.2+ use the editor's Plugins tab (Browse, Install, then enable the plugin). To install manually, download <id>-<version>.amplugin from the plugin's release (for the plugins hosted here: the releases page) and check it against the .sha256 asset. AniMathIO loads every bundle in your user plugin folder at startup; restart the editor after adding or removing one:

OS User plugin folder
Linux ~/.local/share/animathio/plugins
macOS ~/Library/Application Support/animathio/plugins
Windows %APPDATA%\animathio\plugins

Community plugins are never bundled or enabled by AniMathIO itself: you install (and enable) the ones you want. They run in the same sandbox as first-party plugins (no network or file access, memory and time limits), and they cannot replace the bundled org.animathio.* plugins. To build one from source instead, run bash build.sh in its folder (see each plugin's README) and copy the resulting .amplugin into the folder above.

Quick start

Install stable Rust, Python 3.11+ and cargo-generate, then:

cargo install cargo-generate --locked
rustup target add wasm32-wasip2
cargo generate gh:AniMathIO/plugins template
cd <generated-project>
bash build.sh

Choose a unique reverse-domain ID (for example org.example.my-circle), display name and author when prompted. Change the ID default before publishing. The template draws a circle with keyframeable radius and color using cubic paths. examples/circle shows that source; examples/invert implements a frame effect that inverts RGB and preserves alpha. Each is standalone: run its build.sh.

Test in AniMathIO

Copy your .amplugin into the user plugin folder (see Installing a plugin) and restart the editor, then add a source from the Library or apply invert through Effects. For quick iteration you can instead start the editor with ANIMATHIO_PLUGIN_DIR=/absolute/path/to/plugins animathio; that override is searched first, so include the bundled plugins in that directory if your project uses them.

For a headless host check, install Pillow (python3 -m pip install Pillow), download the Linux deb from the v2.0.0 release, extract with dpkg-deb -x, and run python3 scripts/smoke.py PATH/TO/animathio-cli PATH/TO/PLUGIN_DIRECTORY. CI builds the template and both examples, packages them, and renders each source and the effect using that released CLI. No audio or GUI is used.

ABI compatibility

The vendored wit/plugin.wit in each project is copied unchanged from AniMathIO v2.0.0. The vendored WIT is ABI 1.1.0, with wit-bindgen = 0.40.0, independently of AniMathIO's application version. Frozen ABI 1.0.0 components still load; changing manifest text alone does not upgrade a component. Preserve parameter IDs and saved-value semantics. Follow the canonical authoring and compatibility guide for WIT worlds, host imports, schema, packaging and sandbox limits. The host provides bounded services; plugins have no direct network or filesystem access.

About

Plugin template, examples and community index for AniMathIO 2

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages