web-shader-extractor
CommunityExtract WebGL shaders and port them to standalone JS.
Authormarktantongco
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It automates the complete extraction, deobfuscation, and migration of WebGL/Canvas/Shader visual effects from live websites into independent, runnable JavaScript projects so designers and engineers can reproduce or reuse complex visual effects without manual reverse-engineering.
Core Features & Use Cases
- Rendered capture & asset harvesting: Uses a headless browser to capture the rendered DOM, canvas metadata, screenshots, and runtime network bundles for accurate reconstruction.
- Engine detection & decoding: Identifies Three.js, PixiJS, Babylon, raw WebGL, TSL-based systems (e.g., shaders.com) and decodes encoded definitions (Base64/XOR) or mapping tables when present.
- Shader extraction & deobfuscation: Finds GLSL/TSL sources inside bundles, extracts shader strings and related JS render logic, infers minified symbol meanings, and reconstructs readable shader and renderer code.
- Porting & scaffolding: Generates a runnable project (native WebGL2 or Three.js importmap) with multi-pass FBO pipelines, proper color-space handling, and an optional extraction report documenting decisions and differences.
- Robust fallbacks: Auto-installs and validates tooling, falls back to static-bundle analysis if headless browser rendering is unavailable, and proposes simplification only after verification.
Quick Start
Use the web-shader-extractor skill to extract shaders from https://example.com and generate a standalone WebGL2 or Three.js project with extracted shaders, assets, and an optional extraction report.
Dependency Matrix
Required Modules
playwright
Components
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: web-shader-extractor Download link: https://github.com/marktantongco/promptc-os/archive/main.zip#web-shader-extractor Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.