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

knowns

v0.23.0

Published

AI-native project management CLI

Readme


Every time you start a new AI coding session, you re-explain your architecture, paste docs, repeat conventions, and clarify past decisions. Your AI assistant is powerful - but it forgets everything between sessions.

Knowns fixes that. It gives AI assistants like Claude, Cursor, Copilot, and others structured, persistent access to your project's tasks, documentation, specs, acceptance criteria, and architectural decisions. Instead of prompting from scratch, your AI reads what it needs and picks up where you left off.

If you believe AI should truly understand software projects, consider giving Knowns a star.

Table of Contents


Why Knowns?

AI coding assistants are stateless. Every session starts from zero.

That means you end up doing the same work over and over:

  • Re-explaining your architecture and design patterns
  • Pasting documentation into chat windows
  • Repeating coding conventions and project rules
  • Clarifying decisions that were already made last week
  • Rebuilding context that took 20 minutes to set up

The AI doesn't lack intelligence. It lacks access to what your project already knows.

Knowns gives it that access.


Before & After

| Without Knowns | With Knowns | |---|---| | "We use the repository pattern with..." (paste 50 lines) | AI reads @doc/patterns/repository automatically | | "Here's the task, the acceptance criteria are..." (re-type everything) | AI reads the task, its ACs, linked specs, and related docs | | "Remember, we decided last week to..." (hope it sticks) | Decision is stored in project memory - AI recalls it every session | | "The auth flow works like this..." (explain for the 4th time) | AI follows @doc/architecture/auth and builds on it | | "Are we done? Let me check the requirements again..." | AI checks acceptance criteria and validates completion itself | | Session starts cold - 10 min of context-setting | Session starts warm - AI already knows the project |


What is Knowns?

Knowns is a local-first, self-hostable project context layer for AI-native development.

It stores your project knowledge in structured, AI-readable files - and exposes them to AI assistants through CLI and MCP (Model Context Protocol).

Concretely, Knowns manages:

  • Tasks with acceptance criteria, implementation plans, and status tracking
  • Documentation in nested markdown folders with cross-references
  • Specs that define what "done" looks like for a feature
  • Memory - project-level, session-level, and global knowledge that AI can recall
  • Templates for code generation with Handlebars
  • References like @task-42 and @doc/patterns/auth that AI can follow and resolve
  • Code intelligence - LSP-based symbols, definitions, references, diagnostics, and safe edits

Everything lives in a .knowns/ directory in your repo. Plain files. Committable to Git. No cloud required.


Who It's For

  • Solo developers who pair with AI daily and want it to remember project context across sessions
  • Teams building with AI assistants and tired of everyone re-explaining the same architecture
  • Open-source maintainers who want contributors (human or AI) to onboard faster
  • Anyone who uses Claude, Cursor, Copilot, Windsurf, or other AI coding tools and wants them to actually understand the project

How It Works

Knowns sits alongside your existing tools. Your stack stays the same.

  1. You structure your project knowledge - tasks, docs, specs, decisions - using the Knowns CLI or Web UI
  2. AI reads it - through MCP integration or CLI commands, your AI assistant accesses exactly the context it needs
  3. AI acts on it - follows references, checks acceptance criteria, updates task status, and builds with full awareness
  4. Knowledge accumulates - decisions, patterns, and conventions persist across sessions instead of disappearing

Your specs -> understood. Your tasks -> connected. Your docs -> usable. Your decisions -> remembered.


Quick Start

# Install
brew install knowns-dev/tap/knowns
# or: npm install -g knowns
# or: curl -fsSL https://knowns.sh/script/install | sh
# or on Windows PowerShell:
# irm https://knowns.sh/script/install.ps1 | iex

# verify the install
knowns --version

# Initialize in your project
cd your-project
knowns init

# or run without a global install
npx knowns init

# Create your first task
knowns task create "Add user authentication" \
  -d "JWT-based auth with login and register endpoints" \
  --ac "User can register with email/password" \
  --ac "User can login and receive JWT token" \
  --ac "Protected routes reject unauthenticated requests"

# Add project documentation
knowns doc create "Auth Architecture" \
  -f "architecture" \
  -d "Authentication design decisions and patterns"

# Open the Web UI
knowns browser --open

# Update Knowns later
knowns update

# Connect to your AI assistant via MCP
# See: docs/en/guides/mcp-integration.md

Now when your AI reads the project, it sees structured tasks with acceptance criteria, linked documentation, and clear definitions of done - instead of guessing.


Core Capabilities

Task & Workflow Management

Create tasks with acceptance criteria, implementation plans, and status tracking. AI can read tasks, follow plans, check off ACs, and know exactly when work is complete.

