SuperAPI AI Directory

posecode

Text language for human movement that LLMs can write, rendered as an anatomically constrained 3D human figure in the browser.

Open website

About this tool

Posecode is an open-source project that provides a text language, parser, validator, and Three.js renderer for describing, validating, and rendering inspectable 3D human movement. Its core idea is to write "kinematic actions" as readable, editable, and testable text, rather than hiding movement in opaque black-box trajectories or models. It is officially compared to "Mermaid for movement": a small .posecode document can describe, validate, and deterministically render human actions.

In terms of use, Posecode is aimed at animation tools, large language models, and Web products. Documents can be written by humans, output by animation tools, or drafted by LLMs; parsing, validation, editing, and rendering themselves do not require an AI model to participate. It attempts to solve the problem that natural language instructions cannot be reliably executed by renderers, such as instructions like "bend the knees, shift the hips back, keep the chest upright," where the renderer cannot determine which joints should move, by how many degrees, in which coordinate system, for how long, in what order, and within what physical limits. Posecode provides a shared syntax for humans, tools, and language models, expressing movement in a form that can be rendered and tested.

Main capabilities include: readable .posecode documents; explicit structure for joints, actions, angles, timing, and constraints; editable individual motion properties; parsing and rendering completed on the client side; identical input producing identical validation results; parser warnings and fidelity checks that can explain problems; an MCP server for agents that provides generation, validation, critique, and sharing tools; angles written by authors and generated by IK are constrained by configured range-of-motion limits. The official examples also show shoulder abduction, hip abduction, repetitions, and more.

In terms of usage, the official online Playground is provided (https://posecode.org/play),可预览、编辑和分享动作而无需安装。本地开发需要 Node.js 20 or higher, and the process includes cloning the repository, installing dependencies, starting the playground, running type checks, running fidelity evaluation, and building the playground. The project provides a VS Code extension that supports syntax highlighting, range-of-motion diagnostics, and completion for .posecode files; before the extension is released, .posecode files can be associated with Markdown for basic highlighting. The project also includes a Model Context Protocol server for use by AI agents, exposing tools such as validate_posecode and render_posecode, with configuration referenced in packages/posecode-mcp.

For Web component embedding, the Posecode player can be embedded in a page for educational content, exercise guides, and movement libraries. The parser and renderer can be installed separately, and the #viewer element is an HTML <canvas>. For export, posecode-render can bake motion into BVH files for import into animation tools such as Blender, and the Playground has a Download BVH button; options include fps (default 30), scale (default 1 meter, pass 100 for centimeters), includeFingers (default false), and proportions. The coordinate system is right-handed, Y-axis up, and the character's rest pose faces +Z. Units default to meters, and rotation channels are Zrotation Xrotation Yrotation (Euler order ZXY). This export only includes authored joint motion and root translation/turning, and does not rerun the renderer's contact/IK solve, so motions that rely on IK export the authored pose rather than the solved pose. glTF/GLB export is used for Web animation pipelines, the Playground has Download glTF, and the result can be loaded by the Three.js GLTFLoader; joint nodes are named by Posecode bone id, and the animation root node is posecode_root. The limitation is that what is exported is a procedural human model skeleton, not a humanoid/Mixamo skeleton, so there is currently no retargeting capability for deploying the skeleton outward, and it likewise bakes authored motion rather than contact/IK-solved motion.

The project stays honest through multiple layers of checks: range-of-motion clamping constrains joint angles before rendering, exceedingExceeding configured limits produces warnings rather than rendering impossible angles; kinematic evaluation measures the actual skeleton after inverse kinematics and ground-lock corrections; geometric fidelity invariants can define expected properties, such as a deadlift requiring sufficient torso pitch, limited knee travel, stable foot contact, and symmetric hip motion; GPT-5.6 Physics Critic combines motion with deterministic measurements to explain biomechanical issues in natural language and propose specific modifications.

The current scope focuses on single-person human motion, physical therapy demonstrations, rehabilitation visualization, ground locking, range-of-motion-constrained inverse kinematics, standing/sitting/lying poses, basic scene props, and browser rendering. Out of scope are two-person/partner movements, full collision detection and rigid body dynamics, detailed object physics, advanced equipment simulation, multi-joint finger animation, FBX or GLB animation export, and medical diagnosis.

Regarding limitations and safety, Posecode is an engineering and visualization project; its range-of-motion values and biomechanical checks are based on generic reference data and simplified models and do not constitute medical advice, injury prevention guarantees, physical therapy prescriptions, or a substitute for qualified professionals. Generated movements should be reviewed by qualified experts before being used in medical, rehabilitation, or safety-critical applications.

Potential applications include games and character animation, fitness coaching, exercise visualization, anatomy education, posture training, dance and choreography prototyping, sports technique analysis, robotics research, synthetic motion data generation, and embodied AI systems. The repository structure supports running all unit tests and biomechanical evaluations, and the CI workflow verifies that the project builds successfully, type checking passes, unit tests pass, and the configured motion invariants are satisfied. The project follows the design study "Kinematic Motion Definition Protocols for Large Language Models," exploring whether semantic, text-based motion programs can be a controllable, inspectable alternative to black-box motion generation. Regarding language specifications and contracts, the official description advances Posecode's language/IR version to v0.3, adds custom starting pose blocks and range-of-motion-checked overrides, as well as real-time and full-clip ground/self-collision diagnostics and accessible metric lower-bound guidelines.