Memory and knowledge

Docs Portal

A small local web app for browsing project documentation and exporting it as PDF.

Status, in the repository's words: Intended to run locally.

Repositorybulletproof-docs-portal
OwnerBulletproofSoftwareAI
Version0.2.9
In suite v1.0.00.2.9, tagged 2026-11-23
Released2026-11-23
LicenseApache-2.0

What it is

Walks a configurable root folder and lists every project in it that has docs.

Built for documentation that is scattered across many repositories.

Runs as one process with one shared access token, no database and no build step.

The app only reads files; it never modifies them.

What it does today

What it ships

What it needs

Install

Copied from the repository's README. This site has not run these commands.

cd bulletproof-docs-portal
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
export DOCS_PORTAL_TOKEN="$(openssl rand -hex 24)"
.venv/bin/uvicorn app:app --host 127.0.0.1 --port 8090

Limits and known issues, as the repository lists them

As listed on branch main of BulletproofSoftwareAI/bulletproof-docs-portal on 2026-11-30, commit cf37ebd: newer than the version described above.

  • There is no per-user authorization and no rate limiting.
  • Every doc under the root folder is readable by anyone who can reach the port and holds the token.
  • No search: docs are found by directory and file-name pattern, not by full text.
  • The sanitiser is the portal's own allowlist serialiser, not a browser-grade HTML parser.
  • A browser does not send the token header on its own; a request-header extension has to add it.
  • The included security scan report predates CVE-2026-106443, which the pinned WeasyPrint 70.0 fixes.

Works with

Code Hardener: The repo includes a security scan report from Code Hardener dated 2026-07-24.

Documents in the repository

Source code

Where each statement on this page comes from

Read from BulletproofSoftwareAI/bulletproof-docs-portal, branch main, commit 29f55ce; the limits and known issues from BulletproofSoftwareAI/bulletproof-docs-portal, branch main, commit cf37ebd, read on 2026-11-30. File and line for each statement:

  1. A small local web app for browsing project documentation and exporting it as PDF. README.md:3
  2. Intended to run locally. docs/OVERVIEW.md:25
  3. 0.2.9 app.py:39
  4. 2026-11-23 CHANGELOG.md:6
  5. Apache-2.0 README.md:106
  6. Walks a configurable root folder and lists every project in it that has docs. README.md:10
  7. Built for documentation that is scattered across many repositories. docs/OVERVIEW.md:16
  8. Runs as one process with one shared access token, no database and no build step. docs/OVERVIEW.md:24
  9. The app only reads files; it never modifies them. docs/OVERVIEW.md:124
  10. Shows each project's docs as a tree, grouped by their top-level directory. docs/HOW-TO-USE.md:27
  11. Renders a Markdown or HTML document as a web page. docs/HOW-TO-USE.md:61
  12. Exports a doc as a PDF through a print stylesheet with letter page size and page numbers in the footer. docs/HOW-TO-USE.md:81
  13. Bundles every matching doc in a project into one ZIP download. docs/HOW-TO-USE.md:94
  14. Every route except /healthz requires the shared token. README.md:28
  15. Answers 503 when no token is configured and 401 for a missing or wrong token; the test suite covers both. README.md:76
  16. Markdown and HTML docs are sanitised before display: scripts, styles, event handlers and frames are removed. docs/HOW-TO-USE.md:63
  17. The doc, raw and PDF routes serve only the docs that the project page lists. CHANGELOG.md:119
  18. Every project and doc path is resolved and checked to stay under the configured root folder. docs/OVERVIEW.md:81
  19. By default PDF export does not fetch the URLs a doc references, so external images, stylesheets and inline data images are left out of PDFs; a setting turns fetching on. README.md:49
  20. app.py holds the entire application: a FastAPI app with 7 routes, Markdown-to-HTML rendering and WeasyPrint PDF export. docs/OVERVIEW.md:33
  21. A public /healthz endpoint that returns the status and the version as JSON. docs/OVERVIEW.md:96
  22. A pytest test suite for the access guards. CHANGELOG.md:276
  23. A machine-readable software bill of materials (SBOM) in CycloneDX format. docs/SBOM.md:4
  24. Python 3.10 or newer is expected; CI runs on 3.12. docs/INSTALL.md:14
  25. The native libraries Cairo, Pango, GDK-PixBuf and libffi, which WeasyPrint needs for PDF rendering. docs/INSTALL.md:15
  26. Without those native libraries the app does not start, because WeasyPrint is imported at startup. docs/INSTALL.md:38
  27. Six direct Python dependencies: FastAPI, Starlette, Uvicorn, Markdown, Pygments and WeasyPrint. docs/OVERVIEW.md:34
  28. WeasyPrint is pinned to version 70.0. requirements.txt:6
  29. A shared secret in the DOCS_PORTAL_TOKEN environment variable; while it is unset the portal refuses requests. README.md:48
  30. There is no per-user authorization and no rate limiting. docs/ADMINISTRATOR.md:68 at cf37ebd
  31. Every doc under the root folder is readable by anyone who can reach the port and holds the token. docs/HOW-TO-USE.md:134 at cf37ebd
  32. No search: docs are found by directory and file-name pattern, not by full text. docs/OVERVIEW.md:130 at cf37ebd
  33. The sanitiser is the portal's own allowlist serialiser, not a browser-grade HTML parser. docs/ADMINISTRATOR.md:137 at cf37ebd
  34. A browser does not send the token header on its own; a request-header extension has to add it. README.md:36 at cf37ebd
  35. The included security scan report predates CVE-2026-106443, which the pinned WeasyPrint 70.0 fixes. README.md:134 at cf37ebd
  36. The repo includes a security scan report from Code Hardener dated 2026-07-24. README.md:90
  37. Install section of the README README.md:18

Bulletproof suite v1.0.0 pins tag v0.2.9, commit 29f55ce, tagged 2026-11-23.