# manifest.json

Who the app is and what it may touch. The store and the runtime read this file without running your code.

one file · next to src/

## The file

`manifest.json`

```json
{
  "manifestVersion": 1,
  "id": "my-app",
  "name": "My App",
  "icon": "icon.png",
  "version": "1.0.0",
  "description": "What it does, in one line.",
  "category": "Productivity",
  "author": "Your team",
  "permissions": ["page.text", "storage"]
}
```

## Fields

| Field | What it is | Rule |
| --- | --- | --- |
| `id` | Your app ID from Create app — lowercase letters, digits and single hyphens, up to 48 characters. Uploads for an ID your team doesn’t own are refused. | permanent |
| `manifestVersion` | The manifest format. Always `1` for now — leave it as the template wrote it. | 1 |
| `name` | Your app’s name, shown at the top of app mode and under your DEV build in the launcher. Use the same name as in the console. One English string — your name in other languages goes in the listing. Required — an upload without one is refused | 1–40 |
| `version` | Three numbers, like `1.0.0` — no leading zeros, up to 9 digits each. Uploading a version that’s still Ready — never sent to review, or a review you cancelled — replaces it. Once a version has been reviewed or is in review, bump it before the next `npm run submit`. An update needs a version above the live one. | x.y.z |
| `icon` | A file next to the manifest that `fave1 dev` serves, so the launcher can show your DEV build. Square; don’t round it, the shell masks it. It goes up with the build only to draw your DEV tile and the Studio preview — the store, the launcher and app mode use the icon from your listing in the console. The starter `icon.png` is a placeholder — make your own icon for the listing. Apps that use the placeholder are rejected in review | DEV only |
| `permissions` | What the app may touch. Code can’t ask for more at run time. [The nine](https://developers.fave1.com/docs/permissions.md) | known ids |
| `window` | How big app mode opens in a window in [My Fave1](https://developers.fave1.com/docs/app-mode.md#screen) on a laptop. Leave it out for the phone-size window most apps want. `"medium"` opens 760 wide, `"wide"` 1120 — as wide as the screen allows. `"phone"` is the same as leaving it out. People can still resize the window; this is only how it opens. Phones always get the full screen | optional |
| `notifications` | The kinds of note your app sends to other people with [ctx.notify](https://developers.fave1.com/docs/ctx-notify.md#to-someone). Each kind’s words live in `locales/` and are checked on upload. Leave it out if you only remind the person themselves | optional · up to 12 |
| `locales` | Don’t write it. The upload, and `fave1 dev` on your machine, fill it in from the files in your `locales/` folder — what you write there is replaced. It’s how the launcher knows which [language files](https://developers.fave1.com/docs/ctx-locale.md) your build has | written for you |
| `category · author · description` | Notes for your own project. The store doesn’t show them — the listing in the console is what people see. | optional |

## Read, never run

We check the manifest on upload — it stays under 16 KB; ID, name (and that it’s safe to show), version, every permission against the list we know, `window` against its three names and each `notifications` kind — and the files in `locales/` with it ([what stops an upload](https://developers.fave1.com/docs/ctx-locale.md#ship)). A typo in a permission fails the upload with its name. `fave1 dev` checks the size, ID, name length, version, permissions, `window` when it starts and each time you save the manifest, and your language files when it starts, so you find out on your machine, not in review. The `notifications` kinds and whether the name is safe to show are checked when you upload. Fields we don’t know are ignored.
