@andespindola/brainlink 0.1.0-beta.81 → 0.1.0-beta.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -85,6 +85,7 @@ Legacy `.jsonl.gz` packs are upgraded to `.blpk` automatically on first search/c
85
85
  - Canvas graph rendering uses the same batched node and edge pipeline for every graph size, reducing per-frame draw calls while keeping selected and hovered items highlighted.
86
86
  - Large graph layout API automatically uses compact payload encoding with link-coverage-aware edge selection to reduce initial client load without hiding major relationships.
87
87
  - Large-segment layout spacing now grows logarithmically to keep initial visual density consistent between medium and very large vaults (for example, ~1k vs ~50k notes).
88
+ - Graph coordinates are visually compacted across graph sizes so reset starts from a stable macro mass and zoom-in progressively expands toward local detail.
88
89
  - Zoomed-out graph LOD clusters dense regions and progressively expands the focused viewport as zoom increases, including very large vaults.
89
90
  - Graph reset starts in macro "galaxy" overview mode and progressively reveals nearby nodes as zoom increases, including smaller vaults.
90
91
  - Graph filtering runs in a dedicated browser worker to keep the UI thread responsive during heavy datasets.
@@ -596,6 +597,7 @@ The graph UI shows:
596
597
  - double-click on canvas zooms in at cursor position
597
598
  - floating graph totals (notes, links, tags) below the Brainlink title
598
599
  - graph rendering safeguards (batched canvas drawing across graph sizes, edge draw caps, lower redraw rate, zoom-aware interaction)
600
+ - compact macro-to-micro density progression so reset keeps the graph mass oriented and zoom-in separates local neighborhoods progressively
599
601
  - massive-graph LOD progression: very low zoom uses spatial overview sampling plus hub-neighborhood edge previews to preserve whole-vault shape and orientation, then progressively raises the focused node budget as zoom increases so dense local areas keep nearby notes and links visible
600
602
 
601
603
  The server indexes before starting by default. Use `--no-index` to skip that step:
@@ -1379,10 +1379,10 @@ const ensureHubNodesInRenderedSet = (nodes) => {
1379
1379
  }
1380
1380
 
1381
1381
  const zoomCapByNodeCount = (nodeCount) => {
1382
- if (nodeCount > 50000) return 2.6
1383
- if (nodeCount > 20000) return 2.35
1384
- if (nodeCount > 6000) return 2.1
1385
- if (nodeCount > 2000) return 2.2
1382
+ if (nodeCount > 50000) return 5.4
1383
+ if (nodeCount > 20000) return 4.8
1384
+ if (nodeCount > 6000) return 4.2
1385
+ if (nodeCount > 2000) return 4
1386
1386
  return zoomRange.max
1387
1387
  }
1388
1388
 
@@ -1541,10 +1541,15 @@ const focusPrimaryHub = () => {
1541
1541
  }
1542
1542
 
1543
1543
  const layoutDensityScaleForNodeCount = (nodeCount) => {
1544
- if (nodeCount > 50000) return 0.56
1545
- if (nodeCount > 20000) return 0.64
1546
- if (nodeCount > 6000) return 0.76
1547
- return 1
1544
+ if (nodeCount > 50000) return 0.26
1545
+ if (nodeCount > 20000) return 0.3
1546
+ if (nodeCount > 6000) return 0.36
1547
+ if (nodeCount > 2000) return 0.42
1548
+ if (nodeCount > 600) return 0.5
1549
+ if (nodeCount > 180) return 0.58
1550
+ if (nodeCount > 60) return 0.68
1551
+ if (nodeCount > 20) return 0.78
1552
+ return 0.88
1548
1553
  }
1549
1554
 
1550
1555
  const createLayout = graph => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andespindola/brainlink",
3
- "version": "0.1.0-beta.81",
3
+ "version": "0.1.0-beta.82",
4
4
  "description": "Local-first knowledge memory for agents with Markdown, backlinks, indexing and context retrieval.",
5
5
  "type": "module",
6
6
  "license": "MIT",