Package Dependency Health
Dependency version tracker listing installed packages against their latest release, with an amber arrow and "Update available" badge when a package is behind, and a red "Security fix" badge on packages whose latest release patches a known vulnerability. Perfect for a project health dashboard or a release-notes companion page.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its badge dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/package-dependency-health.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/devtools/devtools8.tsx instead.
Usage
The file also exports devtools8Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Devtools8, devtools8Demo } from "@/components/blocks/devtools/devtools8"; export default function Page() { return <Devtools8 {...devtools8Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Dependency health" | Section heading. |
| description | string | "Installed versions against the latest release for every package in this project." | Section intro text below the heading. |
| packages | PackageDependency[] | none | The packages rendered as table rows, in the order given. |
| className | string | none | Extra classes for the outer section element. |
Types
type PackageDependency = { name: string; currentVersion: string; latestVersion: string; behind: boolean; securityFix?: boolean; };
Behavior notes
- behind and securityFix are plain flags you set per package; the block never compares version strings itself, so it has no opinion on semver ordering and will render whatever you pass.
- The arrow between versions and the version text both switch from amber to emerald purely off the behind flag, independent of securityFix.
- A row with securityFix set still needs behind set to also show the amber "Update available" badge; the two badges are independent and a row can show either, both, or neither.
- The table has no sorting, filtering, or row links; it is a static, read-only snapshot each time it renders.
More DevTools Blocks
View all →api-endpoints-sample-call
API Endpoints With Sample Call
Reference list of API endpoints paired with a live sample request and response panel.
cicd-pipeline-status
CI/CD Pipeline Status
Recent CI/CD pipeline runs with per-stage status chips and overall run badges.
code-diff-viewer
Code Diff Viewer
Unified code diff panel with a file header change summary and colored addition/deletion lines.
keyboard-shortcuts-reference
Keyboard Shortcuts Reference
Grouped keyboard shortcut reference with keycap-styled key combos.
performance-waterfall
Performance Waterfall
Network request waterfall chart with cascading timing bars colored by duration.
service-health-board
Service Health Board
Infrastructure status board with a live summary strip and per-service uptime, latency, and health.