Option A: web publishing
1
Open the author center
2
Create a mini app
Click “New app” and fill in a name and slug (lowercase letters, digits, hyphens).
3
Paste your code
Paste your handler code into the editor and check the permissions you need.
4
Submit for review
Wait for an admin to review. Once approved, place the mini app into a topic from its detail page — see Review and publishing.
Option B: CLI (recommended)
Installation
Requires Node.js 22 or later. The CLI is not yet published to the npm registry, so install it from source:Logging in
~/.config/nodeloc-apps/credentials.json, readable only by you. This key can only publish your own mini apps — it can’t do anything else on the site. Running login again immediately invalidates the previous key.
Initialize a project
Development loop
devinlines relative imports into a single module and catches patterns the server would definitely reject (missingrenderexport,eval,node:built-ins, browser globals,fetch).- The
playtestinstallation is visible only to you, needs no review, and can be experimented with freely. It watches.jschanges undersrc/, re-pushes on save, and the page refreshes automatically. logsprints the handler, result, duration, and error code for each invocation:
Next: configure app.json
Learn about every field the platform reads
