npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

llamaindex-hyperspace

v3.0.7

Published

LlamaIndex integration for HyperspaceDB

Readme

LlamaIndex Hyperspace Integration: Spatial AI Memory Suite (JS/TS)

NPM Version License

Give your JS/TS agents a high-performance spatial memory.

This is the official LlamaIndex integration for HyperspaceDB — the high-performance multi-geometry vector database designed for Autonomous Agents, Robotics, and Continuous Learning.

🧠 Beyond RAG: Spatial AI Engine

Traditional vector databases were built for static chatbots. HyperspaceDB is built to model human cognition and episodic memory:

  • Fractal Knowledge Graphs: Euclidean vectors fail at hierarchies. Our native Poincaré & Lorentz models (Hyperbolic geometry) compress massive trees (like codebases or taxonomies) into small, semantically dense vectors, reducing RAM usage by 50x.
  • Memory Reconsolidation: AI agents need to "sleep" and organize memories. Use our built-in Flow Matching and Riemannian Math (Fréchet mean, parallel transport) natively to dynamically shift and prune vectors.
  • Edge-to-Cloud Integration: Web-agents and robotics and humanoid robots can't wait for cloud latency. Use the Merkle Tree Delta Sync protocol to handshakes episodic memory chunks between the client (WASM/Local) and Cloud.
  • Lock-Free Performance: Built with Rust. Achievement up to 12,000 Search QPS with near-zero latency, even under massive concurrent agent workloads.

📦 Installation

npm install llamaindex-hyperspace llamaindex hyperspace-sdk-ts

🛠 Usage

Hyperbolic Memory Initialization (Poincaré Ball)

import { HyperspaceVectorStore } from "llamaindex-hyperspace";
import { HyperspaceClient } from "hyperspace-sdk-ts";

const client = new HyperspaceClient("localhost:50051", "YOUR_API_KEY");

const vectorStore = new HyperspaceVectorStore({
    client,
    collectionName: "agent_spatial_memory",
    metric: "lorentz", // Use hyperbolic geometry for hierarhical data
    dimension: 64,      // semantically dense
});

Advanced Spatial Pruning (Geometric Search)

Go beyond similarity. Prune memories using spatial regions:

// Use in ball (center + radius) to prune semantic space
const results = await vectorStore.query({
    queryVector: [0.1, -0.4, ...],
    filters: {
        location: {
            $in_ball: {
                center: [0.12, -0.45, ...],
                radius: 0.15
            }
        }
    }
});

📡 Edge-Cloud Delta Sync Handshake

Identify memory drift and sync with the Cloud using Merkle-XOR buckets:

// 1. Handshake: Send local 256 bucket hashes
const { diffBuckets } = await client.syncHandshake(collection, localBuckets);

if (diffBuckets.length > 0) {
    // 2. Pull only the modified/missing buckets
    const stream = client.syncPull(collection, diffBuckets);
}

📖 Documentation

📄 License

Apache-2.0. Copyright © 2026 YARlabs.