frontend

package
v1.85.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package frontend embeds the built console, so that the hub is one binary with no static-file deployment beside it and the SPA is same-origin with the API it calls.

dist/ is BUILT, not committed, and `just build` builds it first.

It used to be committed so that `go build` needed no Node toolchain. That cost 29 MB of history -- about seventy per cent of this repository -- because a minified bundle is a new blob on every dependency bump. And it bought a silent failure: a committed artifact can go stale while everything still compiles, which is how v0.14.0 shipped a console reading a protobuf field the server no longer sent.

Absent, the embed below is a COMPILE ERROR -- `pattern all:dist: no matching files found`. Loud beats stale.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FS

func FS() fs.FS

FS returns the built console, rooted so that index.html is at the top.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL