Skip to content

Build panels

panel.json reference

Every field of panel.json, the rules each one is checked against, the ids and names that are refused, and the limits of a package.

The file the person opens (SDK 6, unreleased)

SDK 5 is Extras tile sizes; it does not provide project-file access. SDK 6 adds file contributions for verified publishers. Deska suggests no package for any file type: once a person installs one, opening its file types from the explorer, Quick Open, a drop or a link opens it there; without one, files open as before. Every handler version requires review.

Declare contributes.files.handlers with extensions (up to eight lowercase dot extensions), label, default and maxRecommendedBytes. Native viewers and binaries are reserved. Code, configuration and plain text (.py, .json, .txt and similar) appear in Open with only; any other extension can be a default. The recommended size asks before granting access.

deska.file.current() returns name, extension, size and modifiedAt, or null; read() returns a Blob; onChange(callback) returns an unsubscribe function; openAsText() opens the same file in the editor and resolves true, or false when Deska could not open it. Only the opened file is granted, read only, until its window closes. Paths and tokens are never exposed. Errors: no_file, file_gone, file_too_large. deska.files remains the package’s own blob storage.

The package

A package is a folder, or once submitted a zip, with panel.json at its root. It carries the panel’s whole behavior as web files and nothing that runs on the computer. Only panel.json and the pages it names are required; the rest is whatever your pages load.

pomodoro-plus/
pomodoro-plus/
  panel.json
  index.html
  extras.html
  app.js
  app.css
  assets/
    bell.webp
    inter.woff2
  icon.svg
  screenshots/
    1-timer.png
    2-extras.png
  README.md
  • index.html is the page the panel opens (any name, set by contributes.panel.entry).
  • extras.html is optional: the page Extras shows when its row is opened.
  • screenshots/ holds the 1 to 5 images a submission needs. See Package limits.
  • README.md is for whoever reads the package. Deska does not show it.

A complete panel.json

panel.jsonjson
{
  "schema": 1,
  "id": "pomodoro-plus",
  "name": "Pomodoro Plus",
  "version": "1.2.0",
  "description": "A focus timer with breaks and a daily count.",
  "author": "pasho",
  "icon": "icon.svg",
  "color": "#e66b4f",
  "category": "productivity",
  "permissions": ["notify"],
  "network": ["api.example.com"],
  "sdk": 1,
  "contributes": {
    "panel": { "entry": "index.html", "scope": "workspace", "size": { "width": 360, "height": 280 } },
    "extras": { "title": "Pomodoro Plus", "view": "extras.html" }
  }
}

Deska reads every field when you load the folder, and deska.dev reads them all again when you submit. Every problem is reported at once, so you can fix a manifest in one pass.

Fields

FieldRequiredRule
schemaYes1. A higher number is refused with “This package needs a newer Deska.”
idYes3 to 40 lowercase letters, digits and dashes, starting and ending with a letter or digit. See The id.
nameYesUp to 40 characters.
versionYesSemver, like 1.2.0 or 1.2.0-beta.1, up to 64 characters. See Versions.
descriptionYesOne line, up to 140 characters.
authorYesYour name as the maker, up to 40 characters. People see it only while your Deska profile is private: a public profile’s name takes its place everywhere.
iconNoThe path of an .svg, .png or .webp inside the package. The Marketplace draws it on the panel’s card.
colorNo#rrggbb, like #e66b4f. Stored in lowercase.
categoryNoproductivity, media, dev, ambient or other, the default.
permissionsNoA list of notify, open-url, clipboard-write, account and agent. An unknown one refuses the package; a repeated one is kept once. See Permissions.
networkNoUp to 20 host names the panel may reach over https. See Sites.
embedsNoUp to 10 host names whose pages the panel may show through Deska. Needs "sdk": 2. See Pages from other sites.
signedInEmbedsNotrue asks that the pages under embeds keep the person’s sign-in to those sites, in a session of the panel’s own. Needs embeds. See Staying signed in.
goesWithNoUp to 6 ids of the Deska panels yours goes with, such as ["terminal"]. Used for For you, matched on the person’s computer. See Say which Deska panels yours goes with.
accountWith accountSign in with Deska: { privacy, events? }, the https address of your privacy policy and, optionally, where deska.dev tells your server about people who stopped. Needs the account permission, a host under network and "sdk": 4. See Sign in with Deska.
agentWith agentPanel actions: { actions }, 1 to 16 actions a connected task’s agent may call. Needs the agent permission and "sdk": 4, and rules out network, embeds, account and open-url. See Panel actions.
sdkNoThe SDK version the panel was written for: 1, the default when it is absent, 2 for embeds, 3 for keepAlive in Extras, 4 for account and agent, 5 for Extras sizes, or 6 for file handlers. A higher one than this Deska speaks is refused like schema, so an older Deska says the panel needs a newer Deska.
contributesYesWhere the panel appears, with at least panel. See Places.

Any other top-level field refuses the package, so a typo like permission never passes silently. Text fields are trimmed, and name, description, author and the Extras title may not hold control, zero-width or bidi characters, or half of a character whose other half is missing. Whole emoji are fine.

The id

The id names the panel everywhere: the folder it unpacks to on every computer, its storage, its listing and its page on deska.dev. The first version you submit claims it for your account, and only that account can submit more versions under it.

Deska refuses an id that is not usable on every system it runs on:

  • A name Windows keeps for a device: con, prn, aux, nul, com0 to com9 and lpt0 to lpt9.
  • constructor.

deska.dev also refuses, when you submit, the ids that would read as Deska’s own. A loaded folder with one of these still runs while you build:

  • Any id that starts with dev- (Deska’s own name for loaded folders) or deska-.
  • Deska and Dex (deska, dex, ask-dex), the coding agents and their makers (claude, codex, cursor, opencode, antigravity, gemini, openai, anthropic and similar).
  • Built-in panels and their cards in the Marketplace, like terminal, browser, editor, todo, pomodoro, music, youtube, spotify or sticky-note.
  • Deska’s own places and official sounding words: extras, library, community, settings, official, sdk, api, admin, and apply, a page of deska.dev under /panels.
TipPick a descriptive id with two words, like focus-timer or team-clocks. It shows in the panel’s address on deska.dev and never changes once submitted.

Names that read as Deska

Every community panel says it was made by someone other than Deska, so its name, author and Extras title cannot pass for Deska’s own. When you submit, deska.dev refuses one that holds the word “Dex”, or a word that starts with “Deska”, and names each field to change.

  • Words are read the way a person reads them: in any case, with accents, lookalike letters from other alphabets, full-width or styled letters, digits standing for letters (3, 4 and 5 for e, a and s) and letters spaced one by one.
  • A part of a camelCase word counts: “DexTimer” and “MyDeska” are refused, “DeskApp” passes.
  • Dex never counts at the end of a word, so MangaDex, Rolodex, Dexter and Codex pass.
  • An author may be called Dex, as long as Dex is not the whole name.

Versions

version is semver: three whole numbers without leading zeros, and an optional prerelease after a dash (1.4.0, 2.0.0-rc.1). Build metadata after a plus is not accepted.

  • A submitted version never changes. To change anything, raise the version.
  • Each new version must be greater than the last. Numbers compare as numbers at any length, and a prerelease ranks below its release: 1.2.0-beta.2 comes before 1.2.0.
  • While you build, the version is not checked against anything: a loaded folder has no published version.

Permissions

Without any permission a panel can draw, keep its own data, follow the theme, know when it is visible, set its title and, if it declares one, fill its Extras row. Ask only for what you use: people read the list before they install.

