AI-powered documentation fetcher for the terminal using Google Gemini.
- ๐ Fetch library documentation directly in your terminal
- ๐ค Powered by Google Gemini AI
- ๐ฆ Auto-detects library versions from your package.json
- โ๏ธ Simple configuration management
- ๐จ Beautiful colored output
npm install -g doc-pilotgit clone https://github.com/Nik-09/doc-pilot.git
cd doc-pilot
npm install
npm link-
Get a Gemini API key from Google AI Studio
-
On first use, the tool will prompt you for your API key:
doc-pilot find express useOr set it manually:
doc-pilot config --set-api-keydoc-pilot find <library> <function>Examples:
# Get documentation for express.use()
doc-pilot find express use
# Get documentation for Array.map()
doc-pilot find Array map
# Get documentation for lodash.debounce()
doc-pilot find lodash debounce# Show current configuration
doc-pilot config --show-config
# Set or update API key
doc-pilot config --set-api-key
# Reset configuration
doc-pilot config --reset- You run the command with a library and function name
- doc-pilot checks if the library is in your local package.json
- It queries Google Gemini with version context (if available)
- Returns formatted documentation with examples
Configuration is stored in ~/.doc-pilot/config.json
- Node.js 18+
- Gemini API key
- @google/genai - Google Gemini API SDK
- chalk - Terminal styling
- commander - CLI framework
Contributions are welcome! Please feel free to submit a Pull Request.
ISC