Creating an app store
Users install apps from app stores. An app store is a Git repository (or a static HTTP server) that contains one directory per app and an app-store.yml that describes the store.
Git app stores
my-app-store/
├── app-store.yml
└── apps/
├── linkstack/
│ ├── app.yml
│ ├── metadata.yml
│ └── store-metadata.yml
└── another-app/
└── ...Users add a Git app store by its repository URL and branch. n5i clones the branch and installs apps from the directory that app-store.yml selects for its version.
app-store.yml
store_version: 1
name: Example apps
tagline: Apps packaged by the Example community
description: >-
A collection of open-source apps packaged for n5i.
icon: https://example.com/store-icon.svg
developers:
Example community: https://example.com
# License of the app definitions in this repository. Apps declare their own
# licenses in their store-metadata.yml.
license: AGPL-3.0-or-later
content:
# Minimum n5i version -> directory with one subdirectory per app
v0.12.0: apps| Field | Description |
|---|---|
store_version | Format version of this file. Currently always 1. |
name, tagline, description | Shown in the dashboard. Translatable. |
icon | URL of the store's icon. |
developers | Maintainer name → website. |
license | SPDX identifier of the license of the app definitions. |
content | Map of minimum n5i version → directory. |
content lets one repository serve several n5i versions: n5i uses the directory with the highest minimum version that is not newer than itself. An entry for exactly the running version always wins. Most stores only need one entry; add another one when you start using a feature that older n5i versions don't support.
App directories must not contain symbolic links.
HTTP app stores
An HTTP app store is a static file server with this layout:
https://apps.example.com/
├── n5i-metadata.json
└── apps/
└── <app>/
└── <version>/
├── meta.tgz # metadata files of the app
└── app.tgz # the complete app directoryn5i-metadata.json lists the store and the available versions of each app:
{
"minimum_n5i_version": "0.12.0",
"store_metadata": {
"name": { "en": "Example apps" },
"tagline": { "en": "Apps packaged by the Example community" },
"description": { "en": "A collection of open-source apps packaged for n5i." },
"icon": "https://example.com/store-icon.svg",
"developers": { "Example community": "https://example.com" },
"license": "AGPL-3.0-or-later"
},
"apps": {
"linkstack": ["1.0.0", "1.1.0"]
}
}The archives are gzip-compressed tar files of the app directory. Unlike Git stores, HTTP stores can offer several versions of an app; n5i installs the newest stable version by default.
Other formats
Source plugins can add further app store formats.