{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "johnzhaors-bit-pixelcrabs--preview-static-site-locally",
 "repo": "johnzhaors-bit/pixelcrabs",
 "repo_url": "https://github.com/johnzhaors-bit/pixelcrabs",
 "repo_slug": "johnzhaors-bit-pixelcrabs",
 "title": "Preview a static site on localhost",
 "page_title": "How to preview a static site on localhost with Pixelcrabs",
 "summary": "Serve a static site folder on a localhost URL with one command and stop it with Ctrl+C.",
 "who": "A web designer or developer who has a plain HTML site folder and wants to see it running locally without building a framework setup.",
 "problem": "Opening HTML files directly from disk often breaks relative links and does not mirror how the site will be served.",
 "outcome": "The site loads at a localhost URL printed in the terminal, and the user can stop the preview cleanly.",
 "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."
 ],
 "agent_prompt": "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.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "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.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/johnzhaors-bit-pixelcrabs/preview-static-site-locally/",
 "md": "https://dedupedai.com/use-cases/johnzhaors-bit-pixelcrabs/preview-static-site-locally/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/johnzhaors-bit-pixelcrabs--preview-static-site-locally.json",
 "api_version": "v1"
}
