Get Version-Correct Library Docs with vg lib
vg lib serves version-correct library docs pinned to your lockfile — the Free Dev Docs Library — offline to any AI assistant via vg serve and vg install.
AI assistants often suggest APIs from the wrong version of a library. vg lib fixes that by serving version-correct library docs pinned to your lockfile — the Free Dev Docs Library, available offline to any AI assistant.
Prerequisites
- A project with a lockfile (so versions can be resolved)
Steps
1. Build the graph
vg build
2. Pull library docs
vg lib
vg lib provides docs for the libraries in use, sourced from the hosted catalog or local ingestion.
3. Understand lockfile pinning
The docs are pinned to your lockfile, so they match the exact versions you actually depend on — not the latest release. That keeps AI suggestions correct for your project.
4. Serve docs to your assistant
Make the docs available locally and offline through Vibgrate AI Context:
vg serve
This starts the local, offline MCP server that serves your code map, drift, and version-correct library docs.
5. Wire it into your AI tool
Add Vibgrate AI Context to your assistant:
vg install
vg install wires up the skill and MCP integration. It is idempotent and repo-local, and supports Claude, Cursor, Windsurf, VS Code, Codex, and Gemini.
Verification
Confirm vg lib returns docs for libraries you actually depend on. After vg serve and vg install, your AI assistant should be able to consult version-correct docs offline.
Next Steps
- Start the offline server with
vg serve - Wire it into your assistant with
vg install - Ask the codebase a question with
vg ask
Prerequisites
- A project with a lockfile
Steps
- 1Build the graph
- 2Pull library docs
- 3Understand lockfile pinning
- 4Serve docs to your assistant
- 5Wire it into your AI tool