JSPM

@sentropic/graph

0.1.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2136
    • Score
      100M100P100Q95617F
    • License MIT

    Fast WebGL-oriented graph rendering primitives for known-position graphs.

    Package Exports

    • @sentropic/graph

    Readme

    @sentropic/graph

    MIT graph rendering primitives for Graphify and other known-position graph UIs.

    The package is rendering-first: it accepts canonical node order, Float32Array positions, and Uint32Array indexed edges. Layout physics are deliberately a separate contract so a renderer can consume static coordinates, worker-driven frames, or future Barnes-Hut/WebGPU engines without owning repulsion or pin state.

    MVP Contract

    • buildRenderGraphBuffers(scene) adapts high-level nodes and edges into stable typed buffers.
    • buildStyleBuffers(scene, graph) compiles sizes, colors, dash modes, widths, and curvatures into typed arrays aligned to the filtered graph.
    • setGraph, setPositions, and updatePositions(PositionFrame) are the renderer hot path.
    • x/y are y-down world coordinates. fx/fy may mark high-level pins but are not renderer state.
    • Curved edge geometry is derived from positions and styling options, not from layout physics.

    Benchmarks live in bench/ and track typed-buffer compilation, styling compilation, and edge geometry throughput before npm releases. See FEATURES.md for the current scope and roadmap.