Description
boneyard is an open source framework that generates skeleton loading screens automatically from your real user interface. Instead of measuring layouts by hand or writing placeholders, it opens your app in a headless browser, finds each marked element, and records its layout at several breakpoints. The result is a pixel-accurate skeleton that matches the real page. It works with React, Preact, Vue, Svelte 5, Angular and React Native. In React you wrap a component in a boneyard boundary, so the skeleton is shown as the fallback while data loads, and the build-time command waits for the query to resolve before capturing the bones. You can pass a fixture if a query cannot finish during capture. For Vite projects a plugin captures bones automatically when the dev server starts and recaptures them on each hot module update, so no second terminal is needed. On the web, the command-line tool or plugin snapshots the layout. On React Native, the component scans the view tree in development mode and measures views through the native layer, with no overhead in production. Every framework writes the same bones file format, and the README documents the command-line flags, such as breakpoints, wait time, output folder, watch mode and React Native scanning. The project is on GitHub.…
Highlights
- Skeletons captured from the real UI
- React, Preact, Vue, Svelte 5, Angular and React Native
- Multiple breakpoints
- Vite plugin with hot update capture
- Same bones format for every framework
Ratings & Reviews
No ratings yet
Be the first to rate boneyard.
People also visit
SkeletonView
☠️ An elegant way to show users that something is happening and also prepare…
boneyard FAQ
What does boneyard do?
It generates skeleton loading screens by capturing the layout of your real interface, so the placeholders match the page.
Which frameworks does it support?
React, Preact, Vue, Svelte 5, Angular and React Native.
Do I need to measure anything by hand?
No. The tool records the layout automatically at several breakpoints.
How do I use it with Vite?
Use the Vite plugin instead of the command-line tool. It captures bones when the dev server starts and on each hot update.
Does it add weight to production?
On React Native the scanning is dev-only, and the README says there is zero overhead in production.
Where is the source?
On GitHub at 0xGF/boneyard.
What are the best boneyard alternatives?
Popular alternatives to boneyard include phantom-ui, shimmer-from-structure and ngx-skeleton-loader. See all boneyard alternatives
















