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

@glossick/akasha

v0.9.23

Published

A minimal, developer-friendly GraphRAG library with multi-tenant support

Readme

Akasha

Transform text into knowledge graphs. Query by meaning, not keywords.

⚠️ Runtime Requirement: Akasha currently requires the Bun runtime (v1.1.26 or later). Node.js compatibility is in progress.

bun add @glossick/akasha

What if your application could understand?

import { akasha } from '@glossick/akasha';

// Mix and match providers - OpenAI embeddings with Anthropic LLM
const kg = akasha({
  database: {
    type: 'neo4j',
    config: {
      uri: 'bolt://localhost:7687',
      user: 'neo4j',
      password: 'password',
    },
  },
  providers: {
    embedding: {
      type: 'openai',
      config: {
        apiKey: process.env.OPENAI_API_KEY!,
        model: 'text-embedding-3-small',
      },
    },
    llm: {
      type: 'anthropic', // or 'openai', 'deepseek'
      config: {
        apiKey: process.env.ANTHROPIC_API_KEY!,
        model: 'claude-3-5-sonnet-20241022',
      },
    },
  },
  scope: {
    id: 'my-project',
    type: 'project',
    name: 'My Project',
  },
});

await kg.initialize();

// Feed it knowledge
await kg.learn('Alice works for Acme Corp. Bob works for TechCorp. Alice knows Bob.');

// Ask anything
const result = await kg.ask('What is the relationship between Alice and Bob?');
console.log(result.answer);

React to knowledge as it forms

// Watch the graph grow
kg.on('entity.created', async (event) => {
  if (event.entity.label === 'Company') {
    // Enrich automatically
    const data = await fetchCompanyData(event.entity.properties.name);
    await kg.updateEntity(event.entity.id, { properties: data });
  }
});

// Track what matters
kg.on('relationship.created', (event) => {
  analytics.track('relationship_created', {
    type: event.relationship.type,
    scope: event.scopeId,
  });
});

// Build reactive workflows
kg.on('learn.completed', async (event) => {
  await notifyTeam(event.result?.entities.length);
  await updateDashboard(event.result);
});

Query across time and context

// What was true then?
const historical = await kg.ask('Who worked at Acme Corp?', {
  validAt: new Date('2023-01-01'),
});

// What's true now?
const current = await kg.ask('Who works at Acme Corp?');

// Search specific knowledge sources
const handbook = await kg.ask('What is company policy?', {
  contexts: ['handbook'],
});

// Combine multiple sources
const comprehensive = await kg.ask('What do we know about Alice?', {
  contexts: ['handbook', 'interviews', 'meetings'],
});

Define your own reality

const customOntology = {
  entityTypes: [
    {
      label: 'Customer',
      description: 'A customer who makes purchases',
      requiredProperties: ['email', 'name'],
    },
    {
      label: 'Product',
      description: 'A product for sale',
      requiredProperties: ['sku', 'name'],
    },
  ],
  relationshipTypes: [
    {
      type: 'PURCHASED',
      description: 'Customer purchased a product',
      from: ['Customer'],
      to: ['Product'],
    },
  ],
};

const kg = akasha({
  database: { /* ... */ },
  extractionPrompt: customOntology,
});

// Now it understands your domain
await kg.learn('John Doe purchased an iPhone 15.');

Isolate. Scale. Deploy.

// Each tenant gets their own knowledge space
function createTenantKG(tenantId: string) {
  return akasha({
    database: { /* ... */ },
    providers: {
      embedding: {
        type: 'openai',
        config: {
          apiKey: process.env.OPENAI_API_KEY!,
          model: 'text-embedding-3-small',
        },
      },
      llm: {
        type: 'deepseek', // Cost-effective option
        config: {
          apiKey: process.env.DEEPSEEK_API_KEY!,
          model: 'deepseek-chat',
        },
      },
    },
    scope: {
      id: `tenant-${tenantId}`,
      type: 'tenant',
      name: `Tenant ${tenantId}`,
    },
  });
}

// Process thousands of documents
await kg.learnBatch(documents, {
  onProgress: (progress) => {
    console.log(`${progress.completed}/${progress.total} processed`);
  },
});

Features

  • Semantic Search - Find by meaning, not keywords
  • Event System - React to graph changes in real-time
  • Multi-Tenancy - Isolated knowledge spaces
  • Temporal Queries - Ask "what was true then?"
  • Custom Ontologies - Define your domain
  • Batch Processing - Scale to millions of documents
  • Type-Safe - Full TypeScript support

Requirements

  • Bun runtime (v1.1.26+) - Required
  • Database: Neo4j (v5.0+) or LadybugDB (via lbug package)
  • Provider API Keys:
    • Embeddings: OpenAI (required) - ⚠️ Only OpenAI is supported for embeddings
    • LLM: OpenAI, Anthropic, or DeepSeek (choose one)

Documentation

License

Apache License 2.0