A Multiplayer Cursor Orchestrator that live-reconstructs any modern webpage into existence.
Wipes any webpage down to an obsidian canvas and choreographs an autonomous flock of design cursors to rebuild it element-by-element with bounding boxes, live measurements, typewriter typography, and procedural sound.
Swarm Rebuild is a specialized Google Chrome Extension (Manifest V3) that turns any live webpage into a cinematic build showcase. Built with high-speed reverse-engineering and optimized for high-end WebGL, 3D portfolios, and heavy animated sites, it creates a theater-grade visual simulation ideal for screen recordings, launch videos, Twitter/X reels, Product Hunt, and agency showreels.
flowchart LR
A["DOM Snapshot & Geometry"] --> B["Deep Canvas Wipe"]
B --> C["Multi-Agent Swarm Spawn"]
C --> D["Cinematic Auto-Tour (1x)"]
D --> E["Seamless Live Restore"]
style A fill:#0d0d12,stroke:#c9a96e,stroke-width:1.5px,color:#fff
style B fill:#0d0d12,stroke:#c9a96e,stroke-width:1.5px,color:#fff
style C fill:#0d0d12,stroke:#c9a96e,stroke-width:1.5px,color:#fff
style D fill:#0d0d12,stroke:#c9a96e,stroke-width:1.5px,color:#fff
style E fill:#0d0d12,stroke:#c9a96e,stroke-width:1.5px,color:#fff
- 🎯 Autonomous Tour Mode (Default): Starts immediately on activation. Glides down smoothly at a curated 1× pace without requiring user mouse intervention.
- 📐 Live Figma-Style Bounding Boxes: Cursors drag out rectangular bounds displaying real-time dimensions (
w × h), blue guide lines, and snapping rules. - ✍️ Typewriter Engine: Headlines, subheadings, and paragraphs are typed out character-by-character with realistic cadence and blinking I-beam carets.
- 🔊 Procedural Web Audio Synthesizer: Real-time tactile clicks, pops, pen taps, and typing noises synthesized in-browser (zero bulky MP3 dependencies).
- 🛡️ WebGL & 3D Site Isolation:
- Automatically isolates fullscreen background WebGL shaders (
grainient-canvas) and WebM video reels (banner_web.webm). - Pre-renders elements with CSS scroll transitions (
.animate-on-scroll,data-aos, Bento grids) so no content is discarded. - Automatically filters out inactive modals (
#quoteModal, overlay backdrops) for a noise-free reconstruction.
- Automatically isolates fullscreen background WebGL shaders (
- 💎 Instant Live Restore: Press Esc or click Go Live at any moment to fade cleanly back to the real interactive webpage.
┌─────────────────────────────────────────────────────────────┐
│ CHROME BROWSER │
│ │
│ [ background.js ] ──(Injects)──► [ swarm.js ] │
│ │ │
│ ┌──────────────────────────────────────┴──────────┐ │
│ ▼ ▼ │
│ [ DOM Blueprint Parser ] [ Shadow DOM Host ]
│ • Bounding client rects • Isolated CSS root
│ • Typography & fonts • Obsidian backdrop
│ • Bento Grid & cover media • SVG Cursors layer
│ • Instant 0,0 scroll sync • HUD floating dock
│ │
│ ┌─────────────────────────────────────────────────┘ │
│ ▼ │
│ [ Web Audio Synthesizer ] ──► Oscillator clicks & taps │
└─────────────────────────────────────────────────────────────┘
- DOM Blueprinting: Evaluates live geometry, calculated typography, and hierarchical layers without destroying the original document.
- Shadow Root Sandbox: Injects the entire rebuild canvas and HUD inside an isolated Shadow DOM (
<swarm-rebuild>) to prevent styling bleed or CSS conflicts. - Flocking Physics: Multiple cursors follow a boids/spring interpolation algorithm with dynamic heading angles, cursor tool swaps (arrow, I-beam, crosshair, pen), and avatar name badges.
- Scroll Unification: Temporarily overrides
scroll-behavior: auto !importanton the host document to ensure silky 60fps auto-scroll synchronization across Chromium engines.
Install locally in under 30 seconds:
- Clone or download this repository:
git clone https://github.com/JoelBastoneLopez/swarm-rebuild.git
- Open Google Chrome and navigate to:
chrome://extensions/ - Enable Developer mode toggle in the top-right corner.
- Click Load unpacked (top-left) and choose the extension folder.
- (Optional) Click the extension puzzle icon 🧩 in Chrome and Pin 📌 Swarm Rebuild.
- Navigate to your target website (e.g.
joelbastonelopez.com) or open the includeddemo.html. - Press the global shortcut:
(Or click the Swarm Rebuild icon in the toolbar)
Alt + Shift + S - Watch the canvas wipe clean and the swarm construct your entire portfolio from top to bottom.
| Action | Control | Description |
|---|---|---|
| Trigger / Toggle | Alt + Shift + S | Starts or stops the extension |
| Exit Instantly | Esc | Closes the canvas and restores the original website |
| Toggle Tour | Tour button in HUD |
Toggles auto-scroll mode on / off |
| Speed Control | 1× / 2× / 3× |
Cycles build velocity |
| Mute / Unmute | M or 🔊 icon | Toggles procedural sound effects |
| Go Live | Go Live button |
Gracefully fades back to the live interactive page |
You can give the cursors your own team names, AI assistants, or 3D tool names. Inside swarm.js (around line 22):
const NAMES = [
"Joel", "Blender", "Three.js", "ZBrush", "Unreal", "CGI", "Design",
"Shader", "Sculpt", "LookDev", "Render", "Keyframe", "Lighting"
];
const COLORS = [
"#c9a96e", "#F4D9A0", "#1ABCFE", "#0ACF83", "#FF7262", "#FFC700",
"#9747FF", "#E8467C", "#14AE5C", "#0D99FF", "#FF8A00", "#00B5CE"
];- Customized, Patched & Maintained by: Joel Bastone Lopez — 3D Artist, Modeling, Sculpting, Animation & Real-Time 3D for the Web.
- Engineered WebGL & canvas shader isolation (
grainient.jssupport). - Isolated background HTML5 video showreels (
banner_web.webm) from canvas collisions. - Implemented automatic 1× cinematic Tour mode & instant frame-by-frame scroll synchronization.
- Resolved
.animate-on-scroll& Bento Grid layout flattening issues. - Filtered out inactive modals (
#quoteModal) and phantom form layers.
- Engineered WebGL & canvas shader isolation (
- Original Base Prototype: Based on Dhvanil Patel's open-source
swarm-cursorsexperiment. - Concept Inspiration: Inspired by Joel Califa's viral interactive Swarm project.
This project is open-source under the MIT License.