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
| Field | Type | Required | Rule |
|---|---|---|---|
id | string | ✓ | <publisher>.<name>; publisher [a-z0-9][a-z0-9_-]{1,31}, name [a-z0-9][a-z0-9-]{1,39} |
name | string | ✓ | 2–40 characters |
version | string | ✓ | semver x.y.z, no prefix; every upload greater than the previous one |
apiVersion | integer | ✓ | 1 |
minAppVersion | string | semver; the lowest Nuvaka app version the extension needs | |
description | { tr, en? } | ✓ | tr required; each 1–300 characters |
storeCategory | string | ✓ | productivity, developer, files, communication, finance, media, games, system, education, other |
icon | string | ✓ | path of an .svg or .png in the package |
homepage | string | https:// URL, 8–300 characters | |
entry | { ui?, background? } | ✓ | at least one; file paths in the package (ui: .html/.htm, background: .js/.mjs) |
pages | array | ✓ if entry.ui | 1–10 pages: { id, title: { tr, en? }, icon? } |
permissions | array | at most 30; each item is one permission + reason | |
storage | { quotaMB } | 1–100 MB; default 10 | |
shared | { exports?, imports? } | sharing between extensions | |
triggers | array | at most 10; needs entry.background | |
settings | array | at most 30 settings | |
themes | array | ["dark"], ["light"] or ["dark", "light"]; below | |
dependencies | array | at most 10 dependencies: { id, version, kind?, optional? }; below | |
contributes | object | additions to Nuvaka screens (storage.fileAction, storage.openWith, home.widget); below | |
platforms | array | windows, macos, linux, android; all if omitted (Platform compatibility) | |
platformNote | { tr, en? } | ≤ 300 each; why it's limited | |
workers | boolean | true: Blob workers in the UI (below) | |
addons | object | the extension accepts addons: { kinds, open, schema?, maxSizeMB? } (In-app store) | |
companionOf | string | the 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, addonKind | string | the package is an addon: the host's id and data | code (In-app store) | |
server | object | extension server: { entry, tickHz?, maxPlayers?, memoryMB?, userServers? }; below | |
$schema | string | for 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.
pagesis required whenentry.uiis 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 thenuvaka.readycontext (ctx.page) andnuvaka.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.backgroundrequires thebackgroundpermission.
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: readandfiles: writeare separate scopes and may both be requested. net: 1–20 full host names, lower case.*, IP addresses,localhostand names ending in.local/.localhost/.internalare not accepted.- The
sharedpermission is not written in the manifest; it is added automatically whenshared.importsis 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 withnuvaka.shared.set(name, …), with a description shown to the user ({ tr, en? }, ≤ 200).imports: values to read withnuvaka.shared.get(from, name). Reading requires the user to grant thesharedpermission 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
| Form | Meaning |
|---|---|
every Nm | every N minutes; 15 ≤ N ≤ 1440 (e.g. every 15m, every 360m) |
hourly | every hour |
daily HH:MM | every day, local time (e.g. daily 09:00) |
weekly mon HH:MM | once 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
| Event | When | Permission needed |
|---|---|---|
app.started | when the background starts (app start) | — |
app.focused | when the app window gets focus | — |
network.online | when the network comes back | — |
notes.changed | when notes change | nuvaka.notes: read |
cloud.fileAdded | when a file is added to Nuvaka cloud | nuvaka.cloud: read |
mail.received | when mail arrives | nuvaka.mail: read |
clipboard.added | when an item is added to the clipboard pool | nuvaka.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).
| Field | Rule |
|---|---|
key | 1–40 characters |
type | string, number, bool, select |
label | { tr, en? }, ≤ 80 each |
default | default value |
options | array 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
darkopen dark and appear under the Store's "Has dark theme" filter. - For extensions without
dark(or withoutthemes), 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; thedarkflag isfalseonly 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 }
]
| Field | Rule |
|---|---|
id | ID of the extension you depend on (<publisher>.<name>); not yourself, and the same ID cannot appear twice |
version | version range, at most 40 characters (table below) |
optional | true: installing it is not required; default false |
kind | uses (default): a private, separate copy inside your extension · extends: plugs into the user's own install. See Dependencies |
Version range
| Syntax | Matching versions |
|---|---|
1.2.3 or =1.2.3 | only 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.0 | comparators; written with a full version (>=1.0 is invalid) |
>=1.0.0 <2.0.0 | all 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" }
]
}
| Point | Where it appears |
|---|---|
storage.fileAction | an action in a file's menu in My Files (e.g. "Edit") |
storage.openWith | the Open with submenu in a file's menu in My Files |
home.widget | a widget users can add to their home page; different fields: Home page widgets (0.3.1) |
| Item field | Rule |
|---|---|
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 |
icon | optional icon name, ≤ 40 |
extensions | 1–30 file extensions: lowercase, no dot ("txt") |
mimeTypes | 1–30 MIME types (text/plain, image/*) |
page | page to open; must be in pages |
mode | read or readwrite; default storage.fileAction → readwrite, storage.openWith → read |
- Each item needs at least one of
extensionsormimeTypes. Each point has 1–10 items; unknown points are rejected. contributesrequiresentry.uiandpages.- The item field table above is for the
storage.*points. - Every version with
storage.fileActionorstorage.openWithgoes through Nuvaka review (Review rules).home.widgetalone 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 }
| Field | Type | Required | Rule |
|---|---|---|---|
entry | string | ✓ | a .js/.mjs file in the package, at most 200 characters; can't be the UI file (entry.ui) |
tickHz | integer | 0–20; 0 = no tick event | |
maxPlayers | integer | 1–1000; default 16 | |
memoryMB | integer | 16–128; default 64 | |
userServers | boolean | true: users can also start servers from the app |
- The
nuvaka.realtimepermission is required (players connect to the server over the realtime channel). - Unknown fields inside
serverare rejected; a data addon ("addonKind": "data") can't haveserver. - Every version with
servergoes to review (Review rules).
Extra rules
Rules the JSON schema cannot express but the server and lint enforce:
entryandiconpaths must exist in the package.entry.uirequirespages;entry.backgroundrequires thebackgroundpermission;triggersrequireentry.background.every Nmrequires 15 ≤ N ≤ 1440.- The same permission scope cannot appear twice.
- The
idprefix must be the uploading account's username. nethosts cannot be.local,.localhostor.internal.dependencies: no self-dependency or duplicate IDs; at publish time no cycles, depth ≤ 5, at most 10 packages in total.contributes: requiresentry.ui,pagemust be inpages, item ids unique across the extension.server:server.entrymust exist in the package and can't be the UI file; thenuvaka.realtimepermission is required.
Nuvaka Apps API v1 · last updated 2026-10-17