VenJS 5.10.0 Documentation
A high-performance, lightweight JavaScript framework for building reactive, component-driven web interfaces — with a clean component API, signals, a fast reconciliation engine, animation helpers, native notifications, and a secure PHP backend.
requestAnimationFrame delta-time rendering. Five visual libraries now ship in libs/.
What is VenJS?
VenJS is a single-file frontend engine (ven.js) plus an optional secure backend (ven.php) and a bundle of visual libraries (libs/). It gives you a declarative component model and fine-grained reactivity without a build step.
Signals & Effects
Fine-grained reactive state with automatic dependency tracking.
RenderingVNode Engine
Declarative DOM with a stable recursive reconciliation patch system.
UIComponents
Prebuilt Button, Input, AppBar, SideBar, BottomNav and Card.
RoutingClient Router
Hash and history modes with a tiny signal-driven router.
BackendDatabase Engine
Secure client-to-database CRUD over prepared statements.
LibrariesVisual Libs
ScrollEcho, Racket, Orbit, Rinx and Smooth animation/scroller helpers.
Highlights
ven.js into a script tag and start writing components.venjs.signal() + venjs.effect() re-render only what changed.venjs.div(), venjs.h1(), and any custom tag via the Proxy engine.A 30-second taste
const app = document.getElementById("app");
const count = venjs.signal(0);
const Counter = () => venjs.div({ class: "counter" }, [
venjs.h1({}, `Count: ${count.value}`),
venjs.button({ onclick: () => count.value++ }, "Increment")
]);
// Automatically patches the DOM on every state update
venjs.effect(() => venjs.render(app, Counter));