Skip to content

CharAI v1.0.0: first public release

Latest

Choose a tag to compare

@riponcm riponcm released this 25 Nov 23:25

CharAI is an open-source 2D character animation engine and AI agent skill. An agent (or you) draws any human as a small data file and directs it with a short .char script; the engine supplies the skeleton, motion, physics, moods, lip sync and two-character contact. Characters only, side view only.

What is in this release

  • Any human from numbers. A body is a few lines of build and motion values on top of the mannequin, from a 2.2-head toddler to an 8-head adult, thin to heavy. Characters drawn by Claude Sonnet from the documents alone are 1.3 to 2.2 KB each.
  • The .char script language. One line per action: 2.0 Kai: walk(to=700), face(happy). Seven commented examples in examples/.
  • Motion with weight. Walk, run, jump, skid and turn from motion clips; spring physics for hair, scarves, skirts and bags; soft bending limbs.
  • 54 actions and 8 moods. Greetings, everyday actions and feelings, each a small key-pose file that fits every body. A mood changes how every move looks.
  • Faces and speech. say("Hello!", for=2) lip-syncs from the text alone, or from a timing track. tools/winvoice.cjs makes a voice and a track with the built-in Windows voices.
  • Two characters together. Hug, handshake, high five, pat, shove, punch and block, hand over, throw and catch, on any two sizes.
  • Props. Loaf, ball, box, chair, door: pick up, carry, throw, sit on, knock on.
  • A checker that teaches. Every error names the line, says what is wrong and what to write instead.
  • Use it anywhere. One script file dist/char.js with no dependencies, a <char-stage> web component, MP4, transparent WebM and ProRes, PNG sequences and animated SVG.
  • An agent skill. SKILL.md gives an agent step-by-step procedures, a grammar cheat sheet and real error fixes. Put the repository in .claude/skills/charai/ and ask Claude Code.

Evidence

Measured in single runs; full tables in docs/EVIDENCE.md.

  • Two 30-second episodes on Claude Sonnet: 425,057 tokens and 25 minutes with CharAI, against 667,202 tokens and 74 minutes with a style-library workflow.
  • Animation code for a 30-second episode: 5.9 to 6.3 KB with CharAI, against 28.6 to 29.1 KB.
  • A new action: about 8,200 Claude Sonnet tokens.
  • Where CharAI lost: a 30-second silhouette film cost 23% more tokens, and the other film looked better.

Known limits

Side view only; flat cartoon styles; spring physics, not simulation; simple hands; lip sync matches but is not polished; the Remotion, HyperFrames and GSAP snippets are untested; only Claude models have been tried. The full list is in docs/KNOWN-ISSUES.md.

Get started

docs/GETTING-STARTED.md has three paths: from Claude Code, with the engine yourself, or in your own page or tool.

Licensed under Apache 2.0.