animui
ComponentsBlocksDocsPackageTry the demo
Introduction
Installation
Theming
Motion
AI guide
Changelog
Metrics dashboard
KPI drilldown
Metric explorer
Revenue explorer
MRR waterfall
Cohort retention
Usage forecast
Journey flow
Choropleth explorer
Connected scatter
Market terminal
Budget variance
Small multiples
Line replay
AI chat
AI composer
Agent run
AI side panel
SidebarPro4
Page header
Command palette
Notification center
Empty states
Search resultsPro
Login and sign up5
OTP input
Multi-step formPro
Settings page
Settings command
Security settings
Billing overview
Usage billing
Cancel flow
Team members
Invite people
Team directory
Roles and permissions
API keys
Webhooks
Integrations
Environment variables
Plan comparison
Pricing calculatorPro
Usage pricingPro
Cart drawerPro
Checkout summaryPro
Invoice studio
Wallet card
Product listing
Product detail
Inbox triage
Support conversation
Support widget
Help centerNew
File upload
Media playerPro
Week calendar
Availability picker
Project board
Release readiness
Kanban boardNew
Hero section
Hero signupPro
Scroll storyPro
Spotlight gridPro
Feature bentoPro
Comparison table
Logo marquee
Studio perspectivesPro
Stats band
Changelog feed
FAQ section
Contact section
Team showcasePro
Blog grid
Site header
Site footer
CTA section
Newsletter signup
Activity terrain
Revenue globe
Customer galaxy
Semantic zoom
Layout morph
What’s new8 new
BlocksCustomer galaxy

Customer galaxyPro

2,400 accounts as a drifting galaxy that spirals into clusters by plan, region or health.

Live block · sample data

Where your revenue lives

2,400 accounts, sized by MRR and colored by health.

  • Expanding
  • Healthy
  • Watch
  • At risk
  • Size is MRR

Drag to pan, scroll to zoom, double click a cluster to fly inPinch to zoom, double tap a cluster to fly in

Use left and right arrows to fly between clusters, up and down to step through accounts by MRR, plus and minus to zoom, and Escape to reset.

All accounts
Monthly recurring revenue$6.05M$0123456789.01234567890123456789M
Accounts
2,4000123456789,012345678901234567890123456789
Expanding
$870K$012345678901234567890123456789K
At risk
$526K$012345678901234567890123456789K

By health

Accounts and monthly recurring revenue by health
HealthAccountsMRRExpanding accountsHealthy accountsWatch accountsAt risk accounts
Expanding207$869,637207000
Healthy1,687$3,965,43101,68700
Watch257$684,305002570
At risk249$525,720000249

Showing all accounts in one cluster.

When to use

  • Customer success or revenue pages to explore where MRR and risk concentrate.
  • Showcase views that cluster thousands of accounts by plan, region, or health.

When not to use

  • Use customers-table when people need to find and act on specific accounts.
  • Use semantic-zoom for hierarchical data like teams and projects.
  • Use bar-chart for simple totals by segment.

Installation

Install animui once, then import any component or block from its typed package entry.

animui · 250 components and blocks

React 19 and React DOM 19 are required. The package includes Free and Pro entries, styles and TypeScript declarations.

npm install https://animui.stracture.net/__local/package.tgz

Load the stylesheet once at your app root, then use the typed component import:

import 'animui/styles.css';
import { CustomerGalaxy } from 'animui/customer-galaxy';

Read the Code tab for the implementation files and the API reference below for required props.

Download animui 0.3.0 · Agent guide

Usage

Use this on a customer success or revenue page to explore where MRR and risk concentrate. Replace the seeded book in galaxy-data.ts with your accounts; clusters, totals and the side panel derive from it.

example.tsx
1import { CustomerGalaxy } from "animui/customer-galaxy";2 3export default function CustomerSuccessPage() {4  return (5    <section>6      <CustomerGalaxy />7    </section>8  );9}

API reference

CustomerGalaxy

A canvas galaxy of about 2,400 accounts sized by MRR that spirals into clusters by plan, region or health, with pan, zoom and a totals panel. Takes no props; accounts are sample data in galaxy-data.ts.

No props.

Keyboard interactions

Arrow leftorArrow right
On the grouping tabs, switches grouping; on the stage, flies between clusters by MRR.
Arrow keys
Steps through accounts when a single cluster is in view.
+or-
Zooms in or out.
Escape
Clears the selected account, then resets the view.
0orHome
Fits all accounts.

Accessibility

  • The stage is role="application" with a roledescription, a text summary label and a keyboard hint.
  • Grouping uses a tablist and tabpanel; cluster rows are aria-pressed buttons with MRR and risk in their labels.
  • Zoom buttons have labels, and a polite live region announces selections.

Motion

  • Accounts drift, then spiral into clusters with spring physics when grouping changes; flying to a cluster eases the camera.
  • The tab pill slides with a shared layout spring, and panel rows reorder with layout animation.
  • Reduced motion is passed to the engine, which snaps to layouts, and UI transitions become instant.

Responsive behavior

  • From an 880px container the totals panel sits beside the stage at 296px; below that it moves under it, and below 620px the stage is 440px tall.
  • Touch uses pinch to zoom and double tap; the stage allows vertical page scroll until zoomed in.
  • Mouse wheel zoom only takes over for ctrl or pinch gestures and mouse-like wheels, so trackpad scrolling still moves the page.

Performance

  • Renders about 2,400 accounts on a 2D canvas with devicePixelRatio capped at 2.
  • The loop pauses offscreen via IntersectionObserver and in hidden tabs.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Use on a customer success or revenue page to explore where MRR and risk concentrate.
  • Replace the seeded accounts in galaxy-data.ts with your book, keeping plan, region, health and MRR fields.
/components/blocks/customer-galaxy/markdown

The full library index for assistants is at /llms.txt.

Related

Revenue globeProBlockA dotted globe where live payments arc home to headquarters, with a replayable day.Semantic zoomProBlockAn infinite-zoom map of a company that reveals teams, projects, tasks and people as you fly in.Cohort retentionProBlockA cohort retention triangle that morphs into retention curves and rewashes by segment.
PreviousRevenue globeNextSemantic zoom
animui · 84 block pagesllms.txt

On this page

  • Preview
  • When to use
  • When not to use
  • Installation
  • Usage
  • API reference
  • Keyboard
  • Accessibility
  • Motion
  • Responsive behavior
  • Performance
  • Notes for AI
  • Related
View as Markdown