Skip to content

Manifest ​

manifest.json describes a Mini Program. It is validated on every build against the manifest schema (manifestVersion 1, schemas/mini-program-manifest.schema.json in the SDK repository).

FieldRequiredNotes
manifestVersionyes1
idyesStable, namespaced id, e.g. com.example.hello. Never change it after publishing.
nameyesShown in the catalog
descriptionOne or two sentences for the catalog
iconAn emoji or short glyph
versionyesSemver. Every published version is immutable: bump it for each release.
sdkVersionyesRange of @lex/sdk you built against. Supported: >=0.1.0 <0.2.0, e.g. ^0.1.0
entryyesEntry file, e.g. src/index.tsx
permissionsCapabilities you use, see Permissions. Unknown ones fail the build.
compatibility.runtimeyesPlatform runtime range, e.g. ^1.0.0 (current runtime 1.0.0)
json
{
  "manifestVersion": 1,
  "id": "com.acme.task-board",
  "name": "Task Board",
  "description": "A tiny board that remembers your tasks and asks Lex to plan them.",
  "icon": "🗂️",
  "version": "1.2.0",
  "sdkVersion": "^0.1.0",
  "entry": "src/index.tsx",
  "permissions": ["storage.scoped", "agent.request", "ui.notifications"],
  "compatibility": { "runtime": "^1.0.0" }
}

Lex by Gavalytics AI