Introducing RageLayer · a web toy for every framework
Turn any web page into a destructible canvas.
Sixteen procedural tools smash, burn, cut, corrode and explode the real DOM — then sweep every piece back into place.
This page is the demo. Everything below is destructible.
Tools
Sixteen tools, drawn from code.
No model assets and no network requests. They ship in three entry points, so you only pay for the ones you register.











How it works
It really is your page.
Most page-destruction toys draw a cartoon on top of your site. This one takes the page away from you first.
CaptureThe DOM is rasterised into a canvas and the real page is hidden with visibility, so layout, scroll position and page height all survive.
DestroyTools remove content pixels instead of drawing over them. A hole is a hole — what shows through it is the void behind the page.
RepairThe broom sweeps the pristine capture back under the bristles. Closing the toolbar puts the real DOM back, untouched.
Install
Two imports and a button.
import { useState } from "react";
import { RageLayer } from "ragelayer/react";
export function DestroyButton() {
const [open, setOpen] = useState(false);
return (
<>
<button onClick={() => setOpen(true)}>Destroy this page</button>
{open && <RageLayer onClose={() => setOpen(false)} />}
</>
);
}The entry is marked "use client", so it drops into a Next.js Client Component.
- MIT
- ESM only
- Zero runtime dependencies
- TypeScript declarations
- 16 built-in tools
- Canvas 2D