What is Vanativ?

01

Web Components

Build encapsulated, reusable UI elements with Custom Elements and Shadow DOM — no library required.

02

Modern CSS

Variables, nesting, container queries — use the platform's styling power directly.

03

Fetch API

Native HTTP client with streaming, retry logic, and interceptors. No Axios needed.

04

Client Router

SPA-style routing with the History API. Lightweight, declarative, zero dependencies.

05

Reactive State

State management powered by JavaScript Proxy. Subscribe, react, stay in control.

06

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

Example Project

A complete product catalog built entirely with native web technologies — shopping cart, search, routing.

Open Demo →

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