Skip to content
swenskePublic

About

An ultra-light, immutable, API-driven Linux distribution built from scratch (LFS-style), centered on HAProxy as the primary reverse-proxy/load-balancer

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2,212 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Janus

CI Image build and QEMU boot tests Docs site
Latest release Status: alpha License: MIT Go version
Website Documentation Upstream repository on GitHub janusctl apt repository Janus Controller on Docker Hub

Janus

An ultra-light, immutable, API-driven Linux distribution built from scratch (LFS-style), inspired by Talos Linux, centered on HAProxy as the primary reverse-proxy/load-balancer. No SSH, no interactive shell, no package manager on the running system - everything is driven through a gRPC API secured with mTLS. Janus Controller (see dashboard/) is the companion management dashboard for running one or more nodes.

Documentation: janus.sw-servers.net/docs

  • a quick start, the user guide, how it works inside, and how to contribute or integrate it into a private cloud. The same pages are the Markdown files of this repository (docs/README.md is their index).

Optional features, chosen per image and configured through the API and the Controller: BGP via BIRD, VRRP via keepalived, a firewall via nftables, a Consul agent, Let's Encrypt certificates - even for a node with no way out to the internet; keepalived and BIRD follow HAProxy's health. Nodes can form clusters - one configuration, stick tables replicated, certificates carried from member to member - with or without the Controller, and the Controller creates nodes on libvirt and Proxmox VE itself, Terraform included. Every node also serves its own Prometheus metrics.

Janus is the Roman god of beginnings and endings, of choices, of passage, and of doors - traditionally shown with two faces looking in opposite directions at once. This project is named for that duality (frontend/backend, ingress/egress, the two faces of a reverse proxy), not for any connection to the HAProxy project. Janus has no affiliation with, and is not supported, endorsed, or reviewed by, HAProxy Technologies or the maintainers of HAProxy - it is an independent project that happens to run HAProxy as its data plane, the same way it could run any other proxy. "HAProxy" above and throughout this repository refers strictly to the upstream software.

Status: early alpha. Real bootable images exist (kernel hardening, dm-verity, A/B updates, Secure Boot, SELinux enforcing by default), built and boot-tested on every image workflow run: the qcow2 images for Proxmox VE and KVM/libvirt and the update bundle, every UKI signed with the release key (Secure Boot is turned on node by node).

Supported: amd64 virtual machines on KVM/libvirt and Proxmox VE, with or without the Controller - what releases are tested for, and what the beta will cover (what Janus supports). Everything else is experimental: arm64 nodes get no updates, and three targets are suspended since 2026-10-30, waiting for testers: none was ever verified on real hardware, so nothing builds, tests or publishes them for now - v2026.10.30's images are the last. Their code and docs stay: one line in variants.mk brings the Raspberry Pi back, while VMware and bare metal also need a kernel of their own - since v2026.11.09 the kernel is built for KVM/QEMU virtual machines, without their disks' and network cards' drivers (suspended targets). Have the hardware? Offer to test from the image builder.

  • VMware/ESXi: a VMDK, proven under QEMU with VMware's devices (vmxnet3, pvscsi) until the kernel left them out.
  • Bare metal: a hybrid ISO/GPT installer/maintenance-mode medium (bootable via USB) with a real release bundle embedded, so LifecycleService.Install can provision a target disk using nothing but the medium itself; PXE/HTTP Boot is documented (image/pxe/README.md) - native PXE/HTTP Boot loads the same image directly on real hardware, and an iPXE fallback path for firmware without that stack, with a known, firmware-specific limitation.
  • Raspberry Pi 4/5 (aarch64/BCM2711): SD card images with UEFI firmware, booted under QEMU (raspi4b and virt machines), never on a real board (hardware tests).

See docs/architecture.md for the design and roadmap, and docs/api-routes.md for the gRPC API catalog.

Installing janusctl

janusctl, the command-line client for a node's API, is published as a Debian package with every release, for amd64 and arm64, and in an apt repository - how to install it: docs/janusctl.md.

Shell completion

Completion for bash, zsh and fish comes with the package: docs/janusctl.md.

Using janusctl

Sign in to your Janus Controller once (janusctl login); janusctl then reaches its nodes directly - or keeps a fleet itself, without a Controller: docs/janusctl.md.

With Claude Code

This repository is a Claude Code plugin marketplace: its janusctl skill has Claude drive your nodes with janusctl - reading freely, changing what you ask the safe way, nothing critical without your word (docs/guide/claude-code.md):

/plugin install janusctl --marketplace swenske/Janus

Repository layout

  • api/proto/janus/v1alpha1/ - the gRPC contract (source of truth).
  • cmd/janusd/, cmd/janusctl/ - control-plane daemon and CLI.
  • internal/api/ - gRPC service implementations.
  • kernel/, pkgs/, rootfs/, image/ - the from-scratch OS build system (Dockerfile-per-component, Talos-pkgs-style).
  • dashboard/ - Janus Controller, the management dashboard (web UI for one or more nodes). See dashboard/README.md to build and run it locally.
  • claude-code/ - the Claude Code plugin (the janusctl skill), offered by .claude-plugin/marketplace.json.
  • extensions/ - the optional extensions an image can carry (BIRD, keepalived, nftables, Consul, Let's Encrypt, node_exporter, qemu-guest-agent); selinux/ - the policy every node enforces.
  • site/ - janus.sw-servers.net: the landing page, the image builder and the docs site built from docs/.
  • terraform-provider-janus/ - the Terraform provider for the Controller's nodes and hypervisors (docs/terraform.md).
  • examples/ - the runnable examples the docs show, each one tested.
  • hack/ - local dev tooling (QEMU test harness).

Building the control plane

make build   # binaries in ./bin
make test
make lint
make proto   # regenerate gen/ from api/proto/**.proto (requires buf)

License

MIT

About

An ultra-light, immutable, API-driven Linux distribution built from scratch (LFS-style), centered on HAProxy as the primary reverse-proxy/load-balancer

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages