MattEland.HopeLab.Avalonia.Docs 0.2.45

There is a newer version of this package available.
See the version list below for details.
dotnet add package MattEland.HopeLab.Avalonia.Docs --version 0.2.45
                    
NuGet\Install-Package MattEland.HopeLab.Avalonia.Docs -Version 0.2.45
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MattEland.HopeLab.Avalonia.Docs" Version="0.2.45" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MattEland.HopeLab.Avalonia.Docs" Version="0.2.45" />
                    
Directory.Packages.props
<PackageReference Include="MattEland.HopeLab.Avalonia.Docs" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MattEland.HopeLab.Avalonia.Docs --version 0.2.45
                    
#r "nuget: MattEland.HopeLab.Avalonia.Docs, 0.2.45"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MattEland.HopeLab.Avalonia.Docs@0.2.45
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MattEland.HopeLab.Avalonia.Docs&version=0.2.45
                    
Install as a Cake Addin
#tool nuget:?package=MattEland.HopeLab.Avalonia.Docs&version=0.2.45
                    
Install as a Cake Tool

MattEland.HopeLab.Shared

Shared .NET libraries and release tooling for the HopeLab desktop apps (OneRing, Hymnal), so every app installs, releases and updates the same way.

Package (nuget.org) What it is
MattEland.HopeLab.Common Result<T> and Unit, a clock abstraction (IClock), atomic file writes, an app's settings file (SettingsFile, one JSON object merged key by key), and parsing a typed server address (ServerAddress)
MattEland.HopeLab.Git The git CLI wrapper: porcelain v2 status, worktrees, merge preview, commit graph layout, fetch/pull/rebase, per-repo write lock
MattEland.HopeLab.Updates Updates from GitHub releases: latest.json, version checks, GitHub tokens for private repos, verified downloads, in-place file swap with rollback, Debian-package installs (AppUpdater, AppUpdateService)
MattEland.HopeLab.Updates.ReactiveUI UpdatesViewModel: the check timer, banner, tray text, Settings status and token handling every app shows the same way
MattEland.HopeLab.Themes The shared themes for Avalonia: one resource dictionary per theme (Lab.* keys), ThemeCatalog, the faces they use, and the same themes as CSS under css/ for web clients. Generated from tokens/
MattEland.HopeLab.Avalonia The UI the Avalonia apps share: ThemeService (applies a shared theme, tints Fluent, takes an app's own themes and keys), the base LabStyles, ViewModelBase and a registration-based ViewLocator, notices (NoticeList, NoticeHost, styled on their own), a busy spinner (BusySpinner, drawn in the theme's accent, for a screen or a row that's loading), the side rail (RailViewModel, NavRail), and a Settings page whose theme section is a gallery of tiles drawn in each theme (ThemeThumbnail) that apps add their own sections to. No Avalonia.Desktop, so it runs on Android
MattEland.HopeLab.Avalonia.Docs A repo's Markdown docs as a themed reader (DocsView, DocsBrowser): the doc list, ADR front matter, Mermaid diagrams drawn natively, links kept inside the repo, and search. Uses LiveMarkdown.Avalonia (Apache-2.0)
MattEland.HopeLab.Avalonia.Connect The connect flow for apps that talk to a server: start-up check of the saved address, a connect screen with the app's presets, a hand-over to the app's own sign-in, and an offline screen with Try again. The app supplies an IServerOpener
MattEland.HopeLab.Themes.Tokens The theme token model: the contract, theme files, contrast and ΔE maths, and the CSS and Avalonia generators

All target .NET 10. Common, Git, Updates and both theme packages are NativeAOT-compatible. Versions are 0.1.<commits on main>: every merge to main publishes.

Release tooling What it is
.github/workflows/app-release.yml A reusable workflow: version, self-contained Windows and Linux builds, zip, tar.gz, per-user setup.exe, .deb, latest.json, draft → check → publish, then an install-and-update smoke test on fresh runners
installers/install.ps1, installers/install.sh Install or update any HopeLab app for the current user, from its releases (private repositories too)
installers/windows/app.iss The Inno Setup template for the per-user setup.exe
installers/linux/build-deb.sh Builds the .deb (/opt/<id>, /usr/bin links, menu entry)
installers/hopelab-app.schema.json What an app's hopelab-app.json holds

Installing an app

From each app's latest release: the setup.exe (Windows, no admin) or .deb (Debian, Ubuntu, Pop!_OS), or one command:

# Windows: %LOCALAPPDATA%\Programs\<App>, Start menu, PATH if the app has commands
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/QuantumHope/MattEland.HopeLab.Shared/main/installers/install.ps1))) -Repo QuantumHope/OneRing
# Linux, no sudo: ~/.local/share/<id>/app, commands in ~/.local/bin, an app-menu entry
curl -fsSL https://raw.githubusercontent.com/QuantumHope/MattEland.HopeLab.Shared/main/installers/install.sh | bash -s -- --repo QuantumHope/OneRing

