Nuvaka › Developer docs › Manifest (nuvaka.json)

Manifest: nuvaka.json

nuvaka.json at the package root describes the extension. The server, the app and nuvaka-ext lint apply the same rules. Unknown fields are rejected.

For editor support, the JSON schema ships in the developer kit: extension-cli/src/manifest.schema.json (byte-identical to the server's).

Example

{
  "id": "tarikgkhsn.github-watcher",
  "name": "GitHub takipçisi",
  "version": "0.1.0",
  "apiVersion": 1,
  "description": {
    "tr": "Seçtiğin GitHub depolarının yeni sürümlerini saatte bir denetler ve yeni sürüm çıkınca tüm cihazlarına ya da yalnız bu cihaza bildirim gönderir.",
    "en": "Checks the GitHub repositories you choose for new releases every hour and notifies all your devices, or only this one, when a new release appears."
  },
  "storeCategory": "developer",
  "icon": "icon.svg",
  "entry": { "ui": "index.html", "background": "background.js" },
  "pages": [
    { "id": "releases", "title": { "tr": "Sürümler", "en": "Releases" } }
  ],
  "permissions": [
    { "net": ["api.github.com"], "reason": { "tr": "Depoların son sürümünü GitHub API'den okumak için", "en": "To read the latest release of each repository from the GitHub API" } },
    { "nuvaka.push": true, "reason": { "tr": "Yeni sürümü tüm cihazlarına bildirmek için", "en": "To announce a new release on all your devices" } },
    { "notifications": true, "reason": { "tr": "Yeni sürümü yalnız bu cihazda bildirmek için", "en": "To announce a new release on this device only" } },
    { "background": true, "reason": { "tr": "Sürümleri saatte bir, sayfa kapalıyken de denetlemek için", "en": "To check releases every hour, even when the page is closed" } }
  ],
  "storage": { "quotaMB": 1 },
  "triggers": [{ "schedule": "hourly" }, { "event": "network.online" }],
  "settings": [
    { "key": "repos", "type": "string", "label": { "tr": "Depolar (sahip/ad, virgülle ayır)", "en": "Repositories (owner/name, comma separated)" }, "default": "tauri-apps/tauri, nodejs/node" },
    { "key": "channel", "type": "select", "label": { "tr": "Bildirim", "en": "Notification" }, "default": "push", "options": ["push", "local", "none"] }
  ]
}

Source: examples/apps/github-watcher/nuvaka.json

Fields

FieldTypeRequiredRule
idstring✓<publisher>.<name>; publisher [a-z0-9][a-z0-9_-]{1,31}, name [a-z0-9][a-z0-9-]{1,39}
namestring✓2–40 characters
versionstring✓semver x.y.z, no prefix; every upload greater than the previous one
apiVersioninteger✓1
minAppVersionstringsemver; the lowest Nuvaka app version the extension needs
description{ tr, en? }✓tr required; each 1–300 characters
storeCategorystring✓productivity, developer, files, communication, finance, media, games, system, education, other
iconstring✓path of an .svg or .png in the package
homepagestringhttps:// URL, 8–300 characters
entry{ ui?, background? }✓at least one; file paths in the package (ui: .html/.htm, background: .js/.mjs)
pagesarray✓ if entry.ui1–10 pages: { id, title: { tr, en? }, icon? }
permissionsarrayat most 30; each item is one permission + reason
storage{ quotaMB }1–100 MB; default 10
shared{ exports?, imports? }sharing between extensions
triggersarrayat most 10; needs entry.background
settingsarrayat most 30 settings
themesarray["dark"], ["light"] or ["dark", "light"]; below
dependenciesarrayat most 10 dependencies: { id, version, kind?, optional? }; below
contributesobjectadditions to Nuvaka screens (storage.fileAction, storage.openWith, home.widget); below
platformsarraywindows, macos, linux, android; all if omitted (Platform compatibility)
platformNote{ tr, en? }≤ 300 each; why it's limited
workersbooleantrue: Blob workers in the UI (below)
addonsobjectthe extension accepts addons: { kinds, open, schema?, maxSizeMB? } (In-app store)
companionOfstringthe extension is a Program's companion: the program id (<publisher>.<name>). The program must exist and you must be its publisher (companion_not_owner). The programs: "companion" permission requires it (Programs)
addonOf, addonKindstringthe package is an addon: the host's id and data | code (In-app store)
serverobjectextension server: { entry, tickHz?, maxPlayers?, memoryMB?, userServers? }; below
$schemastringfor editors; ignored

Localized texts use the { "tr": "…", "en": "…" } form; tr (Turkish) is always required.

id

The publisher prefix is the uploading account's username (lower case) and is enforced by the server: nobody else can publish with your prefix. The ID never changes once published, even if the name does.

version and minAppVersion

Only x.y.z (e.g. 1.4.0); no v prefix, no -beta suffix. You cannot upload the same or a lower version. minAppVersion is the lowest Nuvaka app version the extension requires.

entry and pages

entry.ui is the UI's HTML file and entry.background the background script. Both must be in the package.

  • pages is required when entry.ui is present. Every page is an item in the Apps menu under the publisher heading; all of them open the same HTML file. The open page comes in the nuvaka.ready context (ctx.page) and nuvaka.ui.onPage(fn) fires when it changes.
  • Page id: [a-z0-9][a-z0-9-]{0,29}, unique. title: { tr, en? }, at most 40 characters each. icon: optional icon name, up to 40 characters.
  • entry.background requires the background permission.

permissions

Each item holds exactly one permission key and a reason. The reason is shown on the install screen: { tr, en? }, 1–200 characters each.

"permissions": [
  { "files": "read", "reason": { "tr": "Seçtiğin klasördeki dosyaları okumak için", "en": "To read files in the folder you pick" } },
  { "files": "write", "reason": { "tr": "Düzenlenen dosyayı kaydetmek için", "en": "To save the edited file" } },
  { "net": ["api.github.com"], "reason": { "tr": "Sürümleri GitHub'dan okumak için", "en": "To read releases from GitHub" } },
  { "notifications": true, "reason": { "tr": "Yeni sürümü bildirmek için", "en": "To announce a new release" } }
]
  • The same scope cannot appear twice. files: read and files: write are separate scopes and may both be requested.
  • net: 1–20 full host names, lower case. *, IP addresses, localhost and names ending in .local/.localhost/.internal are not accepted.
  • The shared permission is not written in the manifest; it is added automatically when shared.imports is present.
  • Storage needs no permission; every extension has its own space.

All permissions, their values and risk classes: Permissions reference.

storage

"storage": { "quotaMB": 25 }

An integer from 1 to 100; default 10 MB. The quota is per user and per extension. See Quota.

shared

Extensions can expose named values to each other. Names are [a-z0-9][a-z0-9-]{0,29}.

"shared": {
  "exports": [{ "name": "rates", "description": { "tr": "Günlük döviz kurları", "en": "Daily exchange rates" } }],
  "imports": [{ "from": "tarikgkhsn.faturaci", "name": "customers" }]
}
  • exports: the names this extension may write with nuvaka.shared.set(name, …), with a description shown to the user ({ tr, en? }, ≤ 200).
  • imports: values to read with nuvaka.shared.get(from, name). Reading requires the user to grant the shared permission and the source extension to be installed.

triggers

Events that wake the background script. Requires entry.background. Each item is either { "schedule": … } or { "event": … }.

Schedules

FormMeaning
every Nmevery N minutes; 15 ≤ N ≤ 1440 (e.g. every 15m, every 360m)
hourlyevery hour
daily HH:MMevery day, local time (e.g. daily 09:00)
weekly mon HH:MMonce a week; day mon tue wed thu fri sat sun

When it fires, nuvaka.on('schedule', ({ schedule, at }) => …) runs in the background; schedule is the manifest text and at the firing time (unix seconds). A schedule missed while the app was closed fires once at the next start.

Events

EventWhenPermission needed
app.startedwhen the background starts (app start)—
app.focusedwhen the app window gets focus—
network.onlinewhen the network comes back—
notes.changedwhen notes changenuvaka.notes: read
cloud.fileAddedwhen a file is added to Nuvaka cloudnuvaka.cloud: read
mail.receivedwhen mail arrivesnuvaka.mail: read
clipboard.addedwhen an item is added to the clipboard poolnuvaka.clipboard: read

Server-originated events are not delivered unless the matching read permission is granted. The payload does not contain the change itself; read the data again through the API.

settings

Settings the user can change. The app draws the settings screen; values are the same across devices and are read with nuvaka.settings.get() (default when the user has not set a value).

FieldRule
key1–40 characters
typestring, number, bool, select
label{ tr, en? }, ≤ 80 each
defaultdefault value
optionsarray of choices; required for select
"settings": [
  { "key": "greeting", "type": "string", "label": { "tr": "Selamlama", "en": "Greeting" }, "default": "Hello" },
  { "key": "channel", "type": "select", "label": { "tr": "Bildirim", "en": "Notification" }, "default": "push", "options": ["push", "local", "none"] }
]

themes

The themes your extension's UI supports: "dark" and/or "light", 1–2 distinct items. Optional, but a dark theme is recommended:

"themes": ["dark", "light"]
  • The Nuvaka UI is dark. Extensions that include dark open dark and appear under the Store's "Has dark theme" filter.
  • For extensions without dark (or without themes), users see "This app has no dark theme" before installing.
  • The frame gets theme info through nuvaka.ui.theme() / nuvaka.ui.onTheme(fn) and the --nv-* CSS variables; the dark flag is false only for extensions that declare ["light"]. See Concepts › Theme.

dependencies

If your extension relies on values or features another extension provides, declare it as a dependency. When a user installs your extension, missing dependencies are offered on the same install screen. Resolution, install and update flow: Dependencies.

"dependencies": [
  { "id": "tarikgkhsn.rates-service", "version": "^1.2.0" },
  { "id": "ali.charts", "version": ">=2.0.0 <3.0.0", "optional": true }
]
FieldRule
idID of the extension you depend on (<publisher>.<name>); not yourself, and the same ID cannot appear twice
versionversion range, at most 40 characters (table below)
optionaltrue: installing it is not required; default false
kinduses (default): a private, separate copy inside your extension · extends: plugs into the user's own install. See Dependencies

Version range

SyntaxMatching versions
1.2.3 or =1.2.3only 1.2.3
^1.2.3≥ 1.2.3 and < 2.0.0 (same major)
^1.2≥ 1.2.0 and < 2.0.0
^0.2.3≥ 0.2.3 and < 0.3.0 (same minor on 0.x)
~1.2.3≥ 1.2.3 and < 1.3.0 (same minor)
~1.2≥ 1.2.0 and < 1.3.0
1.x≥ 1.0.0 and < 2.0.0
1.2.x≥ 1.2.0 and < 1.3.0
*any version
>=1.0.0, >1.0.0, <2.0.0, <=1.4.0comparators; written with a full version (>=1.0 is invalid)
>=1.0.0 <2.0.0all space-separated parts (AND)

Prereleases (1.0.0-beta), || (OR), a v prefix and mixed forms like 1.x.3 are invalid. nuvaka-ext lint checks ranges with the same rules as the server.

Checked when publishing

Range syntax is checked with the package; the rest is checked at upload against published versions in the Store. A violating upload is rejected; errors appear in scan.errors prefixed with "Bağımlılık: …" ("Dependency").

  • The dependency must be in the Store, not blocked, and have a published version that satisfies the range.
  • No cycles: A → B → A (including the root) is rejected.
  • Depth ≤ 5: dependencies of dependencies… at most 5 levels.
  • At most 10 packages in total: every package in the install, including the root. Optional dependencies count too.
  • A package appears once in the tree with a single version; if two dependents ask for incompatible ranges, that is a conflict error.

To see the tree before publishing: nuvaka-ext deps (CLI).

contributes

Your extension can add items to Nuvaka's own screens. There are three points; Nuvaka's UI draws the item (name, icon, file types), the extension cannot put HTML or code on a Nuvaka screen. When the user picks the item, your extension's page opens with a handle scoped to that one file. Details: Core contributions.

"contributes": {
  "storage.fileAction": [
    { "id": "edit", "title": { "tr": "Düzenle", "en": "Edit" }, "icon": "pencil", "extensions": ["txt", "md"], "page": "main" }
  ],
  "storage.openWith": [
    { "id": "view", "title": { "tr": "Görüntüle", "en": "View" }, "mimeTypes": ["text/*", "image/png"], "page": "main", "mode": "read" }
  ]
}
PointWhere it appears
storage.fileActionan action in a file's menu in My Files (e.g. "Edit")
storage.openWiththe Open with submenu in a file's menu in My Files
home.widgeta widget users can add to their home page; different fields: Home page widgets (0.3.1)
Item fieldRule
id[a-z0-9][a-z0-9-]{0,29}; unique across the whole extension (the same id cannot be used in two points)
title{ tr, en? }, each ≤ 40
iconoptional icon name, ≤ 40
extensions1–30 file extensions: lowercase, no dot ("txt")
mimeTypes1–30 MIME types (text/plain, image/*)
pagepage to open; must be in pages
moderead or readwrite; default storage.fileAction → readwrite, storage.openWith → read
  • Each item needs at least one of extensions or mimeTypes. Each point has 1–10 items; unknown points are rejected.
  • contributes requires entry.ui and pages.
  • The item field table above is for the storage.* points.
  • Every version with storage.fileAction or storage.openWith goes through Nuvaka review (Review rules). home.widget alone doesn't trigger review.

workers

Optional; only for extensions with a UI. "workers": true adds worker-src blob: to the frame's CSP: only new Worker(URL.createObjectURL(new Blob([source]))) works; workers can't be started from a package file or the network. A worker inherits the frame's restrictions: no network, no importScripts, no nuvaka object. The goal is running heavy work like language services or parsing on the device without freezing the UI. Every version of an extension with this field goes to review; the store detail shows workers: true.

Note: The store already accepts this field; the app enabling workers comes in a later release. Until then starting a worker fails; your code should fall back to running without one.

server

Optional. The server code in your package runs in isolated V8 on a separate Nuvaka machine; users join these servers from inside the app. Full guide: Extension servers (Nuvaka 0.3.1, SDK 1.3.0+).

"server": { "entry": "server/main.js", "tickHz": 5, "maxPlayers": 16, "memoryMB": 64, "userServers": true }
FieldTypeRequiredRule
entrystring✓a .js/.mjs file in the package, at most 200 characters; can't be the UI file (entry.ui)
tickHzinteger0–20; 0 = no tick event
maxPlayersinteger1–1000; default 16
memoryMBinteger16–128; default 64
userServersbooleantrue: users can also start servers from the app
  • The nuvaka.realtime permission is required (players connect to the server over the realtime channel).
  • Unknown fields inside server are rejected; a data addon ("addonKind": "data") can't have server.
  • Every version with server goes to review (Review rules).

Extra rules

Rules the JSON schema cannot express but the server and lint enforce:

  • entry and icon paths must exist in the package.
  • entry.ui requires pages; entry.background requires the background permission; triggers require entry.background.
  • every Nm requires 15 ≤ N ≤ 1440.
  • The same permission scope cannot appear twice.
  • The id prefix must be the uploading account's username.
  • net hosts cannot be .local, .localhost or .internal.
  • dependencies: no self-dependency or duplicate IDs; at publish time no cycles, depth ≤ 5, at most 10 packages in total.
  • contributes: requires entry.ui, page must be in pages, item ids unique across the extension.
  • server: server.entry must exist in the package and can't be the UI file; the nuvaka.realtime permission is required.

Nuvaka Apps API v1 · last updated 2026-10-17