Add an AI Assistant to your `/docs` page.
Project description
Documentation Buddy
Add an AI assistant to your
/docspage.
Try the Standalone Demo
Installation
pip install docbuddy
Run the standalone page locally with the command:
docbuddy --port 9000
Python Integration
from fastapi import FastAPI
from docbuddy import setup_docs
app = FastAPI()
setup_docs(app) # replaces default /docs
That's it! Visit /docs
| API Explorer | Chat Interface |
|---|---|
| Workflow Panel | LLM Settings |
|---|---|
Features
- 💬 Chat interface with full OpenAPI context
- 🤖 LLM Settings panel with local providers (Ollama, LM Studio, vLLM, Custom)
- 🔗 Tool-calling for API Requests
- 🎨 Dark/light theme support
Using the Chat
Ask questions like:
- "What endpoints are available?"
- "Create a curl cmd for adding a new user"
- "Ping health"
Enable tool calling in the settings to allow the assistant to make API requests on your behalf.
Standalone Mode
If you prefer manual control, run DocBuddy from the repo root:
- Run
python3 -m http.server 8080from the repo root - Visit in your browser http://localhost:8080/docs/index.html
Note: Due to browser security restrictions (CORS), if you want to use local LLMs (Ollama, LM Studio, vLLM), you must run DocBuddy locally instead of from the GitHub Pages hosted version.
LLM Settings
- Choose your local LLM provider (Ollama, LM Studio, vLLM, or Custom)
- Enter the API endpoint for your LLM (e.g.
http://localhost:1234/v1for LMStudio) - Verify that the plugin can connect to your LLM provider and select a model from the drop down after.
- Enable tool calling if you want the assistant to make API requests on your behalf.
Some local LLM providers will require users to enable CORS in their API settings to allow the plugin to connect.
Demo Server
uvicorn examples.demo_server:app --reload --host 0.0.0.0 --port 3333
Development
pip install -e ".[dev]"
pytest tests/
pre-commit run --all-files
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file docbuddy-0.6.0.tar.gz.
File metadata
- Download URL: docbuddy-0.6.0.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f919624c2072bcdc4fbd88394e552c846abf42e59d875e590911abd6350e951
|
|
| MD5 |
f37e40113e86e063bdaf47d63ac56695
|
|
| BLAKE2b-256 |
734664c4f04e5bb98266b18750a09ad235bdeabadb5ea10aea1d5c5464ec89d4
|
File details
Details for the file docbuddy-0.6.0-py3-none-any.whl.
File metadata
- Download URL: docbuddy-0.6.0-py3-none-any.whl
- Upload date:
- Size: 82.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9dd67120ff2dce491d52a2817614510a39dd872b812cbee0a6d1a7ed312bbfc
|
|
| MD5 |
4c4e043dc3934dd6ecfd223cdae623a6
|
|
| BLAKE2b-256 |
f0599ca7cd3940d88fa4512ff2f028eeb51154f698d212f14cb09d72c08231d7
|