Skip to content

Tezumie/bootloader-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bootloader Sandbox

Minimal, editor-agnostic sandbox to preview bootloader.art projects locally. Drop one script tag and point it at your generator file — works in any code editor.

Demo


Quick Start (fastest)

  1. Open the ready-made template in Codevre (no setup):

  2. Or open the full repo in Codevre:

  3. Or use locally with the CDN:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
  </head>
  <body>
    <script>
      window.BootloaderSandboxConfig = {
        source: "/examples/sketch.js", // your generator file
        theme: "light",                // "light" | "dark"
        cache: true,                   // persist seed/iteration in localStorage
      };
    </script>

    <!-- CDN: latest from main branch -->
    <script src="https://cdn.jsdelivr.net/gh/Tezumie/bootloader-sandbox@main/src/bootloader-sandbox.min.js"></script>
  </body>
</html>

What it does

  • Injects a minimal header UI.
  • Renders your generator code into a Bootloader-style SVG preview.
  • Optional dark/light theme.
  • Optional localStorage persistence for seed & iteration.

Config

Set on window.BootloaderSandboxConfig before loading the script:

Key Type Default Description
source string see below Path/URL to your generator JS file.
theme "light" | "dark" "light" UI theme.
cache boolean true Persist seed/iteration between reloads.

Source resolution order:

  1. window.BootloaderSandboxConfig.source
  2. "sketch.js" (fallback)
  3. "script.js" (fallback)

File structure

/examples/index.html
/examples/sketch.js
/src/bootloader-sandbox.js
/src/bootloader-sandbox.min.js
/assets/demo.PNG
/README.md

Links


License

MIT — attribution appreciated.

About

A tiny, drop-in sandbox for **bootloader.art** projects. Run and iterate on Bootloader sketches from any code editor—no build step, no UI wiring.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors