Nuvaka › Developer docs › Programs

Programs: installable apps in the store

Extensions run inside Nuvaka General App. Programs are separate apps installed on the user's device: Windows, macOS, Linux and Android packages. They appear on the store's "Programs" shelf. The app downloads the package, verifies it and installs it with the operating system's own installer. This page walks you through publishing a program end to end. For building packages see Program packaging; for the mandatory compatibility and dependency declarations see Compatibility and dependencies.

Program or extension?

Extension (Nuvaka Apps)Program
Where it runsInside Nuvaka General App, in a sandboxOn the operating system, as its own process
Package.nvx (HTML/JS + nuvaka.json)The OS package: .msi, .exe, .msix, .dmg, .AppImage, .deb, .rpm, .pkg.tar.zst, .apk
PrivilegesManifest permissions; the user approves themThose of the user or the system it is installed for. The user approves an admin install in the OS's own prompt.
Who publishesAny developer with a verified emailApproved program publishers only
ReviewFirst version and risky changesEvery version
Access to Nuvaka dataThe nuvaka.* APISign in with Nuvaka (OAuth) and the public APIs

If you can do the job with browser APIs and the nuvaka object, write an extension. If you need a driver, a system service, local hardware or a native UI, publish a program.

Who can publish

  • The official Nuvaka account (nuvaka): Nuvaka's own programs. They appear on the "Nuvaka programs" shelf with the official badge.
  • Approved program publishers: developers approved by the Nuvaka team. To apply, write to support. Without approval, publishing requests return 403 not_publisher. The publisher field of GET /api/programs/dev/mine shows your status.
  • You must have accepted the current Publisher Agreement. Otherwise publishing requests return 428 agreement_required (see Publishing).
  • A program id has the form <your-username>.<name> (e.g. nuvaka.monitor-switcher). It contains only lowercase letters, digits and -. The id never changes.

Publishing flow

  1. Create the program: POST /api/programs/dev { id, name, summary:{tr,en}, description:{tr,en}, category, loginMode, runMode?, oauthClientId?, homepage?, listed? }.
    • category: productivity, developer, files, communication, finance, media, games, system, education, ai, other.
    • loginMode: required (the program does not work without Sign in with Nuvaka; the store shows a badge), optional or none. oauthClientId must be an OAuth client you own.
    • listed:false hides the program from listings. It still opens from a link.
    • runMode: "embedded" (default; the UI opens inside the Nuvaka window) or "external" (the program opens its own window). See Run mode.
  2. Draft version: POST /api/programs/dev/{id}/versions { version, notesTr, notesEn, dependencies }. The version has the form x.y.z. Release notes are bilingual (each ≤ 2000 characters). dependencies is a required list; send [] if there are none (details). Give the home page widget here or later (details).
  3. Upload packages: one package per platform, each with its compatibility declaration (compat). See "Chunked upload" below.
  4. Media: POST /api/programs/dev/{id}/media?kind=icon|screenshot|video (raw body). The icon must be square, 64–1024 px (png, jpeg, webp). Up to 8 screenshots. Video mp4 or webm, up to 20 MB.
  5. Submit for review: POST …/versions/{v}/submit. The server checks in order:
    • there is at least one package (no_packages);
    • every package has a compat block (compat_required);
    • the version has a dependencies field (dependencies_required);
    • the version has a widget (widget_required);
    • if the program is runMode:"embedded", every desktop package has compat.ui (ui_required);
    • the widget is valid (widget_invalid); for kind:"extension", every desktop package has compat.bridge (widget_invalid, reason: bridge_required).
  6. Review: the Nuvaka team reviews the version. It approves it or rejects it with a reason. You get a notification either way. You can fix a rejected version and submit it again.

Call all publisher endpoints with your session token or a developer token (nvd_…): Authorization: Bearer nvd_….

Upload API

EndpointDescription
GET /api/programs/dev/mineYour publisher status, programs, versions and packages (including compat and dependencies).
POST /api/programs/devCreates a program.
PUT /api/programs/dev/{id}Changes program details (partial). oauthClientId: "" removes the client link.
POST /api/programs/dev/{id}/versionsDraft version: { version, notesTr?, notesEn?, dependencies?, widget? }.
PUT /api/programs/dev/{id}/versions/{v}Changes notes, dependencies and the widget (draft or rejected version). Fields you leave out stay unchanged.
PUT …/versions/{v}/packages/{platform}?fileName=&offset=&total=&compat=Uploads a package chunk (raw body).
PUT …/versions/{v}/packages/{platform}/compatSets or replaces the package's compatibility declaration (body: compat JSON).
DELETE …/versions/{v}/packages/{platform}Deletes a package (draft or rejected version).
POST …/versions/{v}/submitSubmits the version for review.
POST …/versions/{v}/yankPulls a published version.
POST /api/programs/dev/{id}/media?kind=, DELETE …/media/{mediaId}Adds or deletes the icon, screenshots and video.

Chunked upload

PUT /api/programs/dev/{id}/versions/{v}/packages/linux-deb?fileName=app_1.2.0_amd64.deb&offset=0&total=73400320&compat=%7B%22arch%22...
Content-Type: application/octet-stream
<up to 48 MB of raw bytes>
  • A package can be up to 2 GB. Send chunks in order: offset must be the end of the previous chunk. If the order breaks you get 409 { expected }; continue from there. offset=0 restarts an unfinished upload.
  • Intermediate chunks return { done:false, received }. The last chunk returns { done:true, sha256, size, compat, compatRequired }. The server computes the hash itself.
  • compat is optional and is passed as URL-encoded JSON. The server validates it on every chunk that carries it; if it is invalid, the first chunk already returns 400 compat_invalid. If you leave it out, the reply says compatRequired:true. Then add it with PUT …/packages/{platform}/compat before you submit.
  • Uploading to the same platform again replaces the previous file and keeps the previous compat.
  • The old minOsVersion query field is ignored when compat is given. The value is derived from compat.

Example: a shell script that uploads a .deb in 48 MB chunks.

F=app_1.2.0_amd64.deb; ID=your-username.app; V=1.2.0
COMPAT='{"arch":"x86_64","linux":{"distros":[{"id":"ubuntu","min":"22.04"},{"id":"debian","min":"12"}]}}'
Q=$(python3 -c 'import sys,urllib.parse;print(urllib.parse.quote(sys.argv[1]))' "$COMPAT")
TOTAL=$(stat -c %s "$F"); CH=$((48*1024*1024)); OFF=0
while [ $OFF -lt $TOTAL ]; do
  tail -c +$((OFF+1)) "$F" | head -c $CH | curl -sf -X PUT --data-binary @- \
    -H "Authorization: Bearer $NVD" -H 'Content-Type: application/octet-stream' \
    "https://generalappapi.nuvaka.com/api/programs/dev/$ID/versions/$V/packages/linux-deb?fileName=$F&offset=$OFF&total=$TOTAL&compat=$Q"
  OFF=$((OFF+CH))
done

Signature and verification

For every package the server produces and signs a package record. The record includes the package's compatibility declaration:

{"compat":{"arch":"x86_64","os":{"minVersion":"10.0.19041"}},"fileName":"App-1.2.0.msi","id":"example.app",
 "issuedAt":"…","kind":"program-package","minOsVersion":"10.0.19041","platform":"windows-msi","sha256":"…","size":73400320,"version":"1.2.0"}
  • The signature is Ed25519 over the UTF-8 bytes of this canonical text. The key is the same one used for extension packages and is pinned in the app (GET /api/ext/v1/signing-key). If compat changes later, the server signs the record again.
  • Before installing, Nuvaka General App does the following in order:
    1. verifies the signature;
    2. checks that kind, id, version and platform in the record match the requested program;
    3. compares the downloaded file's size and SHA-256 hash with the record.
    If anything differs, the file is deleted and nothing is installed. The hash is computed once more right before the installer starts; on Linux this check also runs on the root side.
  • The operating system's own signature is your responsibility. Review takes it into account:
    • Windows: Authenticode signing is recommended (.msi, .exe; e.g. signtool sign /fd SHA256 /tr <timestamp server> /td SHA256). Unsigned installers trigger SmartScreen and "Unknown publisher" warnings. An unsigned .msix cannot be installed.
    • macOS: sign with a Developer ID and notarize (xcrun notarytool submit, then xcrun stapler staple). Gatekeeper does not open apps that are not notarized.
    • Android: APK signing (v2 or later). Sign updates with the same key, or Android rejects the update.
    • Linux: Nuvaka's record signature and the SHA-256 check at install time provide the trust. rpm GPG signatures are not required.

