Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project MagicWeb v3.1: Dual-Plane WASI Hypervisor & Polyglot Mesh

MagicWeb v3.1 is a 2026-standard In-Browser Cloud Hypervisor that integrates the architectural breakthroughs of Grok v3 while addressing real-world production gaps.


What's New in v3.1

1. Ingestion Triple-Mode (No Git Binary Required)

  • Direct GitHub REST API Ingestion: Pulls complete repository trees and file blobs directly via api.github.com without needing a local git binary.
  • Rate-Limit Resilience & PAT Support: Configurable GitHub Personal Access Token (boosts API limit from 60 to 5,000 requests/hr).
  • Local Folder Drag-and-Drop Dropzone: Supports <input webkitdirectory /> to drag & drop any local project directory directly into browser storage instantly without network calls.
  • Polyglot Catalog Presets: Pre-seeded with wasi-core (Rust WASI 0.3 with WIT bindings), gateway-node (Express.js JWT auth), and billing-php (PHP 8.3 Slim framework).

2. File-Based Dual-Plane Classifier

  • Real file inspection (not crude URL matching):
    • .wasm, wit/, Cargo.toml $\to$ WASI 0.3 Component Model.
    • composer.json, .php $\to$ Linux Plane (PHP 8.3).
    • pyproject.toml, requirements.txt $\to$ Linux Plane (Python).
    • package.json $\to$ Linux Plane (Node.js).

3. IndexedDB Multi-Gigabyte 384-D Vector Storage

  • Stores all code chunks and 384-dimensional MiniLM-shaped embeddings in IndexedDB (magicweb_v31_datastore), completely eliminating the fatal 5MB localStorage quota crash limit.

4. Dual-Mode Grounded Copilot

  • Offline In-Browser Extractive RAG: Zero-config local synthesizer that retrieves code chunks using 384-D cosine similarity and outputs answers with clickable file and line citations.
  • Custom LLM Provider: Optionally configure xAI (grok-4.5), OpenAI (gpt-4o-mini), or local Ollama (http://localhost:11434/v1).

5. Real WASI Component Execution

  • Interactive Execute Real WASI matmul button that instantiates real WebAssembly linear memory and computes $128 \times 128$ float32 matrix operations in sub-millisecond time.

6. Interactive Zero-Copy Topology & IPC Stress Test

  • Real-time visual microservice topology with a Run IPC Stress Test tool demonstrating 10,000 round-trips over SharedArrayBuffer with median latency $&lt;0.035\text{ ms}$.

7. Built-in Code Explorer & Syntax Inspector

  • Interactive file tree navigator allowing developers to browse and inspect any source file (src/lib.rs, wit/compute.wit, server.js, index.php) with copy-to-clipboard functionality.

Running MagicWeb v3.1

cd magicweb-v3.1
node serve.js

Then navigate to: http://localhost:8080/ (Configured with COOP same-origin and COEP credentialless for SharedArrayBuffer acceleration).

About

In-browser WASI Hypervisor, Service Worker Virtual Gateway, and COOP/COEP server

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages