BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/neon-ui/compute-status

ComputeStatus

neon-ui/compute-status
FreeComponent

Compact compute readout: lifecycle state (active/idle/scaling/suspended), autoscaling CU size, and scale-to-zero, in the house status vocabulary.

Install it

npx shadcn@latest add https://ui.neon.com/r/compute-status.json

Source

src/components/compute-status/compute-status.tsxui.neon.com/r/compute-status.json
1"use client";
2
3import type { ComponentProps } from "react";
4
5import { Skeleton } from "@/components/ui/skeleton";
6import { cn } from "@/lib/utils";
7
8/** Compute lifecycle. `active`/`scaling` are alive and breathe; `idle`/`suspended` hold steady. */
9export type ComputeState = "active" | "idle" | "scaling" | "suspended";
10
11interface ComputeStateConfig {
12 /** Dot classes: alive states use `neon-status-breathe` + a token text color. */
13 dot: string;
14 label: string;
15}
16
17/* ─────────────────────────────────────────────────────────
18 * COMPUTE READOUT
19 *
20 * A calm mono line: a square status dot, the state word,
21 * then the compute size and the scale-to-zero readout,
22 * each fenced off by a hairline. Color lives only in the
23 * dot, from the house status vocabulary — active green,
24 * scaling amber, sleeping gray. The two alive states
25 * (active, scaling) breathe on the shared 2.6s cadence and
26 * hold steady under reduced motion; idle and suspended sit
27 * still, and suspended dims the whole line because the
28 * compute is off.
29 * ───────────────────────────────────────────────────────── */
30const STATE: Record<ComputeState, ComputeStateConfig> = {
31 active: {
32 dot: "neon-status-breathe bg-current text-[var(--status-active)]",
33 label: "active",
34 },
35 idle: {
36 dot: "bg-[var(--status-active)]",
37 label: "idle",
38 },
39 scaling: {
40 dot: "neon-status-breathe bg-current text-[var(--status-scaling)]",
41 label: "scaling",
42 },
43 suspended: {
44 dot: "bg-[var(--status-sleeping)]",
45 label: "suspended",
46 },
47};
48
49// A range renders with an en dash (\u2013), e.g. 0.25–2 CU.
50const formatCu = (cu: number | [number, number]) =>
51 Array.isArray(cu) ? `${cu[0]}\u2013${cu[1]} CU` : `${cu} CU`;
52
53const Fence = () => (
54 <span aria-hidden="true" className="h-3 w-px shrink-0 bg-border/60" />
55);
56
57export type ComputeStatusProps = Omit<ComponentProps<"div">, "children"> & {
58 /** Current compute lifecycle state. */
59 state: ComputeState;
60 /** Compute size in CU: a single value ("1.5 CU") or an autoscaling range. */
61 cu?: number | [number, number];
62 /**
63 * Scale-to-zero readout, already phrased for context, e.g.
64 * "scales to zero after 5m" or "suspended 2h ago". Omit to hide.
65 */
66 scaleToZero?: string;
67// … truncated

What it pulls in

Other registry items

  • utils
  • https://ui.neon.com/r/skeleton.json
  • https://ui.neon.com/r/neon-tokens.json

Files it writes

  • src/components/compute-status/compute-status.tsx

Facts

Registry
neon-ui
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-07
Last confirmed
yesterday

Go to the source

ui.neon.com neondatabase/ui on GitHub Raw registry item This item as JSON

More from neon-ui

All 77 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ActivityFeedactivity-feedneon-uiComponentsFree2 deps
AgentChatagent-chatneon-uiComponentsFree6 deps
AnimatedWashanimated-washneon-uiComponentsFreeno deps · 2 files
ApiKeyListapi-key-listneon-uiComponentsFree2 deps
AppCardapp-cardneon-uiComponentsFree2 deps
AppCreatorapp-creatorneon-uiComponentsFree2 deps
AuthFormauth-formneon-uiComponentsFreeno deps
AutoscaleChartautoscale-chartneon-uiComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex