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

@val-nithin/markdocs

v0.2.2

Published

CLI to compile library documentation into Claude Code skill files.

Readme

markdocs

CLI to compile library documentation into Claude Code skill files

How It Works

markdocs add react does five things:

  1. Asks the configured LLM for official documentation URLs
  2. Lets you pick which URL(s) to scrape (interactive)
  3. Scrapes the page with a built-in Go scraper (no external APIs)
  4. Compiles the content into a structured skill file using the LLM
  5. Writes .claude/skills/frontend/react.md — Claude Code picks it up next session

Installation

  1. Using go:
go install github.com/Nithin-Valiyaveedu/markdocs@latest
  1. Using npm:
npm install -g @val-nithin/markdocs
  1. Using brew (Mac/Linux):
brew tap Nithin-Valiyaveedu/markdocs
brew install markdocs

Quick Start

# 1. Configure your LLM provider (runs once)
markdocs init

# 2. Add a skill for any library
markdocs add shadcn
markdocs add stripe
markdocs add drizzle-orm

# 3. Scan your project for missing skills
markdocs scan

# 4. Keep skills up to date
markdocs update --all

Commands

markdocs init

Interactively configure an LLM provider. Auto-detects from environment variables (ANTHROPIC_API_KEY, OPENAI_API_KEY) or a local Ollama instance.

Supported providers:

  • Anthropic (Claude)
  • OpenAI (GPT)
  • OpenAI-compatible (Groq, Together AI, any custom endpoint via base URL)
  • Ollama (local, auto-detected at localhost:11434)

Config is saved to ~/.markdocs/config.json.


markdocs add <library>

Find, scrape, compile, and write a skill file for the given library.

markdocs add react
markdocs add shadcn
markdocs add stripe --no-interactive

Flags

| Flag | Description | |------|-------------| | --no-interactive | Skip URL selection prompt, use first suggested URL |

The skill is written to .claude/skills/<category>/<library>.md in the current directory.


markdocs scan

Detect libraries in the current project that don't have skill files yet. Reads package.json, go.mod, and requirements.txt.

markdocs scan
markdocs scan --add-all

Flags

| Flag | Description | |------|-------------| | --add-all | Automatically add skills for all missing libraries |


markdocs list

Show all compiled skills for the current project.

markdocs list
markdocs list --stale

Flags

| Flag | Description | |------|-------------| | --stale | Show only skills compiled more than 7 days ago |


markdocs update [skill]

Recompile skills whose source documentation has changed (detected via checksum comparison).

markdocs update react
markdocs update --all

Flags

| Flag | Description | |------|-------------| | --all | Check and update all skills |

Skill File Format

Skills are plain Markdown with YAML frontmatter. All metadata is stored in the file itself — no database.

---
name: react
category: frontend
sources:
  - https://react.dev/learn
compiled: 2026-04-12T10:23:00Z
checksum: sha256:abc123def456
model: llama3.2
provider: ollama
project_framework: next.js
markdocs_version: 0.1.0
---

# react — markdocs skill

## What This Is
## Installation (project-specific)
## Key Concepts
## API / Usage Patterns
## Your Project Config (detected)
## Hidden Gotchas
## Common Errors
## Version Notes

Skills are auto-categorised into frontend, backend, testing, infra, database, payments, auth, or devtools.

Scraper

markdocs uses a built-in two-layer scraper — no external scraping APIs required:

  • Layer 1net/http + go-readability (works for most static doc sites)
  • Layer 2go-rod headless browser fallback (JS-rendered sites like Chakra UI, Radix)

Layer 2 requires Chrome or Chromium to be installed.

Use as a Claude Code Skill

npx skills add Nithin-Valiyaveedu/markdocs

Or copy skills/markdocs/SKILL.md into your project's .claude/skills/ directory.

License

MIT