@pardnchiu/quickui
v0.6.18
Published
QuickUI is a lightweight frontend framework built on pure JavaScript and native APIs. Supports data binding, i18n support, event binding, conditional rendering, and loop rendering.
Downloads
2,883
Maintainers
Readme
[!NOTE] This README was generated by SKILL, get the ZH version from here.
A lightweight JavaScript frontend framework with virtual DOM rendering, declarative template syntax, and built-in i18n
Table of Contents
Features
npm i @pardnchiu/quickui· Documentation
- Zero-dependency virtual DOM engine — Pure JavaScript with native browser APIs implements a Diff/Patch algorithm, applying minimal DOM operations without relying on any third-party library.
- Declarative template syntax — Bind data, loop, and render conditionally directly in HTML with
{{ value }},:for,:if/:else-if/:else, and:model, with no build step required. - Proxy-based reactive data — Data changes are auto-detected and trigger the smallest possible DOM update, removing manual DOM manipulation.
- Built-in i18n — Switch languages through JSON locale files and the
i18n.keysyntax without integrating an extra translation framework. - Full lifecycle hooks — Six lifecycle stages are exposed:
beforeRender,rendered,beforeUpdate,updated,beforeDestroy,destroyed.
Built With
Architecture
graph TB
A[HTML Template] --> B[vDOM Build]
B --> C[Diff / Patch]
D[Reactive Data] -->|Change Detection| C
C -->|Minimal Ops| E[Real DOM]
F[i18n / Lifecycle] --> BLicense
This project is licensed under the MIT License.
Author
[email protected] https://www.linkedin.com/in/pardnchiu
Stars
©️ 2024 邱敬幃 Pardn Chiu
