Skip to content

About

Chrome extension that live-reconstructs modern webpages with multiplayer cursors. Tailored for 3D/WebGL portfolios & video launch reels.

Resources

Stars

92 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Swarm Rebuild Logo

✦ SWARM REBUILD ✦

A Multiplayer Cursor Orchestrator that live-reconstructs any modern webpage into existence.

Portfolio Manifest V3 Web Audio API License

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.


🌟 Overview

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
Loading

✨ Signature Features

  • 🎯 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.
  • 💎 Instant Live Restore: Press Esc or click Go Live at any moment to fade cleanly back to the real interactive webpage.

🏗️ Architecture & Engineering

┌─────────────────────────────────────────────────────────────┐
│                       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     │
└─────────────────────────────────────────────────────────────┘
  1. DOM Blueprinting: Evaluates live geometry, calculated typography, and hierarchical layers without destroying the original document.
  2. Shadow Root Sandbox: Injects the entire rebuild canvas and HUD inside an isolated Shadow DOM (<swarm-rebuild>) to prevent styling bleed or CSS conflicts.
  3. 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.
  4. Scroll Unification: Temporarily overrides scroll-behavior: auto !important on the host document to ensure silky 60fps auto-scroll synchronization across Chromium engines.

🚀 Installation (Load Unpacked)

Install locally in under 30 seconds:

  1. Clone or download this repository:
    git clone https://github.com/JoelBastoneLopez/swarm-rebuild.git
  2. Open Google Chrome and navigate to:
    chrome://extensions/
    
  3. Enable Developer mode toggle in the top-right corner.
  4. Click Load unpacked (top-left) and choose the extension folder.
  5. (Optional) Click the extension puzzle icon 🧩 in Chrome and Pin 📌 Swarm Rebuild.

🎮 How to Use

  1. Navigate to your target website (e.g. joelbastonelopez.com) or open the included demo.html.
  2. Press the global shortcut:
    Alt + Shift + S
    
    (Or click the Swarm Rebuild icon in the toolbar)
  3. Watch the canvas wipe clean and the swarm construct your entire portfolio from top to bottom.

⌨️ Controls & Shortcuts

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

🎨 Customization

Personalizing Agent Names & Palette

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"
];

💼 Credits & Acknowledgments

  • Customized, Patched & Maintained by: Joel Bastone Lopez — 3D Artist, Modeling, Sculpting, Animation & Real-Time 3D for the Web.
    • Engineered WebGL & canvas shader isolation (grainient.js support).
    • 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.
  • Original Base Prototype: Based on Dhvanil Patel's open-source swarm-cursors experiment.
  • Concept Inspiration: Inspired by Joel Califa's viral interactive Swarm project.

📄 License

This project is open-source under the MIT License.

Crafted with passion for 3D & Web Experiences • joelbastonelopez.com

About

Chrome extension that live-reconstructs modern webpages with multiplayer cursors. Tailored for 3D/WebGL portfolios & video launch reels.

Resources

Stars

92 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages