JSCroot is a pure Vanilla JavaScript ES6+ Modules library that breathes life into your static HTML with zero dependencies.
Effortlessly transform static websites into dynamic, interactive experiences with minimal code changes.
Designed for efficiency and eco-friendliness. Smaller codebase means less energy consumption and faster loading times.
Built-in security features to protect your website against unauthorized changes and malicious alterations.
Super lightweight with zero npm dependencies. Just pure vanilla JavaScript ES6+ modules.
Perfect for building modern micro front-end architectures with component-based development.
Create conventional single-page applications with seamless navigation and state management.
Get started with JSCroot in just a few lines of code. Import from CDN and start building dynamic websites immediately.
// Import JSCroot functions from CDN
import { setInner, onClick, postJSON }
from "https://cdn.jsdelivr.net/gh/jscroot/lib@0.2.8/element.min.js";
// Configure backend URL
const urlBackend = "https://api.example.com";
// Handle login button click
onClick("loginBtn", async () => {
// Get form values
const email = getValue("email");
const password = getValue("password");
// Send login request
const response = await postJSON(`${urlBackend}/login`, { email, password });
// Handle response
if (response.success) {
setInner("demo", "Login successful!");
}
});
JSCroot works with all major hosting providers. Choose your favorite platform and deploy instantly.
Explore real-world examples and templates built with JSCroot. Fork them on GitHub to get started quickly.
A modern file explorer interface with drag-and-drop functionality, built with JSCroot.
View Demo →A sleek PDF viewer that works directly in the browser with smooth navigation.
View Demo →A complete Single Page Application starter template with routing and state management.
View Demo →An elegant 404 error page template with smooth animations and responsive design.
View Demo →See how JSCroot compares to other frameworks in terms of performance and bundle size.
View Benchmark →Join thousands of developers who are already building amazing things with JSCroot