MCPcopy Index your code
hub / github.com/bryanbraun/checkboxland

github.com/bryanbraun/checkboxland @1.6.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.6.0 ↗ · + Follow
168 symbols 284 edges 45 files 2 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Checkboxland

a grid of checkboxes displaying the words 'Welcome to Checkboxland

Checkboxland is a JavaScript library for rendering anything as HTML checkboxes.

You can use it to display animations, text, images, video, and arbitrary data. It also supports plugins, so you can add your own APIs.

Checkboxland is dependency-free, framework-agnostic, and fun! 🙃

For more details see the docs.

Setup

Install this package via npm:

npm install checkboxland

Example

Import it into your application, and create a checkbox grid:

import { Checkboxland } from 'checkboxland';

const cbl = new Checkboxland({ dimensions: '8x7', selector: '#my-container' });

// Create a data representation of the heart.
const heart = [
  [0,1,1,0,0,1,1,0],
  [1,0,0,1,1,0,0,1],
  [1,0,0,0,0,0,0,1],
  [1,0,0,0,0,0,0,1],
  [0,1,0,0,0,0,1,0],
  [0,0,1,0,0,1,0,0],
  [0,0,0,1,1,0,0,0],
];

// This updates the grid with the data we provided.
cbl.setData(heart);

a grid of checkboxes displaying the shape of a heart

Contributing

Checkboxland is designed to be extendable. If you want to add a feature, first ask yourself if it could be done as an external plugin.

If you contribution requires a change to the core library, follow these steps:

  1. Fork/Clone the repo.
  2. Make your changes on a feature branch.
  3. Run the docs site locally (npm run dev) to confirm that the demos still work as expected.
  4. Submit a Pull Request.

License

MIT

Core symbols most depended-on inside this repo

$i
called by 42
src/plugins/media/dithering-algorithms.js
setData
called by 18
src/checkboxland.js
getEmptyMatrix
called by 8
src/checkboxland.js
grab
called by 8
docs/demos/game-of-life/game-of-life.js
extend
called by 7
src/checkboxland.js
setCheckboxValue
called by 6
src/checkboxland.js
renderMediaAsCheckboxes
called by 4
src/plugins/media/renderMediaAsCheckboxes.js
makeSVG
called by 4
docs/demos/qr-code/qrcode.js

Shape

Function 155
Method 9
Class 4

Languages

TypeScript100%

Modules by API surface

src/checkboxland.js15 symbols
docs/demos/qr-code/qrcode.js15 symbols
docs/demos/snake/demo.js12 symbols
docs/demos/lasers/demo.js9 symbols
src/plugins/media/renderMediaAsCheckboxes.js7 symbols
src/plugins/media/dithering-algorithms.js7 symbols
docs/demos/qr-code/demo.js7 symbols
docs/demos/wave/demo.js6 symbols
docs/demos/spiral/demo.js6 symbols
docs/demos/ripple/demo.js6 symbols
docs/demos/game-of-life/game-of-life.js6 symbols
docs/demos/pinwheel/demo.js5 symbols

For agents

$ claude mcp add checkboxland \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page