Core development
These guides are for people who work on n5i itself or build a distribution with it. If you want to package an app, see building apps instead.
n5i is published as source code only. It doesn't provide installers, OS images or container images; distributions build n5i from source and ship it to their users. The only artifacts n5i publishes are libraries for developers, such as Rust crates and npm packages.
Repositories
| Repository | Contents |
|---|---|
| n5i/backend | The backend services, the app system and the official plugins, written in Rust. |
| n5i/dashboard | The web dashboard (Nuxt), and the @n5i/ui and @n5i/app-bridge packages for app UIs. |
| n5i/website | This website. |
Backend components
The backend is a Cargo workspace. Its main parts are:
| Path | Component |
|---|---|
services/api | The GraphQL API the dashboard uses. It keeps track of users, permissions and system state in a database and talks to the agent. |
services/agent | Performs administrative tasks: parsing and installing apps and managing their domains. Only the API talks to it. |
services/core | The app system: app parser, templating, permission validation and the generator for Kubernetes objects. |
services/background-updater | Downloads new apps from app stores and keeps app definitions up to date. |
services/node-agent | Runs on each node for node-specific tasks. |
services/dns | Resolves the <service>.<app>.<user>.n5i host names apps use to reach each other. |
shared/apps | Types of the app system (crate n5i-apps). |
shared/plugin-proto | The plugin gRPC definitions (crate n5i-plugin-proto). |
shared/tera-with-js | Tera with JavaScript extensions, used for preprocessor extensions. |
plugins/* | Official plugins (Tor, Bitcoin, LND, and runtimes for Umbrel and Tipi apps). |
The crates n5i, n5i-apps, n5i-plugin-proto, n5i-plugin-common and n5i-crds are published on crates.io for plugin and tool developers.