kt.js is still under development, there might be some breaking api changes.
- QQ Group:
1070434849 - Telegram: https://t.me/kt_js
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.
- Node.js: >= 22.0.0
- TypeScript: 6.0.2
- Package Manager: pnpm
Install dependencies:
pnpm install
<name>can be the dirname in packages/plugins folder. Can also be group name given inscripts/common/package-info.ts
| Command | Description |
|---|---|
pnpm exp |
Start the example development server |
pnpm build <name> |
Build all packages in the monorepo |
pnpm check <name> |
Run type checking across all packages |
pnpm test <name> |
Run the test suite |
pnpm cover |
Generate test coverage reports |
pnpm lint |
Run linter (oxlint) on the codebase |
pnpm sync-readme |
Synchronize README files across packages |
pnpm pub <name> |
Publish packages to npm |
pnpm lines <name> |
Count lines of code |
pnpm repolist |
Generate repository list |
- Private methods in a package should be named with prefix
_. - Shared private methods should be named with prefix
$. - Specific classes should be named with prefix
KT