# A web UI for the nix store (early beta)

**URL:** https://discourse.nixos.org/t/a-web-ui-for-the-nix-store-early-beta/35762
**Category:** Announcements
**Created:** [November 20, 2023, 4:48pm UTC](https://discourse.nixos.org/t/a-web-ui-for-the-nix-store-early-beta/35762 "2023-11-20T16:48:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![embr](https://discourse.nixos.org/user_avatar/discourse.nixos.org/embr/32/11627_2.png) [@embr](https://discourse.nixos.org/u/embr)
#### Post date: [November 20, 2023, 4:48pm UTC](https://discourse.nixos.org/t/a-web-ui-for-the-nix-store-early-beta/35762/1 "2023-11-20T16:48:44Z")

</div>

I’m working on an open source, nix-based CI system called Gorgon, and one of the components of that is a web UI for the nix store - right now, it just shows you derivations and logs, but in the future, it’ll be able to show live logs and builds as well.

With the latest nixpkgs-unstable, you can install it with:

```auto
{ pkgs, ... }:

{
  systemd.packages = with pkgs; [nix-web];

  systemd.sockets.nix-web = {
    socketConfig.ListenStream = "[::1]:8649"; # 8649 = 8000 + "NIX".
    wantedBy = ["sockets.target"];
  };
}

```

…and then look up a derivation: [http://localhost:8649/nix/store/giidrg634mmaz212a21g34z1zaswl7qs-nix-web-0.1.0](http://localhost:8649/nix/store/giidrg634mmaz212a21g34z1zaswl7qs-nix-web-0.1.0)

This is an early beta, the code is a bit messy right now, and rendering a derivation with a lot of dependencies is currently very slow - but I have something in the works to fix that.

Feedback appreciated, either here, in our IRC channel: #gorgon-ci on hackint, or via Matrix: [#gorgon-ci:hackint.org](https://matrix.to/#/#gorgon-ci:hackint.org).

[https://codeberg.org/gorgon/gorgon/src/branch/main/nix-web](https://codeberg.org/gorgon/gorgon/src/branch/main/nix-web)

 ![image](https://discourse.nixos.org/uploads/default/original/2X/8/8cdd32dc952e23d120b2db8e58052605634d30a3.png)

---

<div class="post-metadata">

### Author: ![bjornfor](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/b/f475e1/32.png) [@bjornfor](https://discourse.nixos.org/u/bjornfor)
#### Post date: [November 20, 2023, 5:40pm UTC](https://discourse.nixos.org/t/a-web-ui-for-the-nix-store-early-beta/35762/2 "2023-11-20T17:40:27Z")

</div>

Really cool! (I took it for a quick spin when I saw the nixpkgs PR.)

---

<div class="post-metadata">

### Author: ![embr](https://discourse.nixos.org/user_avatar/discourse.nixos.org/embr/32/11627_2.png) [@embr](https://discourse.nixos.org/u/embr)
#### Post date: [July 16, 2024, 6:56am UTC](https://discourse.nixos.org/t/a-web-ui-for-the-nix-store-early-beta/35762/3 "2024-07-16T06:56:09Z")

</div>

I just got [v0.4.0](https://codeberg.org/gorgon/gorgon/releases/tag/nix-web-v0.4.0) out (available now in nixpkgs!), with a big internal change: it no longer invokes the `nix` CLI. Instead, I built a crate called [nix-daemon](https://crates.io/crates/nix-daemon), which lets it speak the daemon protocol directly.

This has two big upsides:

1. The output from the `nix` CLI is not stable, and we’ve already had it make a breaking change once.

2. It’s orders of magnitude faster.

However, it also has two downsides: it no longer works with daemonless stores (hard to fix, it’s a completely different code path), and the `nix-daemon` crate currently only supports Nix 2.15 and later - adding support for Nix 2.3 is a high priority task, though, I know how many of you use it. It’s also tested in CI against all versions of Lix.

The `nix-daemon` crate is also just something I’ve wanted to write for a while now, and I hope someone will find it useful on its own!
