# Autoscale hero

> A hero for GPU, inference and compute products: an isometric server room where requests queue, the rack boots sleds to meet them and parks them when traffic falls.

Infrastructure products are hard to show: the work happens in a data centre nobody sees, so heroes fall back to a glowing abstract shape or a dashboard screenshot. Autoscale hero draws the room. Beside the headline stands an isometric line drawing on a raised floor: a gateway cabinet with the request rate on its glass and a burst key on top, a scheduler whose top is a tray the queue fills tile by tile, and an open-frame rack of sleds. Requests ride in along the floor lanes; when they pile up in the tray, sleds boot one after another, each front filling with the signal colour before its top and side catch up, and the queue drains into them. Finished tokens stream out the front in the signal colour, past your endpoint painted on the floor. The scheduler’s glass reads the sleds in use, p95 and the hourly cost as they change; when traffic falls the sleds park again from the top. Pressing the burst key sends a spike on demand.

## Install

```bash
npx shadcn@latest add @hairline-pro/autoscale-hero
```

Needs React 19, Tailwind CSS v4 and shadcn/ui theme variables (any style, light and dark). Icons from lucide-react.

- npm: `lucide-react`
- Hairline UI components it needs (the CLI installs them too): none
- Docs and live preview: https://hairlineui.com/blocks/autoscale-hero
- Premium block, included with All-Access (https://hairlineui.com/buy/all-access?from=blocks). Installs only with an All-Access token through the @hairline-pro registry: https://hairlineui.com/ui/installation#premium. Its source isn't public.

## Usage

```tsx
import { AutoscaleHero } from "@/components/autoscale-hero";

<AutoscaleHero
  brand="Ferrite"
  headline={["Inference that", "sizes itself", "to your traffic"]}
  highlight="sizes itself"
  subheadline="Ferrite boots GPUs when requests pile up and parks them the moment they don't."
  primaryAction={{ label: "Deploy a model", href: "/signup" }}
  fleet={{ units: 8, unitName: "H100", pricePerHour: 2.85, endpoint: "api.ferrite.run/v1" }}
/>
```

## A whole first screen

The nav, copy and room are one section. Set the fleet to your own hardware and numbers, and restyle the room with its --ah-* variables if the signal colour should be your brand’s.

```tsx
import { AutoscaleHero } from "@/components/autoscale-hero";

export default function Page() {
  return (
    <main>
      <AutoscaleHero
        className="min-h-dvh"
        tone="light"
        brand="Ferrite"
        navLinks={[
          { label: "Inference", href: "/inference" },
          { label: "Fine-tuning", href: "/fine-tuning" },
          { label: "Pricing", href: "/pricing" },
          { label: "Docs", href: "/docs" },
        ]}
        navSecondaryAction={{ label: "Sign in", href: "/login" }}
        navPrimaryAction={{ label: "Book a demo", href: "/demo" }}
        eyebrow="Inference for open models"
        headline={["Inference that", "sizes itself", "to your traffic"]}
        highlight="sizes itself"
        subheadline="Ferrite boots GPUs when requests pile up and parks them the moment they don't, so p95 stays flat and the bill follows your users."
        primaryAction={{ label: "Deploy a model", href: "/signup" }}
        secondaryAction={{ label: "Read the docs", href: "/docs" }}
        fleet={{
          units: 8,
          minUnits: 2,
          unitName: "H100",
          pricePerHour: 2.85,
          requestsPerSecond: [240, 1480],
          latencyMs: [96, 420],
          endpoint: "api.ferrite.run/v1",
          burstLabel: "BURST",
          rackLabel: "US-EAST",
        }}
        style={{ "--ah-signal": "#c8f135" } as React.CSSProperties}
      />
    </main>
  );
}
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `brand` | `string` | – | Name on the faceplate. |
| `logo` | `ReactNode` | – | Mark beside the name. Defaults to one lit isometric sled. |
| `navLinks` | `{ label: string; href: string }[]` | – | Links on the faceplate; under 860px they fold into a menu under it. |
| `navSecondaryAction / navPrimaryAction` | `{ label: string; href?: string; onClick?: () => void }` | – | Quiet and solid actions at the right end of the faceplate. |
| `eyebrow` | `string` | – | One plain line above the headline. |
| `headline` | `string \| string[]` | – | The headline; an array sets the line breaks. |
| `highlight` | `string` | – | A phrase inside the headline painted in the signal colour, once, on load. |
| `subheadline` | `string` | – | One plain sentence about what the product does. |
| `primaryAction / secondaryAction` | `{ label: string; href?: string; onClick?: () => void }` | – | The main action (ink with a signal-coloured arrow end) and a quiet one. |
| `fleet` | `AutoscaleHeroFleet` | – | units (3–10, default 8), minUnits (2), unitName ("GPUs"), pricePerHour (2.85), currency ("USD"), requestsPerSecond ([240, 1480]), latencyMs ([96, 420]), endpoint, burstLabel, rackLabel. |
| `tone` | `"light" \| "dark"` | `"light"` | A pale room or a graphite one. Every colour is an --ah-* variable you can override through style or CSS. |
| `autoPlay` | `boolean` | `true` | Spike traffic on its own every 15s. Off, the room idles until the burst key is pressed. |

## States

- **idle**: The minimum sleds stay lit; a slow trickle of requests rides in, a few tiles sit in the tray and tokens leave the rack at the same pace.
- **burst**: About 1.1s after load the burst key dips and traffic rises over 1.1s. The tray fills tile by tile while sleds boot every 0.26s from the bottom, each front filling over 0.7s before its top and side light.
- **drain**: With the rack full, the queue drains into idle sleds; each sled’s light on its front shows while it works a request. The glass rolls through sleds in use, p95 and cost.
- **park**: When traffic falls the top sled that is idle parks, its colour draining over 0.55s, then the next 0.7s later, down to the minimum. The cycle runs 15s.
- **press**: Clicking the burst key (or Enter or Space on it) sends a spike at once from wherever the cycle is.
- **reduced motion**: The busy moment is drawn finished: the rack full, tiles placed on every lane, no loop.

## What it handles

Infra heroes are usually a looping render or a glowing orb: expensive to make, impossible to edit, and they say nothing about how the product behaves under load.

- **A room drawn in code**: Every face is projected from 3D units at render time, with flat shadows, floor seams, pedestals and rack-unit holes. No images, no animation library.
- **A real autoscaler inside**: Arrivals, a queue, idle and busy sleds, boot and park delays and a cooldown run on one loop, so what you see is consistent: the tray fills before the rack grows.
- **Your numbers on the glass**: Sled count and name, price per hour, request rate and p95 range, the endpoint and the rack plate come from one fleet object.
- **A key that does something**: The burst key on the gateway dips and sends a spike; it is a real button with keyboard support, and it dips on its own each cycle so people find it.
- **Its own palette**: Light and dark rooms ship as --ah-* variables (faces, floor, lines, glass, signal) that you override without touching the drawing.
- **Phones get their own crop**: Under 720px the copy stacks and the room crops in on the scheduler and the rack, so the sleds stay large enough to read.

## Replaces

isometric illustration, Lottie animation, hero video loop, architecture diagram, animated SVG export

## Where it fits

- **Inference clouds and model APIs**: Show GPUs booting under load and the p95 holding, with your own endpoint on the floor.
- **Serverless GPUs and batch compute**: Warm sleds, cold sleds and a queue that drains: the whole pitch in one picture.
- **Autoscalers, schedulers and orchestration**: Kubernetes autoscaling, job queues, render farms: requests in, capacity up, cost down.
- **Edge and on-prem AI platforms**: Rename the sleds (L40S, MI300X, Jetson) and the rack plate to your region or site.

## Notes

- The drawing is SVG projected once from 3D units; per frame the loop only moves tiles, fills sled fronts and swaps a few readouts (at most 8 times a second). It stops off screen and in background tabs.
- The room has its own palette (--ah-page, --ah-ink, --ah-top/left/right, --ah-floor, --ah-line, --ah-glass, --ah-signal and its two shades) and never reads your shadcn theme, so it looks the same in any app.
- The type follows your page font; set --ah-font on the section to give it another.
- The burst key is a focusable button with Enter and Space; the drawing has a text description for screen readers.
- Respects prefers-reduced-motion: the busy moment is drawn finished, with no loop and no paint wipe on the headline.

License: Hairline UI commercial license, not MIT (https://hairlineui.com/license#blocks)
