gitwtfhub

wtf is opencode-lightpanda?

skatkov/opencode-lightpanda — explained in plain English

Analysis updated 2026-05-18

1TypeScriptAudience · developerComplexity · 2/5Setup · moderate

TL;DR

A faster, cleaner web-fetching plugin for OpenCode built on the lightweight Lightpanda browser, returning markdown, JSON, or a semantic tree instead of raw HTML.

Mindmap

mindmap
  root((opencode-lightpanda))
    What it does
      Fetches web pages
      Returns markdown JSON tree
      Handles JS-heavy sites
    Tech stack
      TypeScript
      Bun
      Lightpanda
    Use cases
      Faster than WebFetch
      Extract structured data
      Load JS-heavy pages
    Audience
      OpenCode developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Fetch JavaScript-heavy web pages inside OpenCode and get clean markdown back.

REASON 2

Extract structured JSON data from a web page for an AI coding workflow.

REASON 3

Replace the slower built-in WebFetch tool with a faster headless browser.

What's in the stack?

TypeScriptBunOpenCodeLightpanda

How it stacks up

skatkov/opencode-lightpanda0xkinno/neuralvault0xmayurrr/ai-contractauditor
Stars111
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatehardeasy
Complexity2/54/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Requires installing the separate Lightpanda browser binary before the plugin will work.

Wtf does this do

opencode-lightpanda is a plugin for OpenCode, an AI coding assistant, that adds a faster and more capable way to fetch web pages. The author describes it as similar to the built-in WebFetch tool, but much stronger, calling it that tool on steroids. The plugin is built on top of Lightpanda, a lightweight headless browser. According to the README, Lightpanda runs about ten times faster than headless Chrome and uses about sixteen times less memory. Because it is a real browser rather than a simple page fetcher, it can load pages that rely heavily on JavaScript to build their content, something a basic fetch request often cannot handle. Once a page loads, the plugin returns clean markdown text with ads and clutter stripped out, so the assistant reading it gets readable content instead of raw, messy HTML. It can also return the page as structured JSON data or as a semantic tree, depending on what the calling tool needs. To use it, you first install Lightpanda itself, then install this plugin globally through OpenCode's plugin command. If OpenCode cannot find the Lightpanda executable automatically, you can point to it directly using an environment variable. Each time the tool is called it starts a fresh Lightpanda process, so no cookies or browser history carry over between calls, keeping every fetch independent and predictable. The project is written in TypeScript and uses Bun for local development, testing, and running checks. Developers who want to work on the plugin itself can also load their local checkout directly into OpenCode's configuration file instead of installing the published version. OpenCode also lets users control this tool and the standard WebFetch tool separately through permission settings, so one can be allowed while the other is denied. This is a narrow, practical developer tool aimed at people already using OpenCode who want faster, cleaner web page access for their AI coding workflows.

Yoink these prompts

Prompt 1
Show me how to install Lightpanda and the opencode-lightpanda plugin globally in OpenCode.
Prompt 2
Write a lightpanda call that fetches https://example.com and returns markdown with a 30 second timeout.
Prompt 3
Explain the difference between the markdown, json, and semantic_tree output formats in this plugin.
Prompt 4
Help me configure OpenCode permissions so lightpanda is allowed but webfetch is denied.

Frequently asked questions

wtf is opencode-lightpanda?

A faster, cleaner web-fetching plugin for OpenCode built on the lightweight Lightpanda browser, returning markdown, JSON, or a semantic tree instead of raw HTML.

What language is opencode-lightpanda written in?

Mainly TypeScript. The stack also includes TypeScript, Bun, OpenCode.

How hard is opencode-lightpanda to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is opencode-lightpanda for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.