@socketscope/metrics
v0.1.1
Published
Metrics primitives for SocketScope — stat cards, sparklines, heatmap, insights panel.
Downloads
289
Maintainers
Readme
@socketscope/metrics
Metrics primitives + the Insights panel for SocketScope.
Already included when you install @socketscope/ui. Install standalone only if you want to compose stat cards / sparklines into your own UI.
Install
pnpm add @socketscope/metrics @socketscope/coreExports
import {
AreaSpark, // gradient-fill area chart
Sparkline, // inline polyline
Heatmap, // rows × cols density grid
StatCard, // title + value + sub + optional delta + optional spark
HealthRow, // status dot + label + detail
InsightsPanel, // the assembled right-rail
MetricsView, // full-bleed dashboard (4 hero cards + throughput chart + bars + heatmap)
} from '@socketscope/metrics';All components read live values from the SocketScope store.
License
MIT
