The GSAP + HTML parser/writer suite — standalone, zero @hyperframes/* dependencies.
The parsers package is the standalone foundation extracted from core. It owns the GSAP animation parser/writer (recast and acorn implementations), the HTML composition parser, hf-id stamping, and spring-ease generation. It has no @hyperframes/* dependencies, so it’s the base every other package builds on.
Most users do not need to install @hyperframes/parsers directly.@hyperframes/core re-exports the parser API it needs, and the CLI / studio depend on it transitively. Reach for it directly only when you want the parsing layer without pulling in the rest of core.
Use @hyperframes/parsers when you need to:
Parse HTML compositions into structured TypeScript objects
Parse, edit, and re-serialize GSAP timeline scripts (AST round-trip)
Stamp deterministic hf-id attributes onto a document
Build tooling that touches the parsing layer but doesn’t need core’s runtime, compiler, or generators
The package ships subpath entries so consumers tree-shake to what they use — importing @hyperframes/parsers/hf-ids (a couple KB) does not pull in the GSAP AST machinery (recast/babel/acorn).
import { SUPPORTED_PROPS, // animatable properties SUPPORTED_EASES, // available easing functions PROPERTY_GROUPS,} from '@hyperframes/parsers/gsap-constants';import type { PropertyGroupName } from '@hyperframes/parsers/gsap-constants';
Deterministic element identity for stable diffing and editing:
import { ensureHfIds, mintHfId } from '@hyperframes/parsers/hf-ids';// Stamp hf-id attributes onto every editable element in a documentconst withIds = ensureHfIds(htmlString);