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

claude-primer

v1.9.0

Published

Prime your repo for Claude Code with context-aware knowledge architecture

Readme

Claude Primer

PyPI npm GitHub Release License: MIT Docker

Prime your repo for Claude Code.

Scans your project's DNA and generates the knowledge architecture Claude Code needs to work effectively.

Like a real primer, it prepares the surface so everything after it adheres better: claude-primer grounds Claude Code sessions in real project context from the first command.

Generated Content Highlights

  • Iron Laws — bright-line rules that are never violated
  • Decision Heuristics — 6 concrete rules for autonomous decision-making
  • Stuck Protocol — explicit steps when 3+ approaches fail
  • Red Flags — self-monitoring triggers to prevent common mistakes
  • Rationalization Table — excuse-to-reality mapping to catch bad reasoning
  • HARD-GATE tags — absolute non-negotiable rules
  • Tier-based governance — process weight proportional to blast radius
  • Defense-in-Depth debugging — 4-layer validation after bug fixes
  • Git worktree guidance — parallel development patterns (for git repos)
  • AUTO-MAINTAINED marker — QUICKSTART.md flagged for automatic upkeep
  • Idempotent regeneration--force skips unchanged files

Install

One command (no dependencies)

# Linux / macOS
curl -fsSL https://raw.githubusercontent.com/limaronaldo/claude-primer/main/install.sh | bash

# Windows (PowerShell)
irm https://raw.githubusercontent.com/limaronaldo/claude-primer/main/install.ps1 | iex

Package managers

# Python (recommended)
pipx run claude-primer              # zero install, runs directly
uvx claude-primer                   # alternative zero install
pip install claude-primer           # global install

# Node.js
npx claude-primer                   # zero install via npm

# macOS
brew install limaronaldo/tap/claude-primer

# Windows
scoop bucket add limaronaldo https://github.com/limaronaldo/scoop-bucket
scoop install claude-primer

Containers and binaries

# Docker
docker run --rm -v "$(pwd):/project" ghcr.io/limaronaldo/claude-primer

# Direct download (no runtime needed)
# https://github.com/limaronaldo/claude-primer/releases

CI/CD

- uses: limaronaldo/claude-primer-action@v1

Usage

claude-primer                       # interactive setup in current directory
claude-primer /path/to/project      # specific directory
claude-primer --dry-run             # preview without writing
claude-primer --force               # overwrite changed files (skip unchanged)
claude-primer --force-all           # overwrite all files unconditionally
claude-primer --yes                 # non-interactive (accept defaults)
claude-primer --plan-json           # output project analysis as JSON
claude-primer --with-readme         # also generate README.md
claude-primer --with-ralph          # generate Ralph integration files
claude-primer --reconfigure         # re-run wizard (ignore saved config)
claude-primer --no-git-check        # skip git safety entirely
claude-primer --from-doc FILE       # bootstrap from PRD/spec document
claude-primer --clean-root          # move aux docs to .claude/docs/
claude-primer --git-mode stash      # auto-stash dirty changes
claude-primer --git-mode skip       # skip git safety

Flags can be combined for full automation:

claude-primer --force --yes         # overwrite changed files, no prompts
claude-primer --force-all --yes     # overwrite ALL files, no prompts
claude-primer --git-mode skip --yes # full automation, no git checks

What It Does

  1. Scans your project — detects language, framework, deploy targets, monorepo structure
  2. Classifies project tier (T1-T4) based on blast radius
  3. Extracts from existing documentation if present
  4. Generates four files with context-aware content:
    • CLAUDE.md — project map, invariants, decision heuristics, verification standards
    • STANDARDS.md — governance rules, code quality gates, naming conventions
    • QUICKSTART.md — essential commands and quick fixes
    • ERRORS_AND_LESSONS.md — mistake catalog with rationalization table
  5. Verifies generated files have correct structure
  6. Saves wizard answers to .claude-setup.rc for future runs

GitHub Action

name: Prime for Claude Code
on:
  push:
    branches: [main]

jobs:
  primer:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: limaronaldo/claude-primer-action@v1
        with:
          force: true
          commit: true

See claude-primer-action for full documentation.

Ralph Integration

The --with-ralph flag creates an integration layer that eliminates duplication between Ralph (an autonomous coding agent) and the Claude Primer knowledge architecture. Instead of maintaining separate context files, Ralph reads directly from the same generated documents, with a thin prompt wrapper and symlinks to keep everything in sync.

Files created by --with-ralph:

  • .ralph/PROMPT.md — Ralph-specific development instructions referencing the knowledge architecture
  • .ralph/AGENT.md — symlink to QUICKSTART.md (single source of truth)
  • .ralph/fix_plan.md — prioritized task list (Ralph-owned, never overwritten without --force)
  • .ralph/hooks/post-loop.sh — post-loop hook that detects changes to knowledge files
  • .ralphrc — stack-aware Ralph project configuration at the project root

Supported Stacks

Python, Node.js/TypeScript, Rust, Go, Ruby, Java/Kotlin, PHP, .NET, Elixir, Swift, Dart/Flutter, Zig, Scala

Supported Frameworks

Django, Flask, FastAPI, Next.js, React, Vue, Svelte, SvelteKit, Remix, Astro, Express, NestJS, Hono, Axum, Actix, Rocket, Gin, Fiber, Echo, Phoenix, Spring, Laravel, Flutter, and more.

Repository Structure

claude-primer/
├── README.md          # this file
├── LICENSE
├── Dockerfile         # multi-stage Docker build
├── install.sh         # curl|bash installer (Linux/macOS)
├── install.ps1        # PowerShell installer (Windows)
├── build/             # PyInstaller spec for standalone binaries
├── docs/              # project documentation
├── python/            # PyPI package (claude-primer)
│   ├── claude_primer.py
│   ├── pyproject.toml
│   └── tests/
└── npm/               # npm package (claude-primer)
    ├── index.mjs
    ├── package.json
    └── tests/

Who Uses This

Claude Primer is designed for any team or developer using Claude Code, Cursor, Copilot, Windsurf, Aider, or Codex who wants their AI assistant to deeply understand their codebase from the first prompt.

Authors

  • Ronaldo Martins de Lima Filho
  • Breno Delgado Lima

License

MIT