This repository is superseded. Examples and the live preview site are now part of the main Exoridus/ExoJS repository.
- Canonical source examples: https://github.com/Exoridus/ExoJS/tree/master/examples
- Live preview site: https://exoridus.github.io/ExoJS/
- Site source: https://github.com/Exoridus/ExoJS/tree/master/examples-site
No further updates will land here. The code below reflects the last standalone state of the site before consolidation and is kept for historical reference.
This repository contains the interactive example browser for ExoJS. It bundles a set of small demos, shows the source code in an in-browser editor, and renders the selected example in a live preview frame.
Live site (historical): https://exoridus.github.io/ExoJS-examples/
The app is built so it can be hosted from a subfolder, and the published dist/ output is what gets deployed to GitHub Pages.
- A small example explorer UI built with Lit components and Astro
- A live code editor and preview for each example
- Local vendored browser assets for
exojs, Monaco, andstats.min.js - Smoke tests that verify the built
dist/app opens correctly and loads the preview without runtime errors
Install dependencies:
npm installStart the development build watcher:
npm run devCreate a production build:
npm run buildPreview the built dist/ output locally:
npm run previewRun the smoke tests against the built site:
npm run test:distEach example can be opened directly with a hash route in this format:
https://exoridus.github.io/ExoJS-examples/#category/example-name.js
- Normal examples outside
webgpu/rely on ExoJS default backend selection. - Routes under
webgpu/stay explicit aboutbackend: { type: 'webgpu' }because backend choice is part of the example’s purpose. - Advanced backend-specific examples remain explicit and honest; they do not hide behind the default path.
- Sprite
- Spritesheet
- Container
- Blend Modes
- Tinted Sprites
- View Handling
- Render to Texture
- Display Text
- Display Video
- Display SVG
- Additive Particles
- Multi-Texture Sprite Stress
- Particle Stress
- Sprite Stress
- Video Basics
- RenderTexture Basics
- Graphics Basics
- Particle Basics
- Sprite Basics
- Text Basics
- Custom Triangle Renderer
public/contains the example sources, static assets, and preview HTMLsrc/contains the example browser UIdist/contains the built deployable sitescripts/contains vendor and asset sync helperstests/contains the Playwright-backed smoke tests for the built app
GitHub Pages is published from the built dist/ folder using:
npm run deployRepository: https://github.com/Exoridus/ExoJS-examples