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

knosky

v0.6.3

Published

Turn any repo or docs folder into an explorable city, plus a local MCP that grounds your AI in your own source with citations. Local-first, free, $0 tokens.

Readme

KnoSky

Your knowledge as a skyline.

Turn any repo or folder of docs into a living, explorable city — and give your AI assistant grounded, cited answers from your own source. Runs entirely on your machine. Free.

Born from building Sathia.


See it in 10 seconds

Open demo/knosky-demo.html in your browser (just double-click it — it's a single self-contained file). That's a sample project rendered as a city. Now point it at your own.


The problem

Your project grows faster than anyone can hold in their head. Hundreds of files, decisions, and docs across folders. A file tree tells you what files exist — not what the system is. So things get lost, decisions get re-litigated, and your AI assistant confidently makes things up about your own codebase.

What you get (the outcome)

Measured (SAT-439, 5 tasks, naive agent vs. KnoSky-guided agent): 68% fewer tokens · 70% fewer tool calls · 6× faster to the right file (All guided runs answered correctly; the naive agent found the target in 3 of 5 tasks and answered correctly in 0.)

  • See your whole project in one screen. Instead of scrolling a file tree, you see the shape of everything — which areas are big, how they connect, where the gaps are. New collaborators get oriented in minutes, not weeks.
  • Find anything in seconds. Search the city — or ask your assistant "where does auth live / what did we decide about billing" — and jump straight to the live file.
  • Your AI answers from YOUR source, with citations. Connect it to Claude / Cursor / VS Code / Gemini and your assistant stops guessing about your codebase — it cites the real file, every time.
  • Zero setup tax, local-first by default. Point it at a folder → a city in under a minute. Deterministic, $0 tokens to keep fresh, nothing ever leaves your machine, and a fail-closed secret scan before you share. (KnoSky does not claim "zero data risk" — see PRIVACY.md.)

Net: faster comprehension, reliable recall of your own knowledge, and a grounded AI — without giving up privacy or paying a cent.

Who it's for

Developers, founders, and architects sitting on a sprawling repo or knowledge base who want to understand and navigate their own work fast — and want their AI assistant grounded in it — without uploading anything.


How it works

Quickstart — one command:

npx knosky .

Indexes the current folder, opens the city, prints the MCP config for your AI assistant (Claude Code / Claude Desktop / Cursor / VS Code) plus a few starter prompts, and starts the local connector. Point it anywhere with npx knosky /path/to/your/repo. Flags: --no-open, --no-serve.

Prefer a clone? git clone https://github.com/SathiaAI/knosky && cd knosky && npm install && node bin/knosky.mjs .

Want the individual pieces instead? Read on.

Requirements: Node.js 18+.

1. Build your city from a folder or repo

node core/fs-indexer.mjs --root /path/to/your/repo --out city-data.json --share-safe
node renderer/build-rich.mjs city-data.json city.html

Open city.html. Every top-level folder is a district, every file a building, every building links to the real source.

Flags: --share-safe strips your absolute path (basename only) and prints a safety report — and the build fails closed if a secret-like value is detected. --redact AcmeCorp,SecretProject masks (and skips files matching) project-specific terms. --include-absolute-root keeps the full local path (private diagnostics only). --allow-leaks overrides the secret block (not recommended).

2. Connect it to your AI assistant (MCP)

cd mcp && npm install && cd ..
# Claude Code:
claude mcp add knosky -e KC_CITY=/abs/path/city-data.json -- node /abs/path/mcp/server.mjs

Or add to your Claude Desktop / Cursor / VS Code MCP config:

"knosky": {
  "command": "node",
  "args": ["/abs/path/mcp/server.mjs"],
  "env": { "KC_CITY": "/abs/path/city-data.json" }
}

Then ask: "search KnoSky for what we decided about authentication." Read-only tools exposed: kc_search, kc_get_node, kc_list_categories, kc_get_provenance, kc_related.

See how your code connects. Select a file in the city to see its connections (roads to the files it imports / that import it) and churn (recently-changed files glow). Or ask your assistant "what connects to src/auth.js?" — file-level structure only, not code analysis.

3. Get PR navigation comments automatically (GitHub Action — PR-GPS)

Add this to any workflow that runs on pull requests:

- name: Check out the repo (full history so the diff works)
  uses: actions/checkout@v4
  with:
    fetch-depth: 0

- name: KnoSky PR-GPS
  uses: SathiaAI/[email protected]
  with:
    base: ${{ github.event.pull_request.base.sha }}
    head: ${{ github.event.pull_request.head.sha }}

The action posts (and updates) a single advisory comment on the PR listing which files changed, suggested review starting points, and related tests/docs. It reads file/folder/import structure only — never uploads code bodies — and never blocks or gates the build. The github-token input defaults to the workflow token; a fail-on-secret guard is available for stricter CI setups (see action.yml for all inputs).


What it is not (on purpose)

  • Not a code-RAG engine. It won't read your whole codebase and answer deep questions. It's a map and a router — it tells you where things are and hands you (or your AI) the source. (Reach for Cursor/Glean for deep code Q&A.)
  • Not a cloud service. No upload, no account, nothing leaves your machine. (A hosted option may come later.)
  • Not a copy of your knowledge. A navigable index of pointers — titles, headings, short excerpts that link back to the live file — never your full file contents.

Privacy & safety

  • Runs locally; your source never leaves your machine.
  • Indexes pointers + light projections (title, headings, ~200-char excerpt, tags) — never full file bodies.
  • Skips .git, node_modules, secrets/, keys/, .env*, plus your .gitignore/.kcignore (git's own ignore rules apply inside a repo).
  • Scrubs common secret/PII patterns and fails the build closed if a secret-like value is detected. Build with --share-safe for a safety report before sharing.
  • Generated cities embed your data as inert JSON and escape untrusted file/folder names — opening or sharing a city won't execute injected code.

More: PRIVACY.md · LIMITATIONS.md · SECURITY.md · CHANGELOG.md · How KnoSky compares

License & credits

Free to use under the Functional Source License (FSL-1.1-MIT) — use it freely; you just can't repackage it as a competing product. Converts to MIT two years after each release. "KnoSky" is a trademark of the author.

City artwork is Kenney (CC0 / public domain) — see CREDITS.md.