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

@memlink/cli

v2.0.1

Published

Memlink — MCP server for persistent AI agent memory. Self-hosted, one URL, no cloud.

Readme


Memlink is a self-hosted MCP server that gives AI agents persistent, organized memory. One install, one URL, any agent connects — Devin Desktop, Cursor, Windsurf, Claude Code, or any MCP-compatible HTTP client.

Installation

npm install -g @memlink/cli

Requires Node.js 18+ or Bun 1.0+.

From source:

git clone https://github.com/rblez/memlink.git
cd memlink && bun install && npm run build

Quick Start

memlink serve --daemon          # Start server in background
memlink serve --status          # Verify it's running

Configure your agent with http://localhost:4444/mcp (see below).

Connecting an Agent

Add this JSON to your agent's MCP configuration:

{
  "mcpServers": {
    "memlink": {
      "type": "http",
      "url": "http://localhost:4444/mcp"
    }
  }
}

Devin Desktop → Settings → MCP Servers Cursor → Settings → MCP Windsurf → ~/.codeium/windsurf/mcp_config.json Claude Code → MCP_SERVERS_CONFIG env var or .mcp.json Codex CLI → ~/.codexclirc or project .codexclirc

After connecting, agents discover the memory_read, memory_edit, memory_search, and memory_sync tools automatically. Start every new session by calling memory_read to load stored context.

Commands

| Command | Description | |---------|-------------| | memlink | Show server URL, memory stats, and daemon status | | memlink serve | Start the MCP server | | memlink serve --daemon | Run in background | | memlink serve --stop | Stop the daemon | | memlink serve --status | Show server status + stats |

No CRUD commands — all memory operations happen through the MCP tools.

MCP Tools

| Tool | Description | |------|-------------| | memory_read | Read index or a specific entry (id?, title?, full?) | | memory_edit | Create or update an entry (title, content, tags?) | | memory_search | Search entries by query | | memory_sync | Memory stats (count, size, last updated) |

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | MEMLINK_DIR | ~/.memlink | Data directory | | MEMLINK_PORT / PORT | 4444 | Server port | | MEMLINK_HOST / HOST | localhost | Server host | | MEMLINK_NO_COLOR | — | Disable colored output |

Data Layout

~/.memlink/
├── settings.json          # Global config
├── .serve.pid             # Daemon PID
└── default/               # Memory (auto-created)
    ├── meta.json          # Memory metadata
    ├── index.json         # Entry index (titles, tags, timestamps)
    ├── 1.md, 2.md, ...    # Entries with YAML frontmatter
    └── .backups/          # Timestamped backups on every write

Robustness

  • Atomic writes — .tmp + renameSync(), no partial writes
  • Auto-backups — every mutation backed up to .backups/
  • File lock — concurrent writes serialized via .lock with TTL + retry
  • Health ticker — 30s heartbeat written to .health
  • Rate limiting — 1000 req/min per IP

Development

bun install          # Install dependencies
npm run build        # Build CLI + server
npm run dev:server   # Server with hot reload
npm run dev:cli      # CLI dev mode
npm run test         # Run tests
npm run lint         # ESLint
npm run format       # Prettier

Project Structure

src/
├── cli/index.ts        # CLI entrypoint (commander)
├── cli/output.ts       # Colors, badges, branding
├── cli/daemon.ts       # Detached spawn (Windows VBScript)
├── server/index.ts     # MCP server (Express + MCP SDK)
└── core/
    ├── storage.ts      # Entry CRUD, atomic writes, backups
    ├── meta.ts         # Per-memory meta.json
    ├── routing.ts      # Default memory route
    ├── health.ts       # Daemon heartbeat
    ├── lock.ts         # File lock with TTL
    ├── memory.ts       # Config + CLI helpers
    └── types.ts        # Types, constants, MEMLINK_VERSION
tests/                  # memory, server, unit, vbscript

License

Apache License 2.0 — see LICENSE.