SDK
Develop a Desk app without a Miblo Desk: the simulator
Create an app with miblo apps new, see the 240×240 screen in the browser simulator, test it on your Miblo in one click and make the Desk App Store's zip and screenshots.
Three commands
You don't need a Miblo to make a Desk app. The miblo command, which comes with Miblo installed on the computer, creates the app, shows its screen in a simulator in your browser and checks everything with the Desk App Store's own rules:
miblo apps new "My App" --page # creates the folder my-app, a page Desk app
miblo apps dev my-app # the simulator in your browser
miblo apps check my-app # the store's checksAnd, once the app works, three more, which are also buttons on the simulator page:
miblo apps send my-app # runs the app on your real Miblo
miblo apps pack my-app # the checks, then my-app.zip for the store
miblo apps shots my-app # the screenshots for the storeSince Miblo 1.45, the default way to start is --page: the Desk app is a web page that Miblo Hub draws (Page Desk apps). Without --page, the template is the old way, with a card (deprecated, but working).
Nothing to install: the app is the code package the Desk App Store takes (manifest.json and main.js, which exports run(ctx)), and the SDK reaches it through ctx, as it does the official apps. miblo apps new "My Alerts" --alerts creates an app that only sends alerts.
What the simulator shows (1.37.0)
The page, live (Miblo 1.45): for a page Desk app, the simulator shows the page next to the screen, with the same
window.miblothe Miblo Desk's page gets, and loads it again on every save.Connected accounts: a
connectsetting (Google or Microsoft) becomes the Connect Google/Microsoft button, with the real sign-in at the provider, as for an installed app (miblo apps connect). The access stays sealed in the simulator's temporary folder and goes when it closes; Disconnect forgets it. The page shows the account, never the token.AI sessions: for an app with
"sessions": true, the AI sessions panel has the switch that allowsctx.sessions()and a list of fake sessions on the virtual Miblo (Claude Code or Codex, the project and the state) that you edit.Errors with a place: the log names the field and the reason of a refused card (
error: bad_request (items[1].color must be one of ...)), the file and line of an exception or a syntax error (at main.js:12:5), and the HTTP status with an excerpt of the answer, keys and tokens taken out.Values that look like credentials (a setting whose name hints at a key or a password, or a value shaped like a token) show as
••••in the simulator, inmiblo apps configand inmiblo apps show. Display only: the value is still saved on the computer and the app reads it. For an account, useconnect.Screenshots and icon:
miblo apps shotsuses the simulator already open for the folder (miblo apps dev), with its settings; with none open, it says which address to open and how long it waits. Besides the screenshots it writes the Desk App Store icon (icon-128.png, 128 × 128), whichmiblo apps packputs in the full store bundle when thestore/folder has no icon of its own. The starter does the same (node sim.mjs shots).
miblo apps new
With --page (Miblo 1.45), the folder is a page Desk app's: a manifest.json with api: 5, display: "page" and page, a main.js that returns { data }, page.html (the template is a clock with how much of the workday has passed) and README.md. --page and --alerts do not mix: a Desk app is a page or alert-only. The details are in Page Desk apps. The rest of this section describes the template without --page, the old way.
Without --page, it creates a folder named after the app in lowercase (my-app) with three files:
manifest.json: the id, the app API it is written for (api, Compatibility), the name and the promise in Portuguese and English, one setting, the addresses the app reaches (network, empty: offline), how often it runs (intervalMs) and the Desk App Store's preview card;main.js: a real app. The screen shows the time, a ring with how much of the workday is gone (with thesweepeffect), the week on a bar and a live chart fed byctx.screen.push();README.md: the next steps.
The id comes from the name. The Desk App Store has rules of its own for ids (3 to 32 characters, no miblo- at the start, no "13", a few reserved words: the full list), and miblo apps check does not apply them yet: a name such as "Miblo Weather" makes miblo-weather, which passes the check and is refused by the Desk App Store. Pick the id before you start, and change id in manifest.json if needed.
miblo apps dev
Opens a page at http://127.0.0.1:<port>/?t=<code> that only this computer can open. Behind it runs the real Miblo: the same bridge, the same Status API, the same limits and validators, with a virtual Miblo paired in place of the device. Your app runs as an app installed from the Desk App Store does, in the same sandbox (it reads only its own folder and reaches only the addresses in network). What passes in the simulator passes on the Miblo.
The sandbox needs Node 22.15+, 23.5+ or 24+ (it uses Node's permission model). Miblo looks for one on its own (the Node that runs Miblo, then PATH, nvm and fnm); if none fits, set MIBLO_NODE to the path of one (MIBLO_NODE=/opt/homebrew/bin/node miblo apps dev my-app).
On the left, the page has the Miblo: the 240 × 240 screen drawn by Miblo Hub's own mirror, with the card, the effects (fx), the background pictures and the frame and tile animations. The live chart plays its batches as the Miblo gets them. An app alert shows over the screen as on the Miblo: one at a time, for the seconds it asked, with the violet flash when it is important. On the right there are five panels:
What the app costs the Miblo: the RAM, the storage and the processing your screen needs, as bands (fits, attention, does not fit) with advice (Miblo's memory);
Store checks: green when the Desk App Store would take the app; each refusal with its file and line;
App settings: the form people see in Miblo Hub, with the same rules; save and watch the screen change;
Alerts: "Allow this app's alerts" (the first alert only asks, as on the Miblo), the alert on screen and those waiting;
App log: what the app writes with
ctx.log, its errors and what the sandbox blocked.
Every time you save a file in the folder, the checks run again and the app restarts. The "Restart the app" button does the same.
Above them sits the Tools panel (see below): send to the Miblo, prepare for the Desk App Store and make the screenshots, one click each.
What the simulator does not show as the device does: the card uses the computer's fonts, not the Miblo's; Mode 7 and 3D stay still (they play on the Miblo only); the alert's drawing is an approximation (its order and timing are the Miblo's); and the App screen is always in view, while on the Miblo it shows when the person chose (miblo apps when; by default after 60 s without activity).
miblo apps check
Runs on your computer, offline, the same checks the Desk App Store's code scan runs when you submit the app: the code analysis (forbidden modules, eval, addresses outside network, files it does not take, the size) and Miblo's rules for what the app declares (the settings and the preview card, which must fit the Miblo's fonts and icons). Exits 0 when the scan would take it; --json gives the whole result.
MIBLO_LANG=en miblo apps check my-app
# my-app: ready to submit (nothing the store refuses).The Desk App Store also checks what is not in the code: the id's rules (above), the icon and the listing's texts (Publish).
The simulator's tools
Send to Miblo
With a Miblo paired with this computer, the Send to Miblo button (or miblo apps send my-app) runs the app on your real Miblo without writing any program: the page says which Miblo it goes to, and the app takes its turn on the App screen like any app. It runs through this computer's Miblo bridge, in the same sandbox as an app installed from the Desk App Store (it reads only its own folder and reaches only the addresses in network), after passing the Desk App Store's checks.
Every save sends the new version to the Miblo too.
Show now on the Miblo puts the app's screen on the Miblo at once; Stop, Turn on again and Take off the Miblo do what they say; the app's log on the Miblo shows right below.
It is temporary: when you close the simulator, the app leaves the Miblo. Sent from the terminal (
miblo apps send), it stays untilmiblo apps remove my-app.It never replaces an app with the same id installed from the Desk App Store, a program of yours (
miblo apps add) or an official app: changeidinmanifest.json.Security: only the person at this computer can press it (the page opens on 127.0.0.1 only, with a code per session). An AI agent does not send a program to the Miblo by itself:
miblo apps sendrefuses when it runs inside an agent, likemiblo apps add; the button is your click, and the command is for your own terminal.
Prepare for the Desk App Store
The Prepare for the Desk App Store button (or miblo apps pack my-app) runs the Desk App Store's checks and, when nothing is refused, writes the code package the Desk App Store takes, my-app.zip, next to the app's folder (inside it, the next check would read the zip). The package is checked by the same reader Miblo uses to install store apps. When something is refused, nothing is written and the page says what.
MIBLO_LANG=en miblo apps pack my-app
# my-app: store package ready, 3 files, 3 KB.
# /Users/you/apps/my-app.zip
# Submit this zip at miblo.ai/apps/enviar (the "Code" field), with the screenshots.The whole submission in one zip (Miblo 1.37.0). Make a store/ folder inside the app's folder with what the Desk App Store's form asks besides the code; miblo apps pack then also writes my-app-store.zip next to the folder, and dropping it on the submit page's first step fills the version, texts, icon and screenshots at once. The store/ folder never goes into the code package.
my-app/store/
├── store.json { "version": "1.0.0", "category": "daily", "description": { "pt": "...", "en": "..." }, "link": "https://...", "instructions": "..." }
├── icon.png a square PNG, up to 64 KB (the store makes it 128 × 128)
└── shot-0.png ... up to 6 screenshots (without them, the 960 px ones from `miblo apps shots`)store.json is optional field by field: version like 1.0 or 1.0.0; category one of computer, money, daily, news-dev, sport, delights, other; description one string or { pt, en } (up to 2000 characters each); link an https:// address; instructions up to 2000 characters; needsPlus: true when the app uses Miblo+ features. Every image must be a PNG. The Desk App Store checks all of it again when you submit.
Submit at Submit an app (how it goes).
Make screenshots
The Make screenshots button (or miblo apps shots my-app) draws, with the same mirror as the simulator's screen:
the screen now (with the alert over it, if one shows);
each card the app declares for the Desk App Store in
manifest.json:previewand, for more,previews(a list of cards; the Desk App Store takes up to 6).
The screenshots are drawn by the simulator page, in a browser. miblo apps shots starts the simulator, opens the page in your browser and waits up to 2 minutes for it; with no page open it stops with "The simulator page did not open: the screens are drawn there". With --no-open, open the address it prints yourself.
Each comes out at 240 × 240 (the Miblo's size) and 960 × 960 (the largest the Desk App Store keeps, pixel for pixel), in the folder my-app-screenshots/ next to the app's folder, and shows on the page. The screen-now file carries the time in its name: change the settings, click again and get one more scene.
A new SDK
The simulator checks, when it opens and every hour, whether a newer Miblo exists (the SDK comes with it), through miblo.ai's signed list of versions, the same one every Miblo update checks. When there is one, the notice A new SDK is available shows with the Update SDK button: it updates Miblo through the official paths (Miblo's signed updater and, when Miblo came through Claude Code, Claude Code's own claude plugin commands), shows the result and restarts the simulator on the new version, keeping the page and the app sent to the Miblo. Only Claude Code windows that were already open need /reload-plugins. From the terminal: miblo sdk update (and miblo sdk update --check only checks).
Without Miblo installed
Download the starter: https://miblo.ai/dl/extras/miblo-app-starter-1.48.0.zip. It holds the two examples (examples/meu-app and examples/meus-alertas) and the simulator. new, check and pack run on any recent Node; the simulator (dev, shots) needs Node 22.15+, 23.5+ or 24+ (the apps' sandbox uses its permission model; on another Node set MIBLO_NODE to one that fits). The commands are the same:
node sim.mjs new "My App"
node sim.mjs dev my-app
node sim.mjs check my-app
node sim.mjs pack my-app
node sim.mjs shots my-appnode sim.mjs sendonly says that sending to a Miblo needs Miblo installed.The starter 1.36.1 does not write the
-store.zipbundle yet (that came with Miblo 1.37.0): submitmy-app.zipand fill the form, or use a newer starter when one comes out.Without Miblo installed there is nothing to update: download the new starter when one comes out.