web-artifacts-builder

Bundle React and Vite projects into a single HTML artifact.

7|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/wsxwj123/opencode-skills-backup --skill web-artifacts-builder-wsxwj123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web-artifacts-builder
Source: https://github.com/wsxwj123/opencode-skills-backup/tree/main/web-artifacts-builder
Command: npx skills add https://github.com/wsxwj123/opencode-skills-backup --skill web-artifacts-builder-wsxwj123

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires parcel, @parcel/config-default, parcel-resolver-tspaths, html-inline, and includes scripts (resource) components.

What problem does it solve?

Bundling complex, multi-file React/Vite projects into a single, portable HTML artifact that can be shared in Claude conversations or offline.

Core Features & Use Cases

  • Inlines all JavaScript, CSS, and dependencies into a single HTML artifact for easy distribution.
  • Supports projects built with React + Vite and shadcn/ui tooling, enabling offline preview.
  • Use Case: Share a fully functional frontend prototype as a self-contained bundle.html without requiring a server.

Quick Start

Run the bundle-artifact.sh script to generate a self-contained bundle.html from your React project.

Frequently Asked Questions about web-artifacts-builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bundle a React app into a single HTML file?

To bundle a React app into a single HTML file, run the bundle-artifact.sh script. It uses Parcel and html-inline to compile your project and inline all JavaScript, CSS, and dependencies into a portable bundle.html artifact.

Can I inline assets from a Vite-powered React project into one HTML file?

Yes, you can inline assets from a Vite-powered React project into one HTML file. The bundling process targets Vite-built React applications, embedding all assets and dependencies into a self-contained bundle.html for offline preview.

What is the best way to share a React frontend prototype offline?

The best way to share a React frontend prototype offline is generating a self-contained bundle.html. This artifact inlines all JavaScript, CSS, and dependencies, allowing full distribution without requiring a server.

Does this bundling tool require a specific project structure for React?

Yes, this bundling tool requires a React project with an index.html file. It relies on Parcel, html-inline, and related tooling to process the project and produce the final bundled HTML artifact.

Why use Parcel for inlining React project dependencies into an HTML artifact?

Parcel is used for inlining React project dependencies because it efficiently bundles the application structure. Combined with html-inline, it ensures all JavaScript and CSS are embedded directly into a single shareable bundle.html.

Can I bundle shadcn/ui components into a standalone HTML artifact?

Yes, you can bundle shadcn/ui components into a standalone HTML artifact. The process supports projects built with React and shadcn/ui tooling, inlining all components and assets into a single bundle.html for offline demonstrations.