PermissionWhat it allowsAskedPeople see
notifydeska.notify: a notice in Deska, labelled with the panel’s name, at most one every ten seconds.At installSend notifications
open-urldeska.openUrl: an https link in the browser, from a click in the panel. Deska asks the person the first time for each site.At installOpen links
clipboard-writedeska.clipboard.write and deska.clipboard.writeImage: text, or a PNG or JPEG image, to the clipboard, from a click in the panel. Without it, the page’s own copy commands do nothing too.At installCopy to your clipboard
accountdeska.account.signIn and deska.account.token: sign the person in to your server with Deska. See Sign in with Deska.At first useSign you in with Deska
agentBeing connected to a task, deska.agent.respond and deska.agent.offer. See Panel actions.At first useWork with your tasks
  • At install. The install question lists every permission with a switch, on by default. The person may install with any of them off, and the calls it covers then answer permission_denied. Build for that: a panel should still work, and say what is missing, without its permissions.
  • At first use. account and agent are listed under Asks first, with no switch. Deska asks with a sheet of its own, only after the person’s own press: Sign in in your panel, or Connect to a task in Deska’s strip over it. Allow is kept. Cancel keeps nothing: the next Connect to a task asks again, and for Sign in Deska shows no new sheet until the person leaves the panel and comes back to it.
  • Afterwards. An installed panel’s page in the Marketplace has Permissions, with a switch for each one. Turning one off is kept: its calls answer permission_denied without asking, until the person turns it on again. A change there reloads the panel’s open copies, and init.permissions and init.declined say where each stands.

A decline answers the permission, not one version. When a version stops declaring a permission the person declined, the install keeps the decline, and a later version that asks for it again finds it declined: its update question does not ask about it.

Each version asks for its own permissions. People who installed an earlier one are asked again before an update that wants more, and only about what is new. There is no permission to read the clipboard, files, the microphone, the camera or the location. Keeping files with deska.files and saving one with deska.files.save need none: the files are the panel’s own, and the save dialog is the person’s consent.

Sites

network lists the hosts the panel may reach, and it can reach those and no others: fetch, images, fonts, audio and video all come from the package or these hosts, over https. A panel with an empty list cannot reach the internet at all.

  • A plain lowercase host name with at least one dot: api.example.com. No scheme, path, port, wildcard or IP address.
  • Exact names only. example.com does not cover api.example.com; list each host. Where a service spreads over many hosts, list the ones it uses, like Net Radio does with six stream mirrors.
  • At most 20. A repeated host is kept once.

People see every host on the panel’s page. The question before installing names every one of them too. An update that adds a host names each new one.

Pages from other sites

embeds lists the hosts whose pages the panel may show, like a video player or a map. The panel never frames them itself: it asks Deska with deska.embed, and Deska draws its own frame over the panel. See the sandbox for what that frame allows.

panel.jsonjson
{
  "embeds": ["www.youtube-nocookie.com"],
  "sdk": 2
}
  • The same host rules as network: a plain lowercase host name, exact, with no scheme, path, port, wildcard or IP address.
  • At most 10. A repeated host is kept once.
  • Never Deska’s own sites, or a sign-in or payment host, with every host under them: deska.dev, clerk.com, accounts.google.com, appleid.apple.com, login.microsoftonline.com, github.com, gitlab.com, stripe.com, paypal.com and a few more. A framed copy of a sign-in page is how passwords get stolen.
  • A package that declares embeds needs "sdk": 2.
  • embeds does not cover network: list a host in both when the panel also fetches from it.

People see these hosts on the panel’s page, and the question before installing says the panel will show pages from them. An update that adds a host asks again. Deska always reviews a version with embeds before it is published, and approves its pages with it.

Installed from the Marketplace, a version shows these pages only once Deska approved them for it. Since 14 October 2026, a version Deska approves in review keeps the embed approval, and the signed-in verification, of the last version that had them, as long as its embeds and signedInEmbeds did not change. A version that changes either one waits for Deska to approve and verify it again. Deska can take an approval back, and the pages come down at each computer’s next check. A folder you load in Build a panel shows them while you build.

Staying signed in

Pages from other sites run signed out by default. A panel that needs the person’s own view of a site, like their calendar, sets "signedInEmbeds": true: its pages then keep the person’s sign-in to those sites, in a session of this panel’s own, apart from the app, the browser panels and every other panel. It needs hosts under embeds, and it takes effect only once Deska verified the version for it (or the last one with the same embeds and signedInEmbeds, see above); until then, or if Deska approves it signed out, the pages show signed out. The panel’s page, and the question before installing or updating, say it can keep people signed in.

