stack_graph_types.ts

Hand-written types for the public @fuzdev stack dependency graph.

The generated stack_graph.ts (under src/routes/docs/stack/) re-exports these and provides the baked stack_nodes / stack_edges data. The pure layout in stack_layout.ts produces the positioned StackNodes.

view source

Declarations
#

5 declarations

StackCategory
#

stack_graph_types.ts view source

StackCategory import type {StackCategory} from '@fuzdev/fuz_docs/stack_graph_types.js';

Editorial grouping of a stack repo, hardcoded by the generator (not from any manifest).

StackEdge
#

stack_graph_types.ts view source

StackEdge import type {StackEdge} from '@fuzdev/fuz_docs/stack_graph_types.js';

A directed dependency edge between two stack nodes.

from

Dependent (the one that depends).

type string

to

Dependency (the one depended upon).

type string

kind

type StackEdgeKind

StackEdgeKind
#

stack_graph_types.ts view source

StackEdgeKind import type {StackEdgeKind} from '@fuzdev/fuz_docs/stack_graph_types.js';

Which dependency block an edge came from.

StackLanguage
#

stack_graph_types.ts view source

StackLanguage import type {StackLanguage} from '@fuzdev/fuz_docs/stack_graph_types.js';

Primary implementation language of a stack repo.

StackNode
#

stack_graph_types.ts view source

StackNode import type {StackNode} from '@fuzdev/fuz_docs/stack_graph_types.js';

A positioned node in the stack dependency graph.

name

Short repo/display name, e.g. fuz_util, fuz.dev.

type string

category

type StackCategory

language

type StackLanguage

description

From the manifest description field; empty string if none.

type string

layer

Dependency depth from the cut graph: 0 = foundation (bottom).

type number

fan_in

Number of nodes that depend on this one (in-degree over the cut graph); drives node size.

type number

x

Baked world-space layout coords. y grows downward (SVG); foundations have the largest y.

type number

y

type number

Imported by
#