Files
modules/indexes-search/hyper-spatial-index
Raven ScottandCursor 55339b3536 feat(modules): manual deepen OTA, CRDTs, economy, trust, spatial index
OTA phases remaining, PN counter reset, map clear, marketplace counts,
auction bid helpers, multisig missing signatures, spatial clearLocal.

Co-authored-by: Cursor <[email protected]>
2026-05-21 02:36:05 -04:00
..
2026-05-20 21:02:45 -04:00
2026-05-20 21:02:45 -04:00
2026-05-20 21:02:45 -04:00
2026-05-20 21:02:45 -04:00
2026-05-21 00:07:44 -04:00
2026-05-20 21:02:45 -04:00
2026-05-20 21:02:45 -04:00
2026-05-20 23:36:32 -04:00

hyper-spatial-index

Novel Spatial Index for P2P: - Uses a simple but effective quadtree-inspired grid persisted in Hyperbee - Supports insert, range query, nearest neighbor - Integrates with Hyperswarm for peer location announcements

Category: Indexes & search

Composes with: hyper-p2p-semantic-vector-index, hyper-p2p-intent-router

Protocol: hyper-spatial-index/v1

When to use

Geo-fenced queries, nearest-neighbor search in apps and demos.

When not to use

Distributed spatial sharding (use intent-router + app-specific partitioning).

Quick start

const { SpatialIndex } = require('hyper-spatial-index')
const topic = process.argv[2] // 64-char hex or string
const mod = new SpatialIndex({ topic, gridSize: 1000 })
await mod.ready()
// ... application logic ...
await mod.close()

Docs

Test

npm install && npm test