# Fave1 developer docs > Fave1 apps open on top of any web page from a bookmark — a shop, an article, a recipe (card mode) — and in app mode on their own page > (`.fave1.app`). An app is one JavaScript bundle plus a `manifest.json`, and it gets everything from one object: `ctx`. Start an app with `npm create @fave1/app my-app`. In an app made that way, `npx fave1 docs ` prints the latest page from here, and `node_modules/@fave1/cli/docs/` holds an offline copy that can be older. - [All docs in one file](https://developers.fave1.com/llms-full.txt) ## Get started - [Quickstart](https://developers.fave1.com/docs/quickstart.md): Ship your first app in 5 minutes - [Studio](https://developers.fave1.com/docs/studio.md): Describe it, try it on real sites — on your Fave1 credits - [Concepts](https://developers.fave1.com/docs/concepts.md): One app. Two modes. - [App mode](https://developers.fave1.com/docs/app-mode.md): Your own page — links, screen, sign-in - [Beyond ctx](https://developers.fave1.com/docs/web-apis.md): Browser APIs and the network — the rules ## Declare - [manifest.json](https://developers.fave1.com/docs/manifest.md): Who the app is and what it may touch - [Permissions](https://developers.fave1.com/docs/permissions.md): The sentences people see ## API - [ctx.ui](https://developers.fave1.com/docs/ctx-ui.md): Draw the panel with blocks - [ctx.page](https://developers.fave1.com/docs/ctx-page.md): The live DOM - [ctx.storage](https://developers.fave1.com/docs/ctx-storage.md): Private JSON per person × app - [ctx.files](https://developers.fave1.com/docs/ctx-files.md): Their files on the account — images, exports - [ctx.shared](https://developers.fave1.com/docs/ctx-shared.md): One value, one link — share a note or a list - [ctx.stickers](https://developers.fave1.com/docs/ctx-stickers.md): Give stickers for their My Fave1 home - [ctx.purchases](https://developers.fave1.com/docs/ctx-purchases.md): Sell things in your app for Fave1 credits — coming soon - [ctx.pub](https://developers.fave1.com/docs/ctx-pub.md): Public JSON other people can read - [ctx.live](https://developers.fave1.com/docs/ctx-live.md): Rooms — edit the same thing together, live - [room.direct (in ctx.live)](https://developers.fave1.com/docs/ctx-live-direct.md): Direct lines — two-player games at 60 Hz - [ctx.user](https://developers.fave1.com/docs/ctx-user.md): Who is here — signed in, an app-scoped id, granted - [ctx.config](https://developers.fave1.com/docs/ctx-config.md): Values you change without shipping - [ctx.locale · ctx.t](https://developers.fave1.com/docs/ctx-locale.md): Your app in their language — locales/*.json - [ctx.notify](https://developers.fave1.com/docs/ctx-notify.md): Reminders · notes to a friend — a number on your icon; on() while open - [ctx.clipboard](https://developers.fave1.com/docs/ctx-clipboard.md): Copy and paste — pasting asks every time - [ctx.ai](https://developers.fave1.com/docs/ctx-ai.md): Fave1 AI on their Fave1 credits — never yours - [ctx.camera](https://developers.fave1.com/docs/ctx-camera.md): Their camera, live — asks first, never kept - [ctx.mic](https://developers.fave1.com/docs/ctx-mic.md): Their microphone, live — asks first, never kept ## Kit - [@fave1/kit](https://developers.fave1.com/docs/kit.md): The export sheet — save, share, download, post a photo or clip ## Ship - [Testing](https://developers.fave1.com/docs/testing.md): Sandbox, your real account (My account), Test links, Live QA - [Publishing](https://developers.fave1.com/docs/publishing.md): Upload, pre-check, Submit for review, Live QA ## Embed - [Fave1 Button](https://developers.fave1.com/button): Put Fave1 on your own site — one tag --- # Ship your first app in 5 minutes Scaffold, run it on a real site with a DEV badge, upload. The CLI ships the build — the console starts review. - **Fave1 in your bookmarks bar.** You test on real sites through the launcher — [add it here](https://www.fave1.com/get-started), on a computer. - **A developer account.** Sign in on this site and press **Become a developer**. It’s the same Fave1 account, and it gives you a team for your apps. - **Node.js 20 or newer**, and Chrome or Edge while you build — Safari blocks `http://localhost` on https sites. - **Started in Studio?** Download it there — the .zip is a ready project, so skip step 1 and run `npm install`, then `npm install -D @fave1/cli@latest` to be on the latest. Every upload shows up in Studio either way ([Studio and the CLI](https://developers.fave1.com/docs/studio.md#cli)). ## Five steps 1. **Scaffold · `npm create @fave1/app my-app`** — Pick one of four templates. The name becomes your app ID (`my-app`) — lowercase letters, digits and hyphens. It’s fixed once you create the app in the console — the store address is built from it — so pick it with care. You get `manifest.json`, `src/index.ts` and `locales/en.json` — the code, and the words it says through [ctx.t](https://developers.fave1.com/docs/ctx-locale.md), so other languages can come later. That’s the whole app. Skip the questions with flags after `--`: `npm create @fave1/app my-app -- --template panel --name "My App"`. Made the app in the console first? Its Overview shows this command with your ID filled in. 2. **Run it · `npm install` then `npm run dev`** — Open any shop or article and click Fave1 in your bookmarks bar. Press and hold the Fave1 logo at the top left of the panel for a second — a DEV panel opens. Paste `http://localhost:7300` and Add. Your app shows up first in the grid with a DEV badge. Chrome asks once per site to allow local network access — allow it; the panel waits for it. Save a file, close the app and open it again — it reloads. Changed `manifest.json`? Close Fave1 and click it in your bookmarks bar again — reopening the app isn’t enough. Building another app at the same time? Run its `npm run dev` too — it takes the next free port (`7301`) — and add that address as well: both show up ([DEV sources](#dev-source)). Its app mode shows up in My Fave1 too ([App mode, too](#home)). Saves stay in a sandbox in this browser — to run it on your real account, press **My account** under Data in the same panel ([My account](#dev-account)). 3. **Create it · in the [console](https://developers.fave1.com/apps)** — Open the link step 1 printed — **Create app** opens with your ID already filled in. The ID has to match `id` in your `manifest.json`; uploads for an ID your team doesn’t own are refused. App IDs are unique across Fave1, so if yours is taken, change `id` (and `name` in `package.json`) and use the new one. 4. **Get a key · [API keys](https://developers.fave1.com/keys?create=1)** — Create a key with the **publish** scope — it’s shown once. Paste it into a `.env` file in your project as `FAVE1_KEY=f1_live_…`; new projects already keep `.env` out of git. In CI, set `FAVE1_KEY` as a secret — the environment wins over `.env`. 5. **Upload · `npm run submit`** — It builds and uploads. The build lands in Versions as Ready — nothing is public yet — and the CLI prints a [Test](https://developers.fave1.com/docs/publishing.md#test) link: that build in app mode, in any browser, Safari too, for 12 hours. Fill in your store listing, run the pre-check on the build, then press **Submit for review** — one button sends the build and the listing together ([Publishing](https://developers.fave1.com/docs/publishing.md)). ```bash $ npm create @fave1/app my-app $ cd my-app $ npm install $ npm run dev ✓ my-app · dev server on http://localhost:7300 In the launcher on any site: hold the Fave1 logo, paste http://localhost:7300 and Add — your app shows up first, with a DEV badge. App mode (ctx.surface 'app'): once added, it shows up first in My Fave1 too — https://www.fave1.com/myapps ``` ```bash # .env FAVE1_KEY=f1_live_… ← the key from API keys $ npm run submit ✓ Uploaded v1.0.0 Try it: https://my-app.fave1.app/?review=… Your app in app mode, in any browser — Safari too — for 12 hours. It is sitting in Versions as Ready. Nothing is public yet. ``` ## Hello World `src/index.ts` ```ts Fave1.defineApp({ onLaunch(ctx) { ctx.ui.render([ ctx.ui.heading('Hello'), ctx.ui.text(`You're on: ${ctx.page.title}`), ]); }, }); ``` The title needs no permission. Reading page text or the live DOM does — declare it in `manifest.json`, and people can turn it off in Settings. > `Fave1` is a global the runtime provides while your bundle runs — call `Fave1.defineApp` once, at the top, and everything after that comes in `ctx`. Nothing to install or import for it. The types come from `types/fave1.d.ts` — `npx fave1 types` updates that file when a new `ctx` API comes out. Everything else is normal: split your code across files, `import` npm packages — `npm run build` type-checks and bundles it all into the one script the shell loads (esbuild, under 1 MB). > One file of code is all that ships — `dist/index.js`, plus your `locales/*.json` language files if you have them ([ctx.locale · ctx.t](https://developers.fave1.com/docs/ctx-locale.md)); the store icon comes from the console. Import what you draw with and the build puts it inside: `import css from './panel.css'` and `.svg` files come in as text, `.png`, `.jpg`, `.gif` and `.webp` as `data:` URLs. Sounds come from Web Audio, and text uses the system font. There is nowhere to put a second script — `npm run submit` warns about anything else left in `dist/`. > **Styling on strict sites.** Many shops and news sites forbid inline styles in their security policy, so a `