DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to preview a static site on localhost with Pixelcrabs

Serve a static site folder on a localhost URL with one command and stop it with Ctrl+C.

Short answer: Download or clone the Pixelcrabs repository and open a terminal in its root folder; then Confirm Node.js 24 or later is installed; run node packages/local-runtime/bin/static-preview.mjs /absolute/path/to/your/site. All steps.

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

  1. Download or clone the Pixelcrabs repository and open a terminal in its root folder.
  2. Confirm Node.js 24 or later is installed.
  3. Run node packages/local-runtime/bin/static-preview.mjs /absolute/path/to/your/site
  4. Open the localhost URL printed in the terminal.
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer