hub/

directory
v1.0.0-beta.37 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: AGPL-3.0

README

moin hub

The hosted side of moin: accounts, billing, servers, apps, deploys, backups and data. Daemons on the users' servers dial in over one WebSocket. The daemon, CLI, TUI and protocol are at the root of this repo.

Read DESIGN.md for how it looks. Product docs are in content/docs, served at /docs: the only source of truth for how moin works.

Develop

cp .env.example .env   # then fill in your own development bucket
task dev               # the app on a free port

Development uses a real bucket of its own, such as moin-development on R2, so it runs the same storage code as production.

Keep your settings in 1Password? Copy .env.example to .env.tpl and put plain op://vault/item/field references in place of the secrets, without {{ }} around them. task dev then reads them fresh on every start, and no .env lies on disk.

Without Cloudflare credentials, emails go to the log. The hub and the moin binary are one Go module: a change to the daemon, the CLI or the protocol shows up here right away.

The image builds from the repo root: docker build .

License

Open source: what the licenses cover.

Directories

Path Synopsis
cmd
devport command
server command
Package content holds the texts of the site: the blog, docs, legal pages, the changelog and llms.txt.
Package content holds the texts of the site: the blog, docs, legal pages, the changelog and llms.txt.
internal
api
Package api serves the JSON API under /api/v1.
Package api serves the JSON API under /api/v1.
app
brand
Package brand holds the words the site shows about the product.
Package brand holds the words the site shows about the product.
catalog
Package catalog is the list of open source apps moin installs in one click.
Package catalog is the list of open source apps moin installs in one click.
db
dbbackup
Package dbbackup keeps the hub's own SQLite database in its bucket with Litestream, the way the daemon keeps the databases of apps: every change within seconds, and the database comes back by itself when a new server starts without one.
Package dbbackup keeps the hub's own SQLite database in its bucket with Litestream, the way the daemon keeps the databases of apps: every change within seconds, and the database comes back by itself when a new server starts without one.
githubstars
Package githubstars knows how many stars the moin repo has on GitHub.
Package githubstars knows how many stars the moin repo has on GitHub.
mcp
Package mcp serves the MCP server at /mcp.
Package mcp serves the MCP server at /mcp.
secret
Package secret seals the few small values the hub uses itself, such as the Cloudflare API token and alert targets, with AES-256-GCM.
Package secret seals the few small values the hub uses itself, such as the Cloudflare API token and alert targets, with AES-256-GCM.

Jump to

Keyboard shortcuts

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