web-artifacts-builder

Bundle React frontends with Tailwind and shadcn/ui into a single HTML file.

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

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 Skill provides a streamlined workflow to package complex React-based frontends into a single, Claude-friendly HTML artifact, eliminating manual bundling and deployment steps.

Core Features & Use Cases

  • Initialize a modern frontend project with a guided setup, bundling scripts and Tailwind + shadcn/ui integrations.
  • Bundle the entire app into a single HTML file (bundle.html) suitable for Claude conversations, sharing, and offline previews.
  • Use for interactive artifacts that require routing, state management, and component libraries.

Quick Start

  • Initialize the frontend repo: bash scripts/init-artifact.sh <project-name>
  • Develop your artifact by editing the generated code
  • Bundle into a single HTML file: bash scripts/bundle-artifact.sh
  • Display the artifact to the user
  • Optional: test the artifact

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 for Claude conversations?

To bundle a React app into a single HTML file, this Skill uses Parcel and html-inline to compile your project, including Tailwind and shadcn/ui, into a self-contained bundle.html suitable for Claude conversations and offline sharing.

Can I use shadcn/ui and Tailwind in a single-file HTML artifact?

Yes, you can use shadcn/ui and Tailwind in a single-file HTML artifact. The Skill configures your project to compile these component libraries and styles into a self-contained bundle.html file.

What's the best way to share interactive React artifacts with state and routing offline?

The best way to share interactive React artifacts offline is bundling them into a single HTML file. This Skill packages complex frontends with state and routing into a self-contained bundle.html for offline previews and Claude sharing.

Do I need Node.js and pnpm to bundle React apps into a single HTML file?

Yes, you need Node.js 18+ and pnpm to bundle React apps into a single HTML file. These tools manage the Parcel bundler and html-inline dependencies required to generate the self-contained bundle.html output.

How does the Parcel bundler generate a self-contained HTML file from a React project?

The Parcel bundler compiles your React project and its dependencies, while html-inline inlines all JavaScript and CSS assets directly into the HTML structure, producing a self-contained bundle.html file without external requests.

What are the limitations of bundling complex React frontends into a single HTML file?

A limitation of bundling complex React frontends into a single HTML file is that all assets are inlined, which can increase file size significantly. It is designed for interactive artifacts needing state and routing, not full-scale production web applications.