# Can I build a Lovable crypto app?

> Yes. Build the web app in Lovable, let it add Cherry's Mini App SDK from the portal's brief, and list free so users arrive with a wallet they can top up.


Yes. Lovable builds the web app, and a Cherry.fun mini-app listing gives a Lovable crypto app its crypto layer: wallet sign-in, payments and users who already hold crypto. The portal at [portal.cherry.fun](https://portal.cherry.fun) writes an integration brief, you paste it into the Lovable chat, and Lovable adds Cherry's Mini App SDK. Listing is free with no review queue. People open your app inside Cherry already signed in with their wallet connected, and they can top up by card without leaving.

That last part is the one Lovable can't write for you. Cherry's users sign in with an account they already have and buy crypto with a card, so they reach your app holding a funded [self-custody wallet](https://cherry.fun/learn/features/cherry-wallet/), on iPhone, Android, the web and the Solana Seeker. Hundreds of mini-apps already open there, and yours joins them on the day you publish.

## What can Lovable build for a crypto app, and where does it stop?

Lovable writes the front end and the server code of a crypto app. Name an npm package in the project chat and Lovable installs it and wires it in, with no terminal step ([Lovable: using npm packages](https://docs.lovable.dev/tips-tricks/npm-packages)). Server code runs outside the browser, as server functions in newer Lovable apps and as edge functions on Lovable's built-in backend in older React and Vite projects ([Lovable: edge functions](https://docs.lovable.dev/features/edge-functions)). That server side is where a crypto app checks who is signed in and confirms a payment before it hands anything over.

Some jobs fall outside Lovable. Its apps run in the browser with a serverless backend, so packages built for native mobile shells install but stop working once published. It has no wallet to give your users, and no audience of crypto holders to send a new app.

## What does the crypto layer take on the open web?

On a plain Lovable URL, your app has to bring the wallet to the user. That usually takes three pieces of work:

1. **A connect-wallet button.** On Solana the common pick is the open-source [wallet adapter](https://github.com/anza-xyz/wallet-adapter), plus a signed message that proves the wallet belongs to the visitor. Our guide to the [connect wallet button](https://cherry.fun/learn/guides/connect-wallet-button/) walks through it.
2. **A way to buy crypto.** Newcomers arrive with a bank card, not SOL. An on-ramp provider brings a contract, an integration and its own identity checks; [do you need a crypto onramp](https://cherry.fun/learn/guides/crypto-onramp/) weighs that choice.
3. **People to charge.** A fresh `lovable.app` address starts with zero visitors.

Ask and Lovable will write the first. The other two are business problems.

## Which crypto apps fit inside Cherry?

Apps where people pay for something they can see fit best: a game of skill that sells extra lives with no cash prizes, a paid pass to a tool, an NFT marketplace, a swap or portfolio tool for tokens that already exist. Cherry's [Mini App Policy](https://portal.cherry.fun/docs/mini-apps/policy) leaves those open to every listing. Gambling with stakes, prediction markets, token launches and regulated financial services, such as custody or fiat on-ramps, fall under separate rules or need a partner agreement, so keep a first Lovable build clear of them.

## How does a Cherry listing add the crypto layer?

You list the Lovable URL yourself, and from then on the app runs inside Cherry on iPhone, Android, the Solana Seeker and the web. Your app gets no App Store or Google Play page of its own; it reaches people who installed Cherry from those stores. The store route for the same project is covered in [getting a Lovable app on the App Store](https://cherry.fun/learn/guides/lovable-to-app-store/), and the free listing itself in [list a mini-app for free](https://cherry.fun/learn/features/list-a-mini-app-for-free/).

1. **Start the listing.** In the wizard at portal.cherry.fun, fill in the name, a one-line pitch, a category, an icon and a cover, and you get an app ID. Later steps ask who runs the app, where it runs, how it earns, and which Terms apply.
2. **Paste the brief into Lovable.** At the integration step the portal writes a prompt for your coding agent, filled with your app's facts ([Build with an AI agent](https://portal.cherry.fun/docs/mini-apps/ai-agents)). Paste it into the Lovable project chat, or into Claude Code or Cursor working in the repository that Lovable's Git sync keeps in step. It covers installing `@cherrydotfun/miniapp-sdk`, the framing header, signing users in from the launch token, checking that token on your server, using the wallet and a self-check list.
3. **Publish in Lovable, then test.** Enter the published address in the wizard and open the app in your private test room. Run the automated checks, then the automated test, which opens the app the way a Cherry user will ([Listing and publishing](https://portal.cherry.fun/docs/mini-apps/listing)).
4. **Publish to Cherry.** Once the checks and the test pass, publishing lists the app immediately ([Quickstart](https://portal.cherry.fun/docs/mini-apps/quickstart)).

A user taps your app and it opens signed in with their Cherry wallet connected, with no connect button and no sign-up form. Someone who holds no crypto buys some inside Cherry with a card, Apple Pay, Google Pay or PayPal, so your app builds no on-ramp. Its users hold wallets on Solana, BNB, Base and Robinhood Chain and use Cherry in ten languages and counting.

| | Lovable app on its own URL | The same app listed in Cherry |
|---|---|---|
| Sign-in | You build it: connect button, signed message | Users arrive signed in |
| Wallet | The visitor brings one | Cherry wallet already connected |
| Buying crypto | You add an on-ramp | Users top up in Cherry by card, Apple Pay, Google Pay or PayPal |
| Where it runs | A browser tab | Inside Cherry on iPhone, Android, the Seeker and the web |
| Cost to publish | Free on a `lovable.app` address ([Lovable hosting](https://docs.lovable.dev/features/hosting)) | Free, no review queue |

### What can the app charge from day one?

Your app can sell items, charge for access or take a commission from its first day. Payments are Solana transactions the user approves in Cherry; a mini-app cannot request signatures on other chains. A new listing allows up to $50 per transaction and per wallet per day, and a quick identity check of the project owner raises that to $1,000 and $5,000 ([Wallet and limits](https://portal.cherry.fun/docs/mini-apps/wallet)). Subscriptions and token approvals are refused, so sell one-off passes. The payment side in detail is in [how to accept crypto payments](https://cherry.fun/learn/guides/how-to-accept-crypto-payments/). Cherry asks for no fee. If the app does well, a voluntary tip is welcome.

### What should you check in a Lovable build?

- **The framing header.** Cherry loads your app in a frame, so every HTML response needs this header and no `X-Frame-Options`. If your Lovable address cannot send it, Lovable documents deploying the same code from your Git repository to hosts such as Vercel, Netlify or Cloudflare Pages ([Lovable: deploying outside Lovable](https://docs.lovable.dev/tips-tricks/external-deployment-hosting)), whose own config controls response headers ([Cloudflare Pages: headers](https://developers.cloudflare.com/pages/configuration/headers/)).

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

- **Sessions without cookies.** Browsers block third-party cookies inside frames. Keep your session token in memory and send it in an `Authorization` header.
- **Domain proof.** Serve `/.well-known/cherry-app.json` containing your app ID from every origin the app uses (in Lovable, a file under `public/.well-known/`); publishing needs it.
- **No keys in the page.** A `VITE_` variable is embedded in the client bundle, while Lovable's Secrets stay on the backend ([Lovable: secrets](https://docs.lovable.dev/features/secrets)). Your app never sees users' wallet keys either: they stay on the user's device, and asking for a recovery phrase breaks Cherry's policy. Run the rest of the [vibe-coded app security checklist](https://cherry.fun/learn/guides/vibe-coded-app-security-checklist/) before you charge anyone.

Get Cherry on [iPhone](https://apps.apple.com/app/cherry-fun-solana-messenger/id6749173799), [Android](https://play.google.com/store/apps/details?id=fun.cherry) or [the web](https://chat.cherry.fun) to open your app the way users will.

## FAQ

### Can Lovable build a Solana app?

Yes. Lovable installs any public npm package you ask for, Solana libraries included, and writes the server code that confirms a payment. Listed in Cherry, the app asks for Solana transactions through Cherry's Mini App SDK, with the user's Cherry wallet already connected.

### Do I need a connect-wallet button in a Lovable crypto app?

Not inside Cherry. People open your app signed in with their wallet connected, and Cherry's Mini App Policy asks apps to show no wallet-connect button of their own. On your own URL, outside Cherry, keep your normal login for other visitors.

### Does a Lovable crypto app need a smart contract?

Usually not. Selling an item or a pass is a SOL or USDC transfer the user approves, and your server code confirms it before it delivers. A custom on-chain program is a separate project, built with a Solana framework such as Anchor rather than in Lovable.

### Where do API keys and wallet keys go in a Lovable crypto app?

API keys go in Lovable's Secrets, which stay on the backend and never reach the browser; a VITE_ variable ships in the page, so never put a key there. Users' wallet keys never reach your app: they stay on the user's device, and the user approves each request in Cherry.

### Which crypto apps can't I list in Cherry?

Gambling with stakes, prediction markets, token launches and regulated financial services such as custody or fiat on-ramps sit outside an ordinary listing: they need a separate category with an identity check or a partner agreement. Games of skill without cash prizes, paid passes, NFT marketplaces and swap tools are open to every listing.

### Can I test a Lovable crypto app inside Cherry before it goes live?

Yes. Add the published address in the portal wizard and open it in your private test room, a private group in Cherry with your app inside that only your team sees. Staging is fine, and you can add up to three test addresses beside the main one. Users see nothing until you publish.

## Sources

- [Lovable docs: using npm packages](https://docs.lovable.dev/tips-tricks/npm-packages)
- [Lovable docs: edge functions and where server code runs](https://docs.lovable.dev/features/edge-functions)
- [Lovable docs: secrets and VITE_ environment variables](https://docs.lovable.dev/features/secrets)
- [Lovable docs: how Lovable hosts your app](https://docs.lovable.dev/features/hosting)
- [Lovable docs: deploying and hosting outside Lovable](https://docs.lovable.dev/tips-tricks/external-deployment-hosting)
- [Solana wallet adapter on GitHub](https://github.com/anza-xyz/wallet-adapter)
- [Cloudflare Pages docs: custom headers](https://developers.cloudflare.com/pages/configuration/headers/)
- [Anchor docs: a framework for Solana programs](https://www.anchor-lang.com/docs)
- [Cherry developer docs: build with an AI agent](https://portal.cherry.fun/docs/mini-apps/ai-agents)
- [Cherry developer docs: mini-app quickstart](https://portal.cherry.fun/docs/mini-apps/quickstart)
- [Cherry developer docs: listing and publishing](https://portal.cherry.fun/docs/mini-apps/listing)
- [Cherry developer docs: wallet and limits](https://portal.cherry.fun/docs/mini-apps/wallet)
- [Cherry developer docs: Mini App Policy](https://portal.cherry.fun/docs/mini-apps/policy)

