modulatejs the library

A toy vocabulary
for mobile-app feel.

modulate.js is about sixty verbs on top of Motion's animation engine. Pieces that already look good, drivers that all speak t, and two states with a spring between them. Fifteen lines is a prototype; a prototype is a link; the link opens in coral.fm and runs on your phone.

in a page<script src="https://unpkg.com/modulatejs"></script>
in a projectnpm i modulatejs
on a file, with your phonenpx modulatejs proto.js

The ten prototypes

Each under fifteen lines, each runs as written. They are the test suite, the examples a model reads, and the proof the language is enough.

Licences

modulate.js, the runtime, is MIT: embed it anywhere, no conditions. The editor page and the CLI are AGPL-3.0: read them, fork them, run them locally; a hosted clone publishes its changes. The spec and the prototypes are CC BY 4.0, meant to be copied into prompts and docs. The names, modulatejs.com and coral.fm are what's kept.

Built on Motion (MIT). Also inside: lz-string, CodeMirror 6, qrcode-generator, marked, all MIT. Avatars are DiceBear's Notionists Neutral (CC0); photos come from picsum.photos. Full notices in THIRD_PARTY.md.