← Back to browser
examples

Exhuming the Lost Web of 1999 with Gemma 3, Browserbase, and Temporal

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine ...

*This is a submission for the [Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine](https://dev.to/challenges/hacktoberfest-week4-2026-10-26)*

What I Built

<!-- What does it do, and how did you interpret the theme? What inspired it? -->

**DeadNet Ectoplasm Browser** is an autonomous digital archaeology engine and dual-engine web browser that exhumes decaying late-1990s and early-2000s websites and resurrects them into living, interactive software in real time.

Millions of handcrafted web shrines from GeoCities, Angelfire, and early open-source repositories have either vanished or decayed inside web archives due to **secondary link rot** missing images, broken stylesheets, 404 subpages, and defunct Perl guestbook scripts (`/cgi-bin/guestbook.pl`). DeadNet acts as a digital ofrenda for this lost era: rather than displaying a static, broken screenshot, it deploys an autonomous AI pipeline to diagnose DOM rot, uncover surviving historical lore across USENET and forum archives, heal dead assets, and transpile defunct server-side CGI scripts into working client-side JavaScript shims.

Key Highlights:

Demo

<!-- Share a deployed link or a video demo. --> [Click here for the deployed Link.](deadnet.inusha.tech)

Or you can try her. 👇👇 {% embed https://deadnet.inusha.tech %}

Code

<!-- Show us the code! You can embed a GitHub repo directly into your post. --> {% embed https://github.com/inusha-thathsara/deadnet-ectoplasm-browser %}

How I Built It

<!-- Which open-source AI did you use (open-weight models, agent harnesses, frameworks, local inference), and how is your project built around it? -->

DeadNet Ectoplasm Browser is built around open-weight **Gemma 3** (running locally via **Ollama** with an **OpenRouter** fallback), orchestrated through a multi-stage, durable pipeline:

flowchart TD
    subgraph UI ["Layer 1: Frontend & Dual-DOM Viewport (Next.js 16 + React 19)"]
        User["Digital Archaeologist / User"]
        Header["Header: 1-Click Presets & URL Summoner"]
        Slider["Ectoplasm Slider (0% - 50% - 100%)"]
        Holocron["3D DOM Topology Holocron (Three/Canvas)"]
        Inspector["Paranormal DOM Inspector & Telemetry"]
        
        V0["0% Mode: Healed 1998 CRT Iframe (HTML 3.2 + CGI Shims)"]
        V50["50% Mode: Haunted X-Ray (Emerald Ectoplasm + Tooltips)"]
        V100["100% Mode: 2026 Reincarnated (Modern React 19 UI)"]

        User -->|Selects Preset or Enters URL| Header
        Header --> Slider
        Slider --> V0
        Slider --> V50
        Slider --> V100
    end

    subgraph Gateway ["Layer 2: API & Security Boundary (Next.js Server Routes)"]
        ExhumeRoute["/api/exhume (SSE Streaming)"]
        SSRF["SSRF Guard & URL Sanitizer"]
        WhisperRoute["/api/whisper (Concurrency-Guarded Audio Proxy)"]
        HealthRoute["/api/health (System Diagnostics)"]

        Header --> ExhumeRoute
        ExhumeRoute --> SSRF
        User -->|Click Narrate| WhisperRoute
    end

    subgraph Temporal ["Layer 3: Temporal Durable Workflow Engine (ResurrectionPipeline)"]
        direction TB
        Act1["Activity 1: Archival Discovery (Wayback CDX API + id_ modifier)"]
        Act2["Activity 2: Headless DOM Exhumation (Browserbase + Stagehand v4)"]
        Act3["Activity 3: Historical Lore Grounding (SerpApi Forum/USENET Index)"]
        Act4["Activity 4: 3-Pass Necromancy Engine (Open-Weight Gemma 3)"]
        Act5["Activity 5: State Consolidation & Zod Validation"]

        SSRF --> Act1
        Act1 -->|Snapshot URL| Act2
        Act2 -->|Pathology Manifest| Act3
        Act3 -->|Archival Lore| Act4
        Act4 -->|Healed Markup & Modern Entities| Act5
    end

    subgraph Necromancy ["Layer 4: 3-Pass Gemma Synthesis Engine"]
        direction LR
        P1["Pass 1: HTML 3.2 Healer (Tables, Fonts, Tags)"]
        P2["Pass 2: CGI-to-JS Reanimator (Perl to Client Shims)"]
        P3["Pass 3: Modern 2026 Component Transpiler"]

        Act4 --> P1
        P1 --> P2
        P2 --> P3
    end

    subgraph External ["Layer 5: External Providers & Observability"]
        Wayback["Internet Archive Wayback Machine"]
        BB["Browserbase Headless Cloud Grid"]
        Serp["SerpApi Historical USENET Search"]
        Ollama["Local Ollama / OpenRouter (Gemma 3)"]
        ElevenLabs["ElevenLabs Turbo v2.5 (Voice Whispers)"]
        Sentry["Sentry AI Agent Tracing (Latency & Token Spans)"]

        Act1 -.-> Wayback
        Act2 -.-> BB
        Act3 -.-> Serp
        P1 & P2 & P3 -.-> Ollama
        WhisperRoute -.-> ElevenLabs
        Temporal -.-> Sentry
    end

    Act5 -->|SSE Stream Telemetry & DOM Bundle| Inspector
    Act5 -->|Restored Markup & State| Slider

1. The Open-Weight AI Core: 3-Pass Necromancy Engine

At the heart of the engine is a 3-Pass synthesis workflow instructed by Gemma 3:

2. Headless DOM Pathology Extraction (Browserbase + Stagehand v4)

When a user selects a preset or summons a custom URL, DeadNet queries the Wayback CDX API with the `id_` modifier to strip injected archive toolbars. It then dispatches a **Browserbase** cloud browser instance running **Stagehand v4**. Stagehand inspects the rotting DOM tree, isolating broken elements (`naturalWidth === 0` images, 404 anchors, broken frame sets) and assembling a structured `DeadDomManifest`.

3. Historical Grounding & Provenance (SerpApi)

AI cannot guess historical facts without hallucinating. When DeadNet discovers missing binary downloads (e.g., lost Dreamcast VMU save editors or Linux sound drivers), **SerpApi** searches historical forum threads (Sega-16, Linux Audio Developers, USENET archives, and Reddit). These surviving historical snippets are injected directly into Gemma's prompt as grounded truth before synthesis.

4. Durable Orchestration (Temporal) & Observability (Sentry)

Web archives heavily rate-limit crawlers with HTTP 429 errors. We wrap the multi-stage exhumation inside a **Temporal durable workflow**, enabling transparent exponential retry backoff so excavations never fail midway. Every LLM inference step, Stagehand DOM extraction, and synthesis pass is instrumented with **Sentry AI Agent Tracing** to track latency spans, token throughput, and execution health.

5. Signature UX & Visual Engineering

---

Why Does Open Innovation Matter?

Digital preservation and closed, proprietary AI are fundamentally incompatible. Open innovation made DeadNet possible in three distinct ways that closed APIs never could:

1. Eliminating "API Rot" & Ensuring 50-Year Archival Permanence

The very reason the early web died is that centralized platforms closed, pivoted, or deprecated endpoints. If we build a web resurrection engine on a proprietary cloud API that deprecates model checkpoints every 12 to 18 months, **we are repeating the exact mistake that killed Web 1.0!** By running open-weight **Gemma** locally via Ollama, the entire digital archaeology engine can run completely offline on local hardware decades from now. In 2046, an archivist can spin up this exact codebase and restore an artifact with zero API keys, zero subscription fees, and zero vendor lock-in.

2. Period-Accurate Historical Fidelity vs. Sterile Corporate RLHF

Commercial closed APIs are aggressively RLHF-tuned to produce clean, polite, modern corporate prose and modern React/Tailwind code. When prompted to generate chaotic 1998 HTML 3.2 (`<marquee>`, `<font color="#FF9900">`, nested `<table border="3">`) or adopt the eccentric persona of a late-90s indie webmaster, closed models sanitize or modernize the output against your will. Open-weight Gemma respects the system prompt without corporate guardrail interference, capturing the authentic spirit of early open web culture.

3. Zero Token Anxiety on Massive, Dirty Archival DOMs

Archival HTML from 1999 is notoriously bloated—deeply nested layout tables, inline styling, spacer GIFs, and unminified scripts routinely exceed 30,000+ tokens per excavation. Running proprietary models on thousands of dead sites would rack up enormous metered billing. Running open weights locally or on self-hosted instances eliminates marginal token anxiety entirely.

---

The Spirit of It

During testing, we loaded an authentic 1999 GeoCities shrine: *The Spiral*, dedicated to the midnight launch of the Sega Dreamcast on 9/9/99.

In the Wayback Machine, the site was a sad skeleton: the animated Dreamcast swirl GIFs were broken boxes, the VMU save-state editor tarball had thrown a 404 since 2009, and submitting the guestbook caused a browser error.

The moment the pipeline finished, the CRT scanlines flickered across the screen with an authentic 800×600 phosphor glow. The Web Audio synthesizer played a nostalgic dial-up tone. Then, George's eerie ElevenLabs voice whispered:

*"A digital ancestor awakens from 1999. The Spiral GeoCities Hub..."*

In the 50% X-Ray view, glowing green ectoplasm highlighted the VMU download section. Gemma, grounded by SerpApi forum records from 2004, had reconstructed the exact hex offset memory addresses for Chao garden rings and Sonic emblems. We entered a message into the 1999 guestbook, clicked *Submit*, and watched our entry append to the page via the client-side JavaScript shim—no HTTP 500 error, no dead server.

It wasn’t just inspecting an archive; it felt like a digital séance. Early webmasters poured thousands of late-night hours into handcrafting personal corners of the internet before algorithmic feeds wiped them out. DeadNet is our ofrenda to keep their work alive.

---

Prize Categories

We are entering DeadNet Ectoplasm Browser into the following categories:

Have questions about this article?

Ask DocuMind