Wisp GitHub

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.

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.

  1. 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 as progress goes 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 a condition input, and the temperature counting up whenever it changes.

    What it reads, in order:

    • SKILL.mdthe authoring guide, printed by npx wisp-anim skill: the format, the commands, and when a change is done
    • SPEC.mdthe last word on how every field behaves, in the package's docs/

    It speaks MCP too: npx wisp-anim mcp offers the same tools as a server (setup).

  2. 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.

  3. 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 sim does.

    {
      "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 }
            }
          }
        }
      ]
    }
    1. at 0.2 s: power is off, glow.opacity < 0.01
    2. at 0.8 s: power is on, glow.opacity > 0.3
    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.

WispRiveLottie and dotLottie
Who animatesYour coding agent, from a promptA designer in the Rive editor, or text compiled with the Rive CLIA designer in After Effects or Lottie Creator
The file you shipThe JSON the agent wrote. Text you can read and diff in a pull requestA compiled binary .riv, exported from the editor or compiled from RML text (format)Lottie JSON, or a .lottie ZIP for interactivity (format)
InteractivityState machine, pointer events, springs and expressions in the same fileState machines with listeners, plus data binding and scripting (features)None in Lottie JSON; state machines in dotLottie (docs)
CostFree and open source (MIT). No editor, no seatsPaid 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)
What a browser downloads to play one animation JavaScript plus WebAssembly, Brotli, kB

Measured on 30 November 2026 from the published npm packages; the method and the caveats are in the README.

iOS 0.9 MB vs 2.3 MB About 40 percent of what Rive adds to the download of an otherwise empty app.
  • Wispcommit 5eac9f9, arm64 0.9 MB 2.0 MB once installed
  • RiveRiveRuntime 6.31.0, arm64 2.3 MB 5.8 MB once installed
Android 1.1 MB vs 3.3 MB About a third of what Rive adds to the download of an otherwise empty app.
  • Wispcommit 5eac9f9, arm64-v8a 1.1 MB 2.4 MB once installed
  • Riverive-android 11.17.0, arm64-v8a 3.3 MB 8.6 MB once installed

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.
Wisp Studio with Kibo on the stage, the Tweaks tab open on its input defaults, and the live machine inputs below

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 live: tap it
iOS recorded on the simulator
Android recorded on the emulator
  • 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).

    SwiftUI
    let 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).

    Compose
    Wisp(
      asset = "recap.wisp.json",
      modifier = Modifier.fillMaxSize()
    )

    5.7 ms a frame for the crying-baby demo, on a two-core emulator

See six embedding examples, each running beside its code

Today a phone app builds the library from a clone of this repository with a script (scripts/build-xcframework.sh for iOS, scripts/use-core.sh for Android); prebuilt packages are not published yet. It has run on the iOS simulator and an Android emulator, not yet on a physical phone.

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.

What was measured, on what hardware

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:

Prompt
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.

Terminal
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:

HTML
<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.