
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
@upstash/context7-sdk
Advanced tools
@upstash/context7-sdk is an HTTP/REST based client for TypeScript, built on top of the Context7 API.
LLMs rely on outdated or generic training data about the libraries you use. This leads to:
Context7 solves this by providing up-to-date, version-specific documentation and code examples directly from the source. Use this SDK to:
npm install @upstash/context7-sdk
Get your API key from Context7
import { Context7 } from "@upstash/context7-sdk";
const client = new Context7({
apiKey: "<CONTEXT7_API_KEY>",
});
// Search for libraries in the Context7 database
const libraries = await client.searchLibrary("react");
console.log(libraries.results);
// Query the documentation with specific topics
const filteredDocs = await client.getDocs("/facebook/react", {
topic: "hooks",
limit: 10,
page: 1,
});
// Get documentation as JSON by default
const docs = await client.getDocs("/vercel/next.js");
console.log(docs.snippets);
// Get documentation as TXT
const codeDocs = await client.getDocs("/mongodb/docs", {
format: "txt",
mode: "code",
});
console.log(codeDocs.content);
You can set your API key via environment variable:
CONTEXT7_API_KEY=ctx7sk-...
Then initialize without options:
const client = new Context7();
See the documentation for details.
pnpm test
pnpm build
FAQs
JavaScript/TypeScript SDK for Context7
We found that @upstash/context7-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.