ChartDB

Database diagram editor that imports your schema with one query

  • ghcr.io/chartdb/chartdb:1.21.0
  • v1.21.0
  • Updated 25 Nov 2026
  • port 6837
  • amd64 · arm64
  • Developer
  • 23.2k stars

Open the app

Web App

http://localhost:6837/

About ChartDB

ChartDB draws diagrams of your databases. Run one query it gives you in your database, paste the result, and get an editable diagram of every table and relation. Edit it, export SQL for another database, or share an image.

Features

  • Imports PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, ClickHouse and CockroachDB schemas
  • Editable tables, fields, relations and areas
  • Export to SQL for another database, PNG, SVG and JSON
  • Optional AI export with your own OpenAI key
  • Diagrams are kept in your browser

How to use

  1. Open ChartDB and pick your database type.
  2. Run the query it shows in your database and paste the result.
  3. Edit the diagram, then export SQL or an image.

Before you install

ChartDB has no login and keeps your diagrams in your browser's storage, so they are not shared between devices; export them to keep a copy. The AI export needs your own OpenAI key or an OpenAI-compatible server (Variables tab).

The settings in the first table are already in the app settings. To use any other one, open the app settings, add the variable with your value, save, and the app restarts with it. A setting you leave out uses its default.

In the app settings

VariableDefault valueDescription
TZ$TZYour time zone. It is filled in from your ZimaOS time zone.

AI

VariableDefault valueDescription
OPENAI_API_KEY—Your OpenAI key, for exporting a schema to another database with AI.
OPENAI_API_ENDPOINT—An OpenAI-compatible address instead, like your Ollama at http://192.168.1.20:11434/v1.
LLM_MODEL_NAME—The model to use with that address.

Server

VariableDefault valueDescription
DISABLE_ANALYTICSfalseSet to true to turn off usage statistics.
docker-compose.yml
name: chartdb

services:
  chartdb:
    image: ghcr.io/chartdb/chartdb:1.21.0
    container_name: chartdb
    restart: unless-stopped
    network_mode: bridge
    environment:
      - TZ=$TZ
    ports:
      - target: 80
        published: "6837"
        protocol: tcp
    healthcheck:
      test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:80/"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 30s
    deploy:
      resources:
        limits:
          memory: 128M
        reservations:
          memory: 16M
    labels:
      icon: https://cdn.jsdelivr.net/gh/HSinghHira/IceStore@main/Apps/chartdb/icon.png
    x-casaos:
      id: com.icestore.chartdb
      envs:
        - container: TZ
          description:
            en_US: >-
              Your time zone. It is filled in from your ZimaOS
              time zone.
      ports:
        - container: "80"
          description:
            en_US: >-
              ChartDB web app, published on host as 6837

x-casaos:
  id: com.icestore.chartdb
  architectures:
    - amd64
    - arm64
  main: chartdb
  author: HSinghHira
  category: Developer
  developer: "ChartDB"
  icon: https://cdn.jsdelivr.net/gh/HSinghHira/IceStore@main/Apps/chartdb/icon.png
  title:
    en_US: ChartDB
  tagline:
    en_US: Database diagram editor that imports your schema with one query
  description:
    en_US: >-
      Visit: [https://icestore.hsinghhira.me/app/chartdb/](https://icestore.hsinghhira.me/app/chartdb/) for full details


      ChartDB draws diagrams of your databases. Run one query it gives
      you in your database, paste the result, and get an editable
      diagram of every table and relation. Edit it, export SQL for
      another database, or share an image.


      **Features**


      - Imports PostgreSQL, MySQL, MariaDB, SQL Server, SQLite,
        ClickHouse and CockroachDB schemas

      - Editable tables, fields, relations and areas

      - Export to SQL for another database, PNG, SVG and JSON

      - Optional AI export with your own OpenAI key

      - Diagrams are kept in your browser


      **How to use?**


      1. Open ChartDB and pick your database type.

      2. Run the query it shows in your database and paste the result.

      3. Edit the diagram, then export SQL or an image.
  tips:
    before_install:
      en_US: >-
        1. Start the installation. It is ready in a few seconds.


        2. ChartDB keeps your diagrams in the browser you use, not on
           the ZimaOS. Export them to keep a copy.
  index: /
  port_map: "6837"
  scheme: http
  is_uncontrolled: false
  version: "1.21.0"
  update_at: "2026-11-25"
  release_notes:
    en_US: |-
      - First IceStore release: ghcr.io/chartdb/chartdb 1.21.0 on port 6837
  repo: "https://github.com/chartdb/chartdb"
  support: "https://github.com/chartdb/chartdb/issues"
  docs: "https://github.com/chartdb/chartdb#readme"

Install ChartDB

Something not working with ChartDB?

Report it so it gets fixed, or ask for an app that is not here yet.

More Developer apps

See all