Note
This project is in β. Features and APIs are subject to change.
Scittle brings the Small Clojure Interpreter to the browser, allowing you to run ClojureScript using simple <script> tags.
Scittlets (short for Scittle applets) is a catalog of ready-made components and starter templates for building Scittle apps, covering charting, editing, UI, and developer tools.
A scittlet is a ready to use ClojureScript component designed for adding functionality to Scittle apps, with its JavaScript dependencies that can be loaded in any Scittle HTML file.
Each component includes examples and instructions for loading from CDN into your Scittle apps.
A CLI tool helps add and manage components, create projects from templates, and pack apps.
This repository offers the scaffolding needed to develop, test, showcase, and publish scittlets, served via jsDelivr from this GitHub repository.
👉 Visit the Scittlets website to browse components with live demos, copy installation commands, and explore starter templates.
New to Scittle? Create a starter app from a template with the CLI:
npx scittlets newAdd components to your Scittle app:
- Using the CLI: Manage components automatically with the Scittlets CLI (see below)
- Manual setup: Browse components on the Scittlets Catalog and copy script tags into your HTML file
Each component includes live demos and copy-paste code examples.
The scittlets CLI helps you create, manage, and pack Scittle apps and components.
Install globally with npm (requires Node.js and npm): npm install -g scittlets
Run commands with:
npx scittlets <command> [options]-
new [template] [output-dir]Create a new app from the specified TEMPLATE to OUTPUT-DIR. If no template is provided, lists available templates.
-
add <html> [scittlets..] [--list-scittlets]Add SCITTLETS dependencies to the target HTML file, or list them if none are provided.
Use
--list-scittlets(or-l) to list available scittlets from the catalog. -
update <html> [scittlets..]Update all scittlet dependencies in the HTML file at PATH using the latest catalog, or only those SCITTLETS if specified.
-
pack <html> [target]Pack the HTML file by inlining
<script src="">elements directly into the file.Saves the output to
target(default:packed.html). -
catalog [--release version]List all scittlets and templates in the catalog for the specified catalog release VERSION (default:
latest). -
releasesList all published release versions of the scittlets catalog.
List available templates:
npx scittlets newCreate a new app with a specific template:
npx scittlets new reagent/codemirrorAdd scittlet dependencies to HTML file:
npx scittlets add ./index.html scittlets.reagent.codemirror
List catalog release versions:
npx scittlets releasesList scittlets and templates for the latest release version:
npx scittlets catalogUpdate all scittlets dependencies in an HTML file to their latest versions:
npx scittlets update ./index.htmlPack an HTML file and specify output filename:
npx scittlets pack ./index.html output.htmlSee CONTRIBUTING.md
Licensed under the Eclipse Public License 1.0, same as Scittle. See LICENSE for details.