web-artifacts-builder

Bundle React projects into a single self-contained HTML artifact with inlined assets.

1|1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/polaris-dxz/xclaw --skill web-artifacts-builder-polaris-dxz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web-artifacts-builder
Source: https://github.com/polaris-dxz/xclaw/tree/main/apps/desktop/openclaw-runtime/config/skills/web-artifacts-builder
Command: npx skills add https://github.com/polaris-dxz/xclaw --skill web-artifacts-builder-polaris-dxz

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?

Developers spend time wiring and bundling multi-file front-end projects; this skill bundles and inlines all assets into a portable single HTML artifact ready for Claude.

Core Features & Use Cases

  • Initialize React + Vite projects with Tailwind + shadcn/ui configuration.
  • Bundle the project into a single HTML file with all assets inlined using Parcel and html-inline.
  • Generate self-contained artifacts that can be shared in Claude conversations.

Quick Start

Initialize a new React artifact project with the supplied script, then bundle into a single HTML artifact for sharing.

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?

Yes, you can use Tailwind and shadcn/ui when bundling React artifacts. The skill initializes projects with these UI stacks and supports modular front-end architectures, inlining all associated styles and scripts into the final single HTML file output.

What is the best way to share a front-end React project in a Claude conversation?

The best way to share a front-end React project in a Claude conversation is generating a dependency-inlined single HTML artifact. This skill bundles all assets into a portable file, ensuring the project is self-contained and easily shareable without external resource dependencies.

Do I need Parcel to build a self-contained HTML artifact?

Yes, Parcel is required to build a self-contained HTML artifact with this skill. It acts as the core bundler alongside the html-inline package to process the multi-file React project and inline all JavaScript and CSS resources into one output file.

How does inlining JavaScript and CSS into one HTML file work?

Inlining JavaScript and CSS into one HTML file works by bundling the modular project assets and embedding them directly within the HTML document. The skill uses Parcel for the initial bundling phase and html-inline to inject all dependencies into a single portable artifact.

Can I initialize a new React project with Tailwind before bundling?

A known limitation is that an index.html file must be present in the project, as the skill validates its presence before bundling. Projects missing this entry point will fail to bundle into the single self-contained HTML artifact.