No description
Find a file
sudipnext 17ea7d9f95 feat: Implement streaming chat functionality in FastAPI and update UI
- Added a new endpoint for streaming chat messages in FastAPI, allowing real-time interaction.
- Enhanced the `PresentationChatService` to support streaming replies with event types for chunked responses, status updates, and tool tracing.
- Updated the chat UI to handle and display assistant activities, including loading states and tool usage.
- Introduced new models for SSE responses and integrated them into the chat service.
- Improved error handling and response management in the chat API.
2026-04-25 15:49:39 +05:45
.github feat: add support for optional embedded Ollama and enhance database migration handling 2026-04-15 15:39:35 +05:45
electron feat: API implement in chat interface 2026-04-24 16:00:24 +05:45
presentation-export refactor:Improve Document Preview page 2026-04-20 19:55:00 +05:45
readme_assets/images docs: Revamp README 2026-03-21 20:26:52 +05:45
scripts Refactor presentation export runtime handling 2026-04-18 16:49:42 +05:45
servers feat: Implement streaming chat functionality in FastAPI and update UI 2026-04-25 15:49:39 +05:45
.codex refactor: 'Report' tempalte filename changes 2026-04-09 22:11:05 +05:45
.dockerignore refactor: reduces images size to around 2.5gb 2026-04-21 17:43:07 +05:45
.gitignore Refactor code structure and remove redundant changes in multiple sections 2026-04-16 13:33:21 +05:45
CODE_OF_CONDUCT.md Revise Code of Conduct with expanded values and guidelines 2026-03-15 16:20:38 +05:45
CONTRIBUTING.md Update contribution guidelines 2026-04-23 17:05:32 +05:45
docker-compose.yml feat: integrates llmai instead of using old llm client and tool call handlers 2026-04-23 11:42:15 +05:45
Dockerfile Enhance Docker configuration by adding new environment variables for image generation and updating dependencies in Dockerfile and FastAPI. This includes support for image providers and quality settings, improving flexibility in deployment configurations. 2026-04-22 17:32:13 +05:45
Dockerfile.dev refactor: Update Dockerfile and improve custom template handling 2026-04-18 17:58:11 +05:45
LICENSE Initial: presenton 2025-05-10 19:57:24 +05:45
nginx.conf feat: implement single-user authentication with environment variable support and update FastAPI middleware for session management 2026-04-21 17:41:37 +05:45
NOTICE update: add notice and notice script 2025-08-19 16:27:42 +05:45
package-lock.json Refactor presentation export runtime handling 2026-04-18 16:49:42 +05:45
package.json Refactor presentation export runtime handling 2026-04-18 16:49:42 +05:45
README.md Update README.md 2026-04-23 17:46:19 +05:45
start.js feat: integrates llmai instead of using old llm client and tool call handlers 2026-04-23 11:42:15 +05:45
test-local.sh updated 2026-02-20 12:02:23 +05:45
test_server.py feat: implement database migration on startup and update dependencies for FastAPI 2026-03-08 20:05:44 +05:45
VISION.md Enhance vision statement for clarity and emphasis 2026-02-28 18:33:39 +05:45

Presenton

Quickstart · Docs · Youtube · Discord

Apache2.0 Stars Platform

Open-Source AI Presentation Generator and API (Gamma, Beautiful AI, Decktopus Alternative)

Why Presenton

No SaaS lock-in · No forced subscriptions · Full control over models and data

What makes Presenton different?

  • Use Fully self-hosted in Web through Docker Package
  • Or Download Desktop App (Mac, Windows & Linux)
  • Works with OpenAI, Gemini, Anthropic, Ollama, or custom models
  • Comes with AI Presentation Generation API
  • Fully open-source (Apache 2.0)
  • Works with your own design/templates

Tip

Star us! A shows your support and encourages us to keep building! 😇

Presenton

🎛 Features

Presenton Features

💻 Presenton Desktop

Create AI-powered presentations using your own model provider (BYOK) or run everything locally on your own machine for full control and data privacy.

Cloud deployment

Available Platforms

Platform Architecture Package Download
macOS Apple Silicon / Intel .dmg Download ↗
Windows x64 .exe Download ↗
Linux x64 .deb Download ↗

