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

kern-agent

v1.0.0

Published

KERN terminal agent — captures shell commands and syncs them to your KERN dashboard

Readme

kern agent

Terminal plugin for the KERN developer behavioral intelligence platform.

Captures every command you run, classifies it by activity type (CODING, DEBUGGING, TESTING, DEVOPS, RESEARCHING), buffers it locally in SQLite, and syncs it to your KERN dashboard.


Install

npm install -g @kern/agent

Requires Go 1.21+ — the postinstall script compiles a native binary for your platform.


Quick start

# 1. Inject shell hooks
kern init

# 2. Restart your shell (or source the config)
source ~/.zshrc   # zsh
source ~/.bashrc  # bash
exec fish         # fish

# 3. Work normally — kern captures everything in the background

# 4. Check your local buffer
kern status

# 5. Configure your KERN endpoint
kern config --endpoint https://your-kern.replit.app/api

# 6. Sync to dashboard
kern sync

# 7. (Optional) Run a background sync daemon
nohup kern daemon &

Commands

| Command | Description | |---|---| | kern init | Inject shell hooks into zsh / bash / fish | | kern status | Show local buffer stats and recent events | | kern sync | Flush buffered events to the KERN API | | kern daemon | Run background sync daemon (every 5 min) | | kern config | Show or update configuration | | kern record | (Internal) Called by shell hooks to record a command |


How it works

┌─────────────────────────────────────────────────────────┐
│  Your shell (zsh / bash / fish)                         │
│                                                         │
│  preexec  ──► records start time in $KERN_CMD_START     │
│  precmd   ──► kern record --cmd "..." --start "..." ... │
└────────────────────────────┬────────────────────────────┘
                             │
                             ▼
┌─────────────────────────────────────────────────────────┐
│  kern record (Go)                                       │
│                                                         │
│  1. Filter noise (ls, cd, clear...)                     │
│  2. Classify activity type (rule-based)                 │
│  3. Infer project (walk up to go.mod / package.json)    │
│  4. Write to ~/.kern/events.db (SQLite WAL)             │
└────────────────────────────┬────────────────────────────┘
                             │
                     kern sync / daemon
                             │
                             ▼
┌─────────────────────────────────────────────────────────┐
│  KERN API  (/api/sessions/ingest)                       │
│                                                         │
│  Groups events → sessions → posts gzip JSON             │
│  Dashboard shows activity breakdown, standups, team     │
└─────────────────────────────────────────────────────────┘

Activity classification

Commands are classified using a rule-based engine:

| Type | Examples | |---|---| | CODING | go build, vim, git commit, tsc, cargo build | | DEBUGGING | gdb, dlv, pdb, node --inspect | | TESTING | go test, jest, pytest, cargo test | | DEVOPS | docker, kubectl, terraform, aws, fly | | RESEARCHING | curl, man, grep, rg, dig | | IDLE | Commands with >15 min gap before them |


Local database

Events are stored at ~/.kern/events.db using SQLite with WAL mode for safe concurrent writes. The buffer holds 30 days of events and synced events are pruned automatically.


Configuration

kern config --endpoint https://your-kern.replit.app/api
kern config --key <your-api-key>

Config is stored at ~/.kern/config.json.