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

@zircote/subcog

v0.14.7

Published

A persistent memory system for AI coding assistants

Readme

@zircote/subcog

A persistent memory system for AI coding assistants.

Installation

# Using npm
npm install -g @zircote/subcog

# Using npx (run without installing)
npx @zircote/subcog --help

# Using pnpm
pnpm add -g @zircote/subcog

# Using yarn
yarn global add @zircote/subcog

Usage

# Show help
subcog --help

# Check version
subcog --version

# Capture a memory
subcog capture --namespace learnings "Important learning about X"

# Search memories
subcog search "query terms"

# Start MCP server
subcog mcp serve

Supported Platforms

| Platform | Architecture | Binary | |----------|--------------|--------| | macOS | Intel (x86_64) | Pre-built | | macOS | Apple Silicon (arm64) | Pre-built | | Linux | x86_64 (glibc) | Pre-built | | Linux | x86_64 (musl/Alpine) | Pre-built | | Linux | ARM64 | Pre-built | | Windows | x64 | Cargo fallback |

Security & Transparency

Postinstall Script

This package includes a postinstall script that automatically downloads and installs the appropriate pre-built binary for your platform. This is a common pattern used by packages like esbuild, turbo, and prisma that distribute native binaries via npm.

What the postinstall script does:

  1. Detects your platform and architecture
  2. Downloads the matching pre-built binary from GitHub Releases
  3. Verifies the download using SHA256 checksums
  4. Extracts the binary to node_modules/@zircote/subcog/bin/
  5. Falls back to cargo install if download fails

Security measures:

  • Source code is open: View postinstall.js
  • Checksum verification: SHA256 checksums verify binary integrity
  • Official releases only: Downloads only from GitHub Releases
  • No arbitrary code execution: Script only downloads and extracts binaries
  • Transparent operations: All network requests are logged
  • Opt-out available: Use SUBCOG_SKIP_INSTALL=1 to skip installation

To skip the postinstall script:

# Skip automatic installation
SUBCOG_SKIP_INSTALL=1 npm install -g @zircote/subcog

# Then provide your own binary
export SUBCOG_BINARY_PATH=/path/to/your/subcog
npm install -g @zircote/subcog

To audit the installation process:

# Review the postinstall script source on GitHub
# https://github.com/zircote/subcog/blob/main/npm/scripts/postinstall.js

# Or view it locally after installation
cat node_modules/@zircote/subcog/scripts/postinstall.js

Installation Methods

This package uses a multi-tier installation strategy:

  1. Pre-built binaries (fastest): Downloads from GitHub Releases with checksum verification
  2. cargo install (fallback): Builds from crates.io if binary unavailable
  3. cargo install --git (last resort): Builds from source repository

Environment Variables

| Variable | Description | |----------|-------------| | SUBCOG_SKIP_INSTALL | Set to 1 to skip binary installation | | SUBCOG_BINARY_PATH | Path to a custom binary location |

Alternative Installation Methods

Homebrew (macOS)

brew tap zircote/tap
brew install subcog

Cargo (Rust)

cargo install subcog

From Source

cargo install --git https://github.com/zircote/subcog.git

Troubleshooting

Binary not found after installation

If you see "subcog binary not found" errors:

  1. Try reinstalling:

    npm uninstall -g @zircote/subcog
    npm install -g @zircote/subcog
  2. Check if Rust is installed for fallback compilation:

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  3. Download the binary manually from GitHub Releases

Network issues during installation

If you're behind a proxy or firewall:

  1. Set the SUBCOG_SKIP_INSTALL=1 environment variable
  2. Download the binary manually
  3. Set SUBCOG_BINARY_PATH to the binary location

License

MIT

Links