web

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package web serves the built flue UI from the daemon binary, so there is no runtime dependency on Node or on any files beside the executable.

The directory this package lives in is also the web app's source tree. The Go files here are this one and its `dev`-tagged counterpart; everything else is Vite's input and output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dist

func Dist() (fs.FS, error)

Dist is the built app as a filesystem rooted where the app is served from: index.html at the top, not under a "dist/" prefix.

It is exported for `flue relay setup`, which uploads these exact files to the user's own Cloudflare account as the relay's static assets. Same build, same bytes, one app — a relay serving a UI assembled some other way would be a second frontend to keep in step with the daemon's wire protocol.

func Handler

func Handler() http.Handler

Handler serves the built app. Unknown paths fall back to index.html so client-side routes such as /d/local/s/<id> resolve — a bookmarked session tab must open, not 404.

Types

This section is empty.

Jump to

Keyboard shortcuts

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