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.6.0.tar.gz (1.2 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.6.0-py3-none-any.whl (82.3 kB view details)

Uploaded Python 3

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

Hashes for docbuddy-0.6.0.tar.gz
Algorithm Hash digest
SHA256 7f919624c2072bcdc4fbd88394e552c846abf42e59d875e590911abd6350e951
MD5 f37e40113e86e063bdaf47d63ac56695
BLAKE2b-256 734664c4f04e5bb98266b18750a09ad235bdeabadb5ea10aea1d5c5464ec89d4

See more details on using hashes here.

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

Hashes for docbuddy-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9dd67120ff2dce491d52a2817614510a39dd872b812cbee0a6d1a7ed312bbfc
MD5 4c4e043dc3934dd6ecfd223cdae623a6
BLAKE2b-256 f0599ca7cd3940d88fa4512ff2f028eeb51154f698d212f14cb09d72c08231d7

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