posecode
OfficialWhy Posecode?
Ask an LLM to explain a physical movement, and it will give you unstructured prose or a static, flat diagram. But large language models already understand the biomechanics of movement (e.g., "elbows flex, shoulders abduct on the descent of a push-up"). They just lack a standardized syntax to express it in a way that a computer can render dynamically.
Why not diffusion text-to-motion models?
While neural network-based text-to-motion models exist, they are impractical for consumer web applications:
Resource Intensive: They require heavy, expensive GPU hosting, making real-time generation and scaling cost-prohibitive.
No Fine Control: They output black-box 3D coordinate trajectories, making it impossible to adjust anatomical phases, joint limits, or speed programmatically.
Safety Hazards: There are no safety boundaries, meaning the model can easily render joint extensions that are anatomically impossible or physically dangerous.
The Posecode Approach
Posecode takes the opposite, lightweight approach:
Text-Driven: The LLM writes a tiny
.posecodetext document specifying semantic joint angles and phase times—generation costs a fraction of a cent.Unbelievably Fast: A client-side parser and WebGL renderer animate the figure at 60 FPS directly in the browser—even on low-end mobile devices.
Anatomically Safe: Every joint rotation is clamped to clinical range-of-motion limits from standard physiotherapy tables. Hallucinations like
knee: flex 200are safely capped with warnings.
Related MCP server: monday MCP Server
The Idea in 30 Seconds
A .posecode file describes human movements as a sequence of timed steps with targeted joint movements and range-of-motion rules:
1. Write | 2. Render 3D Animation |
|
Installation & Usage
Choose the integration path that fits your use case:
Live Playground (No installation)
Instantly preview, edit, and share movements in the browser: posecode.org/play
MCP Server (For AI Agents)
Teach your AI agent (in Claude Desktop, Cursor, etc.) to read, write, and render Posecode natively using our Model Context Protocol server:
# Add to your MCP client config (e.g. claude_desktop_config.json):
npx posecode-mcpSee the MCP Package README for full configuration options.
Web Component Embed (For Blogs & Docs)
Embed an interactive, low-poly 3D player on any page using a single <script> tag:
<script src="https://unpkg.com/posecode-embed/dist/posecode-embed.js"></script>
<posecode-player src="/movements/squat.posecode"></posecode-player>See the Embed Package README for customizing autoplay, controls, speed, and styling.
Core Libraries (For custom JS/TS apps)
Build custom rendering or parsing logic directly in your own applications:
# Parser only (converts text to range-of-motion clamped IR)
npm install posecode-parser
# WebGL 3D Renderer (built on Three.js)
npm install posecode-renderHow Posecode stays honest
Two safety layers ship with the language:
ROM clamping: every angle is hard-clamped to healthy range-of-motion tables before rendering; a hallucinated
knee: flex 200renders at its ceiling with a warning, never an impossible joint.Fidelity evals:
posecode-evalre-runs the real parser → FK → ground-lock pipeline headlessly and scores geometric invariants ("a deadlift pitches the torso ≥ 50° with vertical shins"). Every example must pass every invariant in CI.
Packages
Package | What it does |
| |
IR → animated low-poly mannequin (Three.js), forward kinematics + ground-lock CCD IK. | |
Encode a | |
MCP server: lets an LLM agent author, ROM-validate, and get a render link for a movement, natively. | |
Fidelity harness: headless kinematic probing + biomechanical invariant scoring. | |
Live editor + 3D viewport + warnings + the LLM prompt + shareable links. |
The protocol and both libraries are MIT-licensed: the open core. See spec/SPEC.md for the full language and spec/llm-authoring.md for the authoring prompt.
For where Posecode spreads fastest and the per-domain go-to-market plan, see docs/market-research.md; for the engine roadmap, ROADMAP.md.
Scope (v0.1)
Single-person movement across fitness, physio, desk, dance, education & rehab · Mermaid-style DSL · ROM safety clamping (authored and IK-solved angles) · forward kinematics · ground-lock and ROM-constrained reach-to-target IK · hip-hinge · lying/seated poses · scene props (chair/wall/bar) · a single-DOF hand rig · live playground.
Deferred: two-person / partner movements + collision detection, deeper props (load, bands, rings), multi-joint fingers, FBX/GLB export, hosted SaaS editor and the expert-verified motion marketplace.
Background
This project follows a design study, "Kinematic Motion Definition Protocols for Large Language Models", which argues for a semantic DSL over diffusion models, specifies ROM-based safety constraints from clinical normative data, and lays out the open-core commercialization path. The spec cross-references its sections (§4 DSL, §5 biomechanics, §6 client rendering, §7 strategy).
Posecode's range-of-motion values are general literature data, not medical advice. Consult a qualified professional for physiotherapy or exercise prescription.
Feedback & Support
We'd love to hear your feedback! You can reach us in two ways:
Email: Send us an email at hello@posecode.org.
GitHub Issues: If you found a bug or have a feature request, please open a GitHub Issue.
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/posecode-dev/posecode'
If you have feedback or need assistance with the MCP directory API, please join our Discord server