Skip to main content
Sprincul ships as a standard ES module, so you can drop it into any project regardless of whether you use a bundler. Pull it in from a CDN for zero-configuration setups, or install it from a package registry if you prefer to manage dependencies locally.

CDN (no install required)

The fastest way to use Sprincul is to import it directly from esm.sh. Add a <script type="module"> tag to your page and import from the CDN URL:
// main.js
import { Sprincul } from 'https://esm.sh/sprincul';
import Counter from './Counter.js';

Sprincul.register('Counter', Counter);
Sprincul.init();
No node_modules, no build step — the browser resolves the module at runtime. This works in any modern browser that supports ES modules.

Package manager

If you are already using a package manager, install Sprincul from npm:
npm install sprincul
Then import Sprincul and SprinculModel from the package name:
import { Sprincul, SprinculModel } from 'sprincul';
You do not need a bundler to use Sprincul after a package install. If your environment supports bare module specifiers (for example via an import map), you can reference sprincul directly. A bundler is optional — use one if your project already has one, but do not add one just for Sprincul.