A SvelteKit app that hosts mini apps in iframes at https://<VITE_BASE_URL>/miniapps. Mini apps can request wallet transactions and message signing via a postMessage protocol.
This guide is for adding an app to Circles Garage — the section of the Mini Apps marketplace for experimental, community, and hackathon apps, including Circles Garage competition entries.
Garage apps:
- Can be hosted anywhere — your own domain, Vercel, Netlify, GitHub Pages, etc.
- Run under a stricter host transaction policy (see Garage transaction policy).
- Show a "use at your own risk" preview disclaimer to users.
To submit a curated production-grade Embedded Mini App instead, see docs.aboutcircles.com/miniapps/contribute-mini-apps.
Garage submissions only need a manifest entry — the app itself stays in your repo and deployment.
- A new entry in
static/miniapps.jsonwith"category": "garage"pointing at your deployed app - Optionally a square logo committed under
static/app-logos/ - The deployed URL must already be reachable and embeddable in an iframe
Open the PR against master on aboutcircles/CirclesMiniapps.
The marketplace reads metadata from static/miniapps.json. When a user opens /miniapps/<slug>, the host loads the url from your entry inside an iframe and exposes the wallet bridge via postMessage (see Integration with Mini Apps SDK below).
| Field | Required | Notes |
|---|---|---|
slug |
yes | URL-safe, unique identifier. Becomes the path /miniapps/<slug>. |
name |
yes | Display name shown in the marketplace. |
logo |
yes | HTTPS URL or repo-relative path of a square logo (SVG or PNG, min 64×64 px). Empty string falls back to a first-letter tile. |
url |
yes | Absolute HTTPS URL of your deployed app. Must load in an iframe. |
description |
yes | Short description shown under the app name. |
tags |
yes | At least one tag, e.g. ["defi"]. |
category |
yes | Must be "garage". |
isHidden |
no | If true, hides the tile from the grid. The app is still reachable at /miniapps/<slug>. |
Example entry:
{
"slug": "your-app-slug",
"name": "Your App",
"logo": "/app-logos/your-app.png",
"url": "https://your-app.example.com/",
"description": "One-sentence description of what it does.",
"tags": ["demo", "tools"],
"category": "garage"
}Garage apps post transactions through @aboutcircles/miniapp-sdk's sendTransactions (see Integration with Mini Apps SDK below). Before the approval popup is shown, the host runs the batch through a policy that rejects any tx that:
- Targets the user's currently-acting Safe address.
- Targets the user's primary Safe (when operating in child-safe mode).
- Uses any of these Safe-management 4-byte selectors:
| Selector | Function |
|---|---|
0x0d582f13 |
addOwnerWithThreshold(address,uint256) |
0xf8dc5dd9 |
removeOwner(address,address,uint256) |
0xe318b52b |
swapOwner(address,address,address) |
0x694e80c3 |
changeThreshold(uint256) |
0xe19a9dd9 |
setGuard(address) |
0xf08a0323 |
setFallbackHandler(address) |
0x610b5925 |
enableModule(address) |
0xe009cfde |
disableModule(address,address) |
0x6a761202 |
execTransaction(...) |
The whole batch is rejected on the first offender. The user sees a "Restricted action" modal explaining what was blocked; the iframe receives a tx_rejected postMessage.
What a Garage app cannot do:
- Wrap its own
execTransactionto act on a Safe the user co-owns. The host already wraps every tx as needed; callingexecTransactionyourself is treated as a smuggling attempt. - Add owners, swap guards, enable modules, or otherwise mutate the user's Safe configuration.
If you need these, the app does not belong in Garage — submit it as a curated Embedded Mini App via the docs site link above.
- Entry added to
static/miniapps.jsonwith all required fields and"category": "garage" - App loads over HTTPS and renders inside an iframe (no
X-Frame-Options: DENY, no restrictiveframe-ancestors) - Logo resolves to a valid image
-
slugis unique - No attempt to call
execTransactionor any Safe-management selectors from the app - PR title:
feat: add <your app name> (garage)
The Circles team reviews and merges PRs on a best-effort basis.
If you only want to test your miniapps, you don't need to go through the below steps and run the environment locally. You can use Circles Playground.
macOS:
brew install mkcert
mkcert -installLinux:
sudo apt install libnss3-tools
curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64"
chmod +x mkcert-v*-linux-amd64
sudo mv mkcert-v*-linux-amd64 /usr/local/bin/mkcert
mkcert -installWindows:
choco install mkcert
mkcert -installCopy .env.example to .env and fill in your values:
cp .env.example .envVITE_COMETH_API_KEY=your_cometh_api_key
VITE_PIMLICO_API_KEY=your_pimlico_api_key
VITE_BASE_URL=circles.gnosis.ioVITE_BASE_URL is used for page titles and the dev server hostname. It must match the TLS certificate and /etc/hosts entry below.
Run this from the project root, using your VITE_BASE_URL value:
mkcert circles-dev.gnosis.ioThis produces two files in the current directory:
circles-dev.gnosis.io.pem— certificatecircles-dev.gnosis.io-key.pem— private key
These are gitignored and must be generated locally by each developer.
The dev server binds to the hostname, so you need to point it to localhost.
macOS / Linux:
sudo sh -c 'echo "127.0.0.1 circles-dev.gnosis.io" >> /etc/hosts'Windows — open C:\Windows\System32\drivers\etc\hosts as Administrator and add:
127.0.0.1 circles-dev.gnosis.io
npm installsudo npm run devThe app is now available at https://circles-dev.gnosis.io (port 443).
Your browser will trust the certificate because mkcert adds its CA to the system trust store.
The examples/ directory contains demo mini apps you can run alongside the host for testing.
Sign Message demo (port 5181):
npm run demo:signERC20 Transfer demo (port 5180):
npm run demo:txTo test locally, update static/miniapps.json to point the relevant app URL to http://localhost:518x/.
Apps listed in static/miniapps.json appear on the /miniapps page. See Submitting Your App for the full entry format.
| URL | Description |
|---|---|
/miniapps |
App list |
/miniapps/<slug> |
Open a specific app directly |
/miniapps/<slug>?data=<base64> |
Open app and pass arbitrary data to it |
The ?data= param carries arbitrary base64-encoded data to the mini app. The host decodes it and delivers it via a app_data postMessage. The mini app defines its own schema — plain strings, JSON, ABI-encoded bytes, etc.
Example — base64 JSON:
const data = btoa(JSON.stringify({ message: 'Please sign this', context: 'my-app:v1' }))
// use in URL: /miniapps/my-app?data=<data>Example — ABI-encoded bytes (viem):
import { encodeAbiParameters } from 'viem'
const encoded = encodeAbiParameters(
[{ type: 'string' }, { type: 'address' }],
['Hello', '0xABC...']
)
const data = btoa(encoded)Mini apps communicate with the host via window.postMessage. Use Mini App SDK for a ready-made client-side SDK.
Wallet connection uses Cometh Connect SDK with a Safe smart account and Pimlico as the paymaster on Gnosis Chain.
- Connecting triggers a passkey prompt via
navigator.credentials.get()— the user picks their passkey and Cometh resolves the associated Safe address automatically - No address input required — the Safe address is derived from the passkey
- On successful connect the address is saved to
localStorageand restored on next visit without prompting the passkey again - Disconnecting clears both the in-memory state and
localStorage
npm run buildOutput goes to build/. It is a fully static site (SvelteKit adapter-static) with a 404.html fallback for client-side routing of dynamic slug routes.
By submitting a mini-app for listing, you confirm that: Your app and its use of Circles / Gnosis tooling complies with all applicable laws and regulations in the jurisdictions . You have not introduced, and will not introduce, any malicious code, backdoors or other potentially technologically harmful content or software designed to compromise users’’ assets, rights, wallets or the Circles/Gnosis infrastructure, and you will take reasonable care in accordance with industry practice to avoid the existence of any bugs or vulnerabilities in the mini-apps you develop that could lead to loss of user funds or disruption to our systems. The Circles / Gnosis team may reject, de-list, disable or restrict the availability of any mini-app at any time, in its sole discretion, including where we suspect any legal or security risks, or where we have reason to believe you are engaging in abusive or prohibited behaviour.