Transform Static Websites into Dynamic Experiences. Instantly.

JSCroot is a pure Vanilla JavaScript ES6+ Modules library that breathes life into your static HTML with zero dependencies.

Why Choose JSCroot?

Static Website Transformation

Effortlessly transform static websites into dynamic, interactive experiences with minimal code changes.

Low-emission Carbon Code

Designed for efficiency and eco-friendliness. Smaller codebase means less energy consumption and faster loading times.

Anti-deface Protection

Built-in security features to protect your website against unauthorized changes and malicious alterations.

Lightweight Application

Super lightweight with zero npm dependencies. Just pure vanilla JavaScript ES6+ modules.

Micro Front End (MFE) Support

Perfect for building modern micro front-end architectures with component-based development.

Single Page Application (SPA) Support

Create conventional single-page applications with seamless navigation and state management.

Quick Start Example

Get started with JSCroot in just a few lines of code. Import from CDN and start building dynamic websites immediately.

main.js
// 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!");
  }
});
Explore CDN Library

Deploy Anywhere

JSCroot works with all major hosting providers. Choose your favorite platform and deploy instantly.

GitHub Pages
Vercel
Netlify
Firebase
AWS Amplify
Cloudflare Pages
Azure Static Web Apps
Google Cloud Storage
DigitalOcean App Platform
Surge.sh
Render
GitLab Pages

See JSCroot in Action

Explore real-world examples and templates built with JSCroot. Fork them on GitHub to get started quickly.

File Explorer

A modern file explorer interface with drag-and-drop functionality, built with JSCroot.

View Demo →

PDF Web Viewer

A sleek PDF viewer that works directly in the browser with smooth navigation.

View Demo →

API Documentation

Beautiful API documentation interface with live Swagger integration.

View Demo →

SPA Skeleton

A complete Single Page Application starter template with routing and state management.

View Demo →

404 Error Page

An elegant 404 error page template with smooth animations and responsive design.

View Demo →

Performance Benchmark

See how JSCroot compares to other frameworks in terms of performance and bundle size.

View Benchmark →

Ready to Transform Your Website?

Join thousands of developers who are already building amazing things with JSCroot