Skip to content

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 ​

text
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 ​

yaml
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
FieldDescription
store_versionFormat version of this file. Currently always 1.
name, tagline, descriptionShown in the dashboard. Translatable.
iconURL of the store's icon.
developersMaintainer name → website.
licenseSPDX identifier of the license of the app definitions.
contentMap 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:

text
https://apps.example.com/
├── n5i-metadata.json
└── apps/
    └── <app>/
        └── <version>/
            ├── meta.tgz    # metadata files of the app
            └── app.tgz     # the complete app directory

n5i-metadata.json lists the store and the available versions of each app:

json
{
  "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.

Free and open-source software under the GNU AGPL 3.0 or later.