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

athar-mcp

v0.2.3

Published

أثر — AI-powered programming lesson memory with spaced repetition. An MCP server that captures lessons from coding sessions and helps you never repeat the same mistake.

Downloads

800

Readme

Athar

Every mistake leaves a trace, every lesson leaves an impact.

Athar is an open-source, local-first MCP (Model Context Protocol) server designed to capture non-trivial software engineering lessons from your daily AI-assisted coding sessions. It operates silently in the background, intercepting teachable moments, storing them in a local SQLite database, and reinforcing long-term retention via a Spaced Repetition System (SM-2).

Node.js MCP License SQLite


What is Athar?

Athar (أثر) acts as an engineering memory system. By integrating natively with MCP-compatible IDEs (such as Antigravity IDE, Cursor, and VS Code), it bridges the gap between solving a bug and actually learning from it.

When you resolve a complex issue with your AI assistant, the AI evaluates the architectural or pedagogical value of the fix. If deemed valuable, the AI autonomously invokes Athar to capture the problem, root cause, code diffs, and review questions. Later, you can leverage Athar's built-in spaced repetition CLI or Nuxt 4 web dashboard to permanently commit these insights to memory.

Architecture

┌─────────────────────┐     stdio      ┌──────────────────┐
│   Antigravity IDE   │ ◄────────────► │   Athar MCP      │
│   (AI Assistant)    │   JSON-RPC     │   Server         │
└─────────────────────┘                └────────┬─────────┘
                                                │
                                       ┌────────▼─────────┐
                                       │   SQLite DB      │
                                       │   (local-first)  │
                                       │   ~/.local/share/│
                                       │   athar/lessons  │
                                       └────────┬─────────┘
                                                │
                                       ┌────────▼─────────┐
                                       │ CLI & Dashboard  │
                                       │ athar review     │
                                       │ athar dashboard  │
                                       └──────────────────┘

Features

  • MCP Integration: Native integration with standard MCP-compatible IDEs via stdio transport.
  • Autonomous Knowledge Capture: AI autonomously filters and saves high-value engineering lessons.
  • Quality Validation Pipeline: Automatic rejection of trivial modifications (e.g., typos, linting) and FTS5-based duplicate detection.
  • Spaced Repetition Engine: Built-in SuperMemo-2 (SM-2) algorithm calculates dynamic review intervals based on recall accuracy.
  • Visual Analytics Dashboard: A bundled, locally-served Nuxt 4 application offering side-by-side code diffs and mastery metrics.
  • Local-First & Privacy Preserving: Zero telemetry. 100% of your data remains on your local filesystem using node:sqlite.

Setup Guide

Requirements

  • Node.js: v20.0.0 or higher (Strict requirement for native node:sqlite).
  • IDE: Any MCP-compatible IDE.

1. Global Installation

Install the package globally via npm:

npm install -g athar-mcp

2. IDE Integration

To register the MCP server with your IDE, execute the automated setup command:

athar setup

This utility will locate your IDE configuration (e.g., mcp_config.json) and automatically inject the local server binary.

Critical: After running setup, restart your IDE or execute a refresh of your MCP servers list to guarantee the tools are registered in the LLM context.


Command Line Interface (CLI)

Athar is primarily managed via its robust CLI interface.

Active Review

To execute your daily spaced repetition session:

athar review

The CLI will sequentially prompt you with technical questions generated from past bugs. Grade your response accuracy (0-5) to inform the SM-2 scheduling algorithm.

Dashboard

Launch the visual web interface:

athar dashboard

This initiates a Nitro server on http://127.0.0.1:3333, providing access to your full lesson repository and analytics.

Data Management

  • athar status: Check pending review queues and mastery distribution.
  • athar list --language typescript --tag architecture: Search and filter your local engineering memory.

AI Heuristics: When are lessons saved?

The MCP server maintains strict system prompts instructing the IDE's AI assistant. Lessons are actively captured during:

  • Resolution of non-trivial logic bugs with identifiable root causes.
  • Correction of fundamental misconceptions regarding APIs or frameworks.
  • Identification of architectural anti-patterns or security vulnerabilities.

Lessons are intentionally bypassed for:

  • Syntax formatting or styling preferences.
  • Standard boilerplate generation.
  • Repetitive, previously mastered content.

License

MIT — Maintained by Ameen.