Copy page
Build apps for Lia. We bring the people.
Your web app opens inside the Lia app, in front of people who already use it every day. Add one script and every player arrives signed in, in their own language and theme, with $LIA payments, invites and the rest already built.
#What a Lia app is
A Lia app is a web page you build and host yourself. People open it from the Apps Center in the Lia app, and it runs inside Lia, much like a Telegram mini app. Your page loads the Lia SDK from Lia, and the SDK is how it talks to Lia: who the player is, the pay sheet, the friend picker, notifications, ads, storage and the phone itself.
Your app can also have its own server. It calls Lia's server API with your secret key to check what the browser tells it: that a session is real, that a charge was paid, that a video was watched. Nothing important ever trusts the browser.
<script src="https://api.lialabs.org/sdk/lia-apps-v1.js"></script>
<script>
Lia.init().then(function (me) {
document.body.textContent = "Hello, @" + me.player.name;
Lia.ready();
});
</script>#Start here
#Everything in the SDK
#How the pieces fit
- The person opens your app in LiaLia opens your page in its frame and signs the person in for you, as a player of your app.
- Your page calls the SDK
Lia.init()gives you the player, a session token, their language and theme. Everything else is a call away. - Lia does the sensitive partsPayments, ads, invites and permissions happen in Lia's own screens over your app, never in your page.
- Your server checksWith your secret key, your server verifies sessions, charges and watched videos, and pays rewards from your pool.
#Addresses
| What | Where |
|---|---|
| The SDK | https://api.lialabs.org/sdk/lia-apps-v1.js |
| The server API | https://api.lialabs.org/api/apps/v1 |
| The SDK demo (opens inside Lia) | https://api.lialabs.org/sdk/demo |
| Invite links | https://api.lialabs.org/play/<app id> |
| These docs as Markdown, for AI tools | /llms.txt and /llms-full.txt |