Boostlet.js is a generic processing framework that runs algorithms wrapped as bookmarklets and supports interacting with a variety of web-based visualization frameworks.
- Easy integration with existing visualization frameworks.
- Drag-and-drop Boostlets for straightforward installation.
- Standard API for pixel data access and user interactions.
- Compatibility with BoxCraft (https://github.com/shrutivarade/BoxCraft) for enhanced region-of-interest selections and other widgets.
Get it right here: boostlet.min.js or include it like this:
<script src="https://boostlet.org/dist/boostlet.min.js"></script>
The following example creates a Boostlet that runs a Sobel filter.
script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://boostlet.org/dist/boostlet.min.js";
script.onload = run;
document.head.appendChild(script);
eval(script);
function run() {
// detect visualization framework
Boostlet.init();
image = Boostlet.get_image();
kernel = [
-1, 0, 1,
-2, 0, 2,
-1, 0, 1
];
filtered = Boostlet.filter(image.data, image.width, image.height, kernel);
Boostlet.set_image( filtered );
}
To compile the project:
npx parcel build
During development, to prototype in the JS Console, there are two entrypoints:
tests/dev.html
that uses the uncompiled code and allows developing while prototyping
tests/dist.html
uses the compiled code
Cornerstone2D.js NiiVue.js OpenSeaDragon.js
We welcome contributions! Please fork the repository and submit a pull request with your proposed changes.
Boostlet.js is open-source software licensed under the MIT license.