Free and open source · MIT
Interactive animation, built by your coding agent.
Tell your agent what should move: a mascot for your onboarding, a dashboard, a game HUD, a hero for your site. It writes one readable file and tests it from the command line. The same file plays on the web, iOS and Android.
- 34 kB web player
- 1 JSON file per animation
- 0 editors to learn
This is Kibo, a live Wisp file. Its eyes follow your pointer; click it to poke it.This is Kibo, a live Wisp file. Tap anywhere and Kibo looks there; tap Kibo to poke it.
Kibo did not load. Reload the page, or see the README for what Wisp is.
What you can ask for
Everything here is live. Go ahead and poke it.
An agent wrote each of these as one file and tested it with the same tools you get. Use the controls the way your app would, or click straight into the artwork.
More in the full gallery: the whole UI kit, the cookbook, the crying baby and the pieces fresh agents built from the docs alone.
How it works
Built so an agent can do the whole job.
Animation tools grew up around a person with a mouse. An agent writes text, runs commands and reads what comes back, so Wisp is made of exactly those three things.
-
You ask, in plain words
Any coding agent that can read files and run commands will do. Prompts this short are enough:
Run
npx wisp-anim skill, then make me a loading animation for a coffee app: a cup that fills up asprogressgoes from 0 to 1 and puffs steam when it's done.Run
npx wisp-anim skill, then make me a weather card: sun, cloud or rain from aconditioninput, and the temperature counting up whenever it changes.What it reads, in order:
SKILL.mdthe authoring guide, printed bynpx wisp-anim skill: the format, the commands, and when a change is doneSPEC.mdthe last word on how every field behaves, in the package'sdocs/
It speaks MCP too:
npx wisp-anim mcpoffers the same tools as a server (setup). -
It writes one file and checks it
The animation is one JSON file: artwork, clips, a state machine and pointer behaviour. No project file, no export step. Then the agent runs one command after every edit:
$ npx wisp-anim check toggle-lamp.wisp.json --sheet lamp.png validate ok lint ok · 1 info (fix, or justify each in one sentence) L211 /machine: Document has no always-on life: no layer's initial state plays a looping clip or oscillator and there are no bindings. hint: Add subtle idle motion (e.g. a looping clip or oscillator on an initial state) or a binding so the animation feels alive at rest. sim ok · 1 script, 3 expects, continuity checked ok toggle-lamp.sim.json · 3 expects, 1.8 s sheet wrote lamp.png (10 frames) — look at it: joints attached, states distinct, nothing clipped check ok — 1 sim script, 3 expects, continuity clean; now LOOK at lamp.png
That is the whole output, unedited: one info note the agent either fixes or justifies. Errors come with a code, the exact location and a fix.
-
It writes the test, and the test has to pass
This is the lamp's test script, complete. Press Run the test and this page plays it on the live lamp, the same way
npx wisp-anim simdoes.{ "seed": 1, "until": 1.8, "steps": [ { "at": 0.2, "expect": { "states": { "power": "off" }, "values": { "glow.opacity": { "lt": 0.01 } } } }, { "at": 0.4, "click": [150, 120] }, { "at": 0.8, "expect": { "states": { "power": "on" }, "values": { "glow.opacity": { "gt": 0.3 } } } }, { "at": 1.2, "click": [150, 120] }, { "at": 1.7, "expect": { "states": { "power": "off" }, "values": { "glow.opacity": { "lt": 0.05 } } } } ] }The lamp did not load, so the test cannot run here. Reload the page to try again.
- at 0.2 s: power is off, glow.opacity < 0.01
- at 0.8 s: power is on, glow.opacity > 0.3
- at 1.7 s: power is off, glow.opacity < 0.05
Next to Rive and Lottie
Good tools, different job.
Rive and Lottie have years of work in them, and Rive has a text format, a command-line tool and an MCP server for agents too. If you have a motion designer and a workflow you like, keep it. Wisp is for when the one animating is your agent.
-
34 kBvs 349 kB
What a browser downloads to play one animation. Wisp's whole web player is about ten times smaller than Rive's smallest web runtime, and twelve times smaller than dotLottie's.
-
~1 MBadded to a phone app
0.9 MB on iOS and 1.1 MB on Android. Rive adds 2.3 MB and 3.3 MB, measured the same way on unsigned builds. Rive's own page lists 1.67 MB and 2.40 MB.
-
FreeRive: free with a splash screen, or from $9 a seat
Wisp is MIT licensed: no editor, no seats, no splash screen. Rive's free plan adds its splash screen to exports; paid plans start at $9 per seat a month, billed yearly.
-
Textvs a binary
You ship the JSON your agent wrote. Rive ships a compiled
.riv, exported from its editor or compiled from RML.
| Wisp | Rive | Lottie and dotLottie | |
|---|---|---|---|
| Who animates | Your coding agent, from a prompt | A designer in the Rive editor, or text compiled with the Rive CLI | A designer in After Effects or Lottie Creator |
| The file you ship | The JSON the agent wrote. Text you can read and diff in a pull request | A compiled binary .riv, exported from the editor or compiled from RML text (format) | Lottie JSON, or a .lottie ZIP for interactivity (format) |
| Interactivity | State machine, pointer events, springs and expressions in the same file | State machines with listeners, plus data binding and scripting (features) | None in Lottie JSON; state machines in dotLottie (docs) |
| Cost | Free and open source (MIT). No editor, no seats | Paid plans from $9 per seat a month, billed yearly; the free plan adds a Rive splash screen to exports (pricing) | Open-source players; LottieFiles plans are per user (pricing) |
Measured on 30 November 2026 from the published npm packages; the method and the caveats are in the README.
Rive's runtime does more for those bytes: text shaping, audio, layout, scripting and a GPU renderer. Rive's own page lists about 1.67 MB and 2.40 MB for an earlier version (sizes). Measured 30 November 2026 on unsigned builds with no physical phone (method).
Where they are ahead, plainly
Rive has a visual editor that many designers already know, a GPU renderer, meshes, text layout, data binding, scripting and audio, and official runtimes for Flutter, React Native and game engines (features, runtimes). Lottie has the largest library of ready-made animations there is and a player for nearly every platform (runtimes). Wisp has none of that yet.
Studio, for the people in the room
Look, poke, tweak.
Then hand it back.
Studio opens any Wisp file in your browser. See the artwork tree, every property and what is driving it, the state machine as a live graph, and the timeline. Replay the agent's test on the stage with each expectation marked green or red.
Change a colour, a size or a line of text. Every edit runs through the real validator. When it looks right, copy the changes as a note for your agent:
In rating-stars.wisp.json, make these 2 changes (tried in Wisp Studio): - set palette.gold to #ff8fa3 (was #ffc947) - set component "star" clip "pop" duration to 0.4 s (was 0.32 s) Then run `wisp check rating-stars.wisp.json` and look at the sheet.
Where it runs · Embed it
One file, three platforms, a few lines each.
Two engines, one in TypeScript and one in Rust, are held to one shared test suite and compared frame by frame, so both engines draw the same frames.
-
Web
A standalone player, also a
<wisp-player>element. Every animation on this page runs on it.HTML<script src="https://cdn.jsdelivr.net/npm/
wisp-anim@0.2.5/dist/ wisp.player.iife.min.js"> </script> <wisp-player src="examples/recap/recap.wisp.json" pointer="canvas"></wisp-player> 34 kB compressed, with no WebAssembly
-
iOS
A Swift package on the Rust core. A resting animation gets no frame callbacks at all. It adds about 0.9 MB to an app's download (next to Rive).
SwiftUIlet player = try WispView( resource: "recap.wisp.json") // in your SwiftUI body: WispPlayerView(player: player)5.0 ms a frame for the crying-baby demo, on an iPhone simulator
-
Android
A Kotlin library with a Compose wrapper, on the same Rust core. It also stops drawing when nothing moves. It adds about 1.1 MB to an app's download (next to Rive).
ComposeWisp( asset = "recap.wisp.json", modifier = Modifier.fillMaxSize() )
5.7 ms a frame for the crying-baby demo, on a two-core emulator
Worth knowing before you build on it
- No physical phone has been tested yet, only the iOS simulator and an Android emulator.
- Native rendering runs on the CPU; a faster renderer is being built now.
- Text is a preview: fonts embedded in the file, no wrapping or shaping. There are no images, bones or meshes yet.
Get started
Start with one prompt, or three commands.
Hand it to your agent
Paste this into any coding agent that can read files and run commands:
Run npx wisp-anim skill and read the guide it prints. Then make me a like button that bursts into hearts when tapped, and show me the sheet once npx wisp-anim check passes.
Swap the like button for whatever you want made. The guide has the rest: the format, the commands, and when the work counts as done.
Run it yourself
You need Node.js 20 or newer.
npx wisp-anim new hello npx wisp-anim check hello.wisp.json \ --sheet hello.png npx wisp-anim dev hello.wisp.json
The last one serves Studio on that file at the address it prints, and reloads it on every save.
Put it on a page
Two tags in any page:
<script src="https://cdn.jsdelivr.net/npm/wisp-anim@0.2.5/dist/ wisp.player.iife.min.js"></script> <wisp-player src="hello.wisp.json" pointer="canvas" style="width: 320px; height: 200px"></wisp-player>
Serve the page from the same folder as hello.wisp.json, the file the commands above made.