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 runs | Inside Nuvaka General App, in a sandbox | On 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 |
| Privileges | Manifest permissions; the user approves them | Those of the user or the system it is installed for. The user approves an admin install in the OS's own prompt. |
| Who publishes | Any developer with a verified email | Approved program publishers only |
| Review | First version and risky changes | Every version |
| Access to Nuvaka data | The nuvaka.* API | Sign 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. Thepublisherfield ofGET /api/programs/dev/mineshows 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
- 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),optionalornone.oauthClientIdmust be an OAuth client you own.listed:falsehides 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.
- Draft version:
POST /api/programs/dev/{id}/versions{ version, notesTr, notesEn, dependencies }. The version has the formx.y.z. Release notes are bilingual (each ≤ 2000 characters).dependenciesis a required list; send[]if there are none (details). Give the home pagewidgethere or later (details). - Upload packages: one package per platform, each with its compatibility declaration (
compat). See "Chunked upload" below. - 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. - 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 hascompat.ui(ui_required); - the widget is valid (
widget_invalid); forkind:"extension", every desktop package hascompat.bridge(widget_invalid,reason: bridge_required).
- there is at least one package (
- 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
| Endpoint | Description |
|---|---|
GET /api/programs/dev/mine | Your publisher status, programs, versions and packages (including compat and dependencies). |
POST /api/programs/dev | Creates a program. |
PUT /api/programs/dev/{id} | Changes program details (partial). oauthClientId: "" removes the client link. |
POST /api/programs/dev/{id}/versions | Draft 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}/compat | Sets 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}/submit | Submits the version for review. |
POST …/versions/{v}/yank | Pulls 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:
offsetmust be the end of the previous chunk. If the order breaks you get409 { expected }; continue from there.offset=0restarts 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. compatis 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 returns400 compat_invalid. If you leave it out, the reply sayscompatRequired:true. Then add it withPUT …/packages/{platform}/compatbefore you submit.- Uploading to the same platform again replaces the previous file and keeps the previous compat.
- The old
minOsVersionquery 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:
- verifies the signature;
- checks that
kind,id,versionandplatformin the record match the requested program; - compares the downloaded file's size and SHA-256 hash with the record.
- 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.msixcannot be installed. - macOS: sign with a Developer ID and notarize (
xcrun notarytool submit, thenxcrun 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.
- Windows: Authenticode signing is recommended (
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:
kind | What it draws | When |
|---|---|---|
launch | The 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. |
extension | A 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 …/versionsorPUT …/versions/{v}. If you leave it out of aPUT, it stays unchanged. kindis required.launchhas no other fields.extensionhas onlyextensionIdandwidgetId.- 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.bridgeno longer exists; sending it returnswidget_invalid(reason: bad_format,path: widget.bridge). kind:"extension"requirescompat.bridgein every desktop package; otherwise submission is rejected withbridge_required. A version with only an Android package cannot have a bridge; usekind:"launch"for it.- Old records: an old record without
kind({ extensionId, widgetId }) is read askind:"extension"and is still served. A new record withoutkindreturnswidget_invalid(reason: bad_format,path: widget.kind). An old record without a bridge getsbridge_requiredon submission.
Real widget: the companion extension
- Write and publish the companion extension. Publish it from the same account; for official programs, from the official
nuvakaaccount. The manifest must havecompanionOfand theprograms: "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() } }) - Point the program version at the widget in the body of
POST …/versionsorPUT …/versions/{v}:{ "version": "1.0.0", "dependencies": [], "widget": { "kind": "extension", "extensionId": "your-username.app-widget", "widgetId": "status" } } - Declare the bridge in every desktop package:
compat.bridge(details). - 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_requiredalso carriesplatforms.
reason | Meaning |
|---|---|
bad_format | widget 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_required | kind:"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_found | The extension does not exist. |
extension_not_owned | The extension does not belong to the program's publisher (for official programs, the official nuvaka account). |
extension_not_published | The extension has no published latest version, or it is blocked. Only on submit and approval. |
not_companion | In the latest published manifest, companionOf is not this program's id. Only on submit and approval. |
widget_not_found | The latest published manifest's contributes."home.widget" list has no entry with this id. Only on submit and approval. |
companion_permission_missing | The latest published manifest lacks the { "programs": "companion" } permission. The widget reaches the bridge through it. Only on submit and approval. |
The two-way link: companionOf and programs: companion
- 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 withcompanion_program_not_foundorcompanion_not_owner. A program id always has the form<publisher>.<name>; the companion extension may use the same id (e.g. bothnuvaka.gpu-control). - Program to extension:
widget.extensionIdin the version. - Permission
programs: "companion"(low risk): "Sees the status of its companion program and opens it". Allowed only in extensions withcompanionOf. The app allowsnuvaka.programs.status,openandcallonly when the extension'scompanionOfis the program's id and the program's installed version record haswidget.kindextensionwithwidget.extensionIdset to this extension. The program is always started from the package'slaunchdetails; the extension cannot supply a path.callgoes only to the installed package's signedcompat.bridgeendpoint 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'ssourceisservice, "Start" callsnuvaka.programs.open()(the program starts or repairs its own service); if it isbackground, it asks the app to start the background part. The state clears by itself once the bridge answers again. - Sizes:
sizesfollow 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 withui.widget.onResizewithout 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:
minRefreshSecat least 60. If you need more frequent updates, read through the bridge but stay within the method'srateLimitPerMin. 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 returnsgesture_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.
runMode | Meaning |
|---|---|
embedded | The 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 }. |
external | The 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:truewas 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
msiandexefor 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
UpgradeCodeand aMajorUpgrade; - deb, rpm, pacman: the same package name;
- APK: the same package name and signing key.
- MSI: the same
- 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→publishedorrejected. After release a version can becomeyanked(pulled by you) orblocked(blocked by Nuvaka). Users who installed a blocked version are warned, and downloads return410. - 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 usekind:"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).
methodslists only methods that are really used.readOnly:truemethods do not change state. Write methods are called only from a user gesture.rateLimitPerMinis reasonable.- The service or background part listens only on the declared endpoint. Over http it checks
Hostand 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. Withexternal, the install consent text is accurate. backgroundis used only when needed;persist:truehas a reason.
- A real widget shows real data: a
- 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