Add a Library
The fastest way to add a library is through the web interface: Add a Library →1
Open the Add Library page
Go to context7.com/add-library and select the GitHub tab.
2
Paste the repository URL
Paste the public GitHub repository URL for the library you want to add.
3
Adjust parsing (optional)
The form only takes the repository URL. To narrow what gets indexed with included folders and exclusions, add a
context7.json file to the repository (see Library Owners).4
Submit
Submit the repository. Context7 parses and indexes the documentation, then makes it available by its library ID (format:
/org/project).This page is for public libraries. To add internal or private documentation, see the Private Sources guide (requires a Pro or Enterprise plan).
What Gets Indexed
Context7 parses documentation files —.md, .mdx, .markdown, .rst, .txt, .adoc, .html, .ipynb, and other text formats — and extracts the code examples and explanations they contain. PDF and DOCX files in a repository are converted to text and indexed too. Raw source code files (.py, .ts, .go, and so on) are not indexed when documentation is present; a library’s docs are expected to show the important usage examples.
If a repository contains little or no documentation content, Context7 falls back to generating examples from the source code itself. For public repositories this fallback is automatic — there is no setting to turn it on or off. For private repositories, generating docs from source code is opt-in: check Generate docs when adding the source, or pass the generateDocs flag via the API.
Context7 indexes documentation written in English. Pages whose prose is mainly in another language are skipped. If most of the documentation is skipped this way and nothing remains, the parse fails with a language mismatch error.
To control which folders and files are scanned, commit a context7.json file to the repository (see Library Owners).
Maintain the Library?
If you own or maintain the library, you can take control of how it appears in Context7 — configure parsing withcontext7.json, manage your library through a web admin panel, and get higher refresh limits.
Library Owners
Control parsing and presentation with
context7.jsonClaim Your Library
Verify ownership and unlock the admin panel