How do I build a mini app from my existing web app?

Keep your web app, add Cherry's Mini App SDK, a framing header, token sign-in and a domain file, then list it yourself, free, at portal.cherry.fun.

How do I build a mini app from my existing web app?

To build a mini app from a web app you already run, keep your code and add four pieces: the Cherry.fun Mini App SDK, a header that lets Cherry show your pages in a frame, sign-in from the launch token Cherry hands your app, and a small domain proof file. You list the app yourself at portal.cherry.fun , free and with no review queue. Once the automated checks pass, it opens inside Cherry on iPhone, Android, the Solana Seeker and the web.

The payoff is the audience you skip building. Cherry is a crypto wallet whose users already open hundreds of mini-apps and games inside it, and they reach yours signed in with a wallet connected. Cherry is on the App Store, Google Play and the Solana dApp Store, so those stores’ users can open your app without a store listing of your own.

What changes in your web app

Only what happens inside Cherry. Your site keeps its address and works as before in a browser tab.

AreaIn a normal browser tabInside Cherry
LoginYour own login screenThe user arrives signed in; a launch token tells your app who they are
WalletYour wallet picker or connect buttonThe user’s Cherry wallet is connected when the app opens; no connect button
SessionCookies workThird-party cookies are blocked in frames: keep the session in memory and send it in an Authorization header
HostingYour URLThe same URL, plus a framing header and a domain proof file
PaymentsWhatever you use todaySolana transactions the user approves in Cherry, within your trust tier’s limits

What you need first

  • A deployed web app that answers over https with a 200, with no login wall or bot challenge in front of it, and works on a phone-sized screen. Staging is fine.
  • A JavaScript front end. The backend can be Node, Python, Go or none at all.
  • A crypto wallet to accept the Developer Agreement in the wizard.
  • An app outside the restricted categories. Prediction markets, token launches and regulated financial services are partner-only, and games of chance with stakes follow separate, stricter rules under the Mini App Policy . Mini apps are for adults.

The steps follow Cherry’s mini app quickstart , which puts the work at about thirty minutes by hand.

Step 1: Register the app and copy the brief

Open the listing wizard and fill in the first step: name, a one-line pitch, a category, an icon and a cover. You get an app ID, the audience of every launch token your app receives. The address comes later.

Prefer to let an AI agent write the code? At the integration step, under Prompt for your agent, the wizard writes a brief filled with your app ID, origin and revenue model. Click Copy prompt or download it as Markdown, and paste it into Claude Code, Cursor or Codex inside the repository that serves your app. It covers Steps 2 to 7 and ends with a self-check list (Build with an AI agent ), so the rest of this guide becomes what you review in the diff. Starting from zero? See build an app with Claude Code .

Step 2: Install the Mini App SDK

npm install @cherrydotfun/miniapp-sdk@^0.1.24 @solana/web3.js @solana/wallet-adapter-base

Entry points: the core client, /react for the provider and hooks, /solana for the wallet adapter, and /kit for a @solana/kit signer.

Step 3: Let Cherry frame your pages

Cherry loads your app in a frame, so every HTML response needs this header, and any X-Frame-Options header has to go:

Content-Security-Policy: frame-ancestors 'self' https://chat.cherry.fun https://cherry.fun https://*.cherry.fun

A common miss is a redirect: the header sits on the first URL but not on the final one.

You know it worked when the final URL, after redirects, carries the header:

curl -sIL https://your-app.example | grep -i -E "frame-ancestors|x-frame-options"

Step 4: Sign the user in from the launch token

Wrap the app in the provider and read the user and the token:

import { CherryMiniAppProvider, useCherryMiniApp } from '@cherrydotfun/miniapp-sdk/react';

export function Root() {
  return (
    <CherryMiniAppProvider>
      <App />
    </CherryMiniAppProvider>
  );
}

function App() {
  const { isReady, user, launchToken } = useCherryMiniApp();
  if (!isReady) return <Splash />;
  // Send launchToken to your backend once and get your own session back.
  return <Home name={user.displayName} wallet={user.publicKey} />;
}

Not on React? Create the core client with new CherryMiniApp(), call await app.init() as the page starts, and read the token from it (Authentication ).

Inside Cherry, show no Connect wallet button and never ask for a signature to log in: the listing test fails on either. Outside Cherry, keep your usual login.

Opened inside Cherry, the app should greet the user by name, with no login screen in between.

Step 5: Verify the token on your backend

Send the launch token to your server once and exchange it for your own session:

import { verifyLaunchToken } from '@cherrydotfun/miniapp-sdk';

const APP_ID = 'YOUR_APP_ID';

export async function signInWithCherry(token: string) {
  const claims = await verifyLaunchToken(token, { appId: APP_ID });
  const userId = claims.cherry_id ?? claims.sub; // key your users by this
  return { userId, wallet: claims.sub };
}