Home page widget (required)

Every program appears on the user's Nuvaka home page: when the program is installed, its widget is placed on the home page. The version's widget field is required and has one of two kinds:

kindWhat it drawsWhen
launchThe app's standard quick-launch tile: the program's icon, its name and a "Start" button ("Open" while the program is running). No extension is needed.When the program cannot provide live data. Every program that wants "a card with an Open button" uses this.
extensionA real widget: the home page widget (contributes."home.widget") of a companion extension. Live data or controls come through the bridge.When the program can talk to a running back end (a service or a background part).
"widget": { "kind": "launch" }
"widget": { "kind": "extension", "extensionId": "your-username.app-widget", "widgetId": "status" }
  • Give the widget in the body of POST …/versions or PUT …/versions/{v}. If you leave it out of a PUT, it stays unchanged.
  • kind is required. launch has no other fields. extension has only extensionId and widgetId.
  • The bridge is not in the widget but in each package's compat.bridge (Local endpoints). It goes into the signed package record, and its path differs per operating system. widget.bridge no longer exists; sending it returns widget_invalid (reason: bad_format, path: widget.bridge).
  • kind:"extension" requires compat.bridge in every desktop package; otherwise submission is rejected with bridge_required. A version with only an Android package cannot have a bridge; use kind:"launch" for it.
  • Old records: an old record without kind ({ extensionId, widgetId }) is read as kind:"extension" and is still served. A new record without kind returns widget_invalid (reason: bad_format, path: widget.kind). An old record without a bridge gets bridge_required on submission.

Real widget: the companion extension

  1. Write and publish the companion extension. Publish it from the same account; for official programs, from the official nuvaka account. The manifest must have companionOf and the programs: "companion" permission. A minimal example:
    // nuvaka.json
    {
      "id": "your-username.app-widget", "name": "App Widget", "version": "1.0.0", "apiVersion": 1,
      "description": { "tr": "Uygulama için ana sayfa widget'ı", "en": "Home page widget for App" },
      "storeCategory": "system", "icon": "icon.svg",
      "companionOf": "your-username.app",
      "permissions": [ { "programs": "companion", "reason": { "tr": "Uygulamanın durumunu gösterir ve açar", "en": "Shows App's status and opens it" } } ],
      "entry": { "ui": "index.html" },
      "pages": [ { "id": "main", "title": { "tr": "Uygulama", "en": "App" } } ],
      "contributes": { "home.widget": [
        { "id": "status", "title": { "tr": "Uygulama", "en": "App" }, "page": "main", "sizes": [ { "w": 2, "h": 1 }, { "w": 2, "h": 2 } ], "minRefreshSec": 300 }
      ] }
    }
    // app.js: read the status through the bridge; draw the standard state if the program is not running
    nuvaka.ready.then(async () => {
      try {
        const s = await nuvaka.programs.call('status')
        document.body.textContent = `${s.temp} °C · ${s.profile}`
      } catch (e) {
        if (e.code !== 'bridge_unavailable') throw e
        document.body.innerHTML = 'Program not running · <button id="start">Start</button>'
        document.getElementById('start').onclick = () => nuvaka.programs.open()
      }
    })
  2. Point the program version at the widget in the body of POST …/versions or PUT …/versions/{v}:
    { "version": "1.0.0", "dependencies": [], "widget": { "kind": "extension", "extensionId": "your-username.app-widget", "widgetId": "status" } }
  3. Declare the bridge in every desktop package: compat.bridge (details).
  4. The server checks on submit. Without a widget you get 400 widget_required; with an invalid one, 400 widget_invalid. The body is { success:false, error:"widget_invalid", reason, path, message }; bridge_required also carries platforms.
