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

the-hub

v0.1.0

Published

A config-driven personal command center — index your workspaces, search everything, get AI-powered insights.

Readme

The Hub

A config-driven personal command center that indexes your workspaces and surfaces everything in a searchable, AI-augmented interface.

Point it at your directories. It scans your files, groups them by pattern, and gives you a morning briefing, document hygiene analysis, knowledge graphs, and full-text search — from your browser, terminal, or any AI tool via MCP.

Briefing

Quick Start

npx (fastest)

npx the-hub

First run creates hub.config.ts — edit it to add your workspace paths, then run again.

Git Clone

git clone https://github.com/ahmedkhaledmohamed/the-hub.git
cd the-hub && npm install
cp hub.config.example.ts hub.config.ts   # Edit with your workspace paths
npm run dev                              # Dev server on localhost:9001

Docker

git clone https://github.com/ahmedkhaledmohamed/the-hub.git
cd the-hub
cp hub.config.example.ts hub.config.ts   # Edit with your workspace paths
docker compose up -d
open http://localhost:9002

What It Does

  • Scans directories and builds a searchable catalog of artifacts (md, html, pdf, docx, json, yaml, code files, and more)
  • Full-text search powered by SQLite FTS5 — finds content deep inside documents, not just titles
  • Morning briefing with recent changes, stale docs, calendar events, and predictive insights
  • Document hygiene — detects duplicates, near-duplicates, stale docs, orphaned files
  • Knowledge graph — wiki-link relationships with interactive force-directed visualization
  • AI-powered Q&A — ask natural language questions about your workspace via RAG
  • Multi-model AI — works with Ollama (free, local), OpenAI, or Anthropic

AI Setup

The Hub works without AI, but it's better with it. Configure providers in Settings (/settings) or via environment variables:

Option 1: Ollama (free, local)

# Install from ollama.com, then:
ollama pull llama3
# The Hub auto-detects Ollama — no config needed

Option 2: Cloud API

Set in /settings page, or via environment:

# OpenAI
OPENAI_API_KEY=sk-...

# Anthropic
ANTHROPIC_API_KEY=sk-ant-...

Configuration

Everything lives in hub.config.ts (gitignored). See hub.config.example.ts for the full schema.

const config: HubConfig = {
  name: "My Hub",
  workspaces: [{ path: "~/Developer/my-project", label: "My Project" }],
  groups: [
    { id: "docs", label: "Docs", match: "my-project/docs/**", tab: "knowledge", color: "#3b82f6" },
  ],
  tabs: [
    { id: "knowledge", label: "Knowledge", icon: "book-open", default: true },
  ],
};

MCP Server (Claude Code / Cursor)

{
  "mcpServers": {
    "the-hub": {
      "command": "node",
      "args": ["/path/to/the-hub/bin/hub-mcp.js"]
    }
  }
}

23 tools including: workspace_summary, search, read_artifact, ask_question, get_decisions, get_hygiene, create_doc, compile_context, meeting_brief, and more.

Interfaces

| Interface | Description | |---|---| | Web UI | 14 pages: briefing, tabs, repos, hygiene, ask, graph, decisions, settings | | MCP Server | 23 tools, 4 resources, 5 prompts for AI assistants | | CLI | hub search, hub context, hub stale, hub status | | REST API | 60+ endpoints | | PWA | Installable, works offline |

Screenshots

Planning Tab

Planning

Document Hygiene

Hygiene

Universal Search (Cmd+K)

Command Palette

Connected Repos

Repos

Tech Stack

  • Next.js 15 (App Router, React 19, server components)
  • SQLite (better-sqlite3, FTS5 search, vector index)
  • Tailwind CSS v4 + Radix UI
  • MCP SDK for AI tool integration
  • chokidar for live file watching

Commands

npm run dev        # Dev server (Turbopack, port 9001)
npm run build      # Production build
npm start          # Production server (HTTP :9002, HTTPS :9001)
npm test           # Run tests
hub search <query> # CLI search
hub stale          # Show stale docs

License

MIT

Links