Building an app is one thing. Getting it in front of people is another. Until your app is published and shared, it only exists for you. Publishing is the moment it becomes real — accessible at a permanent URL, ready for real users, with data that persists. It is also the point where your decisions start to have consequences: changes that reach live users immediately, rather than sitting safely in a private draft.
Every Caffeine app has two versions: a draft and a live version. You build and test in draft, then publish to live when your changes are ready. Your live app gets its own URL that you can share with anyone.
Draft and live mode
Draft is your working environment. Every change the AI makes goes here first. The draft runs at a separate URL from your live app, so you can test new features without affecting your real users. Draft data is temporary — it may be reclaimed if the draft has been idle for a while, and drafts that expire are automatically restored the next time you open the project, as long as there is a previously deployed version to restore from. When the draft is restored after expiry or going offline, the draft backend is reinstalled fresh, which clears any data stored in the draft. Normal builds (each time the AI builds your app) use an upgrade and preserve draft backend data between builds.
If your app has never been published, a notice appears at the top of the draft preview reminding you that drafts are temporary. It includes a Go live button to take you straight to the publishing step. You can dismiss the notice for 24 hours by clicking Dismiss — it will return the following day as a reminder until you publish.
Live is your production app — the permanent version your users access. Live data persists across updates. Only you can see the draft; your users only ever see the live version.
Version history
The version history panel shows every build of your app. Each entry is labelled with a version number and the time it was built. Two badges identify key versions at a glance:
- Current — the version your draft is currently running.
- Live — the version deployed to your live app.
If Current and Live point to different versions, it means you have built new changes in draft that have not yet been pushed to live.
You can also ask the AI directly: "What version is my live app?" or "What is my current draft version?" The AI looks up the live data and tells you the version numbers and recent history. For browsing the full list of past versions, open the version history panel by clicking the version badge in the preview panel.
When a draft is starting up — whether after a new build or an automatic restore — a loading bar appears at the bottom of the preview panel label. The preview becomes interactive once the bar reaches 100% and disappears.
Going live
Publishing your app to a live URL is available on every plan, including Free. Going live is paid for from your balance, so make sure you have enough before you publish.
When you are happy with your draft, click the Go live button in the chat panel. Caffeine handles the deployment automatically, including any necessary data migration. The process takes a moment, then your live app is updated. The button shows "Going live…" while the deployment is in progress, and all Go live controls — including the button, the prompt entry, and any version-restore actions — are disabled until the deployment finishes. This prevents accidentally triggering a second deployment while one is already running.
If you try to go live with a past version and your current preview is a newer version that does not build on it, Caffeine shows a warning before proceeding. The dialog names both version numbers and explains that the live app will be missing changes made only in the newer version, and that publishing the newer version later may fail until you restore the older version and build on top of it. You can still proceed — the warning is there so you can make an informed choice, not to block you.
This warning does not appear when using Push version update in the Live dropdown or when publishing from the project header, because those actions always publish the previewed version.
Always review your draft thoroughly before going live. Your real users see changes immediately once they are published.
After a successful go-live, the confirmation message in the chat includes a Post about it button. See Posting about your app.
The Live button and dropdown
Once your app has a live version, the button in the chat header changes from Go live to Live. Clicking it opens a dropdown menu with quick actions:
- Open live app — opens your live app in a new browser tab. The current live version number is shown alongside the option.
- Copy app link — copies your live app's URL to the clipboard so you can paste and share it anywhere.
- Push version update — appears when you have built new changes in draft that have not yet been published to live. Click it to deploy those changes directly from the header without opening project settings. The pending version number is shown alongside the option. While a deployment is in progress this item is replaced by Pushing version update and cannot be clicked.
- Take offline — permanently tears down your live app. See "What does 'Take offline' do?" for details. This action cannot be undone.
The Live Apps button
On desktop, a Live Apps button appears in the chat header between the Go live button and your account avatar. Clicking it opens a menu listing your live apps, giving you quick access to any live app without leaving your current project.
Choosing where your app runs
Every app deploys to a cloud — the group of Internet Computer machines that runs it. Your account offers three shared clouds, and each picker shows a short description so you can tell them apart:
- The recommended cloud — "Recommended: highest reliability and capacity." It runs on the Internet Computer's main application subnets and suits most apps.
- The European cloud — "European subnet. Compute and storage in Europe." Your app's compute and its stored files both stay in Europe.
- The encrypted cloud — "Encrypted execution (AMD SEV-SNP)." Its machines run your app encrypted. The encryption covers your app while it runs, not the files it stores.
If you have registered your own cloud engine, it appears as Private cloud with a chip icon instead of a cloud icon.
To choose the cloud new apps use by default, open your profile menu, select Cloud settings, and click Make default on a cloud. Changing the default only affects apps you create afterward — existing apps keep their cloud. To choose the cloud for one app, use the cloud selector in the prompt entry area when you start the project, or project settings → Deployment cloud. You can change an app's cloud until it goes live.
Sharing your app
Your live app has a permanent URL that you can share with anyone. The quickest way to copy it is to open the Live dropdown in the chat header and choose Copy app link. No login is required to view a live app unless your app enforces authentication, or you have turned on password protection.
Draft apps also have URLs, but these are not intended for sharing with end users — draft performance and availability is not guaranteed. If you need to keep a draft or live URL private, use the project actions menu (click the project name in the chat header) → Password protect.
Search engines that visit your public live app receive a snapshot of each page they request, so the site can appear in search results without extra setup. See How Search Engines See Your App. Password-protecting the live URL blocks those crawlers.
Posting about your app
After a successful go-live, the confirmation message in the chat shows a Post about it button. The project owner sees it; collaborators, including those with the Builder role, do not. The button stays on the message only while that version is your current live version, so an older go-live message loses it after you go live again.
Click Post about it to open the Post about your app dialog:
- Post text — Caffeine writes draft posts from the summaries it keeps of your app's versions. If the version you made live has no summary, the drafts use the newest version that has one. If no version has a summary, you get an empty box to write your own post. If there is more than one draft, pick an angle such as What I built, What's new, or Ask for feedback. You can edit the text freely. A counter shows how your text fits X's 280-character limit.
- Add a link to the app — adds your live app's URL to the post. It is off by default.
- Add a remix link — adds a line such as "Make your own version: …" with a link anyone can use to copy your app. It is off by default and is offered only to the project owner in their personal workspace. If you are eligible for referral rewards, the remix link is also your invite link. You can turn the remix link off in the app's settings.
- Images — screenshots of up to two recent versions, with the version you just made live selected. Click Add image to upload your own. You can select up to four images.
- Post on — choose X, LinkedIn, Threads, Bluesky, Reddit, or Facebook, or click Copy text to copy the post and paste it anywhere.
Caffeine adds a short "Built with Caffeine" sign-off for each network (on X it mentions @caffeineai). Reddit posts get no sign-off.
After you choose a network. The network's compose page opens in a new tab, and the dialog shows a step that names the network and what to add next:
- X, LinkedIn, Threads, and Bluesky open with your text filled in. If you selected images, the step reads "Your X post is open. Add your images:" (with the network's name); click Copy image 1, Copy image 2, and so on, and paste each one into the post. A checkmark shows on each image you have copied. If the text didn't come through, click Copy text for X (or the network you chose).
- Reddit with the app link opens a link post with the title filled in. The dialog copies the post body for you, without the title and the link, and shows "Text copied. Paste it into your Reddit post." Without the app link, Reddit opens a text post with the title and body filled in. The title comes from the first sentence of your post.
-
Facebook opens a post with a card for your app link, or for
caffeine.aiif the app link is off. Facebook can't take your text, so the dialog copies it for you and shows "Text copied. Paste it into your Facebook post." A remix link stays in the text.
If the copy didn't work, click Copy text for Reddit or Copy text for Facebook. For the other networks, the dialog copies nothing to your clipboard until you click a copy button.
On a phone or tablet. When at least one image is selected and your device supports sharing files, a Share with images button appears. It opens your device's share sheet with the images and the text, and also copies the text to your clipboard in case the app you share to leaves it out.
What's happening behind the scenes
Every Caffeine app runs inside canisters on the Internet Computer — one for the frontend and one for the backend. Draft and live each have their own canisters, and they behave differently:
- Draft canisters are temporary. They are assigned to your project from a shared pool while you are actively editing and testing. As long as you keep sending messages, the draft canister stays assigned to your project. After about two hours of inactivity, the canister expires and returns to the pool. If your project has a previously deployed version, it is automatically restored the next time you open the project. If a draft canister runs out of resources, it is simply replaced on your next build.
- Live canisters are permanent. They are created when you first publish your app and persist for as long as your app is live. They hold your production data and serve your real users. Live canisters have automatic resource monitoring that keeps them running without intervention.
What happens to your data during each operation
Different operations treat draft backend data differently:
| Operation | When it happens | Draft backend data |
|---|---|---|
| Normal AI build | Every time the AI builds your app | Preserved — the draft is upgraded in place |
| Draft restore (after expiry or going offline) | Automatically when you open a project whose draft has expired | Cleared — the draft backend is reinstalled fresh |
| Merging draft-only migrations | When the AI merges migrations that haven't reached live, for example to fix a Go Live failure | Cleared — the draft backend is reinstalled fresh, and Caffeine tells you in chat |
| Go Live / Push version update | When you publish to your live app | Live data preserved; draft is unaffected |
If you stored data in your draft app (for example, test records you entered manually) and your draft expired or went offline, that draft data will be gone after the restore. This is expected behaviour. Data on your live app is never affected by draft operations.
If you need data to survive long-term or across draft expiry, publish your app using Go Live.
You do not need to manage canisters directly — this is handled entirely by Caffeine. This section is here to help you understand why drafts can expire and why live apps behave differently.
Frequently asked questions
How do I find out which version is live or in draft?
Ask the AI: "What version is my live app?" or "What is my current draft version?" The AI looks up the current version numbers and recent history and tells you directly. You can also open the version history panel by clicking the version badge in the top-right corner of the preview panel — the Live badge marks the version your users are currently seeing.
Do I need a paid plan to go live?
No. Publishing your app to a live URL is available on every plan, including Free. Going live is paid for from your balance.
What happens if my draft expires?
Drafts that have been inactive for a while may be reclaimed by the platform.
If your project has a previously deployed version, Caffeine automatically restores the draft the next time you open the project. During startup, the preview panel shows a loading indicator while the draft is restored.
If there is no previously deployed version to restore from, the preview panel shows a message prompting you to rebuild.
In some cases the preview may show "App is sleeping" with a Wake up button. Clicking it restores the draft from its last saved state.
No code is ever lost.
My draft restored after expiry but data I entered is gone — is that normal?
Yes. When a draft is restored after expiry or going offline, the draft backend is reinstalled fresh, which clears any data stored in the draft. This is different from a normal build: each time the AI builds your app, the draft is upgraded in place and draft data is preserved.
Draft data is always temporary. If you need data to survive long-term or across draft expiry, publish your app using Go Live — live canisters use upgrade deploys that preserve your users' data.
Caffeine told me my draft test data was reset — what happened?
The AI merged migrations that had run only on your draft, for example to fix a migration that failed at Go Live. Your draft had already run the old migrations, so that build reinstalled the draft from scratch instead of upgrading it. That clears any test data you had entered in the draft, and Caffeine tells you in chat after the reinstall.
Your live app and its data are not affected, and your code changes are kept.
My preview panel (or live app) opens to a blank white screen. What do I do?
A blank screen usually means the app loaded but hit a JavaScript error that stopped it before anything could appear — separate from a build or deploy failure. The fastest way to get it fixed is to capture the error: open your browser's developer console, reload the page, copy the red error messages, and paste them into the project chat. Caffeine cannot see this error on its own because it runs inside your browser, so sharing the text is what lets the AI diagnose and fix it in the next build. See Fixing a Blank or White Screen for step-by-step instructions for every browser.
I see a warning saying my preview doesn't build on the version I'm trying to publish. What does that mean?
This happens when you try to go live with an older version while your current preview was built from a different branch of your version history. For example: you go live with version 1, build version 2, then restore version 1 and build version 3. At that point, version 2 is still available to publish, but version 3 does not build on version 2 — it builds on version 1.
If you go live with version 2, the live app will be missing any changes that only exist in version 3. More importantly, going live with version 3 afterwards may fail until you restore version 2 and build on top of it.
The warning dialog shows both version numbers so you can decide: proceed with the version you chose, or cancel and go live with the previewed version instead, which is the safer choice in most cases.
Can I roll back a live update?
There is no rollback for live deployments. If you push to live and something goes wrong, fix it in draft first — revert to an earlier draft version using the Revert to version N button on any past build in your chat history, or open the version history panel by clicking the version badge in the top-right corner of the app preview panel. Then go live again with the corrected version. Note that you cannot revert to a version older than the one that is currently live — this protects your live users' data.
How do I prevent mistakes from reaching production?
Test everything in draft before going live. The draft URL lets you use your app exactly as a real user would. Only push to live when you are confident the changes are correct. You can also set the AI to Guided mode to reduce the chance of the AI building the wrong thing — it asks clarifying questions before starting.
Does going live affect my users' data?
Caffeine handles data migration automatically when you publish. The Motoko framework checks whether the update is safe before applying it — if the change could cause data loss, it is rejected and the AI rewrites it. Your users' data is protected.
Can I have a custom domain instead of the default URL?
Yes, on every plan. You can bring your own domain or purchase one through Caffeine, from your balance or by card, depending on your account. See the Custom Domains section for details.
How do I share just the draft with a collaborator for review?
You have two options, depending on what kind of review you need.
If someone only needs to look at the draft, copy the draft URL from your browser and share it directly. Anyone with the link can view the draft, but the URL is not publicly indexed or discoverable.
If you want that person to leave comments, reply to discussions, and help decide what should be improved inside Caffeine, invite them as a collaborator from the collaborators button in the chat header or from project settings → Collaborators (click the gear icon in the chat header).
What is the "Post about it" button after going live?
It opens a dialog that drafts a post about your app, lets you edit it and pick images, and opens X, LinkedIn, Threads, Bluesky, Reddit, or Facebook to post it. You can also copy the text and paste it anywhere. Only the project owner sees the button, and only on the go-live message for the current live version. See Posting about your app.
Why does my custom domain still show an older version after I changed my draft?
Custom domains always serve your live app, not your draft preview. If you built new versions in draft but did not push them live, the custom domain will keep showing the older live version.
Check your version history:
- Current = the draft version you are editing now
- Live = the version users see on your public URL and custom domain
If these badges point to different versions, push the latest draft with Go live (or Push version update in the Live dropdown). After publishing, wait about a minute and reload in an incognito/private window.
My app won't deploy — what's causing it and what should I do?
The most common cause of a failed deployment is a backend migration conflict. Caffeine apps store data on the Internet Computer, and every time you deploy a new version, the system checks whether the new backend is compatible with the data structure of the previous version. If recent changes introduced a breaking incompatibility — a field removed, a type changed, a data structure restructured in a way the migrator cannot reconcile — the deployment is rejected to protect your existing data.
You have five options for getting unstuck:
- Ask the AI to fix the migration. If the failing migration has run only on your draft and not on your live app, the AI can merge those migrations into one without a revert, so you keep your code changes. This clears your draft's test data. See When Deployments Fail.
- Revert your draft to a working version. Identify a past build that deployed successfully — typically the version before the breaking change was introduced — and click Revert to version N on that build in your chat history. Then re-prompt the AI to introduce the change you wanted in a different way that does not break compatibility. This is usually the fastest path. Attempting to patch your way forward through more prompting can compound the problem — go back to a working baseline first.
- Download the source and fix it manually. Open the project actions menu (click the project name in the chat header) and choose Export files to get the full source. You can then resolve the migration conflict in your own editor and redeploy. This path is currently more involved; the upcoming Caffeine CLI (under development, not yet available) will make deploying directly from the command line straightforward, including showing the underlying migration error.
- Take the app offline and publish a fresh live version. If you are willing to permanently lose all live data, you can break out of the upgrade cycle entirely. Open the Live dropdown in the chat header and choose Take offline, then confirm. This tears down your live canisters completely. Once the app is offline, click Go live to publish your current draft as a brand-new installation — because there is no existing live canister to upgrade, the schema compatibility check is bypassed and your draft is installed clean. Use this path when you cannot fix the migration conflict another way and are prepared to start with no live data. It cannot be undone.
- Remix the project from a chosen version. Open the version history panel and click Remix this version on the version you want to start fresh from. This creates a brand-new independent project with the chosen version's code and a clean canister — no accumulated memory layout from earlier versions. The downside is that the new project is independent: it gets its own live URL and starts with no data and no chat history. If you want to carry context across, ask the AI in the original project for a chat summary you can paste into the new one. See Editing and Managing Your App for full details on remixing.
Note that Reset app data does not solve a migration conflict. It redeploys the version that is already live, with its data wiped — the version that does not deploy is still in your draft, and the underlying schema mismatch with what is installed on the live canister remains. See the next FAQ for what Reset app data is actually for.
What does "Take offline" do?
Take offline permanently destroys your live app's infrastructure — live canisters are archived, analytics removed, and all live infrastructure torn down. This action cannot be undone. Publishing again will provision entirely new live infrastructure from your current draft — because new canisters are provisioned, the next Go live is treated as a fresh installation rather than an upgrade, which also means any schema compatibility check is bypassed. On-chain data and live-only state from the previous deployment cannot be restored. If your project has a user-owned custom domain (bring-your-own domain), taking the app offline also starts full deregistration for that domain in Caffeine — the domain record and related setup (including email identity where applicable) can be removed, and you would need to add and configure the domain again before using it on a new live deployment. To take an app offline, open the Live dropdown in the chat header, choose Take offline, and type remove in the confirmation dialog.
Can I change which cloud my app deploys to?
If your account has more than one deployment cloud available, you can choose which cloud each project uses when you start a new project (a cloud selector appears in the prompt entry area) and from project settings → Deployment cloud (click the gear icon in the chat header). You can set or change the cloud only while the app is not live — that is, before your first Go live, or after you have taken the app offline. While your app is live (or a deployment is in progress), the deployment cloud selector is locked and shows the message "To change the deployment cloud, take your app offline first." To move a live app to a different cloud, take it offline first — which permanently removes its live data (see "What does 'Take offline' do?") — then change the cloud and go live again. Accounts on caffeine.ai have three shared clouds to choose from; see Choosing where your app runs. If your account has only one deployment cloud — for example, an account on a partner platform — there is nothing to choose and this setting does not appear.
Why did I receive an email prompting me to go live?
If your project has three or more draft builds and has been idle for at least 48 hours without going live, Caffeine may send you a one-time reminder email suggesting you publish your app. Each project can generate at most one of these emails, and there is a 24-hour gap between reminders across all your projects.
The email comes under the When a draft app is ready to go live preference. To stop receiving these reminders, unsubscribe using the link at the bottom of the email or update your email preferences in your account settings.
What is Reset app data and when should I use it?
Reset app data redeploys your currently live version to your live canister and permanently erases all data stored in it. The live version's code is reinstalled fresh — your draft is not touched, and no new code is pushed live. Any data your users have created will be gone and cannot be recovered.
The typical use case is cleaning up before a real launch. During development you might go live several times, accumulating test users, test posts, sample records, and other throwaway data on your live app. When you are ready to start announcing your app and inviting real users, Reset app data lets you wipe that test data in one step without changing the deployed code.
To reset app data, open project settings (gear icon in the chat header), navigate to App data, and choose Reset app data. A confirmation dialog explains what will be deleted before you proceed.
Reset app data is not the right tool if you are blocked by a migration conflict between draft and live. See the previous FAQ for the recovery options that apply in that case.
How do I clear my draft's test data?
Ask the AI in the project chat to clear your draft's data. The AI redeploys your draft, which erases all data stored in the draft and leaves your live app and its data alone. The AI asks you to confirm first. Reset app data doesn't clear draft data: it erases only your live app's data.
Can I view or download my app's stored data?
Yes. Open project settings (gear icon in the chat header) and go to App data. Browse each table, then use Export all or select rows and Export selection. The export runs in the background; when it is ready, download the file. The download is a ZIP containing a CSV file for each exported table, with the same columns shown in the viewer. Export links expire after 24 hours. Export before you use Reset app data if you want to keep a copy, but an export isn't a full backup: it leaves out rows in tables labelled Scoped per user, and it links to uploaded files instead of including them. Download any files you need before you reset. See Viewing and Exporting Your App's Data.