Skip to content

zakisheriff/WebForge

Repository files navigation

WebForge

AI-Ready Website Capture Chrome Extension

React TypeScript Vite PyPI npm License



"Capture the visual blueprint of any website for AI coding agents."

WebForge is a developer-centric Chrome Extension designed with Claude's aesthetic philosophy.
It helps you capture complete website screenshots, emulate responsive viewports, crawl local links, extract design tokens, and export everything in a clean blueprint package that tools like Claude Code, Cursor, Windsurf, or Codex can use to rebuild sites with pixel perfection.


πŸ”— Links & Downloads

Link Install
🌐 Website webforge.theatom.lk Try the free online capture tool
🐍 Python (PyPI) pypi.org/project/webforge-theatom pip install webforge-theatom
πŸ“¦ Node (npm) npmjs.com/package/webforge-theatom npm install webforge-theatom
🧩 Chrome Extension Chrome Web Store (coming soon) Install from the store
πŸ’» Source github.com/zakisheriff/WebForge git clone

🌟 Vision

WebForge's mission is to be:

  • A developer's visual translator β€” translating live pages into structural AI contexts
  • A multi-viewport blueprint generator β€” capturing authentic CSS breakpoint adjustments
  • A beautiful, minimal tool β€” built with a calm, content-first design system

✨ Why WebForge?

AI coding agents are highly capable of writing frontend layouts but require accurate visual reference.
WebForge provides complete visual representations and design tokens of target sites, enabling agents to replicate them without design drift.


🎨 Claude-Inspired Design

  • Minimalist Aesthetics
    Warm beige page overlays with sharp, clean white workspace cards and charcoal text.

  • Calm Typography
    Modern Outfit and Inter typography styles, completely free of generic browser fonts.

  • Developer Dashboard
    A full-screen interactive workbench panel to review layouts, inspect design assets, and export.


πŸ€– Built-In Engine Capabilities

  • Scrolling Capture
    Calculates page metrics and scrolls through lazy-loaded images, temporarily hiding fixed headers to generate a stitched high-resolution PNG.

  • Viewport Emulation
    Automatically scales the active tab window to exact Desktop (1440x900), Tablet (768x1024), and Mobile (390x844) viewport dimensions.

  • Domain Link Crawler
    Discovers sitemap pathways and crawls up to 20 pages sequentially inside a sandboxed capture tab.


πŸŽ“ Extracted Blueprints & Tokens

  • Fonts Collector
    Detects and lists active font families configured across standard document elements.

  • Colors Swatches
    Parses computed background/text styles and extracts hex codes with one-click copy actions.

  • Sitemap Indexer
    Documents discovered URL pathways in sitemap.json and page-scoped metadata details.


πŸ“ Project Structure

WebForge/
β”œβ”€β”€ public/
β”‚   └── manifest.json             # Manifest V3 extension configuration
β”‚
└── src/
    β”œβ”€β”€ App.tsx                   # Entry Router (Popup mode vs Dashboard mode)
    β”œβ”€β”€ index.css                 # Claude-inspired design system stylesheet
    β”œβ”€β”€ main.tsx                  # React application mount
    β”‚
    β”œβ”€β”€ background/
    β”‚   └── index.ts              # Service worker (capture loops, resizer, crawler queue)
    β”‚
    β”œβ”€β”€ content/
    β”‚   └── index.ts              # Injected page controller (scrolling, token parsing)
    β”‚
    β”œβ”€β”€ popup/
    β”‚   └── PopupView.tsx         # Compact 380px popup controls
    β”‚
    β”œβ”€β”€ dashboard/
    β”‚   └── DashboardView.tsx     # Full workspace overview & preview panel
    β”‚
    └── utils/
        └── zipExporter.ts        # JSZip compiler producing WebForge packages

πŸš€ Quick Start

Prerequisites

  • Node.js (v18+)
  • Google Chrome (Developer Mode enabled)

1. Clone the Repository

git clone https://github.com/zakisheriff/WebForge.git
cd WebForge

2. Install Dependencies

npm install

3. Build the Extension

npm run build

4. Load in Chrome

  • Open chrome://extensions/
  • Enable Developer mode (top right)
  • Click Load unpacked (top left)
  • Select the dist folder generated inside this directory.

🌐 Try It Online (No Install)

The WebForge website hosts a free "Try WebForge on any URL" tool β€” webforge.theatom.lk/#try.

Paste any website link and it instantly:

  • Renders the page across desktop (1440), tablet (768) and mobile (390) viewports
  • Captures full-page screenshots of each
  • Extracts the colors, fonts and images
  • Lets you download a ZIP package (screenshots + metadata.json)

It's powered by a headless-Chromium serverless route (@sparticuz/chromium on Vercel) and captures one page per run. Install the extension to unlock full-domain crawling, login/bot-protected pages, and pixel-perfect fidelity.


πŸ“¦ Packages (Python + Node)

The WebForge capture engine also ships as standalone libraries + CLIs β€” same API, published as webforge-theatom on both PyPI and npm β€” for scripts, notebooks, and agent pipelines.

pip install webforge-theatom
playwright install chromium   # one-time browser download
import webforge

result = webforge.capture("anthropic.com")   # screenshots + colours + fonts + images
print(result.colors, result.fonts)
result.to_zip("anthropic.zip")

site = webforge.crawl("example.com", max_pages=10)   # whole domain
site.to_zip("example-site.zip")

Full docs: python/README.md.

npm install webforge-theatom
import { capture, crawl } from "webforge-theatom";

const result = await capture("anthropic.com");
console.log(result.colors, result.fonts);
await result.toZip("anthropic.zip");

const site = await crawl("example.com", { maxPages: 10 });
await site.toZip("example-site.zip");

Both expose a webforge CLI:

webforge anthropic.com                    # -> WebForge_anthropic.com.zip
webforge example.com --crawl --max 10     # crawl up to 10 pages

Full docs: npm/README.md.


🎯 Key Features

Visual blueprint generation

βœ… Full Page Scrolling β€” Autoscroll and stitch lazy-loaded content
βœ… Multi-Viewport capture β€” Desktop, Tablet, and Mobile layouts
βœ… Website Crawler β€” Scan and capture full domains
βœ… Design Token Export β€” Extracted hex colors and font lists
βœ… PDF Print Support β€” Export individual pages to PDF natively
βœ… Structured ZIP β€” Pack everything in a cleanly mapped directory


πŸ”§ Tech Stack

  • React.js + TypeScript β€” Component architecture
  • Vite β€” Bundle optimizer compiling separate background worker files
  • OffscreenCanvas β€” High-performance image drawing in service worker context
  • JSZip β€” Local zip package compilations
  • Lucide React β€” Minimal developer icons

β˜• Support

If you find WebForge helpful and want to support the development:

Buy Me A Coffee


πŸ“„ License

MIT License β€” 100% Free and Open Source


Made by Zaki Sheriff

About

AI-ready website capture. Full-page screenshots, responsive viewports, design tokens and exportable blueprints for AI coding agents. Chrome extension plus Python and Node packages.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors