@chonkylang/transpiler
v0.1.2
Published
Chonky Babel/SWC transpiler plugin — preprocessor + AST transforms
Downloads
298
Maintainers
Readme
@chonkylang/transpiler
Chonky is a machine-first web language for AI-driven development. @chonkylang/transpiler is the compile-time engine: it preprocesses Chonky-specific syntax, runs Babel AST transforms, loads chonky.config, and exposes helpers for semantic translation and revert workflows.
Project home: github.com/adisonshadow/chonky
Capabilities
preprocess: Transformsmachine:assertblocks and related surface syntax into code the rest of the pipeline can compile.chonkyBabelPlugin: Core plugin invoked with project root and mode (development|production). RewritesdefineRequirementinto manifest emission, injects dev-only instrumentation (for example wrappers that talk to@chonkylang/runtime), and applies Chonky-specific semantics per your config.- Configuration:
loadChonkyConfig/loadPolicyManifestresolve structured settings for verification, ambiguity rules, silent mode, optimizers, and interactions—single source of truth for CLI and bundler plugins. - Tooling helpers: Requirement ID validation, Chonky ID generation, output directory helpers,
toSemanticView/fromSemanticViewfor human-readable vs machine-oriented source workflows. - Types: Full TypeScript models for requirements, manifests, triggers, policies, and reports—shared across CLI, plugins, and
@chonkylang/core.
Peer dependency
@babel/core^7
Installation
npm install @chonkylang/transpiler @babel/core --save-devBundler integration is usually done via @chonkylang/vite-plugin or @chonkylang/webpack-plugin, which call this package for you.
Chonky ecosystem (all packages)
| Package | README |
| --- | --- |
| @chonkylang/core | README |
| @chonkylang/runtime | README |
| @chonkylang/transpiler (this package) | README |
| @chonkylang/cli | README |
| @chonkylang/vite-plugin | README |
| @chonkylang/webpack-plugin | README |
| @chonkylang/ui | README |
| @chonkylang/devtools | README |
License
MIT — see the repository.
