artifacts-builder

Bundle React and Vite frontend artifacts into a single inlined HTML file.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/wukangcheng2944/claude-skills --skill artifacts-builder-wukangcheng2944
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: artifacts-builder
Source: https://github.com/wukangcheng2944/claude-skills/tree/main/artifacts-builder
Command: npx skills add https://github.com/wukangcheng2944/claude-skills --skill artifacts-builder-wukangcheng2944

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?

This tool bundles a React + Vite frontend project into a single, portable HTML artifact that can be shared in Claude conversations or used offline.

Core Features & Use Cases

  • Bundle a React + Vite project into one HTML artifact by inlining JavaScript and CSS.
  • Ensure path aliases and dependencies resolve in the bundled artifact for consistent playback in Claude.
  • Use cases include sharing interactive demos, tutorials, and offline previews of frontend artifacts.

Quick Start

Run the bundle-artifact.sh script from your project root after ensuring an index.html exists to generate bundle.html that contains the entire artifact.

Frequently Asked Questions about artifacts-builder

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

FAQPage Schema
How do I bundle a React and Vite project into a single HTML file?

Run the bundle-artifact.sh script from your project root to inline JavaScript and CSS, generating a single portable bundle.html file from your React and Vite frontend artifact project.

What is inlining JavaScript and CSS used for in frontend artifacts?

Inlining JavaScript and CSS embeds all assets directly into one HTML file, ensuring interactive frontend demos and tutorials render consistently during offline previews or within Claude conversations.

Does this bundling workflow require a specific Node.js version or project structure?

Yes, this workflow requires Node.js 18+ and an existing index.html file in your project root. The Parcel-based bundling process also relies on path alias configurations to resolve dependencies correctly.

Can I use path aliases when bundling frontend artifacts with Parcel?

Yes, the workflow uses parcel-resolver-tspaths to ensure path aliases and dependencies resolve correctly in the bundled artifact, maintaining consistent playback for interactive demos in Claude.

Why does my bundled HTML artifact fail to resolve dependencies in Claude conversations?

Dependency resolution failures often occur if path aliases are not properly configured. The bundling workflow uses parcel-resolver-tspaths specifically to ensure dependencies resolve correctly in the final inlined HTML artifact.

What is the best way to share interactive React demos in Claude conversations?

Bundling the React project into a single inlined HTML file is the best way to share interactive demos. This approach consolidates assets, ensuring the artifact renders consistently without external file dependencies.