v0.6.22

pardnchiu/QuickUI

Last updated

NoteThis README was generated by SKILL, get the ZH version from here.



A ZERO-DEPENDENCY UI FRAMEWORK THAT RUNS WITHOUT A BUILD STEP


npmDownloadsLicense




A vanilla JavaScript framework with block-based rendering, data binding in plain HTML templates, and runtime i18n

Table of Contents



Features


npm i @pardnchiu/quickui · Documentation

  • Zero dependencies, no build step — A single script tag adds QuickUI to an existing page using native browser APIs.
  • Declarative HTML templates — Interpolation, loops, conditionals, two-way binding, and event binding live directly in HTML attributes, so the template is the page itself.
  • Batched Proxy reactivity — Deep data mutations recompute only affected binding blocks and apply changes on the next animation frame.
  • Runtime i18n switching — Locales accept either inline objects or JSON file URLs, and a single language switch re-renders both text and attributes.
  • Built-in lazy images and inline SVG — IntersectionObserver defers image loading and inlines external SVGs as stylable nodes when they enter the viewport.

Architecture


Full Architecture

graph TB
    A[HTML Template / render Function] --> B[Binding Blocks and Dependency Index]
    D[Proxy Reactive Data] --> C[Partial Updates]
    E[i18n Locale Data] --> D
    B --> C
    G[Lifecycle] -.-> C
    C -->|requestAnimationFrame| F[Real DOM]
    F --> H[Lazy Images / Inline SVG]
  1. graph TB
  2. A[HTML Template / render Function] --> B[Binding Blocks and Dependency Index]
  3. D[Proxy Reactive Data] --> C[Partial Updates]
  4. E[i18n Locale Data] --> D
  5. B --> C
  6. G[Lifecycle] -.-> C
  7. C -->|requestAnimationFrame| F[Real DOM]
  8. F --> H[Lazy Images / Inline SVG]

License


This project is licensed under the MIT LICENSE.

Author


Just open an issue to share an idea.
QuickUI contributors


©️ 2024 邱敬幃 Pardn Chiu
中文