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

superintent

v0.0.6

Published

CLI companion for the Superintent Claude Code plugin

Readme

superintent-cli

The data layer for Superintent. Manages tickets, knowledge, specs, and semantic search backed by Turso/libSQL.

Requirements

This CLI is designed to work with the Superintent Claude Code plugin. The plugin provides skills (/ticket, /spec, /task, etc.) that drive the CLI commands and manage the knowledge loop.

Quick Start

Install the Superintent plugin in Claude Code, then run:

/superintent:setup

Architecture

┌─────────────────────────────────────────────┐
│  Claude Code Plugin (skills, commands)      │
│  Human (CLI, web dashboard)                 │
└──────────────┬──────────────────────────────┘
               │ npx superintent <command>
┌──────────────▼──────────────────────────────┐
│  CLI (commander.js)                         │
│  ├── commands/   ticket, knowledge, spec,   │
│  │               search, extract, init,     │
│  │               status, ui                 │
│  ├── db/         libSQL client, schema,     │
│  │               parsers, search, usage     │
│  ├── embed/      bge-small-en-v1.5 (384d)   │
│  └── ui/         Hono + HTMX web dashboard  │
└──────────────┬──────────────────────────────┘
               │
┌──────────────▼──────────────────────────────┐
│  Turso/libSQL                               │
│  ├── tickets     work items + plans         │
│  ├── knowledge   RAG entries + F32_BLOB     │
│  ├── specs       feature specifications     │
│  └── comments    polymorphic comments       │
└─────────────────────────────────────────────┘

All commands output structured JSON: { success: boolean, data?: T, error?: string }.

Commands

Tickets

# Create (JSON stdin)
superintent ticket create --stdin <<'TICKET'
{
  "title": "Add user authentication",
  "type": "feature",
  "intent": "Add JWT-based auth to the API",
  "context": "All endpoints currently public",
  "constraints": { "use": ["jsonwebtoken", "bcrypt"], "avoid": ["session cookies"] },
  "changeClass": "B",
  "changeClassReason": "Adds middleware to all routes",
  "plan": {
    "files": ["src/middleware/auth.ts", "src/routes/auth.ts"],
    "taskSteps": [
      { "task": "Create auth middleware", "steps": ["JWT verification", "Error handling"] },
      { "task": "Add login/register routes", "steps": ["Password hashing", "Token generation"] }
    ],
    "dodVerification": [
      { "dod": "All protected routes require valid JWT", "verify": "curl returns 401 without token" },
      { "dod": "Passwords hashed with bcrypt", "verify": "DB inspection shows no plaintext" }
    ]
  }
}
TICKET

# Manage
superintent ticket get <id>
superintent ticket preview <id>
superintent ticket list [--status <status>] [--limit N]
superintent ticket update <id> [--stdin] [--status] [--context] [--comment <text>] [--author] [--complete-task 0,1] [--complete-dod 0,1] [--complete-all] [--spec <spec-id>]
superintent ticket delete <id>

Knowledge

# Create (JSON stdin)
superintent knowledge create --stdin <<'KNOWLEDGE'
{
  "title": "API Error Handling Pattern",
  "namespace": "my-project",
  "category": "pattern",
  "source": "discovery",
  "confidence": 0.85,
  "scope": "new-only",
  "tags": ["api", "error-handling"],
  "content": "Why:\nConsistent error responses across all endpoints.\n\nWhen:\nAll new API routes.\n\nPattern:\nWrap handlers in try/catch, return { success, error }."
}
KNOWLEDGE

# Manage
superintent knowledge get <id>
superintent knowledge preview <id>
superintent knowledge list [--namespace] [--category] [--scope] [--source] [--author] [--branch] [--status active|inactive|all] [--limit N]
superintent knowledge update <id> [--stdin] [--title] [--namespace] [--category] [--tags] [--scope] [--origin <ticketId>] [--confidence <n>] [--comment] [--author]
superintent knowledge activate <id>
superintent knowledge deactivate <id>
superintent knowledge promote <id>
superintent knowledge recalculate [--dry-run]

Search

Semantic search using cosine similarity against 384-dimensional embeddings.

superintent knowledge search "error handling" [--namespace] [--category] [--ticket-type] [--tags] [--author] [--branch] [--min-score 0.45] [--limit 5]

Score interpretation: >=0.45 relevant, >=0.55 strong match. Falls back to non-indexed search if vector index unavailable.

Specs

# Create (JSON stdin)
superintent spec create --stdin <<'SPEC'
{
  "title": "User Authentication System",
  "content": "## Summary\nFull auth: registration, login, JWT, middleware.\n\n## Scope\n**In Scope:** JWT auth, password hashing, protected routes\n**Out of Scope:** OAuth, 2FA, password reset\n\n## Work Areas\n1. User model and registration\n2. Login and token generation\n3. Auth middleware",
  "author": "your-name"
}
SPEC

# Manage
superintent spec get <id>
superintent spec preview <id>
superintent spec list [--limit N]
superintent spec update <id> [--stdin] [--title] [--comment] [--author]
superintent spec delete <id>

Knowledge Extraction

Generates structured knowledge proposals from completed tickets.

superintent knowledge extract <ticket-id> [--namespace <namespace>]

Proposes entries across categories based on ticket intent, assumptions, constraints, decisions, and trade-offs. Designed for human or AI review before saving.

Web Dashboard

superintent ui [--port 3456] [--open]

Four tabs: Tickets (kanban board by status), Knowledge (browser with semantic search, filterable), Specs (viewer with linked tickets), Graph (knowledge graph visualization by shared tags).

Setup

superintent init [--url <url>]     # Create tables
superintent status                  # Check connection + counts

Database Schema

| Table | Purpose | Key columns | | --- | --- | --- | | tickets | Work items | status, intent, plan (JSON TicketPlan), change_class, origin_spec_id, author | | knowledge | RAG entries | embedding F32_BLOB(384), category, confidence, active, decision_scope, usage_count, author, branch | | specs | Feature specs | title, content (markdown), author | | comments | Polymorphic comments | parent_type (ticket|knowledge|spec), parent_id, author, text |

Vector search uses vector_distance_cos with vector_top_k index. Supports both local SQLite (file: URLs) and Turso Cloud (libsql:// URLs).

Configuration

All config lives in .superintent/.env, created by /superintent:setup.

Local:

TURSO_URL="file:.superintent/local.db"

Cloud:

TURSO_URL="libsql://your-db.turso.io"
TURSO_AUTH_TOKEN="your-token"

Project namespace is read from CLAUDE.md (- Namespace: <n>), falling back to the current directory name.

Embedding Model

Uses bge-small-en-v1.5 via @huggingface/transformers. The model (~32MB quantized ONNX) downloads on first use and caches locally. Runs entirely on-device — no API calls for embeddings. Uses CLS pooling with query prefixing for optimal retrieval.

License

MIT