Presenton gives you complete control over your AI presentation workflow. Choose your models, customize your experience, and keep your data private.

  • Custom Templates & Themes — Create unlimited presentation designs with HTML and Tailwind CSS
  • AI Template Generation — Create presentation templates from existing Powerpoint documents.
  • Flexible Generation — Build presentations from prompts or uploaded documents
  • Export Ready — Save as PowerPoint (PPTX) and PDF with professional formatting
  • Built-In MCP Server — Generate presentations over Model Context Protocol
  • Bring Your Own Key — Use your own API keys for OpenAI, Google Gemini, Anthropic Claude, or any compatible provider. Only pay for what you use, no hidden fees or subscriptions.
  • Ollama Integration — Run open-source models locally with full privacy
  • OpenAI API Compatible — Connect to any OpenAI-compatible endpoint with your own models
  • Multi-Provider Support — Mix and match text and image generation providers
  • Versatile Image Generation — Choose from DALL-E 3, Gemini Flash, Pexels, or Pixabay
  • Rich Media Support — Icons, charts, and custom graphics for professional presentations
  • Runs Locally — All processing happens on your device, no cloud dependencies
  • API Deployment — Host as your own API service for your team
  • Fully Open-Source — Apache 2.0 licensed, inspect, modify, and contribute
  • Docker Ready — One-command deployment with GPU support for local models
  • Electron Desktop App — Run Presenton as a native desktop application on Windows, macOS, and Linux (no browser required)
  • Sign in with ChatGPT — Use your free or paid ChatGPT account to sign in and start creating presentations instantly — no separate API key required

☁️ Presenton Cloud

Run Presenton directly in your browser — no installation, no setup required. Start creating presentations instantly from anywhere.

Presenton Cloud

Running Presenton

You can run Presenton in two ways: Docker for a one-command setup without installing a local dev stack, or the Electron desktop app for a native app experience (ideal for development or offline use).

Option 1: Electron (Desktop App)

Run Presenton as a native desktop application. LLM and image provider (API keys, etc.) can be configured in the app. The same environment variables used for Docker apply when running the bundled backend.

Prerequisites: Node.js (LTS), npm, Python 3.11, and uv (for the Electron FastAPI backend in electron/servers/fastapi).

  • Setup (First Time)

    cd electron
    npm run setup:env

    This installs Node dependencies, runs uv sync in the FastAPI server, and installs Next.js dependencies.

  • Run in Development

    npm run dev

    This compiles TypeScript and starts Electron. The backend and UI run locally inside the desktop window.

  • Build Distributable (Optional) To create installers for Windows, macOS, or Linux:

    npm run build:all
    npm run dist

    Output files are written to electron/dist (or as configured in your electron-builder settings).

Option 2: Docker

  • Start Presenton Linux/MacOS (Bash/Zsh Shell):

    docker run -it --name presenton -p 5000:80 -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest

    Windows (PowerShell):

    docker run -it --name presenton -p 5000:80 -v "${PWD}\app_data:/app_data" ghcr.io/presenton/presenton:latest
  • Open Presenton

    Open http://localhost:5000 in the browser of your choice to use Presenton.

    Note: You can replace 5000 with any other port number of your choice to run Presenton on a different port number.

⚙️ Deployment Configurations

The lists below match the environment variables forwarded in this repositorys docker-compose.yml (production, production-gpu, development, and development-gpu). Put values in a .env file next to the compose file, or export them before docker compose up. The Electron app backend can read the same names when run outside Docker.

Other optional variables exist in code (for example advanced Mem0 paths, LiteParse runners, or FAST_API_INTERNAL_URL when Next.js and FastAPI are not same-origin); they are not wired in docker-compose.yml. Supported names are discoverable from servers/fastapi/utils/get_env.py and the Next.js server utilities under servers/nextjs/.

LLM and API keys

  • CAN_CHANGE_KEYS=[true/false]: Set to false if you want to keep API keys hidden and make them unmodifiable.
  • LLM=[openai/google/anthropic/ollama/custom/codex]: Select the text LLM.
  • OPENAI_API_KEY: Required if LLM is openai.
  • OPENAI_MODEL: Required if LLM is openai (default: gpt-4.1).
  • GOOGLE_API_KEY: Required if LLM is google.
  • GOOGLE_MODEL: Required if LLM is google (default: models/gemini-2.0-flash).
  • ANTHROPIC_API_KEY: Required if LLM is anthropic.
  • ANTHROPIC_MODEL: Required if LLM is anthropic (default: claude-3-5-sonnet-20241022).
  • CODEX_MODEL: Required if LLM is codex (Codex OAuth flow; compose maps host port 1455 for the callback).
  • CUSTOM_LLM_URL: OpenAI-compatible base URL if LLM is custom.
  • CUSTOM_LLM_API_KEY: API key if LLM is custom.
  • CUSTOM_MODEL: Model id if LLM is custom.
  • DISABLE_THINKING=[true/false]: If true, disables “thinking” on the custom LLM.
  • WEB_GROUNDING=[true/false]: If true, enables web search for OpenAI, Google, and Anthropic models.
  • EXTENDED_REASONING=[true/false]: Enables extended reasoning where supported by the configured stack.

