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

@reneza/akb-core

v0.1.2

Published

Adapter-agnostic core for Agentic Knowledge Base — retrieval (RRF parallel fan-out), corpus cache, bench harness, usage logging, adapter interface

Readme

@reneza/akb-core

Agent-side retrieval that fans out three retrievers in parallel and votes on the result. Hybrid (dense + sparse via RRF), keyword, and notes-find run concurrently against a shared cached corpus. The merged top-K comes back with sources: [...] provenance — multi-source agreement = high confidence.

The adapter-agnostic core of Agentic Knowledge Base — a Karpathy-style LLM wiki framework with pluggable storage adapters.

Why this exists

Pure semantic search (nomic-embed via qdrant) underweights short titles — a doc titled simply ffmpeg doesn't surface for "ffmpeg commands". Pure keyword search misses paraphrased queries. Hybrid retrieval fused via Reciprocal Rank Fusion gets you 60% top-1 / 80% recall@5 on agent-issued queries versus 20% / 40% for dense alone (n=5 micro-bench, see repo).

Built for agents that read top-K, not humans that read top-1.

Install

npm install @reneza/akb-core

You'll typically pair it with a storage adapter — see @reneza/akb-adapter-ticktick for the reference implementation, or write your own adapter against the 6-method interface.

What you get

  • Parallel retrieval — fan-out + RRF fusion, deadline-bounded, provenance-tagged results
  • Corpus cache — disk-backed, 5-min TTL, sub-100ms warm latency
  • Usage logger — every retrieval call writes one JSONL line for later analysis
  • Bench harness — Q/A pairs you author, scored by hit@1 / recall@5 / MRR per tag bucket
  • Adapter interface + validator — JSDoc types for the contract every storage adapter implements

Quick example

import { validateAdapter } from '@reneza/akb-core';
import adapter from '@reneza/akb-adapter-ticktick';

validateAdapter(adapter);
// adapter is now ready to plug into core.find / core.get / core.url

Adapter contract (six methods, three optional)

interface KnowledgeAdapter {
  listProjects(): Promise<Project[]>
  listTasksInProject(projectId: string): Promise<Task[]>
  getTask(projectId: string, taskId: string): Promise<Task>
  createTask(input: TaskInput): Promise<Task>
  updateTask(projectId: string, taskId: string, patch: TaskPatch): Promise<Task>
  urlFor(ref: { projectId: string, taskId: string }): string

  // Optional — core uses if present, falls back if not:
  searchByQuery?(query: string): Promise<Task[]>
  bulkFetch?(): Promise<Task[]>
  embeddings?(texts: string[]): Promise<number[][]>
}

Full spec at docs/adapter-interface.md.

Repo + write-up

  • Repo: https://github.com/renezander030/agentic-knowledge-base
  • Article: https://renezander.com/blog/agentic-knowledge-base/
  • Quick gist: https://gist.github.com/renezander030/c7bd6d5c4088e24d3add043720284453

License

MIT