What is Vanativ?
Web Components
Build encapsulated, reusable UI elements with Custom Elements and Shadow DOM — no library required.
Modern CSS
Variables, nesting, container queries — use the platform's styling power directly.
Fetch API
Native HTTP client with streaming, retry logic, and interceptors. No Axios needed.
Client Router
SPA-style routing with the History API. Lightweight, declarative, zero dependencies.
Reactive State
State management powered by JavaScript Proxy. Subscribe, react, stay in control.
No Build Required
Works directly in the browser. Vite optional — for DX, not dependency.
Get Started
# Clone and install
git clone https://github.com/idsquare/vanativ.git
cd vanativ
npm install
# Start dev server
npm run dev
# Or create a new project
npm create vanativ@latest my-app
What's Inside
- Components UserCard, ProductCard, Counter, Accordion, ThemeSwitcher, Modal
- Helpers DOM manipulation, animation, forms, string utilities
- Utilities HTTP client, client-side router, reactive store
- Styles Modern CSS with custom properties, dark mode, responsive design
- Testing Playwright E2E tests with full examples
- Benchmarks Performance comparison vs React, Vue, SolidJS, Svelte
Live Examples
Benchmarks
Bundle Size
Compare gzipped output across frameworks. Vanativ ships the least JavaScript.
Load Performance
First Contentful Paint, Time to Interactive — measured with Lighthouse.
Runtime Speed
10, 1000, and 5000 components — render time and memory usage.
# Run benchmarks
npm run benchmark:setup
npm run benchmark
npm run benchmark:report