# SimplexViz (v1.0.0)
> Overlap-free 60-degree simplex triangulation engine for vector embeddings, pairwise similarities, and tagged collections in TypeScript, SVG, Canvas 2D, React, and Web Components.
Complete concatenated Markdown corpus for AI agents: https://hackenberg.tech/simplex-viz/llms-full.txt
## Packages
- `@simplex-viz/core`: Zero-dependency TypeScript engine with DOM-free ES2022 root & `@simplex-viz/core/worker` offloading (mesh, clustering, OKLab, convex SAT layout, 1:4 hierarchical zoom) plus optional structurally-typed browser/host helpers (`@simplex-viz/core/dom`).
- `@simplex-viz/svg`: Framework-agnostic SVG scene graph, view plugins, offscreen getBBox() hull measurement, zero-DOM SSR (`@simplex-viz/svg/ssr`), and breadcrumbs.
- `@simplex-viz/canvas`: High-capacity HTML5 Canvas 2D renderer for 2,000–10,000+ items with viewport culling, automatic LOD, 1:4 zoom/drill-down, timeline playback, and native PNG export.
- `@simplex-viz/react`: Type-safe React 18/19 `` component and `useSimplexGraphController()` hook.
- `@simplex-viz/wc`: Framework-agnostic `` Web Component (zero React dependency) with SSR-safe `@simplex-viz/wc/define` registration.
## Guides & Stage Overviews
- [Quickstart & Three-Layer Architecture](https://hackenberg.tech/simplex-viz/docs/quickstart): Install SimplexViz in under two minutes, understand its strict three-layer / five-package separation, and inspect every default setting.
- [Custom Views, Tooltips, Timeline & Headless Snapshots](https://hackenberg.tech/simplex-viz/docs/customization): Customize content nodes, cluster anchors, triangle faces, mesh edges, chronological timeline playback, and headless Node.js/Worker snapshots.
- [01. Mesh Triangulation Strategies](https://hackenberg.tech/simplex-viz/docs/stage-1-mesh): How SimplexViz constructs toothed 60-degree equilateral triangle lattices, selects orientation and parity, and pins fixed grids.
- [02. Clustering & Planar Simplex Projection](https://hackenberg.tech/simplex-viz/docs/stage-2-clustering): Deep dive into Soft-Simplex interior spreading, Jaccard QAP annealing, multi-modal embeddings, NNLS barycentric projection, and PAM k-Medoids.
- [03. Perceptual OKLab Color Strategies](https://hackenberg.tech/simplex-viz/docs/stage-3-color): Why SimplexViz assigns cluster hues via perceptual OKLab graph-coloring optimization and mixes multi-cluster items without muddy sRGB midpoints.
- [04. Composable Collision Layout (Seeder × Relaxer × ScaleController)](https://hackenberg.tech/simplex-viz/docs/stage-4-layout): How SimplexViz guarantees 0.0 px overlap across arbitrary convex shapes and JSX cards by composing Seeders, Position Relaxers, and Scale Controllers.
- [05. Conformal 1:4 Zoom & Hierarchical Drill-Down](https://hackenberg.tech/simplex-viz/docs/stage-5-zoom): Mathematical and UX design of SimplexViz's conformal 1:4 triangle subdivision, Adaptive Contrast Stretch, 3→6 semantic tag splitting, and 1-ring cluster stars.
## Individual Strategy Reference Pages (18)
- [Adaptive Hex Lattice](https://hackenberg.tech/simplex-viz/docs/strategies/adaptive-hex-mesh) (`createAdaptiveHexMeshStrategy`, Stage 1): Chooses orientation and staggered 60° row parity automatically to maximize triangle side length.
- [Fixed Grid Lattice](https://hackenberg.tech/simplex-viz/docs/strategies/fixed-grid-mesh) (`createFixedLatticeMeshStrategy`, Stage 1): Pins an exact (cols × rows) equilateral vertex grid across viewport resizes.
- [Soft-Simplex Tag Clustering](https://hackenberg.tech/simplex-viz/docs/strategies/soft-simplex-tags) (`createSoftSimplexTagClusteringStrategy`, Stage 2): Spreads multi-tag items smoothly across triangle interiors while keeping 1-tag items in a free 360° halo.
- [Jaccard Annealing Clustering](https://hackenberg.tech/simplex-viz/docs/strategies/jaccard-qap-tags) (`createJaccardAnnealingClusteringStrategy`, Stage 2): Regularized Jaccard tag partitioning with QAP Simulated Annealing and planar hitting-set edges.
- [Incremental Tag Anchoring](https://hackenberg.tech/simplex-viz/docs/strategies/incremental-anchor-tags) (`createIncrementalAnchorClusteringStrategy`, Stage 2): Preserves existing cluster vertices and UIDs during live updates while attaching new tags incrementally.
- [Soft-Simplex Embedding Projection](https://hackenberg.tech/simplex-viz/docs/strategies/soft-simplex-embeddings) (`createSoftSimplexEmbeddingClusteringStrategy`, Stage 2): Load-balanced QAP and continuous interior simplex projection for single- or multi-modal embeddings.
- [Planar NNLS Embedding Projection](https://hackenberg.tech/simplex-viz/docs/strategies/nnls-simplex-embeddings) (`createEmbeddingClusteringStrategy`, Stage 2): Spherical/L2 k-Means++ with closed-form non-negative least-squares projection onto planar triangles.
- [Pairwise k-Medoids Projection](https://hackenberg.tech/simplex-viz/docs/strategies/pam-medoid-similarity) (`createSimilarityClusteringStrategy`, Stage 2): Partitions arbitrary S(a, b) ∈ [0, 1] similarity kernels via PAM k-Medoids and QAP mesh embedding.
- [OKLab Edge Contrast](https://hackenberg.tech/simplex-viz/docs/strategies/oklab-edge-contrast) (`createOklabContrastColorStrategy`, Stage 3): Maximizes perceptual ΔE_OK across mesh edges and preserves chroma on barycentric bridge items.
- [Theme-Adaptive OKLab](https://hackenberg.tech/simplex-viz/docs/strategies/theme-adaptive-oklab) (`createThemeAdaptiveOklabColorStrategy`, Stage 3): Adjusts perceptual lightness and chroma automatically between light and dark themes.
- [Custom Brand Palette](https://hackenberg.tech/simplex-viz/docs/strategies/custom-brand-palette) (`createPaletteColorStrategy`, Stage 3): Maps custom design-system hex colors onto the mesh with edge-contrast optimization.
- [Collision-Local Pocket Layout](https://hackenberg.tech/simplex-viz/docs/strategies/collision-local-layout) (`createCollisionDrivenLayoutStrategy`, Stage 4): Keeps sparse regions at full 1.0x scale and shrinks only locally colliding pockets to 0.0 px overlap.
- [Uniform PBD Layout](https://hackenberg.tech/simplex-viz/docs/strategies/pbd-uniform-layout) (`createPbdUniformLayoutStrategy`, Stage 4): Space-filling mesh-inward fan seeding with global uniform scale search and exact convex SAT separation.
- [Warm-Start PBD Layout](https://hackenberg.tech/simplex-viz/docs/strategies/warm-start-pbd-layout) (`createWarmStartPbdLayoutStrategy`, Stage 4): Reuses settled coordinates across live mutations with space-filling PBD relaxation and uniform scale ratios.
- [Density-Adaptive Layout](https://hackenberg.tech/simplex-viz/docs/strategies/density-adaptive-layout) (`createLocalAdaptiveLayoutStrategy`, Stage 4): Disperses nodes into open triangle interiors, evaluates smooth radial crowd density, and polishes locally without global shrink.
- [Subspace Re-Clustering Drill-Down](https://hackenberg.tech/simplex-viz/docs/strategies/subspace-recluster-zoom) (`createSubspaceZoomStrategy`, Stage 5): Projects out constant parent traits and re-clusters zoomed subsets locally over high-variance features, vectors, or similarities.
- [Barycentric 1:4 Drill-Down](https://hackenberg.tech/simplex-viz/docs/strategies/barycentric-subdivision-zoom) (`createBarycentricZoomStrategy`, Stage 5): Purely geometric orientation-preserving 1:4 subdivision with Adaptive Contrast Stretch and explicit A ↔ B midpoint bridges.
- [Semantic 3→6 Tag Drill-Down](https://hackenberg.tech/simplex-viz/docs/strategies/semantic-tag-split-zoom) (`createSemanticZoomStrategy`, Stage 5): Promotes vertex-exclusive secondary tags across 6 collision-free sub-vertices with parent-corner context and A ↔ B bridge fallbacks.
- [Continuous Free Camera](https://hackenberg.tech/simplex-viz/docs/strategies/free-camera-zoom) (`createFreeCameraZoomStrategy`, Stage 5): Continuous cursor-centered wheel zoom, drag-to-pan, and two-finger touch pinch.
## API Reference
- [@simplex-viz/core](https://hackenberg.tech/simplex-viz/docs/api/core): Pure ES2022 TypeScript engine with zero runtime dependencies and zero DOM globals for browsers, Node.js, Bun, Deno, and Web Workers.
- [@simplex-viz/svg](https://hackenberg.tech/simplex-viz/docs/api/svg): Portable SVG renderer, offscreen getBBox() hull measurement, root pointer hit-testing, client-side SVG/PNG export, zero-DOM SSR string rendering (@simplex-viz/svg/ssr), 1:4 subdivision previews, and breadcrumbs.
- [@simplex-viz/react](https://hackenberg.tech/simplex-viz/docs/api/react): Declarative component, JSX custom node measurement, and imperative useSimplexGraphController() hook re-exporting all SVG and Core utilities.
- [@simplex-viz/wc](https://hackenberg.tech/simplex-viz/docs/api/wc): Dedicated Custom Element package with zero React dependency, SSR-safe registration (@simplex-viz/wc/define), 24 reactive HTML attributes, inline JSON support, custom DOM tooltip renderers, structured legend snapshots, standard CustomEvents, and full imperative delegation.
- [@simplex-viz/canvas](https://hackenberg.tech/simplex-viz/docs/api/canvas): Framework-agnostic Canvas 2D renderer with viewport frustum culling, automatic LOD simplification, HiDPI scaling, 1:4 zoom/drill-down, timeline playback, and native PNG export.
## Interactive Examples & Standalone Playground
- [Tagged Dataset Playground](https://hackenberg.tech/simplex-viz/playground): Interactive sandbox to build custom tagged datasets or import/export JSON via paste, file dialog, or desktop drag-and-drop.
- [arXiv Computer Science & Geometry Papers](https://hackenberg.tech/simplex-viz/examples/knowledge-articles): Projects open-access arXiv papers across computational geometry, computer graphics, HCI, vision, and machine learning onto a 60° topic lattice with 3→6 semantic sub-tag drill-down.
- [GitHub Visualization & WebGL Ecosystems](https://hackenberg.tech/simplex-viz/examples/github-vis-repos): Maps real open-source visualization, WebGL, shader, and graph-layout repositories from GitHub using crisp Jaccard QAP annealing and planar hitting-set bridge edges.
- [Vega Cinema Reception & Box-Office Vectors](https://hackenberg.tech/simplex-viz/examples/multimodal-media): Clusters real feature films from 1928–1976 across two weighted embedding modalities without discrete genre tags, with chronological timeline playback, adaptive final-seeded layout, and dimmed future clusters.
- [UCI Deterding Spoken Vowel Formants](https://hackenberg.tech/simplex-viz/examples/voice-signatures): Projects real 10-dimensional LPC spoken vowel recordings from the UCI Machine Learning Repository onto a pinned 3×2 lattice using exact planar NNLS barycentric projection.
- [UCI Zoo Animal Morphology Kernel](https://hackenberg.tech/simplex-viz/examples/uci-zoo-species): Clusters all 101 animal species from Richard Forsyth's classic UCI Zoo dataset purely via a pairwise Gower trait kernel and PAM k-Medoids exemplar selection.
- [Palmer Station Antarctic Penguin Morphometrics](https://hackenberg.tech/simplex-viz/examples/body-shape-latents): Projects field morphometric measurements of Adelie, Chinstrap, and Gentoo penguins from Palmer Station Antarctica LTER using custom palette graph-coloring and smooth crowd-density scaling.
- [Hertzsprung-Russell Stellar Spectral Atlas (Canvas + Worker)](https://hackenberg.tech/simplex-viz/examples/stellar-spectral-canvas): Demonstrates high-capacity HTML5 Canvas 2D rendering (@simplex-viz/canvas) paired with off-main-thread Web Worker solving (@simplex-viz/core/worker) across 1,000 to 3,500 stars.
## Notes
- [SimplexViz 1.0: Five Synchronized Packages & Strict Subpath Boundaries](https://hackenberg.tech/simplex-viz/notes/simplex-viz-1-0-public-release): Releasing v1.0.0 across @simplex-viz/core, @simplex-viz/svg, @simplex-viz/canvas, @simplex-viz/react, and @simplex-viz/wc—introducing @simplex-viz/core/dom, canonical subpaths, and CI contract enforcement.
- [Scaling Beyond Browser SVG: Zero-DOM SSR, Canvas 2D & Web Workers](https://hackenberg.tech/simplex-viz/notes/headless-ssr-canvas-web-workers): Taking SimplexViz from hundreds of interactive DOM nodes to zero-DOM server rendering (@simplex-viz/svg/ssr), 10,000-node HTML5 Canvas 2D scenes (@simplex-viz/canvas), and zero-copy Web Worker layouts (@simplex-viz/core/worker).
- [Zero-Relayout Filtering, Mobile Touch Physics & WCAG 2.1 AA](https://hackenberg.tech/simplex-viz/notes/production-ux-zero-relayout-filtering-wcag): How SimplexViz solves hidden 0x0 tab mounts, vertical scroll hijacking on touch screens, stable cohort filtering, keyboard accessibility, reduced motion, and shareable deep-link URLs.
- [SimplexViz 0.8: Chronological Timeline Playback, Final-Seeded Layouts & Preset Controls](https://hackenberg.tech/simplex-viz/notes/simplex-viz-0-8-timeline-final-seeding-presets): Releasing v0.8.0 with opt-in chronological timeline playback, path-independent final-seeded clustering and layout strategies, empty-cluster dimming, decoupled tag display labels, N-gon shapes, and webfont auto-relayout.
- [SimplexViz 0.7: Subspace Zoom, Discriminative Labels & ESM NodeNext](https://hackenberg.tech/simplex-viz/notes/simplex-viz-0-7-subspace-zoom-nodenext): Releasing v0.7.0 with representation-agnostic local subspace refinement, single-triangle leaf focus, WCAG-AA contrast calibration, and verified NodeNext .d.ts module resolution.
- [Adaptive 60° Triangulation & Space-Filling PBD: Eliminating Collateral Shrink](https://hackenberg.tech/simplex-viz/notes/adaptive-mesh-space-filling-pbd-layout): How aspect-aligned lattice sizing, inward-fan seeding, and local pocket scaling eliminate global collateral shrink while preserving 0.0 px convex overlap.
- [Deterministic SVG-to-PNG Brand Pipelines Without Repo Font Binaries](https://hackenberg.tech/simplex-viz/notes/deterministic-svg-brand-pipeline-fontsource): Replacing OS-dependent system font rendering in @resvg/resvg-js with npm-managed @fontsource WOFF2 fonts and runtime woff2-encoder decompression.
- [SimplexViz 0.6: Conformal 1:4 Drill-Down & Composable Collision Layouts](https://hackenberg.tech/simplex-viz/notes/simplex-viz-0-6-hierarchical-zoom): Introducing orientation-preserving 1:4 triangle subdivision, internal mesh previews, collision-driven local pocket scaling, and representation-agnostic Soft-Simplex clustering.
- [Reusable Quality Gates & npm OIDC Trusted Publishing in a TS Monorepo](https://hackenberg.tech/simplex-viz/notes/reusable-quality-gates-oidc-publishing): Structuring GitHub Actions workflows so lint, typecheck, brand verification, publint, and NodeNext tests gate both GitHub Pages deployments and npm releases without duplicate runs.
- [Beyond Tags: Projecting Multi-Modal Embeddings onto Planar 60° Simplices](https://hackenberg.tech/simplex-viz/notes/beyond-tags-multimodal-simplex-projection): How SimplexViz clusters untagged image, audio, and latent vector collections via QAP mesh embedding and closed-form NNLS simplex projection.
- [Why Force-Directed Hairballs Fail: Guaranteed 0.0 px Overlap with SAT & OKLab](https://hackenberg.tech/simplex-viz/notes/zero-overlap-sat-oklab-architecture): Engineering notes on strict zero-dependency package boundaries, Separating Axis Theorem Minimum Translation Vectors, and perceptual OKLab color mixing.