artifacts-builder

Automate React + Vite artifact creation and bundling into single HTML files.

1|Updated Jul 4, 2025
One-click install
npx skills add https://github.com/MoshPitCodes/moshpitcodes.nix --skill artifacts-builder-moshpitcodes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: artifacts-builder
Source: https://github.com/MoshPitCodes/moshpitcodes.nix/tree/main/.opencode/skills/artifacts-builder
Command: npx skills add https://github.com/MoshPitCodes/moshpitcodes.nix --skill artifacts-builder-moshpitcodes

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?

Automates the creation and bundling of rich, multi-component HTML artifacts for frontend projects, reducing manual setup and repetitive bundling steps.

Core Features & Use Cases

  • Project scaffolding: initializes a ready-to-run artifact project with React + TypeScript and Vite configuration.
  • Bundling & inlining: bundles all code and assets into a single HTML file for easy sharing.
  • UI tooling integration: preloads Tailwind CSS and shadcn/ui components for rapid UI development.
  • Use Case: ideal for teams delivering self-contained front-end artifacts or demos that must run without external dependencies.

Quick Start

Run the initialization script to create a new artifact project, then bundle it into a single HTML file.

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 TypeScript project into a single HTML file?

Bundling a React and TypeScript project into a single HTML file is automated here using a Vite and Parcel workflow that inlines all code and assets. The process requires a project root with index.html and a scripts directory to execute the bundling.

What is the best way to scaffold a frontend artifact project for single-file output?

Scaffolding a frontend artifact project for single-file output is handled by an initialization script that creates a ready-to-run React and TypeScript setup. It preloads Tailwind CSS and shadcn/ui components to accelerate UI development before inlining.

Does this HTML inlining workflow work with Vite and Parcel together?

Yes, this HTML inlining workflow supports both Vite and Parcel together for multi-component bundling. It uses Parcel configuration alongside Vite to bundle assets and inline them directly into a single self-contained HTML artifact.

Do I need Tailwind CSS and shadcn/ui to build HTML artifacts?

You do not need Tailwind CSS and shadcn/ui to build HTML artifacts, but they are preloaded during project scaffolding. This integration provides pre-styled UI components for rapid frontend development within the React and TypeScript environment.

Why does my multi-component HTML artifact require a scripts directory?

Your multi-component HTML artifact requires a scripts directory because the bundling automation depends on specific initialization and bundling scripts located there. The directory must contain these shell scripts to execute the Vite and Parcel inlining workflow successfully.

Can I use Parcel to inline assets without external dependencies for frontend demos?

Using Parcel to inline assets without external dependencies for frontend demos is the primary use case for this workflow. It bundles all code and assets into a single HTML file, ensuring the delivered artifact runs independently without external runtime dependencies.