--- import { W, H, nodes, edgePath, hubEdgePath, hubs, blocks, folderLabels, folderOutlines, stats, hubNames } from '../data/heroGraph'; // The hero picture: the real file graph of gin v1.10.0, drawn at build time from checked in Stacklit output. // Two views share one frame and switch with radio inputs (no script): the dependency graph, hubs sized by PageRank, // and a folder and community block map. A slow drift and pulse run only where motion is allowed, see hero-map.css. interface Props { class?: string } const { class: extra } = Astro.props; const alt = `The Stacklit map of ${stats.repo}. Dependency view: ${stats.files} Go files joined by ${stats.edges} links, with the largest hubs by PageRank being ${hubNames.join(', ')}. Folder view: the same files as blocks grouped by folder.`; const anchorEnd = (x: number) => x > W * 0.62; ---
{stats.repo}, real Stacklit output. {stats.files} files, {stats.edges} links.
{nodes.map((n) => )} {hubs.slice(0, 4).map((h) => ( {h.short} ))} {blocks.map((b) => )} {folderOutlines.map((f) => )} {folderLabels.filter((l) => l.w > 84).map((l) => {l.text})}

Larger dots are files that more of the code depends on, ranked by PageRank. Colour shows the community Stacklit found. The same data is in stacklit.json for gin, and the full map is on the demos page.