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

kn-lang

v0.1.1

Published

Knowledge Notation — typed knowledge format for AI assistants

Readme

KN — Knowledge Notation

Typed knowledge format for AI assistants. Like tsc for documentation.

Stop making AI read 500 lines of Markdown to understand one thing.

Install

bun install -g kn-lang

Or download standalone binaries from Releases.

Quick Start

knc init                       # scaffold kn.config.json + AUTHORING.md + _examples
echo '@hello/world { type: flow }' > knowledge/hello.kn
knc build                      # validate + write .kn-dist/
kn get @hello/world            # query

Discovery

When you don't know the atom path yet:

kn ls                          # flat list of all atoms
kn tree                        # hierarchical tree view
kn tree @auth                  # subtree
kn search "refresh"            # regex match across paths and field values
kn manifest                    # full corpus summary (JSON, AI session payload)

Claude Code Plugin

kn-lang ships with a Claude Code plugin (skills + agent) for authoring, exploring, and validating .kn files inside Claude Code.

# Inside Claude Code:
/plugin marketplace add Vetigen/kn-lang
/plugin install kn-lang@kn-lang

The plugin provides:

  • /kn-lang:kn-author — guides you through writing a new atom
  • /kn-lang:kn-explore — loads the corpus map (kn manifest, kn ls, kn tree) at session start
  • /kn-lang:kn-validate — runs knc check --strict and explains diagnostics
  • kn-author agent — automated atom extraction from a code directory

The plugin assumes knc and kn are on PATH (npm install -g kn-lang or standalone binary).

Why

Markdown is great for humans, costly for AI. Every CLAUDE.md, KNOWLEDGE.md, and ARCHITECTURE.md asks the model to scan thousands of tokens to answer one question.

KN gives knowledge a typed structure:

@auth/login {
  type: flow,
  contract: { in: { phone: E164 }, out: { jwt: "string" } },
  invariants: [
    { name: "max-active", since: "2025-11-03", reason: "incident" }
  ],
  source: "src/auth/login.ts"
}

@auth/login -creates-> @auth/session

Now an AI can ask:

$ kn get @auth/login --depth 1 --json
{ "atoms": [...], "edges": [...] }   # 200 tokens, surgical

Features

  • Typed atoms with edges forming a knowledge graph
  • Pinpoint retrieval@path addressing
  • Discovery built-inkn ls, kn tree, kn search, kn manifest for zero-context exploration
  • Compile-time validation — broken refs, duplicates, freshness
  • TypeScript-style errors with KN#### codes
  • Zero native deps — pure Bun/TS, no SQLite, no daemon
  • Standalone binaries — drop and run, Bun not required

Status

0.1.0 — MVP. Core format and CLI stable. v0.2 will add MCP + LSP.

License

MIT