Key users by cherry_id: sub is a wallet address and changes when the person picks another wallet to pay with. Tokens live five minutes, so exchange them right away. A static app with no backend can render from the SDK’s user object, but must not move funds or grant anything on that alone.

Check that your server rejects, with a 401 or 403, an expired token and one issued for another app. When your app sends the token to its own backend, the automated test tries both.

Step 6: Connect the wallet and label every transaction

Register the Cherry adapter with the standard Solana wallet adapter and turn on autoConnect:

import { CherryWalletAdapter } from '@cherrydotfun/miniapp-sdk/solana';

const wallets = [new CherryWalletAdapter()];
// <WalletProvider wallets={wallets} autoConnect>…</WalletProvider>

Your app never sees the keys. They stay on the person’s phone or computer, and every request waits for their approval in Cherry. Mini apps sign Solana transactions today; requests for other chains are refused. Give each transaction a plain label and your app’s reference key:

import { withAppReference, withTransactionLabel } from '@cherrydotfun/miniapp-sdk/solana';

tx.add(withAppReference(buyIx, APP_ID));
await withTransactionLabel('Buy 3 lives', () => sendTransaction(tx, connection));

Your app can charge for items, access or a commission from the day it is listed. Users fund their wallets inside Cherry with a card, Apple Pay, Google Pay or PayPal, so you build no on-ramp. A new listing is Unverified: up to $50 per transaction and $50 per wallet per day, lifted to $1,000 and $5,000 by a three-minute identity check of the project owner (Wallet and limits , Verification ). Subscriptions and token approvals are refused for Unverified and Verified apps, so sell one-off items or passes. Cherry charges no fee. If the app does well, a tip is welcome but never required.

A test purchase should show your label on Cherry’s approval screen.

Step 7: Serve the domain proof file

Every origin your app uses serves a JSON file at /.well-known/cherry-app.json, over https, with a 200:

{ "appId": "YOUR_APP_ID" }

One origin belongs to one listed app. Test addresses do not need the file.

Open https://your-app.example/.well-known/cherry-app.json in a browser: it should return your app ID.

Step 8: Run the checks and publish

Deploy, go back to the wizard and add your app’s address, plus up to three test addresses. Press Open in test room: Cherry opens a private group with your app inside that only your team sees. Then run the automated checks (reachable, framing, origin, public Terms and Privacy Policy) and the automated test, which opens the app in a real browser on a phone-sized screen, signed in as a test user, in about a minute (Listing and publishing ). Each failure names its fix.

When everything passes, press Publish to Cherry. There is no review queue: the app is listed at once, in front of people who already hold wallets on Solana, BNB, Base and Robinhood Chain and use Cherry in their own language. You can unpublish any time, and Cherry can pause an app whose outflow jumps far above its usual level.

When the automated test fails

Fixes for every test result are on the Troubleshooting page .

  • Blank screen inside Cherry. The framing header is missing on the listed URL (see Step 3).
  • Your own login screen appears inside Cherry. The app ignores the launch token.
  • Signed in, then signed out on the next request. The session lives in a cookie. Move it to memory and an Authorization header.
  • The test gets a 403 or 503. A bot challenge answers the test browser. Let the listed URL load without one.

Where to go next

Get Cherry on iPhone , Android or the web to try your app the way users will.

FAQ

What does Cherry’s automated test check before I can publish?

It opens your app the way a user does, in about a minute. The app must load in a frame, answer the handshake, sign the test user in by itself and show no connect button or signature request. If your app sends the token to its own backend, the test checks that expired tokens and tokens for another app are rejected. The domain proof file must return your app ID.

How long does it take to build a mini app on Cherry?

Cherry’s quickstart puts it at about thirty minutes by hand, or one prompt if you paste the listing wizard’s brief into an AI coding agent. The automated test before publishing takes about a minute.

Does a mini app need React or a backend?

Neither is required. The SDK has a React provider and a core client for other front ends. A static app works, but anything that moves funds or grants access belongs behind a backend that verifies the launch token.

Why does Cherry’s automated test fail my app for a Connect wallet button?

Inside Cherry the user is already signed in and their wallet is connected when the app opens, so a connect button or a sign-a-message login is a dead end. Hide wallet buttons when the app runs inside Cherry and sign the user in from the launch token.

How do App Store and Google Play users find my mini app?

Your app runs inside Cherry, which is on the App Store, Google Play and the Solana dApp Store. People open it from Cherry’s marketplace, from chats where friends share it and from its community room. You do not get a store listing of your own.

Sources

Build on Cherry

Add chat to your dApp, ship a mini app, or run bots and rooms through the API. Self-serve at the developer portal.