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

ex-brain

v0.2.6

Published

CLI personal knowledge base powered by seekdb

Readme

ex-brain

CLI personal knowledge base built on seekdb, featuring page management, hybrid search, timelines, tags, import/export, and MCP Server.

Demo

Core Features

  • Knowledge Graph Visualization - Interactive graph showing entity relationships
  • Intelligent Compilation - Semantic analysis with smart Compiled Truth updates
  • Timeline Management - Automatic event extraction and history tracking
  • Hybrid Search - Full-text search + vector semantic queries
  • Entity Linking - Auto-detect entities and create linked pages

Data Collection

We recommend MarkSnip for data collection:

  • One-click web clipping to Markdown format
  • Supports code blocks, tables, math formulas
  • Local processing, privacy-friendly
  • Obsidian integration support

Use with ex-brain:

# After clipping with MarkSnip, import to knowledge base
cat article.md | ebrain put articles/slug --stdin

# Or intelligent compilation
ebrain compile companies/river-ai --file article.md --source web_clip

Installation

# Global installation (requires Bun or Node.js)
bun install -g ex-brain
# or
npm install -g ex-brain

ebrain --help

Quick Start

# Initialize (creates ~/.ebrain/data/ebrain.db automatically)
ebrain init

# Write a page
ebrain put my/note --file note.md

# Knowledge graph visualization
ebrain graph                    # Start graph Web UI (http://localhost:3000)
ebrain graph --port 8080 --open # Custom port and auto-open browser

# Intelligently compile new information
ebrain compile companies/river-ai "River AI completed Series A funding" --source meeting_notes

# Extract timeline events from a page
ebrain timeline extract companies/river-ai

# Search
ebrain search "some topic"
ebrain query "some question"

# AI-powered Q&A with LLM (RAG)
ebrain query --llm "What is the main idea of River AI's product?"
ebrain query --llm "What are Mario Zechner's main views on game development?"

# Smart ingest: compile + timeline + entity links in one command
ebrain smart-ingest companies/river-ai --file article.md

# Start MCP Server (for AI tool integration)
ebrain serve

Configuration

Edit ~/.ebrain/settings.json:

{
  "db": { "path": "~/.ebrain/data/ebrain.db" },
  "embed": {
    "provider": "hash",          // or "openai_compatible"
    "baseURL": "...",
    "model": "...",
    "dimensions": 1024,
    "apiKey": "sk-..."
  },
  "llm": {
    "baseURL": "https://dashscope.aliyuncs.com/compatible-mode/v1",
    "model": "qwen-plus",
    "apiKey": "sk-..."
  },
  "extraction": {
    "confidenceThreshold": 0.7   // Entity extraction confidence (0~1)
  }
}

Run ebrain config to view active configuration. See docs/ebrain-cli.md for details.

AI Q&A (RAG)

Ask natural language questions and get answers based on your knowledge base:

# Basic Q&A
ebrain query --llm "What is the main idea of River AI's product?"

# Control context depth
ebrain query --llm "What happened in Q4?" --context-limit 3

How it works:

  1. Semantic Search — Finds top matching pages for your question
  2. Multi-Layer Context Collection — Builds rich context from:
    • Page Content — Compiled truth + timeline for each matched page
    • Raw Documents — Original imported documents (via raw set)
    • Linked Pages — Incoming and outgoing linked pages, filtered by semantic relevance to the question
  3. LLM Synthesis — Generates a sourced answer with [[slug|title]] citations

Configure LLM in ~/.ebrain/settings.json:

{
  "llm": {
    "baseURL": "https://dashscope.aliyuncs.com/compatible-mode/v1",
    "model": "qwen-plus",
    "apiKey": "sk-..."
  }
}

Development

bun install
bun run src/cli.ts --help
bun test