knowns task create "Title" --ac "Criterion 1" --ac "Criterion 2"
knowns task edit <id> -s in-progress
knowns task edit <id> --check-ac 1

Structured Documentation

Organize project knowledge in nested markdown folders. Cross-reference with @doc/path and @task-id. AI follows these references to load exactly the context it needs.

knowns doc create "API Design" -f "architecture"
knowns doc "architecture/api-design" --smart --plain

Project Memory

Three-layer memory system - project, session, and global - so AI recalls decisions, patterns, and conventions without you repeating them.

knowns memory add "We use repository pattern for data access" --category decision
knowns memory list --plain

Semantic Search

Search by meaning, not just keywords. Runs locally with ONNX models - fully offline, no API keys needed.

knowns search "how does authentication work" --plain

MCP Integration

Full Model Context Protocol server. Claude, Cursor, and other MCP-compatible assistants get native access to tasks, docs, memory, search, and validation - no copy-pasting required.

Code Intelligence

LSP-based code intelligence for supported languages. List symbols, jump to definitions, find references, inspect diagnostics, and make safe symbol-aware edits through MCP.

knowns lsp list
knowns lsp install <language>

Templates & Code Generation

Handlebars-based templates for scaffolding. Define patterns once, generate consistently.

knowns template list
knowns template run <name> --name "UserService"

AI Agent Workspaces

Multi-phase agent orchestration with git worktree isolation, live terminal streaming, and automatic phase progression (research -> plan -> implement -> review).

Web UI

Kanban board, document browser, knowledge graph visualization, and mermaid diagram support - all in a local browser UI.

knowns browser --open

What You Can Build With Knowns

| Capability | What It Does | |---|---| | Task Management | Tasks with acceptance criteria, plans, status, and time tracking | | Documentation | Nested markdown folders with cross-references and mermaid support | | Semantic Search | Meaning-based search with local AI models (fully offline) | | Time Tracking | Built-in timers and reports per task | | Context Linking | @task-42 and @doc/patterns/auth references AI can resolve | | Validation | Detect broken references and incomplete tasks with knowns validate | | Template System | Code generation with Handlebars (.hbs) templates | | Import System | Import docs and templates from git, npm, or local sources | | Memory System | Project / session / global memory for persistent AI recall | | MCP Server | Native AI assistant integration with full tool access | | AI Workspaces | Multi-phase agent orchestration with worktree isolation | | Code Intelligence | LSP-based symbols, definitions, references, diagnostics, and safe edits | | Web UI | Kanban board, doc browser, knowledge graph, mermaid diagrams |


Claude Code Skills Workflow

When using Claude Code with Knowns, skills (slash commands) provide a guided workflow:

/kn-init      -> Read project docs, understand context
/kn-plan      -> Take task, gather context, create plan (wait for approval)
/kn-implement -> Follow plan, check ACs, track progress
/kn-commit    -> Commit with conventional format

Example Session

You: /kn-init
Claude: [Reads README, ARCHITECTURE, checks task backlog]
        "Project uses NestJS with CQRS pattern. 3 tasks in-progress..."

You: /kn-plan 42
Claude: [Takes task, reads refs, searches docs]
        "Task #42: Add user authentication

         ## Implementation Plan
         1. Review @doc/patterns/auth
         2. Create AuthModule with JWT strategy
         3. Add login/register endpoints
         4. Write unit tests

         Approve this plan?"

You: Yes

You: /kn-implement 42
Claude: [Follows plan, generates code, checks ACs]
        "✓ AC1: User can login - DONE
         ✓ AC2: JWT token returned - DONE
         ✓ AC3: Tests pass - DONE

         All acceptance criteria complete. Ready to commit?"

You: /kn-commit
Claude: [Creates conventional commit]
        "feat(auth): add JWT authentication

         - Add AuthModule with passport JWT strategy
         - Add login/register endpoints
         - Add unit tests (94% coverage)"

All Skills

| Skill | Description | |---|---| | /kn-init | Initialize session - read docs, load memory, understand project | | /kn-plan <id> | Take task, gather context, create implementation plan | | /kn-implement <id> | Execute plan, track progress, check acceptance criteria | | /kn-research | Search codebase, find patterns, explore before coding | | /kn-commit | Create conventional commit with verification | | /kn-spec | Create specification document for features (SDD) | | /kn-go <spec> | Full pipeline from approved spec (no review gates) | | /kn-verify | Run SDD verification and coverage report | | /kn-review | Multi-perspective code review (P1/P2/P3 severity) | | /kn-doc | Create or update documentation | | /kn-extract | Extract reusable patterns into docs, templates, and memory | | /kn-template | List, run, or create code templates | | /kn-debug | Debug errors and failures with memory-backed triage |


