Nodes float in 2-D space and connect to their nearest neighbours with glowing lines. The cursor attracts nearby nodes, redrawing the graph as you move.
import Constellation from '@crazygl/hero-constellation';
export default function Page() {
return (
<Constellation
heading="Connected."
nodeCount={90}
accentColor="#ff6cd1"
/>
);
}nodeCount (30–200), linkRadius (connection distance), nodeSize, lineWidth, speed (ambient drift), cursorPull (how strongly the field reacts to the pointer).nodeColor, lineColor, accentColor (hot tint applied to close/clustered pairs).transparent toggle, backgroundColor.transparent, layered on imagerynpm install @crazygl/hero-constellationThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import ConstellationNetwork from '@crazygl/hero-constellation';
export default function Landing() {
return (
<ConstellationNetwork />
);
}The wrapper renders static HTML on the server and only initialises the canvas after hydration, so search engines see your copy.
// app/page.tsx — works in SSR-first frameworks (Next, Remix, Astro, etc.)
'use client';
import ConstellationNetwork from '@crazygl/hero-constellation';
export default function Page() {
return (
<section>
<ConstellationNetwork
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}