api #

experimental AI-generated docs and skills for Fuz, a zippy stack for human agency

4 modules · 12 declarations

Modules
#

COL_GAP
#

stack_layout.ts view source

150 import {COL_GAP} from '@fuzdev/fuz_docs/stack_layout.js';

Horizontal spacing between adjacent nodes within a layer.

compute_stack_layout
#

stack_layout.ts view source

(nodes: readonly StackNodeInput[], edges: readonly StackEdge[]): StackNode[] import {compute_stack_layout} from '@fuzdev/fuz_docs/stack_layout.js';

Computes baked layout positions for the stack graph.

The full edges list is used only to derive the layering; the emitted edge list is owned by the caller (the generator emits every edge, including the dev ones this layout cuts).

nodes

raw nodes keyed by name

type readonly StackNodeInput[]

edges

every dependency edge (prod, peer, and dev)

type readonly StackEdge[]

returns

StackNode[]

positioned nodes sorted by name, with layer, fan_in, x, y filled in

DataInput
#

DataInput.svelte view source

accepts children

import DataInput from '@fuzdev/fuz_docs/DataInput.svelte';

children?

type Snippet<[]>
optional

value?

The normalized binary output. null when input is empty or invalid.

type Uint8Array<ArrayBufferLike>
optional bindable default null

input_mode?

The current input mode.

type InputMode
optional bindable default 'text'

intersects

SvelteHTMLElements['div']

ROW_GAP
#

stack_layout.ts view source

120 import {ROW_GAP} from '@fuzdev/fuz_docs/stack_layout.js';

Vertical spacing between adjacent layers.

stack_repos
#

stack_repos.ts view source

readonly StackRepo[] import {stack_repos} from '@fuzdev/fuz_docs/stack_repos.js';

Public stack repos in rough dependency order. Order is cosmetic for the dependency graph (its generator sorts), but sets the display order of the generated libraries.json / stack.json.

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

StackNodeInput
#

stack_layout.ts view source

StackNodeInput import type {StackNodeInput} from '@fuzdev/fuz_docs/stack_layout.js';

Raw node input to compute_stack_layout — the positioned fields are filled in by the layout.

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

StackRepo
#

stack_repos.ts view source

StackRepo import type {StackRepo} from '@fuzdev/fuz_docs/stack_repos.js';

One public stack repo, identified by its workspace directory name.

path

Directory name under the workspace root, e.g. fuz_util.

type string

name

Canonical manifest/package name, e.g. @fuzdev/fuz_util (unscoped for svelte-docinfo).

type string

category

Editorial grouping (not derivable from any manifest).

type StackCategory

language

Primary language. wasm/rust repos build via Cargo, not svelte-docinfo.

type StackLanguage