⚡ docsfy

docsfy

Self-hosted AI documentation generator that turns Git repositories into searchable static docs through a FastAPI web service.

Get Started
🤖
AI-friendly documentation

This documentation is optimized for AI consumption.

Overview

  • Project Overview

    Explain what docsfy does, who it is for, and the high-level problem it solves.

  • Architecture

    Describe the FastAPI app, SQLite storage layer, AI generation pipeline, and static site renderer.

  • Core Concepts

    Define projects, variants, owners, roles, sessions, and generated artifacts.

  • Generation Lifecycle

    Walk through cloning, planning, page generation, rendering, and ready/error/aborted states.

Explore →

Getting Started

  • Prerequisites

    List Python, uv, git, required AI CLIs/credentials, and mandatory ADMIN_KEY setup.

  • Local Installation

    Show how to install dependencies and run the service locally using the Python project setup.

  • Run with Docker

    Document Dockerfile and docker-compose usage, mounted data volume, and health checks.

  • First Documentation Run

    Guide users from login through generating, monitoring, and opening their first docs site.

Explore →

Configuration

Explore →

Usage Guides

Explore →

Administration and Security

  • Authentication Model

    Detail Bearer token and session-cookie auth flow, public paths, and protected endpoint behavior.

  • Roles and Permissions

    Define admin, user, and viewer capabilities across UI actions and write-protected APIs.

  • User Management

    Document creating users, reserved usernames, deleting users, and admin panel workflows.

  • Project Access Grants

    Explain owner-scoped project sharing, grant/revoke APIs, and non-owner visibility rules.

  • API Key Rotation

    Describe self-service and admin-initiated key rotation, validation rules, and session invalidation.

  • Security Controls

    Summarize SSRF checks, path traversal protections, HTML sanitization, and audit logging points.

Explore →

API Reference

Explore →

Operations and Development

  • Deployment Topologies

    Cover local, containerized, and OpenShift-style non-root runtime considerations.

  • Database Schema and Migrations

    Explain projects/users/project_access/sessions tables and built-in migration behavior.

  • Backup and Recovery

    Provide guidance for backing up SQLite and generated project artifacts under DATA_DIR.

  • Testing and Quality Gates

    Document pytest coverage areas, tox usage, pre-commit hooks, mypy, ruff, and secrets scanning.

  • CI/CD Integration

    Describe current automation posture and recommend pipeline steps based on existing tox and hooks.

  • Repository Structure

    Map source modules, templates, static assets, tests, and runtime/config files for contributors.

  • Extending docsfy

    Show where to customize prompts, renderer templates, frontend assets, and generation logic.

Explore →