Bundle
HTML render
JS render
Reactivity
Lazy-loading
Router
i18n
5.8 kb
15.4 kb
22.2 kb
142.6 kb
147.5 kb
43.8 kb
45.8 kb
A 5kb full featured
reactive components library
A smooth mix of Lit, Alpine and Sjs. Including lazy loading and router. With a ridiculous size of 5kb.
Bundle
HTML render
JS render
Reactivity
Lazy-loading
Router
i18n
5.8 kb
15.4 kb
22.2 kb
142.6 kb
147.5 kb
43.8 kb
45.8 kb
What does that mean ?
built-in
external module
unofficial support
Click to increase the number.
You want to see more ? Explore all the demos availables on codepen.io
function Counter({ props, html }){props.count = useSignal(0);return html`<button x-on:click="count(count.value + 1)">Count is <b x-text="count()">0</b></button>`;}useDefine("counter", Counter);
Fast, sustainable, and efficient code is code that consumes less energy and bandwidth.
Vif
Vue
Alpine
Lit
Preact
Generate 100 ul with 100 li elements, lower is better.
Vif is available via NPM, CDN and in IIFE version.
// NPM $ npm install vifjsimport { useDefine, useSignal, useI18n, useObserve, useNavigate } from "vifjs";// CDNimport { /* ... */ } from "https://cdn.jsdelivr.net/npm/vifjs@latest/esm/vif.js";// IIFE<script src="https://cdn.jsdelivr.net/npm/vifjs@latest/iife/vif.js"></script>const { useDefine, useSignal, useI18n, useObserve, useNavigate } = Vif;
Hey 👋 i'm @enzoaicardi
I'm the developer of Vif. It is a modest library developed during my free time, I will appreciate your feedback because this will help me fix various bugs and errors, so feel free to post an issue on github !
© 2024 - Date.now()