Build Your First App
Build, check and submit a one-file mini app that counts glasses of water and checks in to an Action.
A mini app is one index.html and one manifest.json. This guide builds a small counter, runs the same automatic checks Aksa runs on submit, and ends with the app in review.
Step 0: Get Ready
You need an Aksa account. Reading these docs needs nothing, but submitting does.
- Open the Developer Studio and sign in.
- Open Account Menu -> Developer Profile (top right) or Open Profile on Home to set a publisher name and contact email, then accept the Developer Terms.
- (Optional, for sensitive scopes) Once terms are accepted, click Request Verification inside the Developer Profile modal if your app requests
profile.*,location.foreground,health.read,contacts.pick,photos.pick, ornotifications.
›Step 0 Checkpoint
- Your email is verified.
- Your profile has a name and a contact email.
- You accepted the current Developer Terms.
- (If using sensitive scopes) Identity verification status is Verified.
Step 1: Write The Manifest
The manifest describes your app. Save it as manifest.json.
{
"manifestVersion": 1,
"id": "glass-counter",
"name": "Glass Counter",
"version": "1.0.0",
"author": "Your Name",
"description": "Count the glasses of water you drink today.",
"category": "health",
"entry": "index.html",
"icon": "icon.svg",
"ageRating": 4,
"url": "https://apps.aksaspace.com/app/glass-counter",
"bridge": {
"version": 1,
"scopes": ["actions.checkin"],
"methods": ["actions.checkIn", "storage.get", "storage.set"]
},
"action": { "title": "Drink 8 glasses of water", "minMinutes": 1, "proof": "mini_app" },
"data": { "network": "none" }
}›Step 1 Checkpoint
iduses lowercase letters, digits and dashes.- Every method you will call is listed under
bridge.methods, and its scope is declared.
Step 2: Write The Page
Save this as index.html. It talks to Aksa only through the bridge, window.aksa.request.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Glass Counter</title>
<style>
body { font-family: system-ui, sans-serif; margin: 0; padding: 24px; background: #fefefe; color: #111; }
button { font: inherit; padding: 12px 20px; border-radius: 999px; border: 1px solid #ddd; background: #111; color: #fff; }
</style>
</head>
<body>
<h1>Glass Counter</h1>
<p id="count">0 glasses today</p>
<button id="add">Add A Glass</button>
<button id="done">Check In</button>
<script>
var KEY = "glasses";
var count = 0;
function call(method, params) {
return window.aksa.request({ method: method, params: params || {} });
}
function show(n) {
document.getElementById("count").textContent = n + " glasses today";
}
call("storage.get", { key: KEY }).then(function (v) {
count = Number(v) || 0;
show(count);
});
document.getElementById("add").addEventListener("click", function () {
count += 1;
show(count);
call("storage.set", { key: KEY, value: String(count) });
});
document.getElementById("done").addEventListener("click", function () {
call("actions.checkIn", { note: count + " glasses" });
});
</script>
</body>
</html>›Step 2 Checkpoint
- The page is one file under 2 MB.
- It has no
fetch, no externalsrcorhref, and noeval. - It calls only methods you declared.
Step 3: Run The Checks
Open the Developer Studio, go to Submit App, and paste the manifest and the page. The automatic checks run before anything is sent. Fix every error it lists, then try again. See Automatic Checks for what each error means.
Step 4: Try It In The Simulator
Open the Simulator tab in the Developer Studio to run the page against the bridge and watch each call. The Studio can also show a QR code so you can open the app on your phone.
Step 5: Submit
Submit the version. If the checks pass, it moves to in review. An Aksa admin approves it or rejects it with a note. See Review And Publishing.
›Step 5 Checkpoint
- Your version shows as in review in My Apps.
- You know a rejected version is final: fix it and submit a new version number.
Next Steps
Read Production Readiness before you submit a real app, and the Bridge Methods reference for everything else the bridge can do.
Ready to ship?
Submit An App