vani-spa-setup
Installation
SKILL.md
Vani SPA Setup
Instructions for the agent to scaffold a basic Vani SPA using explicit updates.
When to Use
Use this when a user needs a new Vani SPA root, a simple component, or a quick demo that mounts to a DOM element.
Steps
- Create a root component with
componentthat returns a render function. - Store local state in variables and call
handle.update()from event handlers. - Find the root element by id and throw if missing.
- Mount the component with
renderToDOM(App(), root)(arrays also work).
Arguments
- rootId - DOM id of the mount node (defaults to
app)
Related skills
More from itsjavi/vani
vani-jsx-setup
Configure and use JSX with Vani while keeping runtime behavior explicit
8vani-scheduling
Schedule explicit updates with microtasks and transitions
8vani-spa-app
Updates Vani SPA app UI in src/spa-app, especially the landing page/homepage and landing examples.
8vani-ssr-hydration
Implement SSR, hydration, and selective activation with Vani
8vani-async-client-only
Use async components, fallbacks, and client-only islands
8vani-incremental-mount
Mount Vani components inside existing apps or DOM islands
8