The scripts are public; an app's releases may not be. For a private repository they use, in order, <APP>_GITHUB_TOKEN / GH_TOKEN / GITHUB_TOKEN, the token the app saved on this machine, the GitHub CLI's sign-in, and then ask (hidden input). A token that was asked for, or came from the environment, is saved in the app's data folder (github-token, user-only) so the app can update itself. A fine-grained token with read-only Contents access to the one repository is enough. Running a script again updates in place; -Uninstall / --uninstall removes the app and keeps its data.

How it was installed Where How it updates
setup.exe, install.ps1, zip %LOCALAPPDATA%\Programs\<App> in place, silently (files moved aside and replaced; Apps & features follows)
install.sh, tar.gz ~/.local/share/<id>/app in place, silently
.deb /opt/<id> the app downloads the next .deb and installs it with apt-get: pkexec (a password dialog) from the app, sudo from a terminal

The install folder never moves, so anything that holds a path into it (Claude Code hooks, a login entry, shortcuts) keeps working across updates. Only a copy built by the release workflow (it has release.json) updates itself.

Adopting it in an app

  1. Describe the app in hopelab-app.json at its root (schema, and OneRing's and Hymnal's as examples): name, id, the desktop project and executable, icons, a Windows setup AppId (a new GUID, never changed), and the install settings (commands on PATH, the data folder, processes to stop, an update command).
  2. Release from CI: after the app's own tests, call the shared workflow (see the top of app-release.yml). The version is <major>.<minor> from the app's Directory.Build.props plus the commit count. It checks out the app's submodules, so an app that takes this repository as a submodule builds against the commit it pins.
  3. Update from the app: reference MattEland.HopeLab.Updates.ReactiveUI, create an AppUpdater with the app's AppUpdateOptions (repository, data folder, executable, token variable, setup AppId, and a StopServices hook if it runs anything beside itself), wrap it in AppUpdateService, and give that to an UpdatesViewModel. Bind a banner and a Settings card to it in the app's own theme, and on RestartRequested start the new executable and exit.
  4. Share the UI (Avalonia apps): add <FluentTheme /> then <lab:LabStyles /> to App.axaml, make one ThemeService for the application and Apply the saved preference at start-up, and add new ViewLocator().UseSharedViews() (plus .UseConnectViews()) to DataTemplates, registering the app's own views on the same locator. An app with a server implements IServerOpener<TSession> and IServerAddressStore and puts a ConnectFlow<TSession> behind its window; its presets (server addresses) come from its own config, never from here. For navigation, give a RailViewModel the app's places (RailGroups of RailItems, Settings in a group AtFoot), dock a <nav:NavRail Mark="…" Title="…" /> left of the content, and show the screen for its Current. Each RailItem can take a line icon as path data on a 24 by 24 grid (open strokes, round ends); RailIcons.Settings is the shared one for Settings. In a window narrower than CompactBelow (960 by default, 0 to keep it full) the rail drops to its icons: labels move into tooltips, headings become rules, and a place with no icon shows its initial. Give every place an icon so the compact rail reads well. (New in 0.2: a rail that was always full now goes compact in narrow windows; set CompactBelow="0" to keep the old look.) Give ThemeServiceOptions.OwnThemesHeading the app's name when it adds themes of its own, so the gallery heads them with it. An app whose themes bring their own control styles returns them from StylesFor, and the service swaps them with the theme; one whose themes pick Fluent's colours themselves sets them in TintPalette (the Lab.Fluent.* keys every shared theme carries). A docs tab is a DocsView with a DocsBrowser pointed at the repo's folder.

Building

dotnet build MattEland.HopeLab.Shared.slnx
dotnet test MattEland.HopeLab.Shared.slnx
dotnet pack MattEland.HopeLab.Shared.slnx -c Release -o artifacts

To try a change in an app before it's published, pack with a higher version into a folder and add that folder as a package source in the app (a nuget.config you don't commit), or temporarily swap the PackageReference for a ProjectReference into a checkout of this repository.

Publishing

Every push to main that passes CI packs 0.1.<commits on main> and pushes it to nuget.org with Trusted Publishing: no API key is stored anywhere. The publish job gets a GitHub OIDC token, NuGet/login trades it for an API key that lasts an hour, and nuget.org accepts it because of a Trusted Publishing policy on the owning account (nuget.org → your profile → Trusted Publishing):

Field Value
Repository Owner QuantumHope
Repository MattEland.HopeLab.Shared
Workflow File ci.yml
Environment (empty)

The job logs in as the nuget.org profile MattEland; a repository variable NUGET_USER overrides it. To publish again by hand (after setting the policy up, say), run the CI workflow on main from the Actions tab; versions that already exist are skipped.

Licence

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.58 75 12/1/2026
0.3.54 69 12/1/2026
0.3.49 85 11/30/2026
0.2.45 91 11/30/2026
0.2.42 89 11/29/2026