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

@kovartravis/neuron

v1.2.1

Published

Local-only agent memory store CLI

Readme

neuron

Local semantic memory store for AI coding agents, powered by local vector embeddings and SQLite.

Platforms: macOS, Linux, Windows

npm version License: MIT

Neuron provides a persistent, structured memory for coding agents. It helps agents retain project-specific instructions, conventions, and task history across sessions without external API calls or database configurations.


⚡ Quick Start

# Install neuron CLI globally
npm install -g @kovartravis/neuron

# Initialize in YOUR project (creates AGENTS.md)
cd your-project
neuron init

# Check the status of your local database and cache
neuron status

neuron init creates or updates AGENTS.md by default so agents can discover the neuron workflow.

If your agent is not covered by automatic discovery, add this minimal AGENTS.md section:

This project uses @kovartravis/neuron for persisting learnings and task history.

- Before starting a task, run `neuron learn query "<query matching current task>"` to retrieve past project conventions.
- After completing a task, log it with `neuron history add "<summary of what was built/fixed>" --tags <related-topics>`.
- Save new conventions with `neuron learn add "<new rule/learning established>" --tags <topic>`.

🛠 Features

  • SQLite-Powered: Version-controlled SQLite database locally on disk. One isolated file per project, automatically keyed by hashing the project's root path.
  • Transformers.js Local Model: Uses Xenova/bge-small-en-v1.5 (quantized Q8, ~34 MB) for zero-config, 100% offline embedding generation. Downloads and caches locally on first use.
  • Dot-Product Similarity: Performs fast dot-product similarity searches in pure JS (< 1 ms search latency for under 10,000 rows).
  • Watermark Consolidation: Stable, sequential, rowid-based history consolidation to safely query unread history and advance cursors.
  • CLI-Ready Output: Structured JSON outputs designed specifically for programmatic AI parsing.

📖 Essential Commands

Learnings Namespace (Durable Rules)

| Command | Action | | --- | --- | | neuron learn add "insight" | Store a new project learning/rule. | | neuron learn query "query" | Semantically search learnings. | | neuron learn list | List all learnings. | | neuron learn delete <id> | Delete a learning by ID. |

History Namespace (Action Logs)

| Command | Action | | --- | --- | | neuron history add "summary" | Log an agent action with optional --task-id <id> and --tags <tag,...>. | | neuron history query "query" | Semantically search history. | | neuron history list | List recent history logs. | | neuron history delete <id> | Delete a history log. | | neuron history consolidate | Get unread logs & advance cursor. |


🔗 Technical Architecture

  • Database Location: Database files are stored under ~/.local/share/neuron/db/ (resolves to OS-correct directory using env-paths).
  • Model Cache: Embedding models are stored under ~/.local/share/neuron/models/. Once the ONNX binary is detected, it automatically enforces env.allowRemoteModels = false to run entirely offline.
  • Idempotent Scaffolding: neuron init checks if the ## Memory Store block already exists, updating it in-place to avoid duplication.
  • WAL Mode: SQLite runs in Write-Ahead Logging (journal_mode = WAL) to handle concurrent database accesses and minimize contention.

License

MIT © Travis Kovar