Installation

Homebrew (macOS/Linux)

brew install knowns-dev/tap/knowns

Shell installer (macOS/Linux)

curl -fsSL https://knowns.sh/script/install | sh

# Or with wget
wget -qO- https://knowns.sh/script/install | sh

# Install a specific version
curl -fsSL https://knowns.sh/script/install | KNOWNS_VERSION=0.18.0 sh

PowerShell installer (Windows)

irm https://knowns.sh/script/install.ps1 | iex

# Install a specific version
$env:KNOWNS_VERSION = "0.18.0"; irm https://knowns.sh/script/install.ps1 | iex

The shell installer on macOS/Linux and the PowerShell installer on Windows both auto-run knowns search --install-runtime after installing the binary. If that step fails, rerun it manually.

npm

# Global install - auto-downloads platform-specific binary
npm install -g knowns

# Or run without installing
npx knowns

From source (Go 1.24.2+)

go install github.com/howznguyen/knowns/cmd/knowns@latest

# Or clone and build
git clone https://github.com/knowns-dev/knowns.git
cd knowns
make build        # Output: bin/knowns
make install      # Install to GOPATH/bin

Uninstall

# macOS/Linux
curl -fsSL https://knowns.sh/script/uninstall | sh

# Windows
irm https://knowns.sh/script/uninstall.ps1 | iex

The uninstall scripts only remove installed CLI binaries and PATH entries added by the installer. They leave project .knowns/ folders untouched.


Quick Reference

# Tasks
knowns task create "Title" -d "Description" --ac "Criterion"
knowns task list --plain
knowns task <id> --plain
knowns task edit <id> -s in-progress -a @me
knowns task edit <id> --check-ac 1

# Documentation
knowns doc create "Title" -d "Description" -f "folder"
knowns doc "doc-name" --plain
knowns doc "doc-name" --smart --plain
knowns doc "doc-name" --section "2" --plain

# Templates
knowns template list
knowns template run <name> --name "X"
knowns template create <name>

# Imports
knowns import add <name> <source>
knowns import sync
knowns import list

# Time, Search & Validate
knowns time start <id> && knowns time stop
knowns search "query" --plain
knowns validate

# Code intelligence
knowns lsp list
knowns lsp install <language>
# Use the MCP code tool for symbols, definitions, references, diagnostics, and edits

# AI Guidelines
knowns setup
knowns sync

Documentation

| Guide | Description | |---|---| | User Guide | Getting started and daily usage | | Command Reference | Core CLI commands with examples | | Workflow Guide | Recommended human + AI workflow | | MCP Integration | MCP setup and supported platforms | | Reference System | How @doc/ and @task- linking works | | Semantic Search | Setup and usage of semantic search | | Templates | Code generation and template workflows | | Web UI | Board, docs, graph, and chat UI | | Configuration | Project config and platform IDs | | Skills | Skill paths and regeneration | | Developer Guide | Notes for contributors | | Platforms | Platform integration mapping |


Roadmap

AI Agent Workspaces ✅ (Active)

Multi-phase agent orchestration - assign tasks to AI agents with git worktree isolation, live terminal streaming, and automatic phase progression (research -> plan -> implement -> review).

Self-Hosted Team Sync 🚧 (Planned)

Optional self-hosted sync server for shared visibility without giving up local-first workflows.

  • Real-time visibility - See who is working on what
  • Shared knowledge - Sync tasks and documentation across the team
  • Full data control - Self-hosted, no cloud dependency

Development

Requires Go 1.24.2+ and optionally Node.js + pnpm for UI development.

make build              # Build binary -> bin/knowns
make dev                # Build with race detector
make test               # Run unit tests
make test-e2e           # Run CLI + MCP E2E tests
make test-e2e-semantic  # E2E tests including semantic search
make lint               # Run golangci-lint
make cross-compile      # Build for all 6 platforms
make ui                 # Rebuild embedded Web UI (requires pnpm)

Project Structure

cmd/knowns/          # CLI entry point
internal/
  cli/               # Cobra commands
  models/            # Domain models
  storage/           # File-based storage (.knowns/)
  server/            # HTTP server, SSE, WebSocket
    routes/          # REST API handlers
    workspace/       # Agent orchestrator, process manager, worktree
  mcp/               # MCP server (stdio)
  search/            # Semantic search (ONNX)
ui/                  # Embedded React UI (built assets)
tests/               # E2E tests

Links

For design principles and long-term direction, see Philosophy.

For technical details, see Architecture and Contributing.


Star History