Create an app

Run zp app create in an empty folder. It asks for each option you don't pass, writes the app and installs @zuperpro/app-sdk from npm.

zp 0.4.0 installs the old name. It still writes @zuper/app-sdk. Until the next zp release, change it to @zuperpro/app-sdk as described on the Welcome page.

mkdir acme-warranty && cd acme-warranty
zp app create --appId acme-warranty --name "Acme Warranty"

What it writes

FileWhat it is
zuper.app.jsonThe app's id, name, version and allowed domains
src/extensions/<id>/extension.tsxOne extension per folder
src/<appId>.server.tsOptional: your server functions
AGENTS.mdSDK notes for coding agents (Codex, Cursor, Copilot …)
CLAUDE.md@AGENTS.md, so Claude Code reads the same notes
.npmrclegacy-peer-deps=true (keep it)

zuper.app.json

{
	"appId": "acme-warranty",           // lower-case letters, digits and hyphens
	"name": "Acme Warranty",
	"version": "0.1.0",                 // three numbers, like 1.2.3
	"allowedDomains": ["api.acme.com"], // hosts your server functions and Frames may use
	"runtime": "preact"                 // optional: "react" (default) or "preact"
}

Using Preact? Also run npm install --save-dev preact. zp app create installs React only, and without Preact the build fails with Could not resolve "preact/compat/jsx-runtime".

Add an extension

zp app generate extension (alias zp app g ext) asks for the type, id and name, or takes them as flags. Each type starts from a working template, so prefer generate to writing files by hand.

zp app generate extension app-card --id warranty-card --name "Warranty"

The types are record-action, app-card, record-tab and dialog. See Extensions.


Did this page help you?