Signing in inside an embed

  • The embedded page only moves between the hosts under embeds. A sign-in that sends the whole page to another site and back (Supabase, Auth0, Google, Apple) cannot run inside it. Open the sign-in in a popup instead.
  • Since desktop 1.36.0, any window.open or target="_blank" link in a signed-in embed opens a sign-in window in the panel’s own session, and the page that opened it can still talk to it. Before, only a window.open with a features string did. The window browses as Chrome, so Google accepts it.
  • A sign-in by email, or with a one-time code, works inside the embed itself.
  • A signed-out embed cannot open windows at all.

What an installed copy shows

Until Deska verifies a version, and for every version without signedInEmbeds, the embed shows signed out: a fresh jar of cookies and storage on every load, so nothing is kept between loads. Signed out, the site must also allow being framed: no X-Frame-Options: DENY or SAMEORIGIN, and no frame-ancestors that leaves Deska out.

  • A folder you load always gets the signed-in embed while it asks for one. To see what an installed copy shows before Deska verifies it, remove signedInEmbeds from panel.json while you test.
  • Deska knows a loaded folder by its path. Moving or renaming the folder signs you out of its embeds.

Deska can also block a site for every panel at once. A computer stops reaching and showing it at its next check, whatever panel.json says, and a version that names it under network or embeds cannot be submitted.

Sign in with Deska

account lets the panel sign people in to its own server with their Deska account. It goes with the account permission:

panel.jsonjson
{
  "permissions": ["account"],
  "network": ["api.nook.app"],
  "account": {
    "privacy": "https://nook.app/privacy",
    "events": "https://api.nook.app/deska/events"
  },
  "sdk": 4
}
  • privacy, required: the https address of the panel’s privacy policy, linked from Deska’s sign-in sheet.
  • events, optional: an https address on one of the network hosts, where deska.dev posts an event when someone stops or deletes their account.
  • Each address is https on a host name, with no port, user name or password, at most 2,048 characters. No other key.
  • At least one host under network, and "sdk": 4.

The whole guide, with checking the token on your server: Sign in with Deska.

Panel actions

agent lists the actions that the agent of a task the person connects may call: { "actions": [ ... ] }, 1 to 16 of them, each with a name, a description, a kind (read or write), an input schema and, for a read, an output schema. It goes with the agent permission and "sdk": 4.

A package with agent reaches nobody else: it may not also declare network hosts, embeds, signedInEmbeds, the account permission or open-url. The fields, the schema rules and how to answer a call: Panel actions.

The rule holds across versions, because a panel’s storage and files outlive its updates. Once any version of an id declared agent, whatever became of it, no later version of that id may declare any of those five. deska.dev refuses such a submission with invalid_package, one problem for each, and Deska refuses to install, update or reload such a version on a computer that ever had one that worked with agents. A later version may drop agent and stay offline. A panel like that reaches the network only under a new id.

Places

contributes.panel

Required: the panel on the desk.

  • entry: the path of an .html page in the package.
  • scope: workspace, the default, lets a project hold as many copies as the person adds. global keeps one per project: adding it again brings the open one forward. Use it for anything that should never run twice, like a radio.
  • size: optional, the size a new panel opens at, as whole numbers width and height from 120 to 4000. Without it the panel opens at 720 by 540. A side under 200 wide or 140 tall opens at that smallest size, the least a panel window can be. The person can resize the panel after, and a panel already on the desk keeps its size.

contributes.extras

Optional: a row in the Extras popover.

  • title: the row’s name, up to 40 characters.
  • view: optional, an .html page that opens inside the popover. Without it the popover shows the panel’s entry.
  • keepAlive: optional, true or false. true lets the Extras page keep running after Extras closes, while the page asks for it. Needs "sdk": 3. See Keep playing after Extras closes.
  • sizes: optional, a list of "compact", "regular" and "large", each once. The sizes the package fills when the person pops its row out as a tile. Compact is the row Deska draws; regular and large show view inside the tile. Without sizes the package is compact only. An unknown size refuses the package. Needs "sdk": 5.

Unknown keys under contributes are ignored with a warning, so a place a newer Deska learns never locks an older one out of your panel. See Extras for what the row shows.

