
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
@component-anatomy/astro
Advanced tools
Astro integration for component-anatomy — SSR-rendered anatomy panels with live hover sync
Astro integration for component-anatomy — SSR-rendered Markdown descriptions, live hover sync, zero client-side Markdown bundle.
npm install @component-anatomy/astro
Import the <ComponentAnatomy> component and wrap any HTML you want to document:
---
import ComponentAnatomy from '@component-anatomy/astro/ComponentAnatomy.astro';
const parts = [
{
id: 'track',
name: 'Track',
description: 'The **rail** where the thumb slides. Takes full width of the container.',
},
{
id: 'thumb',
name: 'Thumb',
description: 'The draggable handle. Constrained to the `Track`.',
},
];
---
<ComponentAnatomy parts={parts}>
<div class="slider">
<div class="track" data-part="track"></div>
<div class="thumb" data-part="thumb"></div>
</div>
</ComponentAnatomy>
| Prop | Type | Required | Description |
|---|---|---|---|
parts | AnatomyPartDefinition[] | No | Part definitions. If omitted, parts are auto-discovered from data-part attributes. |
preset | 'default' | 'minimal' | 'contrast' | 'blueprint' | No | Visual preset for overlays and panel accent. |
theme | AnatomyTheme | No | Theme token overrides, e.g. { accent: '#0d9488', overlayRadius: 8 }. |
overlayLabel | boolean | No | Show the floating name chip. Default true. |
label | string | No | Accessible label of the block. Default "Component anatomy". |
class | string | No | Extra class on the wrapper. |
<ComponentAnatomy parts={parts} preset="blueprint">
<Slider />
</ComponentAnatomy>
<ComponentAnatomy parts={parts} theme={{ accent: '#0d9488' }}>
<Slider />
<p slot="header">Hover a part below, or the component itself.</p>
</ComponentAnatomy>
The theme applies to both the canvas overlays and the panel accents. Layout variables (--ca-gap, --ca-preview-bg, --ca-preview-padding, --ca-panel-max-height) can be set on the wrapper via class. Full guide: customization docs.
AnatomyPartDefinition:
{
id: string; // Matches the data-part value on the DOM element
name: string; // Display name shown in the panel
description?: string; // Raw Markdown — rendered server-side by marked
}
marked — no Markdown library is shipped to the browsercreateAnatomy() from @component-anatomy/core to wire up hover sync and overlays<ComponentAnatomy> instances on the same page are isolated via a random instance IDMIT
FAQs
Astro integration for component-anatomy — SSR-rendered anatomy panels with live hover sync
We found that @component-anatomy/astro demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.