web-artifacts-builder

Bundle React-based Claude artifacts into a single HTML file with inlined assets.

21|6|Updated Aug 26, 2025
One-click install
npx skills add https://github.com/hepai-lab/drsai --skill web-artifacts-builder-hepai-lab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web-artifacts-builder
Source: https://github.com/hepai-lab/drsai/tree/main/agent_skills/anthropic_skills_collection/web-artifacts-builder
Command: npx skills add https://github.com/hepai-lab/drsai --skill web-artifacts-builder-hepai-lab

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?

Web-artifacts-builder provides a ready-to-use framework and tooling to create, configure, and bundle advanced Claude.ai frontend artifacts using React, Tailwind CSS, and shadcn/ui, enabling complex multi-component interfaces for Claude conversations.

Core Features & Use Cases

  • React 18 + TypeScript + Vite + Parcel-based bundling for robust artifacts
  • Scripted initialization, development, and bundling workflows to produce self-contained artifacts
  • One-click bundle to a single HTML file with all assets inlined for Claude conversations
  • Support for stateful UI, routing, and rich UI components through shadcn/ui

Quick Start

Initialize a new project with the provided init-artifact script, then bundle the artifact into a single self-contained HTML file using the bundle-artifact script.

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 frontend into a single HTML file for Claude artifacts?

To bundle a React frontend into a single HTML file for Claude artifacts, you use the provided bundle-artifact script. It leverages Parcel to inline all assets, producing a self-contained HTML file ready for Claude conversations.

Can I use shadcn/ui and Tailwind CSS when building Claude artifacts?

Yes, you can use shadcn/ui and Tailwind CSS to build Claude artifacts. The framework supports rich UI components and stateful interfaces, allowing you to create complex multi-component designs within your React-based frontends.

What is the best way to create stateful, multi-route web artifacts for Claude conversations?

The best way to create stateful, multi-route web artifacts for Claude conversations is by using a React 18 and TypeScript framework. This approach provides scripted initialization and bundling workflows specifically designed for complex artifact generation.

Does the bundling process support inlining all assets for a self-contained Claude artifact?

Yes, the bundling process supports inlining all assets for a self-contained Claude artifact. It uses Parcel with html-inline configuration to ensure all JavaScript, CSS, and other assets are embedded directly into a single HTML file.

How do I initialize a new React project for generating Claude artifacts?

You initialize a new React project for generating Claude artifacts by running the provided init-artifact script. This sets up the project structure with Vite, TypeScript, and Parcel, preparing your environment for development and subsequent bundling.