Who it is forA web designer or developer who has a plain HTML site folder and wants to see it running locally without building a framework setup.
The problemOpening HTML files directly from disk often breaks relative links and does not mirror how the site will be served.
The outcomeThe site loads at a localhost URL printed in the terminal, and the user can stop the preview cleanly.
What you need first
- A computer with Node.js 24 or later installed
- Bun 1.3.14 installed, for the pinned OpenCode engine
- A local copy of the johnzhaors-bit/pixelcrabs repository
- A static site folder containing index.html, or a project directory to point OpenCode at
Steps
- Download or clone the Pixelcrabs repository and open a terminal in its root folder.
- Confirm Node.js 24 or later is installed.
- Run
node packages/local-runtime/bin/static-preview.mjs /absolute/path/to/your/site - Open the localhost URL printed in the terminal.
- Press Ctrl+C in the terminal to stop the preview.
Prompt for your agent
In the pixelcrabs repository root, run `node packages/local-runtime/bin/static-preview.mjs <absolute-path-to-site>`. Expected output: a localhost URL printed in the terminal. Verify first that the target folder contains index.html before starting the server.
Caveat. The README says this preview is for trusted static sites only, and framework projects such as React, Vue, Next.js, Nuxt and Astro should use their own development server.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for johnzhaors-bit/pixelcrabs and "Preview a static site on localhost"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer