A slowly turning globe of connected stars
| Name | Type | Default | Description |
|---|---|---|---|
colors | string[] | ["#7C6BFF", "#FFE6FA"] | Two colours: the network itself, then the highlight that tints hubs, the pointer's glow and click pulses. |
backgroundColor | string | "#0a0a0a" | Colour behind the globe. Light backgrounds switch to ink lines. Pass "transparent" to show the page. |
nodes | number | 2400 | Number of stars on the shell, from 100 to 2500. |
connections | number | 4 | Lines drawn from each star to its nearest neighbours, from 1 to 8. |
reach | number | 0.2 | Longest neighbour line, relative to the globe's radius. Longer lines draw fainter. |
clustering | number | 0.85 | 0 scatters the stars evenly; 1 gathers them into constellations joined by filaments. |
chords | number | 0.35 | Long lines cutting through the globe, as a share of the star count. 0 keeps only the surface web. |
radius | number | 0.4 | Radius of the globe, as a fraction of the height. |
originX | number | 0.5 | Horizontal position of the centre, from 0 (left) to 1 (right). |
originY | number | 0.5 | Vertical position of the centre, from 0 (bottom) to 1 (top). Values outside 0–1 let it rise from an edge. |
lineOpacity | number | 0.7 | Brightness of the connecting lines. |
nodeSize | number | 0.8 | Size of the stars. Hubs draw slightly larger. |
depthFade | number | 0.7 | How much the far side of the globe dims. 0 draws both sides equally. |
spin | number | 1 | Speed and direction of the slow rotation. 0 holds it still. |
tilt | number | 18 | Forward tilt of the globe, in degrees. |
interactive | boolean | true | Turns every pointer effect on or off: the highlight, the lean, dragging and click pulses. |
draggable | boolean | true | Drag to spin the globe. It keeps its momentum and settles back to its spin. |
hoverRadius | number | 0.22 | Size of the area the pointer lights, relative to the height. |
hoverBoost | number | 1 | Strength of the pointer highlight. 0 disables it. |
clickPulse | boolean | true | Each click sends a pulse from the point you clicked across the whole globe. Rapid clicks stack. |
pulseSpeed | number | 1.2 | How fast pulses travel around the globe. |
seed | number | 0 | Changes the arrangement of the stars. |
paused | boolean | false | Stops the rotation and the twinkle. Dragging and pulses still work. |
dpr | number | 2 | Upper bound for the device pixel ratio. |
className | string | — | Classes for the root element. Give it a height. |
style | CSSProperties | — | Inline styles for the root element. |
children | ReactNode | — | Content layered above the globe. |
colorsstring[]Two colours: the network itself, then the highlight that tints hubs, the pointer's glow and click pulses.
["#7C6BFF", "#FFE6FA"]backgroundColorstringColour behind the globe. Light backgrounds switch to ink lines. Pass "transparent" to show the page.
"#0a0a0a"nodesnumberNumber of stars on the shell, from 100 to 2500.
2400connectionsnumberLines drawn from each star to its nearest neighbours, from 1 to 8.
4reachnumberLongest neighbour line, relative to the globe's radius. Longer lines draw fainter.
0.2clusteringnumber0 scatters the stars evenly; 1 gathers them into constellations joined by filaments.
0.85chordsnumberLong lines cutting through the globe, as a share of the star count. 0 keeps only the surface web.
0.35radiusnumberRadius of the globe, as a fraction of the height.
0.4originXnumberHorizontal position of the centre, from 0 (left) to 1 (right).
0.5originYnumberVertical position of the centre, from 0 (bottom) to 1 (top). Values outside 0–1 let it rise from an edge.
0.5lineOpacitynumberBrightness of the connecting lines.
0.7nodeSizenumberSize of the stars. Hubs draw slightly larger.
0.8depthFadenumberHow much the far side of the globe dims. 0 draws both sides equally.
0.7spinnumberSpeed and direction of the slow rotation. 0 holds it still.
1tiltnumberForward tilt of the globe, in degrees.
18interactivebooleanTurns every pointer effect on or off: the highlight, the lean, dragging and click pulses.
truedraggablebooleanDrag to spin the globe. It keeps its momentum and settles back to its spin.
truehoverRadiusnumberSize of the area the pointer lights, relative to the height.
0.22hoverBoostnumberStrength of the pointer highlight. 0 disables it.
1clickPulsebooleanEach click sends a pulse from the point you clicked across the whole globe. Rapid clicks stack.
truepulseSpeednumberHow fast pulses travel around the globe.
1.2seednumberChanges the arrangement of the stars.
0pausedbooleanStops the rotation and the twinkle. Dragging and pulses still work.
falsedprnumberUpper bound for the device pixel ratio.
2classNamestringClasses for the root element. Give it a height.
—styleCSSPropertiesInline styles for the root element.
—childrenReactNodeContent layered above the globe.
—