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

@hagione/hgm

v0.3.1

Published

HaGi Mind project memory layer for AI agents

Readme

HGM - HaGi Mind

Project memory layer for AI agents.

hgm creates a portable .hagi-mind/ folder inside any project so AI agents and IDE assistants can record decisions, changes, sessions, and durable project context.

Quick use

Preferred package name after publish:

npx -y hgm add .

Fallback package name if hgm is unavailable:

npx -y @hagione/hgm add .

Local development:

npm install
npm run build
node dist/cli.js add . --lang vi --mode light --qmd if-present --yes

Core commands

User-facing:

hgm add <project>
hgm status
hgm search "query"
hgm doctor
hgm qmd status
hgm qmd sync

Agent-facing:

hgm remember "Project uses Next.js App Router"
hgm decision "Use light mode for MVP because QMD is optional"
hgm change "Added script-first workflow stage"
hgm task "Implement qmd sync wrapper"
hgm done "Implemented CLI MVP"
hgm session start
hgm session end --summary "Finished baseline audit"

Design decisions

  • Primary npm package: hgm
  • Fallback npm package: @hagione/hgm
  • Binary: hgm
  • Main command: hgm add <project>
  • Storage: project-local .hagi-mind/
  • QMD: optional external integration, not bundled
  • Display language: selected first in wizard, saved as vi or en
  • AI-agent-first: agents proactively record context after the project is added

.hagi-mind/ structure

.hagi-mind/
├── config.json
├── manifest.json
├── index.md
├── log.md
├── agent.md
├── memories.jsonl
├── sessions/
├── decisions/
├── changes/
├── tasks/
├── audits/
├── baselines/
├── qmd/
├── cache/
└── tmp/

MVP scope

Phase 1 implements:

  • TypeScript npm CLI skeleton
  • hgm add
  • hgm status
  • agent write commands: remember, decision, change, task, done
  • session start/end
  • qmd status
  • local file-backed memory

Phase 2 implements:

  • QMD sync/index wrapper via hgm qmd sync
  • hgm search with local memory fallback
  • hgm search --qmd wrapper around qmd query

Phase 3 should implement:

  • hgm ask
  • model/mode management
  • package publish workflow