Package limits

  • A package is at most 5 MB zipped, and unpacks to at most 20 MB and 500 files.
  • To submit it, a package carries 1 to 5 screenshots in a screenshots/ folder at its root: png, jpg, jpeg or webp, each at most 2 MB and 320 to 4,096 pixels a side, shown in file-name order. There is no field for them in panel.json, and a folder you load runs without them. See Submitting and review.
  • File types: html, js, mjs, css, json, svg, png, jpg, jpeg, webp, gif, woff2, md and txt. Anything else refuses the package, including wasm, mp3 and ttf.
  • Paths are relative and at most 200 characters, with no .., no empty or . segment, no backslash and nothing under __deska/, where the SDK lives.
  • Every name must be one Windows can write: none of : * ? " < > |, no name ending in a dot or a space, no device name like con.html or com1.js, and no two paths that differ only in letter case.
  • Plain files only: symbolic links and special files are refused.
  • __MACOSX/ and dotfiles like .DS_Store or .git are skipped, not refused. A zip made of the folder itself (pomodoro-plus/panel.json) is read as if made from inside it.
  • Every page and the icon panel.json names must be in the package.
TipAudio and video do not fit the file types on purpose: stream them from a host you declare (Net Radio, Window View) or generate sound in the page (Noise Machine).

What the checks say

Deska lists every problem on the loaded folder’s page in Build a panel, the first fifty and how many more. The messages you are most likely to meet:

MessageFix
Unknown field "…".Remove or rename the field; only the fields above are read.
"id" is 3 to 40 lowercase letters, digits and dashes…Lowercase it and replace spaces or underscores with dashes.
"id" cannot be "…". Pick another.The id is a device name or constructor.
"version" must be a semver version such as 1.0.0.Use three numbers: 0.1.0.
"…" is N characters; the limit is M.Shorten the name, description, author or Extras title.
"…" holds invisible or control characters.Retype the text; a pasted name can carry a zero-width space.
"…" is not a host name (no scheme, port, wildcard or IP address).Write api.example.com, not https://api.example.com/v1.
Unknown permission "…". Known: notify, open-url, clipboard-write, account, agent.Check the spelling.
"contributes.panel.entry" must point at an .html page.Point it at a page, like index.html.
… is named in panel.json but is not in the package.Add the file or fix the path; paths are case sensitive.
…: this kind of file is not allowed in a package.Remove it, or convert it to an allowed type.
A package holds at most 500 files; this one has N.Load the folder panel.json is in, not a project root.
… cannot be shown inside a panel: it is a sign-in, payment or Deska page.Remove the host from embeds; it is never allowed.
A package with "embeds" needs "sdk": 2 or later.Add "sdk": 2 to panel.json.
A package with "contributes.extras.keepAlive" needs "sdk": 3 or later.Add "sdk": 3 to panel.json.
A package with "contributes.extras.sizes" needs "sdk": 5 or later.Add "sdk": 5 to panel.json.
"signedInEmbeds" needs hosts under "embeds".List the sites under embeds, or remove signedInEmbeds.
Deska blocked … for every panel, so a package may not reach it or show its pages.Remove the host from network and embeds.
A package with "account" needs "sdk": 4 or later.Add "sdk": 4 to panel.json. The same goes for agent.
The "account" permission needs an "account" object with "privacy", the https address of the panel's privacy policy.Add account with your privacy policy’s address, or remove the permission.
Sign in with Deska needs at least one host under "network": the panel's server.List your server under network.
"account.events" must be on a host under "network"; … is not.Move the events address to your server, or list its host under network.
The "agent" permission needs an "agent" object with "actions".Add agent with your actions, or remove the permission.
A package with "agent" cannot also declare "network": what an agent hands a panel stays on the computer.Remove network (or embeds, account, open-url, whichever it names), or drop agent.
This panel worked with agents in an earlier version, so no later version of it may declare "network": what an agent handed it stays on the computer. Submit it under a new id in panel.json.Remove what it names, or give the panel a new id. See Panel actions.
agent.actions[0].input.properties.caption: a string needs "maxLength", a whole number from 1 to 4000.Give every string a maxLength. See The schemas.
This package needs a newer Deska.Set schema to 1 and sdk to 1, or 2 with embeds, 3 with keepAlive, 4 with account or agent, 5 with Extras sizes, or update Deska.