Ollama

Use when LLM is ollama:

  • OLLAMA_URL: Base URL of the Ollama HTTP API (e.g. http://host.docker.internal:11434 from Docker).
  • OLLAMA_MODEL: Model name in Ollama (e.g. llama3.2:3b).
  • START_OLLAMA=[true/false]: Container entrypoint (start.js): optional install + ollama serve. Default false (development / production compose).

Presentation memory (Mem0 OSS)

Mem0 uses local Qdrant + SQLite (OSS); memory is scoped per presentation.

Variable Purpose
MEM0_ENABLED true/false (compose default true).
MEM0_DIR Root directory (compose default /app_data/mem0).
MEM0_EMBEDDER_PROVIDER Embedder backend (compose default fastembed).
MEM0_EMBEDDER_MODEL Model id (compose default BAAI/bge-small-en-v1.5).
MEM0_EMBEDDING_DIMS Vector size (compose default 384).

Document parsing (LiteParse)

Variable Purpose
LITEPARSE_DPI OCR render DPI (compose default 120).
LITEPARSE_NUM_WORKERS Worker count (compose default 1).

Database

  • DATABASE_URL: SQLAlchemy URL; if unset, the app falls back to SQLite under app data.
  • MIGRATE_DATABASE_ON_STARTUP: Compose sets true for all services so migrations run on startup.

Image generation

These variables match docker-compose.yml. IMAGE_PROVIDER selects the backend (pexels, pixabay, gemini_flash, nanobanana_pro, dall-e-3, gpt-image-1.5, comfyui, open_webui). Use OPENAI_API_KEY for OpenAI image modes and GOOGLE_API_KEY for Gemini image modes (same keys as the LLM section).

  • DISABLE_IMAGE_GENERATION=[true/false]: Disable slide image generation.
  • IMAGE_PROVIDER: Provider id (see enum above).
  • PEXELS_API_KEY: Pexels stock images.
  • PIXABAY_API_KEY: Pixabay stock images.
  • DALL_E_3_QUALITY=[standard/hd]: Optional for dall-e-3 (default standard).
  • GPT_IMAGE_1_5_QUALITY=[low/medium/high]: Optional for gpt-image-1.5 (default medium).
  • COMFYUI_URL / COMFYUI_WORKFLOW: Self-hosted ComfyUI workflow JSON.
  • OPEN_WEBUI_IMAGE_URL / OPEN_WEBUI_IMAGE_API_KEY: Open WebUIcompatible image endpoint.

Telemetry

  • DISABLE_ANONYMOUS_TRACKING=[true/false]: Set to true to disable anonymous telemetry.

Authentication (web login)

Presenton uses a single admin account per instance. Credentials live in app_data (hashed; see userConfig.json). Pass these with -e or via .env for compose:

  • AUTH_USERNAME / AUTH_PASSWORD — Preseed the admin login on first boot (password at least 6 characters). Ignored if a user already exists unless AUTH_OVERRIDE_FROM_ENV is set.
  • AUTH_OVERRIDE_FROM_ENV=[true/false] — If true, replace stored credentials from the env vars on every FastAPI startup and rotate the session signing secret (invalidates existing sessions). Remove after a one-off rotation.
  • RESET_AUTH=[true/false] — If true, clear stored credentials on startup. Use for a single boot to recover access, then unset.

Examples

docker run -it --name presenton -p 5000:80 -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest
docker run -it --name presenton -p 5000:80 -e AUTH_USERNAME=admin -e AUTH_PASSWORD=changeme123 -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest
docker run -it --name presenton -p 5000:80 -e AUTH_USERNAME=admin -e AUTH_PASSWORD=changeme123 -v "${PWD}\app_data:/app_data" ghcr.io/presenton/presenton:latest
docker stop presenton && docker rm presenton && docker run -it --name presenton -p 5000:80 -e AUTH_USERNAME=admin -e AUTH_PASSWORD=newcred456 -e AUTH_OVERRIDE_FROM_ENV=true -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest
docker stop presenton && docker rm presenton && docker run -it --name presenton -p 5000:80 -e RESET_AUTH=true -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest
docker stop presenton && docker rm presenton && docker run -it --name presenton -p 5000:80 -e AUTH_USERNAME=admin -e AUTH_PASSWORD=changeme123 -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest

Manual reset: stop the container, edit ./app_data/userConfig.json, delete AUTH_USERNAME, AUTH_PASSWORD_HASH, and AUTH_SECRET_KEY, save, and start again.

Sign out from the app: Settings → Other → Sign out.

Note: LLM and image variables above are forwarded from docker-compose.yml when set in .env.



Docker Run Examples by Provider

Same variables as compose; use -e instead of .env when running docker run directly.

  • Using OpenAI

    docker run -it --name presenton -p 5000:80 -e LLM="openai" -e OPENAI_API_KEY="******" -e IMAGE_PROVIDER="dall-e-3" -e CAN_CHANGE_KEYS="false" -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest
  • Using Google

    docker run -it --name presenton -p 5000:80 -e LLM="google" -e GOOGLE_API_KEY="******" -e IMAGE_PROVIDER="gemini_flash" -e CAN_CHANGE_KEYS="false" -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest
  • Using Ollama

    docker run -it --name presenton -p 5000:80 -e LLM="ollama" -e OLLAMA_MODEL="llama3.2:3b" -e IMAGE_PROVIDER="pexels" -e PEXELS_API_KEY="*******" -e CAN_CHANGE_KEYS="false" -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest
  • Using Anthropic

    docker run -it --name presenton -p 5000:80 -e LLM="anthropic" -e ANTHROPIC_API_KEY="******" -e IMAGE_PROVIDER="pexels" -e PEXELS_API_KEY="******" -e CAN_CHANGE_KEYS="false" -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest
  • Using OpenAI Compatible API

    docker run -it -p 5000:80 -e CAN_CHANGE_KEYS="false"  -e LLM="custom" -e CUSTOM_LLM_URL="http://*****" -e CUSTOM_LLM_API_KEY="*****" -e CUSTOM_MODEL="llama3.2:3b" -e IMAGE_PROVIDER="pexels" -e  PEXELS_API_KEY="********" -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest
  • Running Presenton with GPU Support To use GPU acceleration with Ollama models, you need to install and configure the NVIDIA Container Toolkit. This allows Docker containers to access your NVIDIA GPU. Once the NVIDIA Container Toolkit is installed and configured, you can run Presenton with GPU support by adding the --gpus=all flag:

    docker run -it --name presenton --gpus=all -p 5000:80 -e LLM="ollama" -e OLLAMA_MODEL="llama3.2:3b" -e IMAGE_PROVIDER="pexels" -e PEXELS_API_KEY="*******" -e CAN_CHANGE_KEYS="false" -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest

Generate Presentation via API

Generate Presentation

Endpoint: /api/v1/ppt/presentation/generate
Method: POST
Content-Type: application/json

Authentication (HTTP Basic):
All /api/v1/ routes except /api/v1/auth/* require authentication. Send your Presenton admin username and password (same as the web UI, or AUTH_USERNAME / AUTH_PASSWORD when preseeding Docker). With curl, put them right after -u as -u USERNAME:PASSWORD — that is HTTP Basic auth and sets Authorization: Basic … for you. Replace the sample username:password below with your real credentials.

Request Body

Parameter Type Required Description
content string Yes Main content used to generate the presentation.
slides_markdown string[] | null No Provide custom slide markdown instead of auto-generation.
instructions string | null No Additional generation instructions.
tone string No Text tone (default: "default"). Options: default, casual, professional, funny, educational, sales_pitch
verbosity string No Content density (default: "standard"). Options: concise, standard, text-heavy
web_search boolean No Enable web search grounding (default: false).
n_slides integer No Number of slides to generate (default: 8).
language string No Presentation language (default: "English").
template string No Template name (default: "general").
include_table_of_contents boolean No Include table of contents slide (default: false).
include_title_slide boolean No Include title slide (default: true).
files string[] | null No Files to use in generation. Upload first via /api/v1/ppt/files/upload.
export_as string No Export format (default: "pptx"). Options: pptx, pdf

Response

{
  "presentation_id": "string",
  "path": "string",
  "edit_path": "string"
}

Example (curl + HTTP Basic auth with -u)

curl -u username:password \
  -X POST http://localhost:5000/api/v1/ppt/presentation/generate \
  -H "Content-Type: application/json" \
  -d '{
   "content": "Introduction to Machine Learning",
    "n_slides": 5,
    "language": "English",
    "template": "general",
    "export_as": "pptx"
  }'

Example Response

{
  "presentation_id": "d3000f96-096c-4768-b67b-e99aed029b57",
  "path": "/app_data/d3000f96-096c-4768-b67b-e99aed029b57/Introduction_to_Machine_Learning.pptx",
  "edit_path": "/presentation?id=d3000f96-096c-4768-b67b-e99aed029b57"
}
Note: Prepend your servers root URL to path and edit_path to construct valid links.

Documentation & Tutorials

🚀 Roadmap

Track the public roadmap on GitHub Projects: https://github.com/orgs/presenton/projects/2