NOW LET US – AI RAG SaaS Studio TP.HCM
NOW LET US
Digital Product Studio
Back to news
DEV-TOOLS...1 min read

Boneyard: Generate pixel-perfect skeleton screens from your real DOM

Share
NOW LET US Article – Boneyard: Generate pixel-perfect skeleton screens from your real DOM

Boneyard is a powerful tool that automatically generates pixel-perfect skeleton screens by extracting layouts directly from your real UI. Supporting React, Svelte 5, and React Native, it eliminates manual effort and ensures seamless loading transitions.

Pixel-perfect skeleton loading screens, extracted from your real UI. No manual measurement, no hand-tuned placeholders.

Works with React, Svelte 5, and React Native.

npm install boneyard-js

import { Skeleton } from 'boneyard-js/react'
function BlogPage() {
const { data, isLoading } = useFetch('/api/post')
return (
<Skeleton name="blog-card" loading={isLoading}>
{data && <BlogCard data={data} />}
</Skeleton>
)
}

npx boneyard-js build

// Add once in your app entry
import './bones/registry'
<script> import Skeleton from 'boneyard-js/svelte'
import '../bones/registry'
let loading = true
script>
<Skeleton name="card" {loading}>
<Card />
</Skeleton>

npx boneyard-js build

import { Skeleton } from 'boneyard-js/native'<Skeleton name="profile-card" loading={isLoading}>
<ProfileCard />
</Skeleton>
npx boneyard-js build --native --out ./bones
# Open your app on device — bones capture automatically
// Add once in your app entry, then reload
import './bones/registry'

No browser needed. The --native flag scans the actual native layout on your device via the React fiber tree.

Web (React / Svelte): The CLI opens a headless browser, visits your app, finds every <Skeleton name="...">, and snapshots their layout at multiple breakpoints.

React Native: The <Skeleton> component auto-scans in dev mode when the CLI is running. It walks the fiber tree, measures views via UIManager, and sends bone data to the CLI. Zero overhead in production.

Both output the same .bones.json format — cross-platform compatible.

npx boneyard-js build # auto-detect dev server
npx boneyard-js build http://localhost:3000 # explicit URL
npx boneyard-js build --native --out ./bones # React Native
npx boneyard-js build --breakpoints 390,820,1440 # custom breakpoints
npx boneyard-js build --force # skip incremental cache

| Prop | Type | Default | Description | |---|---|---|---| loading | boolean | — | Show skeleton or real content | name | string | — | Unique name (generates name.bones.json ) | color | string | rgba(0,0,0,0.08) | Bone fill color | darkColor | string | rgba(255,255,255,0.06) | Bone color in dark mode | animate | 'pulse' | 'shimmer' | 'solid' | 'pulse' | Animation style | fixture | ReactNode / Snippet | — | Mock content for CLI capture (dev only) | initialBones | ResponsiveBones | — | Pass bones directly (overrides registry) | fallback | ReactNode / Snippet | — | Shown when loading but no bones available |

© 2026 Now Let Us. All rights reserved.

Source: Hacker News

Advertisement
Ad slot ready: 5887729102

More in this category

NOW LET US Related – Treating pancreatic tumours may have revealed cancer's master switch

dev-tools

Treating pancreatic tumours may have revealed cancer's master switch

A promising new drug called daraxonrasib has shown breakthrough results in treating pancreatic cancer, doubling median survival times. This achievement could pave the way for an entirely new class of cancer treatments.

NOW LET US Related – Leaving Mozilla

dev-tools

Leaving Mozilla

A poignant and candid reflection from a 15-year Mozilla veteran upon their departure. The author highlights the leadership's missteps in trying to emulate tech giants and urges Mozilla to return to its core values: community and uniqueness.

NOW LET US Related – Shepherd's Dog: A Game by the Most Dangerous AI Model

dev-tools

Shepherd's Dog: A Game by the Most Dangerous AI Model

A developer tested Anthropic's latest, supposedly 'too dangerous' AI model by asking it to build a long-held game idea in a single shot. The model succeeded, generating a complete 2,319-line game after a 45-minute reasoning session.

NOW LET US Related – Open source AI must win

dev-tools

Open source AI must win

If artificial intelligence becomes a utility rented only from a few closed institutions, humanity loses its operational freedom. Open-source AI is a vital infrastructure for the future of our digital society.

NOW LET US Related – Statement on US government directive to suspend access to Fable 5 and Mythos 5

dev-tools

Statement on US government directive to suspend access to Fable 5 and Mythos 5

The US government has issued an export control directive forcing Anthropic to suspend all access to its Fable 5 and Mythos 5 models due to national security concerns, a move the AI safety startup strongly disputes.

NOW LET US Related – Electric motors with no rare earths

dev-tools

Electric motors with no rare earths

Renault Group is pioneering the development of electrically excited synchronous motors (EESM) that eliminate the need for rare earth magnets, reducing dependency on global monopolies while driving efficiency and sustainability.

EXPLORE TOPICS

Discover All Categories

Deep dive into the specific technology sectors that matter most to you.