@ktjs/kt-tsc
v0.3.1
Published
Simple TypeScript checker for KT.js that suppresses k-for alias false positives.
Downloads
731
Readme
KT.js
kt.js is still under development, there might be some breaking api changes.
Community
- QQ Group:
1070434849 - Telegram: https://t.me/kt_js
0.40.x Breaking Changes ✨
ref.addOnChangeis renamed toref.listen.- Value listeners are now stored in a
Setinstead ofMap. KTFor,KTIf,KTAsync,Fragmentare completely refactored by usingKTAnchor. More reliable, efficient and safe. (Lifecycle mechanism is under design)- sub-getters are now using
KTComputed, subref is unchanged.
Introduction
kt.js is a web framework with a tiny runtime that renders real DOM directly (no virtual DOM), uses explicit reactivity variables and gives you manual control over refs, bindings, and redraw timing.
KT.js focuses on one principle: keep direct control of the DOM and avoid unnecessary repainting.
Quick Start
pnpm create kt.js my-app
cd my-app
pnpm install
pnpm devSecurity model
kt.js intentionally trusts application code and keeps DOM operations explicit.
- Text children are inserted as text nodes by default.
k-htmlis a raw HTML escape hatch that writes toinnerHTMLwithout sanitization.- Prefer
on:*event bindings. Do not pass rawonclick/onerrorstyle strings. - Attributes such as
href,src,srcdoc,action, and SVG URL attributes are forwarded as-is. - If you bind untrusted input, sanitization and validation must be handled by your application.
License
MIT License.
