
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
posecode-parser
Advanced tools
Parse the .posecode kinematic motion DSL into a validated, ROM-clamped intermediate representation.
Parses .posecode, a small text language for describing human movement, into
a validated, range-of-motion-clamped intermediate representation (IR).
Part of Posecode: a kinematic-motion protocol LLMs can write, rendered as an animated 3D figure in the browser. See the language spec for the full grammar.
npm install posecode-parser
import { parse } from "posecode-parser";
const { ir, warnings, errors } = parse(`
posecode exercise "Body-weight squat"
rig humanoid
pose start = standing
step "Descend" 1.6s settle:
hips: flex 80
knees: flex 95
ground-lock: feet
repeat 8
`);
if (errors.length === 0 && ir) {
// Pass `ir` to posecode-render to animate it, or inspect it directly.
}
Version 0.2 includes a zero-config validator for local files and directories:
npx posecode-parser@0.2.0 validate ./movements
npx posecode-parser@0.2.0 validate --strict ./movements
The command recurses through directories, prints file-and-line diagnostics, and
exits non-zero for parse errors. --strict also fails on ROM-clamp warnings;
--json emits machine-readable results for CI.
Canonical modes are flow, settle, drive, snap, and linear. The v0.1
aliases ease-in, ease-out, and ease-in-out remain accepted so existing
movement files keep working.
parse() never throws: malformed or out-of-range documents come back as
structured errors/warnings instead. Every joint angle in ir is hard-clamped
to a healthy range of motion, so a hallucinated knee: flex 200 renders at its
safe ceiling with a warning, never an anatomically impossible joint.
Apache-2.0
FAQs
Parse the .posecode kinematic motion DSL into a validated, ROM-clamped intermediate representation.
The npm package posecode-parser receives a total of 79 weekly downloads. As such, posecode-parser popularity was classified as not popular.
We found that posecode-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.