@flatkit/compiler
v0.22.0
Published
The FlatInk language (parser + AST) and compiler (.flatink → .flatpack). Ships the flatc CLI.
Maintainers
Readme
@flatkit/compiler
The FlatInk language (parser + AST) and compiler: turn readable
.flatink text into a single self-contained .flatpack. Ships the flatc CLI. Lives in build/CLI
tooling — the player stays tiny and never pulls it in.
Install
pnpm add -D @flatkit/compilerCLI
flatc scene.flatink -o scene.flatpack # text sources -> one playable file
flatc scene.flatink --render -o frame.png # headless PNG preview
flatc scene.flatink --play --script gestures.json # headless replay + assertions (CI)Programmatic
import { compileFlatpack } from '@flatkit/compiler/compile'
const doc = compileFlatpack(programSrc, assetSrcs, media) // -> Doc (the .flatpack)Static analysis (lint, manifest, LLM context) lives under @flatkit/compiler/analysis.
