# Test it like it’s live

Your build starts in a sandbox. One switch puts it on your real Fave1 account — sign-in, the “Use your Fave1 account here?” prompt, saves that follow you to every site and device. A Test link takes it to Safari and your phone. Live QA covers the rest.

- **Sandbox** (default) — Saves stay in this browser, on this site. Nothing touches an account, AI answers are mock, nothing costs money. Fast for building.
- **My account** (one switch) — Your build runs on your own Fave1 account, in a DEV slot kept apart from the live app. Prompts, sign-out, other sites and devices — as people will see them.
- **Test link** (12 hours) — An uploaded build at a link — Safari, your phone, a teammate’s laptop. Add `&data=account` and it saves to your account too.
- **Live QA** (after approval) — The first 24 hours live. The store page, Get, Try it, notifications and other people — and Pull it if anything breaks.

## Sandbox — where every build starts

Add `http://localhost:7300` or a Test link in the DEV panel and your build opens in the sandbox. `ctx.storage`, `ctx.files`, `ctx.shared`, `ctx.pub` and `ctx.live` keep everything in this browser, on this site; `ctx.ai` answers from two mock AIs; `ctx.notify` never reaches Fave1. Nobody is asked anything, so `ctx.can('storage')` is `true` even signed out, and `ctx.user.id` is `undefined`.

That’s what you want while you write code — no prompts in the way, nothing left behind on your account, no cost. It’s also why the sandbox can’t show you how your app behaves for a real person. For that, switch to My account.

> If your app declares `storage` or `pub`, the browser console says which one you’re in every time it opens: `[Fave1] My App is a DEV build — … use a sandbox in this browser`, or `… is a DEV build on your account — data goes to my-app@dev`.

## My account — your real account, kept apart

My account sends your build through the same path the live app takes: your Fave1 sign-in, the servers, the database — everything except the live app’s data. Your build reads and writes `<id>@dev`, a DEV slot on your own account. You see exactly what a person with an account sees, and nothing you do there can touch your live users.

1. **Sign in with your developer account** — The same account in the launcher and on `www.fave1.com`. My account only opens for members of the app’s team in the console — anyone else stays in the sandbox, and the panel says so.
2. **Open the DEV panel** — On any site, click Fave1 in your bookmarks bar and hold the Fave1 logo at the top left for a second. Your DEV sources are listed at the top ([DEV sources](https://developers.fave1.com/docs/quickstart.md#dev-source)).
3. **Press **My account** under Data** — Below the line, two buttons: **Sandbox** and **My account**. The line above them says where saves go now — “saves go to a DEV slot on your account, apart from the live app.” The choice belongs to your account, so it’s the same on every site and in My Fave1.
4. **Open your app again** — Close it and open it — from the grid on a site, or from My Fave1 in app mode, where the line at the top of the window says where it saves. To go back, press **Sandbox**.

- **Kept apart.** The DEV slot is yours alone. It never shows in My Fave1, the launcher dock or Settings › App permissions — only in Fave1 settings › Storage as **\<App> · DEV**, where you clear it to start over.
- **Asks for what you declared.** Permissions come from the build’s `manifest.json`, so a DEV slot never gets more than the build asks for — the same as review will see.
- **Your team shares it.** `ctx.pub` rows and `ctx.live` rooms on a DEV slot are shared by everyone on the team who runs a DEV build — never by the live app.
- **AI is real, with a cap.** `ctx.ai` answers for real on your own Fave1 credits, up to a $2 limit on the DEV slot. Without credits it still answers mock.

## What to try on My account

Before you upload, run your app through what a real person meets. Each of these behaves differently in the sandbox, so this is the only place to see it before review.

- **The first use on a site.** Open your app on a site where you haven’t used it. The first save asks “Use your Fave1 account here?” — press **Not now** once and check your app still makes sense, then allow it ([The first use on a site](https://developers.fave1.com/docs/ctx-storage.md#first-use)).
- **The same data everywhere.** Save something on one site, open your app on another, then in app mode in My Fave1. It should all be there — it’s one account.
- **Signed out.** Sign out of Fave1 and open your app. `ctx.can('storage')` turns `false`, like it will for a visitor — show something useful instead of an error.
- **Two people.** Open your build in a second browser, signed in — two browsers are two people in a `ctx.live` room. A teammate on the same DEV build shows up in your `ctx.pub` board.
- **Links you share.** Make a `ctx.shared` link, then open it signed out in another browser to see what the person you send it to sees.
- **Full storage.** Fill it up and check that `quota` gives people a way out ([When it’s full](https://developers.fave1.com/docs/ctx-storage.md#full)).

## What each one shows

Where to look for each thing you want to see before your app is out:

| Thing | How it behaves | See it in |
| --- | --- | --- |
| `your code` | Save a file, reopen the app — no upload | Sandbox |
| `saves · files` | On your account, on every site and device — the Sandbox keeps them in one browser | My account |
| `first-use prompt` | “Use your Fave1 account here?” and Not now, site by site | My account |
| `signed out` | `ctx.can('storage')` is `false`, `ctx.user.id` is missing | My account |
| `ctx.user.id` | A real id — for the DEV slot, so it differs from your live one | My account |
| `pub · live · shared` | Real boards, rooms and links between browsers and teammates | My account |
| `AI` | Real answers on your Fave1 credits, up to a $2 limit — mock in the Sandbox | My account |
| `Safari · phone` | Upload, then open the Test link — add `&data=account` in app mode for your account | Test link |
| `notifications` | The question, the number on the icon, `on()` — DEV builds keep them in the browser | Live QA |
| `store page` | Your listing, Get, Try it, the Just dropped badge | Live QA |
| `other people` | People outside your team using the real app | Live QA |

## Safari, phones and teammates — Test links

`fave1 dev` serves `http://localhost`, which Safari and phones can’t reach. Upload with `npm run submit` — it prints a Test link, and every build in Versions has a **Test** button. The link is signed for that build and lasts 12 hours ([Test a build anywhere](https://developers.fave1.com/docs/publishing.md#test)).

- **Card mode.** Paste the link in the DEV panel and Add, like `localhost`. The Data switch works the same.
- **App mode.** Open the link on its own and add `&data=account` to the end of it — your build on `<id>.fave1.app`, saving to your DEV slot. Without it, it’s the sandbox.
- **On your phone.** Add the link as a DEV source on your laptop and open [My Fave1](https://www.fave1.com/myapps) on your phone, signed in — your build is first in the grid.

> My account works for your team only. Anyone else who opens a Test link — a friend, a Fave1 reviewer — stays in the sandbox. Share the link with your team, not in public.

## After approval — Live QA

Some things only exist once your app is live: the store page and its **Get** and **Try it** buttons, notifications, and people you’ve never met. For the first 24 hours after approval your app is in **Live QA** — out for everyone, with a **Just dropped** badge, a countdown in the console and a **Pull it** button if something breaks.

Use those 24 hours for what My account couldn’t show you, not for the basics — a crash on a new site or a broken first-use prompt is cheaper to find before you submit. How the 24 hours work: [Live QA](https://developers.fave1.com/docs/publishing.md#live-qa).
