Build from Source
Build the frontend theme first, then build the Komari backend.
Build the Frontend
bash
git clone https://github.com/komari-monitor/komari-web
cd komari-web
npm install
npm run buildBuild the Backend
bash
git clone https://github.com/komari-monitor/komari
cd komariPack the frontend dist directory with tar + zstd -19, then copy the theme metadata. The backend decompresses this archive into memory at startup:
bash
mkdir -p web/public/defaultTheme
tar -cf /tmp/komari-dist.tar -C ../komari-web/dist .
zstd -19 -T0 -f /tmp/komari-dist.tar -o web/public/defaultTheme/dist.tar.zst
rm -f /tmp/komari-dist.tar
cp ../komari-web/komari-theme.json web/public/defaultTheme/Install the zstd package first if it is not already available on your system.
Build Komari:
bash
CGO_ENABLED=1 go build -o komariRun
bash
./komari server -l 0.0.0.0:25774The default port is 25774. Open http://localhost:25774 to access the dashboard.