Captain UI

Receipts

Social proof with nothing made up. Stars, the latest release, npm installs and a line from the release notes load live from public APIs, each linking to its source, and it says plainly when it is offline.

npx shadcn@latest add https://captain-ui.vercel.app/r/receipts.json

Receipts for the engine underneath

Captain UI animates with Motion. These figures load live from GitHub and npm, and every one links to where it came from.
stars on GitHub for motiondivision/motion

Usage

import { Receipts } from "@/components/ui/receipts"

<Receipts repo="motiondivision/motion" npm="motion" title="Receipts for the engine underneath" />

Props

PropTypeDefaultWhat it does
repostringA public GitHub repository, as "owner/name".
npmstringAn npm package name, for weekly installs. Optional.
titleReactNodeThe section heading.
bodyReactNodeA sentence saying what the figures are.

Accessibility

  • Every figure is a link to its source, named by its label and value.
  • The section is aria-busy while fetching, and a status line says where the figures came from and when.
  • Offline, it shows the last figures it saw with their date, or says it could not reach GitHub; it never invents a number.
  • Unauthenticated GitHub calls are limited to 60 an hour per visitor, so results are cached for ten minutes in localStorage.