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

@terronex-dev/aifbin-recall

v0.1.0

Published

Local-first memory server for AI agents. Query AIF-BIN semantic memory files via HTTP/MCP.

Readme

AIF-BIN Recall

Local-first memory server for AI agents.

AIF-BIN Recall indexes collections of AIF-BIN semantic memory files and provides fast retrieval via HTTP API and MCP (Model Context Protocol) for AI agent integration.

Features

  • Semantic Search — Query memories by meaning using embedded vectors
  • Hybrid Retrieval — Combine vector similarity with keyword matching
  • MCP Server — Native integration with AI agents (Claude, OpenClaw, etc.)
  • HTTP API — RESTful endpoints for any client
  • Zero Cloud — Fully local, no external services required
  • Collection Management — Organize memories into logical groups

Requirements

  • Node.js 18+ or Bun 1.0+
  • npm, yarn, or pnpm

Installation

Linux / macOS

# Using npm (recommended)
npm install -g @terronex/aifbin-recall

# Using Bun
bun install -g @terronex/aifbin-recall

# Using yarn
yarn global add @terronex/aifbin-recall

# Using pnpm
pnpm add -g @terronex/aifbin-recall

Windows

# Using npm (recommended)
npm install -g @terronex/aifbin-recall

# Using yarn
yarn global add @terronex/aifbin-recall

# Using pnpm
pnpm add -g @terronex/aifbin-recall

From Source

git clone https://github.com/Terronex-dev/aifbin-recall.git
cd aifbin-recall
npm install
npm run build
npm link

Verify Installation

aifbin-recall --version
# Output: 0.1.0

Quick Start

# Index a directory of .aif-bin files
aifbin-recall index ./memories --collection my-project

# Start the server
aifbin-recall serve

# Search via CLI
aifbin-recall search "what decisions did we make about the API?"

# Or query the HTTP API
curl "http://localhost:3847/search?q=API+decisions&collection=my-project"

CLI Reference

| Command | Description | |---------|-------------| | aifbin-recall index <dir> | Index .aif-bin files from a directory | | aifbin-recall serve | Start the HTTP server | | aifbin-recall mcp | Start the MCP server for AI agents | | aifbin-recall search <query> | Search memories via CLI | | aifbin-recall collections | List all collections | | aifbin-recall info | Show database information |

Index Options

aifbin-recall index ./memories \
  --collection my-project \
  --recursive \
  --db ~/.aifbin-recall/custom.db

Serve Options

aifbin-recall serve \
  --port 3847 \
  --host 0.0.0.0

Search Options

aifbin-recall search "your query" \
  --collection my-project \
  --limit 10 \
  --model minilm

MCP Integration

Add AIF-BIN Recall to your AI agent's MCP config:

{
  "mcpServers": {
    "aifbin-recall": {
      "command": "aifbin-recall",
      "args": ["mcp"]
    }
  }
}

Available MCP tools:

| Tool | Description | |------|-------------| | recall_search | Semantic search across collections | | recall_get | Retrieve specific memories by ID | | recall_collections | List available collections | | recall_index | Add new files to a collection |

HTTP API

| Endpoint | Method | Description | |----------|--------|-------------| | /search | GET/POST | Semantic search with optional filters | | /recall/:id | GET | Retrieve specific memory chunk | | /collections | GET | List all collections | | /collections/:name | POST | Create/update collection | | /index | POST | Index directory of .aif-bin files | | /health | GET | Server health check |

Search Request

# GET request
curl "http://localhost:3847/search?q=your+query&collection=my-project&limit=10"

# POST request with options
curl -X POST http://localhost:3847/search \
  -H "Content-Type: application/json" \
  -d '{"query": "your query", "collection": "my-project", "limit": 10}'

Search Response

{
  "results": [
    {
      "id": "chunk-uuid",
      "text": "The matched text content...",
      "score": 0.89,
      "vectorScore": 0.92,
      "keywordScore": 0.85,
      "sourceFile": "/path/to/file.aif-bin",
      "chunkIndex": 0,
      "metadata": {}
    }
  ]
}

Configuration

Configuration file location: ~/.aifbin-recall/config.yaml

server:
  port: 3847
  host: localhost

index:
  path: ~/.aifbin-recall/index.db
  
search:
  default_limit: 10
  hybrid_weight: 0.7  # 0 = keywords only, 1 = vectors only

embedding:
  model: minilm  # Options: minilm, mpnet, bge-small, bge-base, e5-small

Embedding Models

AIF-BIN Recall uses local sentence-transformer models for query embedding:

| Model | Dimensions | Speed | Quality | |-------|-----------|-------|---------| | minilm | 384 | Fastest | Good (default) | | mpnet | 768 | Medium | Better | | bge-small | 384 | Fast | Good | | bge-base | 768 | Slower | Best | | e5-small | 384 | Fast | Good |

Models are downloaded automatically on first use and cached locally.

How It Works

  1. Indexing: AIF-BIN Recall reads .aif-bin files (created by AIF-BIN Pro) and extracts their embedded vectors and text chunks into a local SQLite database.

  2. Search: Queries are embedded using the same model, then matched against indexed vectors using cosine similarity. Optional BM25 keyword matching provides hybrid retrieval.

  3. Retrieval: Results include the original text, metadata, source file, and similarity scores — ready for RAG pipelines or direct AI consumption.

Part of the AIF-BIN Ecosystem

| Product | Description | |---------|-------------| | AIF-BIN | Core specification and SDKs (Python, TypeScript, Rust, Go, C#, Java, Swift, Kotlin) | | AIF-BIN Lite | Free CLI for basic .aif-bin file operations | | AIF-BIN Pro | Professional CLI with AI extraction and batch processing | | AIF-BIN Recall | Memory server for querying collections (you are here) | | Bot-BIN | Persistent memory for AI chatbots |

Contributing

Contributions are welcome! Please read our Contributing Guidelines before submitting a pull request.

License

MIT © 2026 Terronex

Trademarks

"AIF-BIN", "AIF-BIN Recall", "AIF-BIN Pro", and the Terronex name are trademarks of Terronex. The MIT license does not grant permission to use these trademarks. See NOTICE file for details.