reasonMeaning
bad_formatwidget is not an object, kind is missing or unknown, extensionId/widgetId is missing, or there is an unknown field (including widget.bridge). path names the bad field.
bridge_requiredkind:"extension" and a desktop package has no compat.bridge (path: "packages.<platform>.compat.bridge", platforms:[…]), or the version has no desktop package at all (path: "packages"). Only on submit and approval.
extension_not_foundThe extension does not exist.
extension_not_ownedThe extension does not belong to the program's publisher (for official programs, the official nuvaka account).
extension_not_publishedThe extension has no published latest version, or it is blocked. Only on submit and approval.
not_companionIn the latest published manifest, companionOf is not this program's id. Only on submit and approval.
widget_not_foundThe latest published manifest's contributes."home.widget" list has no entry with this id. Only on submit and approval.
companion_permission_missingThe latest published manifest lacks the { "programs": "companion" } permission. The widget reaches the bridge through it. Only on submit and approval.
  • Extension to program: "companionOf": "<program id>" in the manifest. On upload the program must exist and the uploader must be its publisher; otherwise the package is rejected with companion_program_not_found or companion_not_owner. A program id always has the form <publisher>.<name>; the companion extension may use the same id (e.g. both nuvaka.gpu-control).
  • Program to extension: widget.extensionId in the version.
  • Permission programs: "companion" (low risk): "Sees the status of its companion program and opens it". Allowed only in extensions with companionOf. The app allows nuvaka.programs.status, open and call only when the extension's companionOf is the program's id and the program's installed version record has widget.kind extension with widget.extensionId set to this extension. The program is always started from the package's launch details; the extension cannot supply a path. call goes only to the installed package's signed compat.bridge endpoint and the methods declared there.

The detail reply carries the latest version's widget, the update reply the target version's:

{ "kind": "launch", "available": true }
{ "kind": "extension", "extensionId": "nuvaka.gpu-control", "widgetId": "status", "extensionName": "GPU Denetimi", "extensionVersion": "0.1.0",
  "title": { "tr": "GPU Denetimi", "en": "GPU Control" }, "sizes": [ { "w": 2, "h": 1 } ], "minRefreshSec": 300, "configurable": null, "available": true }

For kind:"launch" the app draws the standard tile. For kind:"extension", when the program is installed the app installs the companion extension (if it is not installed yet) and places the widget on the home page. available:false means the extension was later removed or blocked, or the widget is no longer in its latest version; the app then falls back to the quick-launch tile.

Widget standard

  • Quick launch or real widget: if the widget does not show live data or controls, use kind:"launch". "A card with an Open button" is not a widget; review rejects it.
  • A real widget (kind:"extension") gets its data only through the bridge: nuvaka.programs.call(method, params). It shows the program's own state (e.g. GPU temperature, profile selection). No "fake live" data from the network or other sources.
  • Not-running state (required): when the bridge cannot be reached (bridge_unavailable), the widget does not show an empty box or an error text; it draws the standard "Program/service not running · Start" state. If the bridge's source is service, "Start" calls nuvaka.programs.open() (the program starts or repairs its own service); if it is background, it asks the app to start the background part. The state clears by itself once the bridge answers again.
  • Sizes: sizes follow the home page widgets rule: 1–6 items, each { w: 1–4, h: 1–4 }. At least { w: 2, h: 1 } is recommended. The widget must draw properly at every size it declares and follow size changes with ui.widget.onResize without reloading. Show a single value and the status at small sizes, details and controls at larger ones.
  • Design: the Nuvaka home page design language. Use the theme variables the app provides (light and dark), and the system font. Do not paint a background up to the tile edge; the app draws the frame. No scrollbars of your own. Animations last at most 300 ms and respect prefers-reduced-motion. Texts in Turkish and English.
  • Refresh: minRefreshSec at least 60. If you need more frequent updates, read through the bridge but stay within the method's rateLimitPerMin. The widget pauses while the page is hidden.
  • Write methods (readOnly:false) are called only from a user gesture (a click or key press). Otherwise the app returns gesture_required.

Run mode

When you create or change a program you give runMode: "embedded" (default) or "external". A PUT can always change it; any other value returns 400 bad_request.

