ijsbakje

ijsbakje

A simple webui for your personal git forge.

License: MIT License

Ice cream bowl

Ijsbakje

Ijsbakje ( /ɛisˈbɑkjə/ • Dutch for ice cream pot) is web-ui for soft-serve, the minimal git forge.

Just like its backend, ijsbakje is built around minimalism. This is not meant to integrate with complex project features (of which soft-serve implement next to none anyway), instead ijsbakje just wants to be a 'storefront' for all your personal projects.

Visitors can see your projects, read your code, get an HTTP/SSH link to clone your project.

What about issues? PRs? Discussions?

If your project is serious enough to require these features, you probably need a multi-user forge anyway. For anything else, just add your email.

Why a bakje and not a hoorntje (cone)?

Because less calories in the container means more ice cream!

Quickstart

You can install ijsbakje from source:

git clone https://forge.nchagnet.eu/ijsbakje.git
cd ijsbakje
cargo install --locked --path .

This installs a binary bakje, which you can start with

bakje serve --data-dir ~/.cache/ijsbakje

The data dir holds repos.toml, the single source of configuration:

forge_url = "https://my.forge.com"

[[repos]]
name = "my_repo" # Should resolve to https://my.forge.com/my_repo.git
description = "What my repo does"
docs = "https://docs.rs/my_repo"
home = "https://my_repo_site.com"
logo = "assets/logo.svg" # Path relative to the repository root

Each [[repos]] entry accepts only name, description, home, docs, and logo. Other keys are rejected. description, home, docs, and logo are optional.

bakje exits with an error if the file is missing or invalid.

Custom look

repos.toml also takes three optional site-wide keys:

custom_css = "custom.css" # Served at /custom.css, applied last on every page
code_theme_light = "github_light" # lumis theme name, or a JSON file
code_theme_dark = "dracula" # lumis theme name, or a JSON file

custom_css is a path relative to the data dir (or absolute). The file is served at /custom.css, after the built-in styles and after the code-block styles on repo pages, so its rules win. It is read on every request: edit it and reload the page, no restart needed. It can override the shared design tokens from /assets/style.css (--background, --foreground, --primary, --font-text, and so on) and use the embedded fonts at /assets/fonts/*.woff2.

code_theme_light and code_theme_dark pick the syntax highlighting for code blocks in READMEs. Each value is either a lumis theme name, or a path to a lumis theme JSON file relative to the data dir (absolute paths work too). The page follows the reader's light or dark preference. The default is github_light and dracula. The themes are read on each sync pass, so a changed theme file shows up after the next sync; touch repos.toml to sync right away.

Docker

The container image is published as nchagnet/ijsbakje. Mount a data directory that contains repos.toml:

docker run --rm -p 8080:8080 \
  -v "$PWD/data:/data" \
  nchagnet/ijsbakje:1.0.0

Development

just dev rebuilds and restarts the server when source or template files change. The running server reloads repos.toml in place, so config edits need no restart.

just dev

It uses the same ~/.cache/ijsbakje data dir by default; pass another path as the first argument (just dev /tmp/ijsbakje).