Scripts2026年6月2日·1 分钟阅读

Boneyard — Auto-Generated Skeleton Loading Framework

A framework that automatically generates pixel-accurate skeleton loading screens from your existing UI components, eliminating the need to manually create and maintain loading placeholders.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Boneyard Overview
直接安装命令
npx -y tokrepo@latest install d2091303-5e7d-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

Boneyard solves a persistent frontend pain point: keeping skeleton loading screens in sync with actual UI components. Instead of hand-coding gray placeholder boxes that drift out of date with every design change, Boneyard analyzes your rendered components and generates matching skeleton screens automatically.

What Boneyard Does

  • Analyzes rendered component DOM to generate matching skeleton layouts
  • Produces animated loading placeholders that mirror actual component dimensions
  • Supports React, Vue, and vanilla HTML components
  • Provides build-time static generation and runtime dynamic generation modes
  • Handles responsive layouts with breakpoint-aware skeleton adaptation

Architecture Overview

Boneyard works in two phases. At build time (or on first render), it captures the DOM structure of a component, identifies visual blocks (text, images, buttons), and maps them to skeleton primitives. These primitives are stored as lightweight JSON descriptors. At runtime, when data is loading, Boneyard renders the skeleton from the descriptor with CSS animations. The descriptor updates automatically when the component structure changes.

Self-Hosting & Configuration

  • Install via npm for React or Vue projects
  • Configure animation style (pulse, wave, shimmer) in boneyard.config.js
  • Set component-level overrides for custom skeleton shapes
  • Build-time extraction runs as a Vite or Webpack plugin
  • No external dependencies or network requests required

Key Features

  • Zero-maintenance skeleton screens that stay in sync with components
  • Multiple animation styles configurable per component
  • Framework adapters for React, Vue, and plain HTML
  • Build-time static generation for optimal performance
  • Responsive-aware skeletons that adapt to viewport changes

Comparison with Similar Tools

  • react-loading-skeleton — requires manual dimension specification; Boneyard auto-detects
  • Material UI Skeleton — generic shapes you position manually; Boneyard matches your actual layout
  • Ant Design Skeleton — predefined templates; Boneyard generates from your real components
  • Contentloader — SVG-based manual drawing; Boneyard automates the entire process

FAQ

Q: Does it work with server-side rendering? A: Yes, Boneyard supports SSR by pre-generating skeleton descriptors at build time and hydrating them on the client.

Q: How does it handle dynamic content? A: Boneyard uses the most recent successful render to update its skeleton descriptor. Components that change structure significantly between renders can use manual hints.

Q: Does it increase bundle size? A: The runtime is under 3KB gzipped. Skeleton descriptors are typically 100-300 bytes per component.

Q: Can I customize individual skeleton elements? A: Yes, you can annotate DOM elements with data-skeleton attributes to override shape, color, or animation for specific parts.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产