Bring a Glance dashboard into an editor ๐Ÿ“ฆ

Glance is a self-hosted dashboard set up in one YAML file, glance.yml. Glance Editor puts a browser editor around it, so pages, columns and widgets can be changed without writing YAML. What it writes is Glance’s own glance.yml, so the dashboard stays a plain Glance dashboard.

This post covers the start: one container, and an existing dashboard brought along with nothing lost.

A Glance dashboard with a clock, a calendar, bookmarks and Docker containers
A dashboard made in the editor: plain Glance, no YAML typed.

๐Ÿ“ฆ One container

It runs four things:

  • the Glance dashboard;
  • the editor;
  • a second, private Glance for previews;
  • a small gate that only lets the editor list Docker containers.

The Glance inside is Glance’s own program, unmodified. Its version is pinned and moves only with an editor release, after the editor has been tested against it.

On Unraid it is one template: the editor on port 8090, the dashboard on 8080, and one data folder for everything (glance.yml, assets, the editor’s versions). Back up that folder and everything is covered.

๐Ÿงณ Three ways in

The first screen, Set up the editor, offers:

  • Upload your Glance folder: a .zip of the folder that holds glance.yml (macOS: right-click โ†’ Compress; Windows: Send to โ†’ Compressed folder).
  • Import glance.yml: one copied into the data folder’s config/ by hand.
  • Start empty: one page, with a layout to pick.

The first screen: Import glance.yml, Upload your Glance folder, Start empty
Nothing is written to glance.yml until Save.

๐Ÿ” Checked before anything is stored

An upload is checked first, with the same Glance version the dashboard runs. The check screen shows what came with it:

  • Include files are joined into one glance.yml, as Glance reads them. One the zip doesn’t have is named.
  • Assets (icons, a custom CSS file) are copied into Glance’s assets folder, so /assets/โ€ฆ links keep working. A link with no file behind it is listed.
  • The assets folder setting is moved to the container’s own folder. A config from Glance’s Docker example points at /app/assets, which doesn’t exist here, and Glance won’t start with a missing folder. Review lists the change.
  • .env is stored next to glance.yml, readable only by its owner, and a ${VARIABLE} with no value anywhere is listed.

Import never overwrites a file that is already there.

The upload check: include file joined, YAML parsed, Glance's check passed, comments kept, one asset, the assets folder moved
A folder in Glance’s own Docker layout: glance.yml plus an include file and an assets folder.

๐Ÿ“ The file stays yours

Comments, order and formatting are kept wherever nothing was changed. ${VARIABLES} and ${secret:โ€ฆ} are written exactly as they were, never resolved. The original file is kept in History as version 0.

The imported page in the editor: three columns, with the note that the file is kept as version 0
Imported: the page, its columns and widgets, ready to edit.

๐Ÿ” Beside the old one

Moving from a Glance that already runs? Install the editor beside it on another dashboard port, compare the two, then switch over. The project’s runbooks walk through install, compare, cut-over and fallback.

๐Ÿ“Œ Good to know

  • No login. The editor is meant for a home network only; don’t expose it to the internet. The dashboard can keep Glance’s own login.
  • Built and tested for Unraid on amd64; it runs anywhere Docker runs.
  • Glance is the work of the glanceapp project and its contributors. The editor only adds editing around it.

๐Ÿ› ๏ธ Install

On Unraid, fetch the template once from the terminal:

curl -fsSL -o /boot/config/plugins/dockerMan/templates-user/my-glance-editor.xml \
  https://github.com/gcarstoiu/glance-ui/releases/latest/download/glance-editor.xml

Then Docker โ†’ Add Container โ†’ glance-editor, Apply, and open the container’s WebUI. Updates show in the Docker tab like any other container. The source is on GitHub under GPL-3.0; Glance itself is AGPL-3.0.