This is a Javascript library for modeling origami.
This library assists in encoding, modifying, and rendering origami models. Origami models are encoded in FOLD format, which is a mesh based data structure. Rabbit Ear contains methods for modifying FOLD graphs, a math library, an SVG and WebGL rendering library, and various methods for making origami-related calculations.
The current version is 0.9.41 alpha, released 2026.10.16 changelog
The Rabbit Ear library is distributed as a single package which contains an ES6 module (for NodeJS, Bun, module scripts), and as UMD/CommonJS single-file bundle (for traditional html scripts)
manual download .zip
bun install rabbit-ear
npm install rabbit-ear
https://rabbit-ear.github.io/rabbit-ear/rabbit-ear.js
https://rabbit-ear.github.io/rabbit-ear/src/index.js
The docs contain technical references for coding with this library.
FOLD validator/viewer validate and visualize a FOLD file, the mesh file format used by this library.
clone this repository, run bun i or npm i to install dev dependencies, then to build the project (requires rollup):
bun run build
see
packages.jsonfor build script (currently hard-coded tobuninstead ofnode)
GNU GPLv3