Shoji

Examples

Real, runnable HTML files — not just snippets. Each one is fully self-contained (inline placeholder images, no dependency on any external asset) and loads Shoji the same way a plain <script>-tag integration would: from dist/, no bundler.

Run npm run build first — these load ../dist/shoji.min.js + ../dist/shoji.min.css directly, same as the demo's own demo/standalone.html. Then open any example file directly in a browser (file:// works fine — the UMD build is a classic script, not a module).

Every officially-demonstrated feature also has a working page under demo/pages/ in the repo (Vite dev server, npm run dev) — these docs examples are the same patterns, just as standalone files you can copy wholesale into your own project.