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.

A web page smashed, burned, frozen, and painted by RageLayer

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 ragelayer

The package ships modern ESM with TypeScript declarations. react and react-dom are optional peer dependencies.

Pick your integration

StackImportBest for
React / Next.jsragelayer/reactReady-made toolbar or a headless hook
Vue / Nuxtragelayer/vueLifecycle-safe composable
Svelte / SvelteKitragelayer/svelteOne-line launcher action
Astro, Angular, Solid, plain JSragelayerFramework-neutral controller
import { createRageLayer } from "ragelayer";

const rageLayer = createRageLayer({ initialTool: "hammer" });
document.querySelector("#destroy")?.addEventListener("click", () => rageLayer.toggle());
Read the integration guide

Browse the docs

Reference