Skip to main content

Add an AI Assistant to your `/docs` page.

Project description

Documentation Buddy

CI PyPI version Python versions License: MIT Downloads FastAPI

Add an AI assistant to your /docs page.

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
API Explorer Chat Interface with Tools
Workflow Panel LLM Settings
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:

  1. Run python3 -m http.server 8080 from the repo root
  2. 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

  1. Choose your local LLM provider (Ollama, LM Studio, vLLM, or Custom)
  2. Enter the API endpoint for your LLM (e.g. http://localhost:1234/v1 for LMStudio)
  3. Verify that the plugin can connect to your LLM provider and select a model from the drop down after.
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docbuddy-0.7.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docbuddy-0.7.0-py3-none-any.whl (82.7 kB view details)

Uploaded Python 3

File details

Details for the file docbuddy-0.7.0.tar.gz.

File metadata

  • Download URL: docbuddy-0.7.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for docbuddy-0.7.0.tar.gz
Algorithm Hash digest
SHA256 ae95a7ba6c3954d52f15a4e208ed97a238101971198079d03894eff431df6190
MD5 7c95d75560a2204feb993654d8dde38a
BLAKE2b-256 e44de84d03467875be0e65cdbc2ce15affa06d745a6af883f35c7b1d3b7d1f5b

See more details on using hashes here.

File details

Details for the file docbuddy-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: docbuddy-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 82.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for docbuddy-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c536cca9da2d223aefdd4fd0917f36fddeb29ea65f029d2d0608783f2f65905f
MD5 e1d40c0bf2a285866395a0b000aa27f0
BLAKE2b-256 d5698b7fb1b8bb1bf16dbe7b9ddab8844f8bab41fa7ffed0a1b1cedc284a2f6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page