A web UI for ksqlDB. Send requests and interact with queries and streams in a browser instead of using the CLI. Built with Python, FastAPI, and Jinja2.
Check out the image on Docker Hub: https://hub.docker.com/r/deniskrumko/ksqldb-ui
- Write requests to manage streams and queries in the UI
- View existing queries and streams along with detailed information
- View the topology of streams and queries (how data flows between streams)
- Delete existing queries and streams
- Pause and resume queries
- Use the UI in English (the default) or Russian
You can deploy your ksqlDB server in either interactive or headless mode.
ksqlDB UI works only with servers in interactive mode, which allows it to manage the ksqlDB server through the REST API.
All available ksqlDB statements are listed in the documentation.
- You can't use the
RUN SCRIPTstatement in this UI because it requires a file - Authentication is not yet supported
Note: For production deployments, use a specific version from the available tags instead of deniskrumko/ksqldb-ui:latest.
# Download the image
docker pull deniskrumko/ksqldb-ui:latest
# Run the container
# Create a config/production.toml file in the current directory first
docker run \
-p 8080:8080 \
-v $(PWD)/config:/config \
--env APP_CONFIG=/config/production.toml \
deniskrumko/ksqldb-ui:latest- Create a
docker-compose.ymlfile:
services:
ksqldb-ui:
image: deniskrumko/ksqldb-ui:latest
environment:
APP_CONFIG: /config.toml
volumes:
- ./development.toml:/config.toml
ports:
- 8080:8080-
Run
docker-compose up -d. -
Open your browser and navigate to http://localhost:8080.
See the working example of ksqlDB and ksqlDB UI below.
deployment.yml:
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ksqldb-ui
namespace: development
labels: &labels
your-labels-here: ksqldb-ui
spec:
progressDeadlineSeconds: 300
selector:
matchLabels: *labels
replicas: 1
template:
metadata:
labels: *labels
spec:
volumes:
- name: config
configMap:
name: ksqldb-ui-configmap
containers:
- name: ksqldb-ui
image: deniskrumko/ksqldb-ui:latest
volumeMounts:
- name: config
mountPath: /config/config.toml
subPath: config.toml
ports:
- containerPort: 8080
env:
- name: APP_CONFIG
value: /config/config.toml
resources:
limits:
cpu: "1"
memory: 128Mi
requests:
cpu: "0.1"
memory: 64Miconfigmap.yml:
apiVersion: v1
kind: ConfigMap
metadata:
name: ksqldb-ui-configmap
namespace: development
labels:
your-labels-here: ksqldb-ui
data:
config.toml: |
[servers.development]
url = 'http://your-development-ksqldb.com'
topic_link = 'http://your-development-kafka-ui.com/topics/{}'
[servers.production]
url = 'http://your-production-ksqldb.com'
topic_link = 'http://your-production-kafka-ui.com/topics/{}'You can create any additional manifests (such as ingress.yml) yourself ๐
See the example configuration file: config/example.toml.
To run ksqlDB UI, create your own configuration file and set the APP_CONFIG environment variable to its path. See the "How to use ksqlDB UI" section above.
The simplest possible configuration:
[servers.localhost]
url = "http://localhost:8090"Full configuration documentation is planned for a future update.
ksqlDB UI uses Dynaconf for configuration, so all settings can be defined or overridden using environment variables. Follow these rules:
- Add the
KSQLDB_UI__prefix to each variable - Separate nested parameters with double underscores:
__ - Use uppercase names for environment variables
For example, the following config.toml settings:
[http]
timeout = 60
[servers.localhost]
url = 'http://localhost:8080'
[servers.production]
url = 'http://production:8080'
filters = [['Alice', 'Bob'], ['Red', 'Green', 'Yellow']]can be replaced with these environment variables:
KSQLDB_UI__HTTP__TIMEOUT=60
KSQLDB_UI__SERVERS__LOCALHOST__URL=http://localhost:8080
KSQLDB_UI__SERVERS__PRODUCTION__URL=http://production:8080
KSQLDB_UI__SERVERS__PRODUCTION__FILTERS="[['Alice', 'Bob'], ['Red', 'Green', 'Yellow']]"Notes:
- The
APP_CONFIGenvironment variable is not required when usingKSQLDB_UI__environment variables, but you can use both KSQLDB_UI__environment variables always override settings from the file specified byAPP_CONFIG- You can also view all available environment variables on the
/debugpage in ksqlDB UI
The docker-compose.yml example includes four components:
- ksqldb
- ksqldb-ui
- Redpanda (like Apache Kafka, but better ๐)
- Redpanda UI
To run this example:
-
Download docker-compose.yml to your machine.
-
Run the following command:
docker-compose up -d-
Open ksqlDB UI at http://localhost:8080 in your browser to create streams and queries.
-
Open Redpanda UI at http://localhost:8090 in your browser to create topics.
Note: All API requests must specify a server using the ?s=<server_code> query parameter.
Proxy a request to the ksqlDB server.
The response status code is always HTTP 200 (unless an error occurs in ksqlDB UI). This means that ksqlDB UI received a response from the ksqlDB server. To check for ksqlDB errors, inspect the success and data.response fields in the response body.
curl http://localhost:8080/api/request?s=dev \
-d "{
\"query\": \"list streamzzz\"
}"Error response (because the query is invalid):
{
"success": false,
"data": {
"query": "list streamzzz",
"response": {
"@type": "statement_error",
"error_code": 40001,
"message": "line 1:6: Syntax Error\nSyntax error at or near 'streamzzz' at line 1:6",
"statementText": "list streamzzz;",
"entities": []
}
}
}Upload a file containing SQL statements and receive a response.
The response status code is always HTTP 200 (unless an error occurs in ksqlDB UI). This means that ksqlDB UI received a response from the ksqlDB server. To check for ksqlDB errors, inspect the success and data.response fields in the response body.
Request using a request.sql file:
curl -F "file=@./request.sql" http://localhost:8080/api/process_file?s=devFile contents:
list streams;Response:
{
"success": true,
"data": {
"query": "list streams;",
"response": [
{
"@type": "streams",
"statementText": "list streams;",
"streams": [
{
"type": "STREAM",
"name": "MY_COOL_STREAM",
"topic": "my-cool-stream",
"keyFormat": "JSON_SR",
"valueFormat": "JSON_SR",
"isWindowed": false
}
],
"warnings": []
}
]
}
}- Powered by Python 3.14, FastAPI, and Jinja2
- UI built with Bootstrap 5.3
- SQL editor powered by Ace
- Icons from Google Fonts
- Markdown tables from tablesgenerator.com

