@chonkylang/ui
v0.1.2
Published
Chonky UI — optimized components (Image, etc.)
Maintainers
Readme
@chonkylang/ui
Chonky is a machine-first web language for AI-driven development. @chonkylang/ui ships React components that are friendly to Chonky’s render metadata and optimization story: explicit props, predictable DOM attributes, and hooks for autonomous tuning (for example onOptimize callbacks with structured ImageOptimizeInfo).
Project home: github.com/adisonshadow/chonky
Components
Image
lazyLoad: Optional IntersectionObserver + nativeloading="lazy"for deferred work.fallbackSrc: Error recovery path without losing layout signals.optimizedSrc/quality: Plugs into silent-mode / optimizer flows where the toolchain supplies better URLs or quality hints.onOptimize: Emits structured metadata (dimensions, format, optional byte sizes) after load so agents can verify visual requirements numerically.data-chonky-*attributes: Stable handles for metadata collectors and DevTools.
Peer dependency
- React
^18 || ^19
Installation
npm install @chonkylang/ui --save-devThis package depends on @chonkylang/runtime for consistent instrumentation patterns; ensure your bundler runs the Chonky plugin when you use .cts or advanced syntax.
Chonky ecosystem (all packages)
| Package | README |
| --- | --- |
| @chonkylang/core | README |
| @chonkylang/runtime | README |
| @chonkylang/transpiler | README |
| @chonkylang/cli | README |
| @chonkylang/vite-plugin | README |
| @chonkylang/webpack-plugin | README |
| @chonkylang/ui (this package) | README |
| @chonkylang/devtools | README |
License
MIT — see the repository.
