Skip to main content

BeakerHub

BeakerHub is a multi-user, Kubernetes-hosted environment for Beaker Notebook. It uses JupyterHub to manage users and notebook sessions, a Vue application for the user interface, and a configurable HTTP proxy to route traffic.

Prerequisites

Local development requires:

  • Docker with Buildx support
  • kind 0.20 or later
  • kubectl
  • Helm 3.12 or later
  • Python 3.10 or later
  • GNU Make

Local certificate prerequisites

Install mkcert before running the development setup. On Linux, also install the NSS tools that provide certutil; mkcert uses them to add its development CA to browser trust stores.

# Debian or Ubuntu
sudo apt install libnss3-tools

# Fedora or RHEL
sudo dnf install nss-tools

# Arch Linux
sudo pacman -S nss

On macOS, install both packages with brew install mkcert nss. After mkcert and the platform NSS equivalent are installed, create and trust the development CA:

mkcert -install

Doing this before make dev-setup avoids interrupting cluster creation and ensures that browsers trust notebook subdomains and their secure WebSocket connections. OpenSSL is available as a manual alternative; see Local TLS.

Quick start

Clone the repository and run the development setup from its root:

git clone https://github.com/jataware/beakerhub.git
cd beakerhub
make dev-setup

The setup creates a kind cluster, configures local image and DNS services, builds the BeakerHub images, generates the local vault key, and installs the Helm chart. Generated kind configuration, certificates, and secret values are ignored by Git.

After setup, open https://beakerhub.internal. The local development authenticator accepts any valid email address and any nonempty password; it does not verify the credentials. See the Quick Start for the complete local authentication behavior, access alternatives, and troubleshooting.

Development workflow

After you change backend, frontend, image, or Helm sources, rebuild and apply the development deployment:

make sync

Useful commands include:

# Application status and logs
make -C helm pods
make -C helm services
make -C helm logs-hub
make -C helm logs-proxy

# Helm operations
make -C helm validate
make -C helm upgrade-local
make -C helm rollout

# Images
make -C images build
make -C images server
make -C images default-node
make -C images images
make -C images print

# Local environment lifecycle
make recreate-dev-cluster
make delete-dev-cluster
make clean
make full-clean

Run make -C helm help for Helm and cluster-management command help. make clean removes the cluster and development build artifacts but keeps generated configuration, certificates, and local service containers. make full-clean removes all repository-managed local state, service containers, and labeled images. See Helm and kind tooling for the exact cleanup scope.

Architecture

BeakerHub contains these runtime components:

  • Hub — the BeakerHub/JupyterHub server that handles authentication, sessions, notebook spawning, and the application API.
  • Proxy — the configurable HTTP proxy that routes browser and notebook traffic.
  • Notebook nodes — per-user Beaker Notebook pods spawned in Kubernetes.
  • Task reporter — reports the status of asynchronous node-image tasks.
  • UI — the Vue/Vite single-page application served by the hub image.

The image build is defined in images/docker-bake.hcl. Its runnable targets are server, proxy, default-node, and task-reporter. base and the UI build target are build intermediates.

Kubernetes resources are in the helm/beakerhub chart. Local kind tooling and the local values overlay are under helm/.

Repository layout

beakerhub/
├── docs/                  # User and developer documentation
├── helm/
│   ├── beakerhub/         # Generic Helm chart
│   ├── kind/              # Local kind support
│   ├── Makefile           # Helm and cluster operations
│   └── values-local.yaml  # Local development overlay
├── images/                # Dockerfiles and Docker Bake configuration
├── src/beakerhub/         # Python package
├── tests/                 # Python unit and integration tests
├── ui/                    # Vue application and UI tests
├── Makefile               # Top-level development and test commands
└── pyproject.toml         # Python package metadata

Configuration

helm/beakerhub/values.yaml contains generic chart defaults. It uses JupyterHub's dummy authenticator by default so that the chart can be evaluated without access to an external identity provider. The local development overlay uses BeakerHub's custom development authenticator instead; see the Quick Start.

For a real deployment, create a separate values file and configure at least:

  • Public image repositories and immutable tags
  • Authentication and administrator access
  • Ingress, DNS, and TLS
  • Persistent storage classes and access modes
  • Resource requests and limits
  • Secret delivery

Do not commit credentials to a values file. Supply them through your deployment system or a Kubernetes secret-management solution. See the Helm chart documentation for the available settings.

Testing

Run tests from the repository root:

make test                 # Python and UI unit tests
make test-python          # Python unit tests
make test-python-cov      # Python unit tests with coverage
make test-ui              # UI unit tests
make test-e2e             # Playwright tests
make test-integration     # Tests against the development cluster

The integration tests require a running development cluster. See the Development Guide for component-specific commands.

Documentation

License

BeakerHub is available under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beakerhub-0.0.1.tar.gz (23.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

beakerhub-0.0.1-py3-none-any.whl (22.9 MB view details)

Uploaded Python 3

File details

Details for the file beakerhub-0.0.1.tar.gz.

File metadata

  • Download URL: beakerhub-0.0.1.tar.gz
  • Upload date:
  • Size: 23.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.0 {"ci":null,"cpu":"x86_64","distro":{"id":"forky","libc":{"lib":"glibc","version":"2.42"},"name":"Debian GNU/Linux","version":"forky/sid"},"implementation":{"name":"CPython","version":"3.13.14"},"installer":{"name":"hatch","version":"1.17.0"},"openssl_version":"OpenSSL 3.6.3 9 Jun 2026","python":"3.13.14","system":{"name":"Linux","release":"7.1.3+deb14-amd64"}} HTTPX2/2.4.0

File hashes

Hashes for beakerhub-0.0.1.tar.gz
Algorithm Hash digest
SHA256 efe00f5174a1c31b92f717fd984c04f694e1f36a64ccf738e083f036b988a3f8
MD5 f45b4091c6e7e94b7dbdffbd6af2bd94
BLAKE2b-256 8377585d25ea54feca0e65ecb6db77cf526e532c82815b632af72a79b0ea3936

See more details on using hashes here.

File details

Details for the file beakerhub-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: beakerhub-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 22.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.0 {"ci":null,"cpu":"x86_64","distro":{"id":"forky","libc":{"lib":"glibc","version":"2.42"},"name":"Debian GNU/Linux","version":"forky/sid"},"implementation":{"name":"CPython","version":"3.13.14"},"installer":{"name":"hatch","version":"1.17.0"},"openssl_version":"OpenSSL 3.6.3 9 Jun 2026","python":"3.13.14","system":{"name":"Linux","release":"7.1.3+deb14-amd64"}} HTTPX2/2.4.0

File hashes

Hashes for beakerhub-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3fe72da210593b85e02ce106612077ae1e4c1dc543b0f734e9147ff24b3bf3d0
MD5 17a689a5bbd6a34d98dc530c97c60005
BLAKE2b-256 c798758d45ecaa67bfd6e8d426651b92d9986921ec1f790614bb59f7a46cd1ac

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page