vani

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

Vani

Rendering should be explicit, local, and predictable.

Vani is a small, dependency-free UI runtime. It is runtime-first and DOM-anchored, with explicit updates and opt-in fine-grained state.

Core principles

  • Explicit updates (no hidden re-rendering)
  • Subtree ownership via anchors
  • Runtime-first, no compiler
  • Opt-in signals for fine-grained updates
  • Ref-based and Ref-free DOM subtree access on mount.

Installation

pnpm add @vanijs/vani
# or
npm install @vanijs/vani
# or
yarn add @vanijs/vani
# or
bun add @vanijs/vani
# or
deno add @vanijs/vani

Documentation

The full project's documentation, including the core concepts, usage examples, and API reference, is located in the DOCS.md file.

You also have instructions there to add skills to your AI Agents to make them experts in Vani.