runModeMeaning
embeddedThe program's UI opens inside the Nuvaka window. The program serves its UI on a local endpoint (compat.ui). The app shows it in a sandboxed view, like the P2P http viewer. The publishing gate requires compat.ui in every desktop package; otherwise it returns 400 ui_required { platforms }.
externalThe program opens its own window. Installing it needs a separate consent.

List cards, the detail reply and update items carry runMode and externalWindow. externalWindow is true when runMode is external or a desktop package of the latest version has no compat.ui (e.g. versions published before these rules). When it is true, the app:

  • shows a separate step in the install consent, "This program runs outside Nuvaka in its own window", and asks for explicit consent;
  • shows an "Own window" badge on the list card;
  • asks again before an update if externalWindow:true was not part of the earlier consent.

For compat.ui and the widget bridge compat.bridge, see Local endpoints.

Versions and updates

  • Program versions are independent of Nuvaka General App releases. You publish a new version whenever you want; you do not wait for an app update.
  • A new version must be greater than every version that was ever published (including yanked and blocked ones). Otherwise you get 409 version_not_newer.
  • A version can have packages for several platforms. If you offer both msi and exe for the same OS, updates use the kind the user installed.
  • The app checks installed programs for updates (GET /api/programs/updates). The user sees the notes of every version after the installed one in their own language. The reply contains the target version's packages, their compat declarations and the version's dependencies.
  • Your installer performs the update, so the new package must install over the old one:
    • MSI: the same UpgradeCode and a MajorUpgrade;
    • deb, rpm, pacman: the same package name;
    • APK: the same package name and signing key.
  • You can pull a bad version with POST …/versions/{v}/yank. People who installed it keep using it, but it gets no new installs or updates. The update target falls back to the previous published version.

Review and approval

  • Every version is reviewed; there is no automatic publishing. The review team downloads, installs and runs the package and checks:
    • whether the compat declaration is accurate;
    • whether the dependencies are complete;
    • whether the install uses only the operating system's permission prompt;
    • whether services are removed on uninstall.
  • Reasons for rejection:
    • malicious or hidden behaviour;
    • functionality that does not match the description;
    • an inaccurate compatibility declaration;
    • an install that asks the user to open a terminal or run sudo;
    • components that cannot be uninstalled;
    • missing bilingual texts.
  • States: draft → review → published or rejected. After release a version can become yanked (pulled by you) or blocked (blocked by Nuvaka). Users who installed a blocked version are warned, and downloads return 410.
  • Review checklist for widgets and local endpoints:
    • A real widget shows real data: a kind:"extension" widget gets live data or controls through the bridge (nuvaka.programs.call). "A card with an Open button" is not a widget; such a version is rejected and should use kind:"launch".
    • When the bridge cannot be reached, the standard "Program/service not running · Start" state is drawn. Review tries this with the service stopped; an empty box, an endless spinner or a raw error is not accepted.
    • The widget draws properly at every declared size, follows resizing, works in light and dark themes, and has Turkish and English texts (Widget standard).
    • methods lists only methods that are really used. readOnly:true methods do not change state. Write methods are called only from a user gesture. rateLimitPerMin is reasonable.
    • The service or background part listens only on the declared endpoint. Over http it checks Host and the token; the unix socket is not world-writable; the pipe's access list is restricted.
    • With runMode:"embedded", the UI is really served on the endpoint and usable in the Nuvaka view. With external, the install consent text is accurate.
    • background is used only when needed; persist:true has a reason.
  • You can edit draft and rejected versions and upload packages to them. A version in review cannot be changed.

On the user's side

  • The store has a Programs shelf, search, categories and sorting. By default only programs with a package for the user's device are listed. Cards show a compatibility summary, e.g. "Ubuntu 22.04+, Fedora 39+ · x86_64".
  • Before installing, the app picks the package that fits the device (matching rules) and shows the required dependencies. If your program depends on another Nuvaka program, the app offers to install that one first.
  • Installation uses the operating system's own flow. If admin rights are needed, the user only sees the OS's permission prompt (details).
  • "Install on this device too": programs installed on the user's other devices but not on this one are suggested.
  • Writing a review requires having installed the program on at least one device. You can reply to reviews with POST /api/programs/{id}/reviews/{reviewId}/reply. Problem reports from users go to the Nuvaka team.

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