RageLayer v2.1.2
Demolish any web page.
A framework-neutral canvas toy with real page capture, rigid-body debris, procedural tools, and drop-in React, Vue, and Svelte integrations.

What RageLayer does
The real page breaks
Capture the DOM, punch holes through content, and knock measured elements loose as physical objects.
Framework ready
Use the vanilla controller, React component or hook, Vue composable, or Svelte action.
Extensible by design
Register custom tools against a typed engine API and reuse the rendering, physics, and sharing primitives.
Adaptive performance
Quality tiers, bounded entities, dirty-region rendering, telemetry, and graceful WebGL fallbacks.
Install
npm install ragelayerThe package ships modern ESM with TypeScript declarations. react and react-dom are optional peer dependencies.
Pick your integration
| Stack | Import | Best for |
|---|---|---|
| React / Next.js | ragelayer/react | Ready-made toolbar or a headless hook |
| Vue / Nuxt | ragelayer/vue | Lifecycle-safe composable |
| Svelte / SvelteKit | ragelayer/svelte | One-line launcher action |
| Astro, Angular, Solid, plain JS | ragelayer | Framework-neutral controller |
import { createRageLayer } from "ragelayer";
const rageLayer = createRageLayer({ initialTool: "hammer" });
document.querySelector("#destroy")?.addEventListener("click", () => rageLayer.toggle());Browse the docs
Start here
- Getting startedInstall RageLayer, wire it up in React or vanilla JavaScript in 60 seconds, and meet the 16 built-in tools.
- Framework integrationsReact, Next.js, Vue, Svelte, Astro, Angular, Solid, the custom element, and the framework-neutral controller.
- CompatibilitySupported browsers and frameworks, SSR behaviour, ESM-only distribution, Content Security Policy, and cross-origin content.
- AccessibilityKeyboard operation, aiming mode, reduced motion, translation, and the host application's responsibilities.
- TroubleshootingFixes for capture failures, SSR errors, stacking contexts, sound, clipboard writes, and performance problems.
Reference
- APIEntry points, lifecycle helpers, engine options, the engine API, custom tools, low-level primitives, and fallback behaviour.
- Tool galleryScreenshots and behaviour notes for all 16 built-in tools, from the hammer to the sticky bombs.
- Toolbars, i18n & keyboardThe React, Vue and custom-element toolbars, the framework-neutral ToolbarModel, keyboard shortcuts, aiming, and i18n.
- Procedural 3D modelsModel scale, measured toolbar icons, split tool entry points, on-demand loading, and custom art guidelines.
- Advanced systemsAdvanced tools, the fixed physical response, cross-tool combos, destruction history, and the custom tool SDK.
- PerformanceAdaptive quality tiers, frame telemetry, repeatable Chrome DevTools Protocol benchmarks, and distribution budgets.
- ArchitectureThe layer model, module map, per-engine tool state, the frame loop, the void, and the degradation ladder.
- VersioningThe public API surface, what is explicitly not public, the change policy, and how to read releases.