← croot.js.org · docs · examples
Library CrootJS
Import any module straight from jsDelivr’s GitHub CDN — no npm install, no build step:
import { getJSON, postJSON } from "https://cdn.jsdelivr.net/gh/crootjs/lib@0.0.13/api.js";
@0.0.5) — check current tags at https://github.com/crootjs/lib/tags. Never use @latest in committed code; it can change under you without warning..min.js in production — jsDelivr auto-minifies any file on request via Terser, even though no .min.js is committed to this repo: .../lib@0.0.13/api.min.js. Use the unminified .js only when actively reading/debugging.cookie.js, url.js, validate.js, …); there’s no single “import everything” entry point, so your page only loads the code it needs.Full per-module API reference: https://croot.js.org/docs/
Projects using CrootJS must keep HTML, CSS, and JS in separate files, and load JS as <script type="module"> — no inline <style>/<script> blocks or onclick/style="" attributes. Full rules: https://croot.js.org/docs/conventions
Using an AI coding agent? Drop CLAUDE.md (in this repo) into your project root — Claude Code picks it up automatically.
git tag #check current version
git tag v0.0.3 #set tag version
git push origin --tags #push tag version to repo