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-sdkas described on the Welcome page.
mkdir acme-warranty && cd acme-warranty
zp app create --appId acme-warranty --name "Acme Warranty"What it writes
| File | What it is |
|---|---|
zuper.app.json | The app's id, name, version and allowed domains |
src/extensions/<id>/extension.tsx | One extension per folder |
src/<appId>.server.ts | Optional: your server functions |
AGENTS.md | SDK notes for coding agents (Codex, Cursor, Copilot …) |
CLAUDE.md | @AGENTS.md, so Claude Code reads the same notes |
.npmrc | legacy-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 createinstalls React only, and without Preact the build fails withCould 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.
Updated about 1 hour ago
