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

memrant

v0.1.0

Published

The context layer for agent-operated products

Downloads

100

Readme

memrant

The context layer for agent-operated products.

Give your AI agents memory. Log decisions, compile session context, detect stale records, route tasks, enforce specs. One SQLite file. Works offline.

memrant.vercel.app

Install

npm install -g memrant

Quick Start

cd your-project
memrant init --with-specs                 # create ledger + starter spec docs
memrant setup claude-code                 # auto-configure MCP server
memrant log --type decision --content "Chose Express over Fastify — team familiarity"
memrant session start --epic "Auth v2"    # compiled context from previous sessions
memrant recall "API framework choice"     # semantic search across all records
memrant session close --log "Shipped auth flow, added rate limiting"

What It Does

Decision Ledger

Append-only records with vector embeddings. Decisions, framework fixes, spec snapshots — all semantically searchable. Exports to markdown and JSON.

Session Lifecycle

memrant session start compiles everything: last session's log, open TODOs, relevant decisions, framework fixes, spec constraints. The "3-week Monday morning" test — full context without opening a browser tab.

Staleness Detection

Codebase snapshots track file hashes. When a file changes after a decision was logged about it, that record is flagged [stale] in recall and session context.

Model Orchestrator

Three tiers: triage (Haiku), analysis (Sonnet), build (Opus). Each gets tier-appropriate context. Status checks get 500 tokens. Build tasks get the full compiled context. Triage from Telegram.

Spec Governor

Copy audits catch banned phrases. Design system checks catch banned components. Persona tests verify features against named scenarios. memrant lint runs in CI with file:line output.

Commands

| Command | Description | |---------|-------------| | memrant init | Initialise a new project | | memrant init --with-specs | Init with starter spec documents | | memrant setup claude-code | Auto-configure MCP server for Claude Code | | memrant setup codex | Auto-configure MCP server for Codex | | memrant instructions | Output agent instructions for your project | | memrant log | Log a decision, framework fix, or spec snapshot | | memrant recall | Semantic search across all records | | memrant session start | Start a session with compiled context | | memrant session close | Close session with a log entry | | memrant session status | Show active session info | | memrant snapshot | Take a codebase snapshot | | memrant snapshot --diff | Show changes since last snapshot | | memrant ask | Route a question through the model orchestrator | | memrant export | Export ledger to markdown or JSON | | memrant specs | List registered spec documents | | memrant check-copy | Run copy audit against spec | | memrant check-design | Check for banned components | | memrant test-persona | Run persona tests against a feature | | memrant lint | Run all spec checks (CI-friendly) | | memrant serve | Start MCP server |

MCP Server

memrant exposes 6 tools via MCP (stdio transport):

  • memrant_log — Log a record
  • memrant_recall — Semantic search
  • memrant_session_context — Get compiled session context
  • memrant_status — Project status
  • memrant_check_copy — Copy audit
  • memrant_check_design — Design system validation

Auto-configure with memrant setup claude-code or memrant setup codex. Works with any MCP-compatible agent.

Stack

  • TypeScript, Node.js (ESM)
  • SQLite via better-sqlite3
  • Local vector embeddings via @xenova/transformers (all-MiniLM-L6-v2)
  • CLI via Commander.js
  • MCP server via @modelcontextprotocol/sdk
  • 183 tests via vitest

Development

git clone https://github.com/peureka/memrant.git
cd memrant
npm install
npm run build
npm test

Documentation

License

MIT