
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@vedanth/context7
Advanced tools
CLI for Context7 — get up-to-date, version-specific library docs from your terminal
Get up-to-date, version-specific library docs from your terminal. No MCP client needed.
Built on top of Context7 — the same docs that power Cursor, Claude, and other AI coding assistants, now available as a simple CLI.
Note: This package is published as
@vedanth/context7on npm. The unscopedcontext7on npm is a different, unrelated project.
Your AI coding assistant hallucinates APIs that don't exist. Context7's MCP fixes that — but only if you're inside an MCP-compatible editor.
c7 gives you the same docs anywhere:
npx @vedanth/context7 # Run directly (no install)
npm install -g @vedanth/context7 # Or install globally
# Find a library
c7 resolve nextjs
# Get docs (auto-resolves library name)
c7 docs nextjs "app router"
c7 docs react "server components" --tokens 10000
# Shorthand — skip the "docs" command
c7 react hooks
c7 express middleware
c7 tailwindcss "dark mode"
# Use exact Context7 ID (from resolve)
c7 docs /vercel/next.js "image optimization"
# Pipe into anything
c7 react hooks | pbcopy
c7 express middleware >> prompt.txt
c7 docs nextjs "api routes" | llm "summarize these docs"
| Command | Description |
|---|---|
c7 resolve <library> | Find Context7 library IDs for a search term |
c7 docs <library> [topic] | Get docs (auto-resolves name to best match) |
c7 <library> [topic] | Shorthand for c7 docs |
| Flag | Description |
|---|---|
--tokens <n> | Max tokens to return (default: 5000) |
--api-key <key> | Context7 API key (or set CONTEXT7_API_KEY env) |
--json | Raw JSON output (resolve only) |
Works without an API key for basic usage. For higher rate limits:
export CONTEXT7_API_KEY=your-keyFeed docs into coding agents:
DOCS=$(c7 nextjs "app router middleware" --tokens 8000)
claude "Build a Next.js middleware that redirects. Use these docs:\n$DOCS"
Quick API lookup:
c7 prisma "findMany" --tokens 3000
Compare versions:
c7 docs /vercel/next.js "image" --tokens 5000 # Latest
c7 docs /websites/nextjs_15 "image" # v15 specific
Context7 indexes documentation from source repos and official docs. The CLI queries their API to get relevant, version-specific code snippets and API references — the same data that powers the MCP server used by Cursor, Claude Code, and other AI editors.
Powered by Context7 by Upstash.
| Package | What it is |
|---|---|
@vedanth/context7 (this) | CLI tool — library docs in your terminal |
@upstash/context7 | Official MCP server for AI editors |
context7 (unscoped) | Different project, not related |
MIT
FAQs
CLI for Context7 — get up-to-date, version-specific library docs from your terminal
The npm package @vedanth/context7 receives a total of 24 weekly downloads. As such, @vedanth/context7 popularity was classified as not popular.
We found that @vedanth/context7 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.