Declaring metadata
Besides app.yml, every app has metadata that n5i and the dashboard use to show, install and manage it. It is split into two files:
metadata.yml(format version 2) contains what the app needs to run: permissions, volumes, settings, dependencies and dashboard menu entries.store-metadata.ymlcontains what users see in the app store: name, description, version, icon and links.
The split lets app store maintainers update the listing without touching the app's technical definition.
# metadata.yml
version: 2
metadata:
path: /
volumes:
data:
minimum_size: 10Mi
recommended_size: 100Mi
name: Link data
description: Your links and profile settings.# store-metadata.yml
version: 1
metadata:
name: LinkStack
version: 1.0.0
tagline: Self-hosted Linktree alternative
description: >-
LinkStack is a simple self-hosted platform to share all your social links.
category: Social
icon: https://example.com/linkstack-icon.svg
license: AGPL-3.0-only
developers:
LinkStack: https://linkstack.org
repos:
LinkStack: https://github.com/LinkStackOrg/LinkStack
support: https://github.com/LinkStackOrg/LinkStack/discussionsBoth files put all fields under a top-level metadata key and declare their format with version. Both can be templates (metadata.yml.jinja); in metadata.yml.jinja, only the basic context is available, because settings and plugins are resolved later.
Store metadata
store-metadata.yml (version 1):
| Field | Type | Required | Description |
|---|---|---|---|
name | translatable | yes | Display name of the app. |
version | string | yes | App version as semver (a leading v is allowed). Used to detect updates. |
display_version | string | no | Version shown to users, if it differs from version (for apps that don't use semver). |
tagline | translatable | yes | Short summary for app lists. |
description | translatable | yes | Full description. Markdown is supported. |
category | translatable | yes | Category, for example Social, Media, Developer tools. |
icon | string | no | App icon as an https:// URL or a data: URL. Icons larger than 256 KiB are ignored. |
screenshots | string[] | no | Screenshot URLs (https:// or data:, up to 5 MiB each). |
developers | map | yes | Developer name → website. |
repos | map | yes | Repository name → URL. |
support | string | yes | Support link (forum, issue tracker, email). |
license | string | no | SPDX identifier of the app's license. Default: Unknown. |
release_notes | map | no | Version → translatable release notes. |
packager | object | no | Who packaged the app: name and optional website. |
deprecated | bool | no | Hide the app from the app store. Installed copies can still be updated. |
Developer metadata
metadata.yml (version 2). All fields are optional, so metadata: {} is a valid file.
| Field | Type | Description |
|---|---|---|
path | string | Path that the dashboard's "Open" button leads to. |
default_username, default_password | string | Credentials to show users after installation, if the app has fixed defaults. |
post_install_redirect | string | URL to open after installation. |
dependencies | list | Apps this app needs. Each entry is an app ID, or a list of alternative app IDs. |
implements | string | ID of a "virtual" app this app provides, so other apps can depend on any implementation (for example bitcoin). |
has_permissions | string[] | Permissions the app requests. |
exposes_permissions | list | Permissions the app offers to other apps. |
volumes | map | Persistent volumes. |
settings | map | Settings users can change. |
ui_module | object | Dashboard menu entries. |
default_scope | User or System | Install the app per user (default) or once for the whole server. |
allowed_scopes | list | Scopes the app can be installed in. Default: [User]. |
components | list | Parts of the app that get their own domains, each with id, name, description and optional icon. |
raw_ingress | bool | Forward TLS connections as raw TCP instead of terminating HTTPS. |
open_link | bool | Set to false if the app has no web interface to open. It stays reachable through its ingress, but the dashboard lists it with the modules instead of linking to it. Defaults to true; menu entries are not affected. |
exported_data | map | Data for plugins, as <plugin app>: <plugin id>: <data>. |
pod_security_standard | Restricted, Baseline or Privileged | Kubernetes Pod Security Standard for the app's namespace. Default: Privileged. |
supports_multi_instance | bool | The app can be installed more than once. Such apps can't be dependencies and can't contain plugins. |
requires_cluster_config | bool | The app needs special cluster configuration and can't run everywhere. |
is_snapshot_compatible | bool | The app can be snapshotted by keeping its volumes and generated chart. |
upgrade_compatibility, downgrade_compatibility | string | Oldest version this version can be upgraded from, or downgraded to, without restoring a snapshot. |
update_config_files | string[] | Config files to overwrite on updates. |
Permissions
Permission IDs have the form <app>/<permission>, for example bitcoin/access-rpc. Permissions starting with builtin/ are granted by n5i itself:
| Permission | Granted for |
|---|---|
builtin/root | Anything that gives an app full control over the server: custom.yml, host paths, privileged containers, most capabilities, plugins, custom resources. Only admins can install such apps. |
builtin/network/public-port | public_ports and LoadBalancer services. |
builtin/network/host | host_network. |
builtin/network/raw | The CAP_NET_RAW capability. |
builtin/network/cluster-egress, builtin/network/local-net, builtin/network/traefik | Network policies that allow traffic to the cluster, the local network or the ingress controller. |
builtin/kube-api/safe, builtin/kube-api/full | Kubernetes API access through service_account. |
n5i derives the builtin/ permissions from app.yml, so you only list permissions of other apps in has_permissions.
Exposing permissions
Apps can offer permissions to other apps, for example access to an API:
exposes_permissions:
- id: access-api
name: API access
description: Allows calling the app's HTTP API.
danger_level: Low
services:
main:
- 80| Field | Description |
|---|---|
id, name, description | ID (without the app prefix) and translatable name and description. |
services | Service → ports the permission grants access to. Ports are TCP, or use tcp: and udp: lists. |
volumes | Volumes (or { volume, sub_paths }) the permission grants access to. |
secrets | Secret → keys the permission grants access to. |
includes | Other permissions this one implies, also of other apps. |
hidden | Hide this permission in the UI when requested by these apps (* for all). |
danger_level | None (default), Low or High. |
open_to_all_users | For system apps: let apps of all users request this permission. Default: only other system apps. |
Volumes
Volumes must be declared before containers can mount them:
volumes:
data:
minimum_size: 10Mi
recommended_size: 100Mi
name: Link data
description: Your links and profile settings.
access_policy: ReadWriteOnceSizes use Kubernetes units (Mi, Gi, Ti). access_policy is ReadWriteMany (default), ReadWriteOnce or ReadWriteOncePod.
Settings
Settings are values users choose when installing or configuring the app. They are available in templates as settings.<id>.
settings:
network:
type: Enum
name: Network
description: Which network to use.
default: mainnet
values:
- mainnet
- value: testnet
display_name: Test network
admin_email:
type: String
string_type: email
name: Admin email
description: Receives notifications.
required: false| Type | Extra fields |
|---|---|
String | default, max_len, placeholder, string_type (password, email, url, ip) |
Enum | values (strings or { value, display_name }), default |
Bool | default (required) |
Int, Float | default, min, max, step_size, placeholder |
All types have a translatable name and description, required (default true) and immutable (can only be set at installation, default false).
Dashboard menu entries
ui_module.menu_entries adds the app to the dashboard's sidebar. Each entry opens a path of the app inside the dashboard, see App UIs. If the menu entries are the app's whole interface, set open_link: false so the app list doesn't show an extra tile that opens it outside the dashboard.
ui_module:
menu_entries:
- name: Peers
icon: i-heroicons-users
path: /peersTranslations
Fields marked as translatable accept a string or a map of language codes to strings:
metadata:
name: LinkStack
tagline:
en: Self-hosted Linktree alternative
de: Selbstgehostete Linktree-AlternativeA plain string is treated as English. This works for the store metadata's name, tagline, description, category and release notes, and for the name and description of volumes, permissions, settings, components and menu entries.
Metadata version 1
Older apps keep all metadata in metadata.yml with version: 1, without store-metadata.yml. All fields of both files above go under its metadata key. Version 1 also accepts the deprecated fields type (App, Library, SystemLibrary) and scope, which are replaced by default_scope and allowed_scopes. New apps should use version 2.