Quick start: your first app in 5 steps
Any HTTP server in one Docker image works. This one needs no packages, database or payments.
- Create
main.mjsimport http from 'node:http'; http.createServer((req, res) => { if (req.url === '/health') { res.writeHead(200, { 'content-type': 'text/plain' }); return res.end('ok'); } res.writeHead(200, { 'content-type': 'text/html; charset=utf-8' }); res.end('<!doctype html><html lang="en"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Hello</title><h1>Hello world</h1><p>My first app on saasland.io.</p></html>'); }).listen(Number(process.env.PORT || 8080), '0.0.0.0'); - Create
DockerfileFROM node:22-alpine RUN apk upgrade --no-cache WORKDIR /app COPY main.mjs ./ ENV PORT=8080 EXPOSE 8080 CMD ["node", "main.mjs"] - Test locally. Run
node main.mjs, openhttp://localhost:8080and check that/healthreturns HTTP 200. - Upload. Open Developer workspace, sign in, review the developer and hosting agreements, choose Create app and select the folder or a ZIP. Use the settings below.
- Deploy and launch. Review the changes and press Publish to deploy. Wait for Ready, then choose Launch app. Only you and invited testers can open it until you choose Publish app.
| Setting | Value |
|---|---|
| Address | your-app.saasland.io |
| Dockerfile / build context | Dockerfile / . |
| Port / health path | 8080 / /health |
| Memory / timeout | 512 MB / 20 seconds |
| Files, Datastore | Off until the app needs them |
Next, add the browser SDK to a signed-in page. It works only inside a deployed saasland.io app, not on localhost.
<p id="hello"></p>
<script type="module">
import { saasland } from '/_saasland/sdk.js';
const me = await saasland.me();
document.querySelector('#hello').textContent = `Your ID in this app: ${me.user.id}`;
</script>Open Your appsHow it works
saasland.io sits in front of your app. It signs people in, checks access and adds trusted headers. You build the features.
- BrowserOpens
your-app.saasland.io - saasland.io gatewaySigns in, applies public paths, removes forged headers, adds
X-Saasland-* - Your appAny HTTP server in one Docker image. Trusts only gateway headers.
The browser SDK calls /_saasland/… on your app's own address. The gateway answers those calls itself: profile, wallet, storage, files and presence.
| I want to… | Start here |
|---|---|
| Have an AI assistant build or deploy it | Build with AI & MCP |
| Know who the user is | User identities |
| Read private profile info or check age | Permissions & profile |
| Charge for one action | Payments |
| Sell weekly, monthly or annual access | Subscriptions |
| Charge per use within a budget | Usage & balance checks |
| Save data or use PostgreSQL | Files & data |
| Call an external API with a key | Outgoing firewall, Configuration & secrets |
| Show online friends | Online friends |
| Send live chat or game moves | Live messaging |
| Make pages public or invite testers | Testing & publication |
| Fix an error | Troubleshooting |
Examples are browser code on a signed-in app page unless marked as server code. Prices in examples are illustrative. Reading this guide and the AI instructions needs no account.
Build with AI & MCP
Give your assistant the app-development skill and describe what you want.
Copy adds a starter request: a hello world app with a button that costs one credit per click. Edit it to describe your app. Payment approval always uses the real saasland.io flow; a simulated balance is only a local test fixture.
Ask for direct SDK calls from the feature action: profile.read, profile.checkAge18, wallet.check, wallet.authorize + wallet.advice, or wallet.subscribe. saasland.io handles the permission review. No permission preflight, grant-ID storage or configuration declaration is needed.
Deploy through a connected assistant
Connect a compatible client to https://saasland.io/mcp. Listing apps needs apps:read; deploying also needs apps:write. Log access is controlled separately.
- Pick the app. List apps, choose to update one or create a private draft, and read
get_app_configuration. - Declare browser storage. Inspect the code and libraries, read
get_app_browser_storage, save a complete declaration withset_app_browser_storage, then prepare the cookie policy withset_app_configuration. - Upload source.
create_source_upload→ HTTP PUT of the ZIP →deploy_source_for_reviewsaves a draft for human review in saasland.io. Building and deployment start only when the owner reviews and presses Publish. Reuse returned identifiers on retries. - Prepare settings. Use
set_app_configurationfor details, categories, policies, public paths, address and runtime. Use the environment, firewall and database tools for those parts. Artwork:create_artwork_upload→ PUT →complete_artwork_upload. - Hand off. Read
get_app_publication_review, fix blockers and give the owner the portal link. Only the owner presses Publish; then check status until Ready.
More about MCP
In General settings, describe your app preview with feature bullets, pricing, supported languages and an optional public demo path. MCP can save the same listing section with set_app_configuration. The demo route must also be public in Access settings. Review and Publish to make these details visible.
MCP cannot publish or unpublish. Updating an existing app keeps its publication state. Drafts do nothing until the owner publishes. Without connected tools, the assistant should hand over the ZIP and manual steps. Never share AWS credentials, billing keys or login cookies with an app or assistant. Manage and revoke clients under Developer workspace → MCP connections.
HTTP runtime and packaging
Runtime settings offer Lambda or Fargate at 0.5 vCPU/1 GB, 1 vCPU/2 GB, or 2 vCPU/4 GB. Fargate keeps one instance running; the Maximum instances slider sets a limit from 1 to 10. Above 1, CPU and memory demand drive autoscaling in the same availability zone. Multi-zone support is coming soon.
The portal shows minimum and maximum monthly compute estimates in credits. These assume that instance count runs all month; storage, network, database, monitoring and temporary deployment overlap cost extra. The maximum is not a total spending cap. Runtime size can change once every 24 hours after successful activation. Maximum-instance changes and automatic scaling are exempt; save a draft and Publish to apply a new limit. Through MCP use changes.runtime.maxInstances; Lambda requires 1.
Apps must support concurrent instances: keep sessions and durable data in shared managed storage. Autoscaling needs metrics and startup time and remains subject to AWS capacity. Platform request validation and critical services stay on Lambda.
Ship one Linux x86-64 (amd64) container with a Dockerfile. Node.js 22 and Python 3.13 examples are tested; other languages work if they meet the same contract.
| Rule | Details |
|---|---|
| Start a server | Use Dockerfile CMD/ENTRYPOINT. Listen on 0.0.0.0 and PORT. EXPOSE alone starts nothing. |
| Health check | Return exactly HTTP 200 quickly from the health path (usually /health), with no sign-in or external calls. |
| Stateless | The image filesystem is read-only. /tmp and memory are temporary; restarts can happen between requests. Keep data in platform storage or PostgreSQL. |
| Dependencies | Install from public sources during the build. Uploads skip installed dependency folders and virtual environments. Private package credentials are unsupported. |
| Browser assets | Serve scripts and assets from your own origin. Service workers, frames and embedded objects are disabled, except players from well-known video platforms. |
| Not supported | App-hosted WebSocket servers, always-running processes, scheduled app jobs, unrestricted internet access from the container. |
saasland.io adds Lambda Web Adapter for you; do not write a Lambda handler. Unsafe archive paths and file types are rejected. A passing health check proves startup, not every feature. See limits.
User identities
Each app gets its own stable ID for each user, plus their public username for display. The username is shared across apps and can change at any time.
| Identity | Where you see it | Use it for |
|---|---|---|
App user ID, usr_… | saasland.me().user.id, header X-Saasland-User-ID, Your ID in this app in Profile & settings opened from the app menu | Your stable user key and admin allowlists. Different in every app. |
| Platform account ID | Profile & settings only | Inviting a tester. Apps never receive it. |
Username, e.g. bright-otter-42 | saasland.me().user.username, without a permission request | Display only. Users can rename it, so never key data by it. |
import { saasland } from '/_saasland/sdk.js';
const me = await saasland.me();
console.log(me.user.id); // Your stable user key in this app: usr_…
console.log(me.app); // Stable app identifier; not necessarily its hostname
// me.preferences contains appearance and explicitly selected languages.
// me.user.username is the public display name, or null until chosen.
// Name, email, gender, birthday and avatar remain private.
The app user ID survives sign-in, logout, username changes, app updates and address changes. It cannot be decoded into an account ID, email or username. Even the app's creator gets an app-scoped ID. csrfToken in me() is a session token for the SDK: never log it, store it as an ID or send it elsewhere.
Trusted request headers
The gateway removes any X-Saasland-* header sent by the browser and sets its own. Never trust a user ID from JSON, a query string or browser storage.
| Header | Value |
|---|---|
X-Saasland-Authenticated | true with a signed-in user, false on anonymous public pages |
X-Saasland-User-ID | App user ID usr_…; absent when anonymous |
X-Saasland-App-ID, X-Saasland-Request-ID | Stable app identifier and a per-request ID for logs |
X-Saasland-Theme, -Primary-Language, -Secondary-Language | Saved preferences; languages only when set |
X-Saasland-Payment-* | Verified one-time payment: -ID, -Credits, -Key, -Status, -Expires-At. See Payments. |
X-Saasland-Charge-* | Verified usage charge: -ID, -Credits, -Key. See Usage. |
X-Saasland-Subscription-* | Verified subscription: -ID, -Active, -Credits, -Period, -Cancellation-Policy. See Subscriptions. |
Payment, charge and subscription headers appear only when the browser sends the matching -ID header and the gateway verifies it for this app and user.
Make yourself admin
Open your app, open its saasland.io menu, choose Profile & settings and copy the ID under Your ID in this app. Save it as an environment variable such as ADMIN_USER_ID and check it on every protected route.
// Node.js request handler, behind the saasland.io gateway:
const adminId = process.env.ADMIN_USER_ID;
const userId = req.headers['x-saasland-user-id'];
if (req.headers['x-saasland-authenticated'] !== 'true' ||
!adminId || userId !== adminId) {
res.writeHead(403);
res.end('Forbidden');
return;
}
// Perform the protected admin operation here.
Hiding a menu item is not access control. Do not compare against your platform account ID, username or email. In a shared SQL database, scope every query to the trusted user ID. Anonymous requests have no user ID: never fall back to a shared user.
Permissions and profile access
Call the resource directly from a user action. saasland.io checks for a grant and shows its own review only when one is missing.
- Your codeCalls
profile.readfrom a click - saasland.io checksExisting grant: returns at once, no dialog
- Review sheetShown only if access is missing. User allows all, some or none.
- ResultApproved fields, or error
permission_denied
Display the public username
Use the platform username for games, forums and leaderboards. Do not ask users to create another app username or approve access to it. Users can rename it anytime; store points, posts and other data under user.id, and refresh me() to update display names. Never use a username for authorization: a former name may belong to someone else later.
import { saasland } from '/_saasland/sdk.js';
const { user } = await saasland.me();
document.querySelector('#greeting').textContent = user.username
? `Hello, ${user.username}` : 'Welcome';
// Key saved data by user.id. A rename must not reset points or ownership.
Existing profile.read({ fields: ['username'] }) calls also work without a popup. Mixed requests ask only about private fields.
| Field or call | Returns |
|---|---|
name, email, gender, birthday | profile.read({ fields, purpose }) → { profile } with only the approved fields |
age18 | profile.checkAge18({ purpose }) → { is18OrOver: true | false | null } |
age | profile.getAge({ purpose }) → { age: number | null }, whole years |
Check age
const { is18OrOver } = await saasland.profile.checkAge18({
purpose: 'Check whether the adult feature is available',
});
// true: 18 or over; false: under 18; null: unknown.
// Treat only is18OrOver === true as a positive result.
const { age } = await saasland.profile.getAge({ purpose: 'Show pages suitable for your age' });
// null means unknown. Treat a denial the same way.
Both use the user's saved, self-declared birthday; the date itself is never shared. This is not verified age assurance. saasland.io does not block app launch by age: your app decides what under-18 or unknown-age users see on signed-in pages.
Rules to follow
- Ask for less. Request only the fields a feature needs. Signing in, paying, testing or owning the app grants no private profile access. Public username needs no grant.
- Handle partial answers. Users can approve some fields. Disable only the feature that needs a missing field.
- Stop after denial. Denial ends the call with
status: 403, code: "permission_denied". A later user action may ask again. Never loop. - Keep the purpose stable for the same use. Users manage grants in Permissions.
Grant lifetime, age rules and advanced helpers
Profile and threshold grants last 30 days by default, at most one year; expiresAt uses epoch milliseconds. Grants bind app, user, purpose, scope and current policy; deployment or policy changes can invalidate them. Reuse keeps the original approval date, expiry and used budget. Revocation stops new disclosure but cannot retract data you already received. Keep as little profile data as possible.
age18, age and birthday are separate permissions. Missing, invalid or future birthdays give null; age18 can be approved even when the birthday is missing. Comparisons use the current UTC date; February 29 reaches the threshold on March 1 in a non-leap year. Other thresholds than 18 are unsupported; use getAge.
Advanced, optional: profile.request and profile.requestAge18 review consent before the action and return a grantId; read only approval.terms.fields. Older shells may show a separate window with a Review permission fallback. Never use your own dialog or a browser message as authorization.
Payments: charge for completed work
Prices are whole credits. DryBits sells app services to users and pays you supplier compensation for delivered services; credits are not money and do not convert 1:1 into your pay. Paid features may sell only digital services or content inside your app (no physical goods, gift cards, cash, gambling or loot boxes). Apps never see a balance, payment history or global payer ID. Complete developer details and policies before taking payments.
| You sell | Use |
|---|---|
| One action, such as an export | wallet.authorize → do the work → wallet.advice |
| Weekly, monthly or annual access | wallet.subscribe |
| Repeated use within a budget | wallet.charge |
| A yes/no balance threshold | wallet.check |
Show prices with the coin
Put the saasland.io coin beside every credit amount, like 1 credit on an “Answer” button. No arrow, no word-only price. Keep the unit for screen readers. Copy one into your app's own assets, at least 20px square:
Design-kit users can call creditsMarkup(amount) from ui.js. The plugin and skills ZIP include all six files.
One-time payment flow
- 1. AuthorizeUser approves in saasland.io. Credits are held up to 24 hours.
- 2. Do the workYour server checks the payment headers and saves the result.
- 3. AdviceHeld credits are consumed once. Developer credits are pending for 24 hours.
Failed before delivery? Call wallet.release(id). Unused holds expire after 24 hours.
Save an operation record with a unique, persistent id first. Run this from a user click; /api/export is your own route.
const payment = await saasland.wallet.authorize({
credits: 1, idempotencyKey: operation.id,
productName: 'Notebook export', description: 'Export one notebook',
purpose: 'Export the notebook you selected',
});
// Save payment.id with the operation before continuing.
const response = await fetch('/api/export', {
method: 'POST',
headers: { 'X-Saasland-Payment-ID': payment.id },
});
if (!response.ok) throw Error('Check the saved operation before retrying.');
// The server must have completed and saved the output durably.
await saasland.wallet.advice(payment.id);
Verify on your server
// Server code (Node.js). findOperation, completeOnce and runExport are your own code.
const PRICE = 1;
const paymentId = req.headers['x-saasland-payment-id'];
if (!paymentId || Number(req.headers['x-saasland-payment-credits']) !== PRICE) {
res.writeHead(402);
return res.end('Payment required');
}
// The payment key is the idempotencyKey: bind it to this user's operation.
const operation = await findOperation(req.headers['x-saasland-payment-key'],
req.headers['x-saasland-user-id']);
if (!operation) { res.writeHead(409); return res.end('Unknown operation'); }
// Save the result once; return the saved result on retries.
const result = await completeOnce(operation, paymentId, () => runExport(operation));
res.writeHead(200, {
'content-type': 'application/json',
// Optional: settle now, even if the browser closes. Only after durable completion.
'X-Saasland-Payment-Advice': paymentId,
});
res.end(JSON.stringify(result));
A cheaper payment or one for a different operation must not unlock the feature. The gateway settles X-Saasland-Payment-Advice on a 2xx response before delivering it and strips the header. Repeating advice from the browser is safe.
Recover safely
| Situation | Do this |
|---|---|
| Unsure if it worked | Check your saved operation and wallet.payment(id) (authorized, captured, released, expired). Retry with the same key and terms. Never make a new key because of a timeout. |
| Definitely failed before delivery | wallet.release(id). Never release work that may have completed. Captured payments cannot be released. |
| Saved, but settlement failed | Keep the result and retry advice; do not redo the work. |
| Released or expired | Ask for a new purchase with a new key. The old key stays used. |
Age-limited paid features
Add minimumAge (whole number 1-21) to wallet.authorize, wallet.subscribe, wallet.requestRecurring or a direct wallet.charge.
const payment = await saasland.wallet.authorize({
credits: 5, idempotencyKey: operation.id, minimumAge: 18,
productName: 'Mature story pack', purpose: 'Unlock the story pack you chose (ages 18+)',
});
saasland.io checks the payer's self-declared date of birth before holding credits, asking for it when missing. A payer below the limit sees that the purchase is unavailable; your app sees an ordinary decline, so age is never revealed. Recurring grants recheck on every charge and can fail with age_restricted or birthday_required. Keep the same limit on retries and mention it on your own button. Choosing the limit is your responsibility; the optional age self-check in Configuration suggests one.
Consent, supply type and settlement details
Supply productName (1-120 plain-text characters) so confirmations and Wallet history name the purchase. Before approval, the customer explicitly requests immediate performance and acknowledges the withdrawal rules; apps cannot do this for them. The default supply type is a service. Use supplyType: 'digital_content' only when it truly describes one-time delivery. Subscriptions and usage charges are services.
Settlement never ends statutory rights for missing or faulty delivery. Cash compensation needs separate eligibility review; apps cannot read bank, tax or payout records. The retired requestOneTime and chargeOnce helpers throw. Apps cannot mint, reward, transfer or cash out credits, and there is no refund API: refunds go through Feedback.
Prepaid subscriptions
Fixed price per week, month or year. Save a unique enrollment key and the plan first, then call from a user click.
const subscription = await saasland.wallet.subscribe({
credits: 70, period: 'weekly', // weekly | monthly | annual
cancellation: 'proportional', // proportional | full_period; required
idempotencyKey: enrollment.id,
productName: 'Editor Pro', purpose: 'Use the paid editor',
description: 'Weekly editor access',
});
// Save subscription.id against the current app user and plan.
const { active } = await saasland.wallet.subscription(subscription.id);
if (!active) throw Error('An active subscription is required.');
await fetch('/api/paid-feature', {
method: 'POST',
headers: { 'X-Saasland-Subscription-ID': subscription.id },
});
// Server code: check the plan on every paid request.
const ok = req.headers['x-saasland-subscription-active'] === 'true'
&& req.headers['x-saasland-subscription-credits'] === '70'
&& req.headers['x-saasland-subscription-period'] === 'weekly'
&& req.headers['x-saasland-subscription-cancellation-policy'] === 'proportional';
if (!ok) { res.writeHead(403); return res.end('Subscription required'); }
// Also check that this subscription ID belongs to this user and plan in your records.
| Cancellation | What happens |
|---|---|
full_period | Renewal stops. Access continues until the paid period ends. |
proportional | Access ends now. Unused credits are released; elapsed time is charged, rounded down, and settles at the original period end. |
Users cancel in Wallet. Apps only see { id, active }. No wallet.advice is needed. A cheaper active plan or a browser check alone must not unlock the feature.
Renewal details
Approval holds the first period's credits. At period end the platform consumes the elapsed usage and holds the next period if funds and the approval allow. Not enough credits ends access without debt; a later top-up does not resume it automatically. Periods follow the approval's UTC anniversary with calendar month/year handling; missed whole periods are never charged later. Reusing an enrollment key returns the same enrollment, even after cancellation; changed terms conflict. A new enrollment needs a new key and fresh approval.
Usage charges and balance checks
Call directly. saasland.io asks for missing approval and reuses an existing grant silently. Denial ends the call with permission_denied.
Charge per use within a budget
Save the completed action and its key first: the charge says “delivered”. If the work may fail, use authorize and advice instead.
// Run from the feature action. Save the expiry and action key before this call.
const receipt = await saasland.wallet.charge({
credits: 2, maxCredits: 2, totalCredits: 20, period: 'day', // day | month, UTC
expiresAt: operation.permissionExpiresAt, // saved future epoch-millisecond timestamp
purpose: 'Run up to ten two-credit checks per day',
productName: 'Document check', description: 'Check one document',
idempotencyKey: operation.id, // one persistent key per logical charge
});
Returns { id, debited, app, chargedAt, grantId, replayed? }. Both the per-charge and the per-period budget apply. Retry with the same key and exact terms. Send X-Saasland-Charge-ID to your server; it receives verified X-Saasland-Charge-Credits and X-Saasland-Charge-Key to check price and prevent double delivery.
Check a threshold without reading a balance
const { matches } = await saasland.wallet.check({
credits: 10, comparison: 'gte',
purpose: 'Check whether you have at least ten credits',
});
Comparisons: lt, lte, gt, gte. You get a yes/no, not a balance, and nothing is reserved. A different threshold needs a new grant. Payment flows do not need a balance check first.
Advanced: review consent before the action
wallet.requestCheck and wallet.requestRecurring return a grantId you can pass to a later call. They are optional. Usage charges do not schedule jobs or create subscriptions. Older recurring approvals without the current immediate-performance consent need a fresh platform review.
Files, datastore and PostgreSQL
Turn on Datastore or Files in app configuration. Both are private to the current app and user; apps get no cloud credentials.
Per-user JSON data
import { saasland } from '/_saasland/sdk.js';
const value = await saasland.store.get('draft'); // null when absent
await saasland.store.put('draft', { text: 'A useful thought' });
await saasland.store.delete('draft');
User files
const { files } = await saasland.files.list(); // [{ key, size, modifiedAt }]
await saasland.files.upload(file); // Browser File from a file input
const { url } = await saasland.files.download('notes.txt');
// Present url in an ordinary download link; it is short-lived.
| Store | Limits and behavior |
|---|---|
| Datastore keys | 1-100 ASCII letters, digits, _ or - |
| Datastore values | JSON, request body up to 32 KiB. No list, query, compare-and-set or transactions. |
| File names | 1-128 ASCII letters, digits, ., -, _; start with a letter or digit. Same name replaces the file. |
| Files | Up to 5 MiB each. List shows at most 100; no pagination or delete in the SDK. |
| Download/upload URLs | Signed, valid 120 seconds. Never log or share them as permanent links. |
App database (PostgreSQL)
Optional managed PostgreSQL is set up in the portal. Deploy a working app first; it must start healthy without the database. After Publish, saasland.io adds DATABASE_URL, PGHOST, PGPORT, PGDATABASE, PGUSER, PGPASSWORD, PGSSLMODE and PGSSLROOTCERT to your server environment.
// Server code. Package the pg client with your app (npm install pg).
import pg from 'pg';
// DATABASE_URL already requires TLS certificate verification.
const pool = new pg.Pool({ connectionString: process.env.DATABASE_URL, max: 2, idleTimeoutMillis: 10000 });
const { rows } = await pool.query(
'SELECT id, text FROM notes WHERE owner = $1 ORDER BY id DESC LIMIT 20',
[req.headers['x-saasland-user-id']], // always scope to the trusted user
);
The database belongs to the app, not to each user: filter every query by the trusted user ID. Use transactions and unique constraints for payment replay safety. Credentials rotate automatically and config changes can cause cold starts, so reconnect on transient errors and release idle connections. Never disable TLS checks or send credentials to the browser or logs. Database usage is part of daily hosting charges.
Workspace /api/apps/… endpoints are for creators and do not accept app sessions. App deletion does not promise an immediate purge of retained data or financial records.
Online friends
Show whether known app users have your app open. Your app owns the friend list; query the usr_… IDs you already know.
import { saasland } from '/_saasland/sdk.js';
// Start once on each signed-in game or lobby page.
const presence = saasland.presence.start({
onError: error => console.warn('Presence unavailable', error.message),
});
// friendIds comes from your app's own friend list (up to 50 IDs).
const { users } = await saasland.presence.get(friendIds);
for (const { userId, online } of users) {
showFriendStatus(userId, online ? 'Online' : 'Offline');
}
// When leaving the lobby or disabling this feature:
await presence.stop();
start()sends a heartbeat every 30 seconds while the page is visible. Hidden pages pause; a lost connection goes offline within 90 seconds.- Refresh friends about every 30 seconds. Unknown, expired or other-app IDs return
online: false. On errors show “Status unavailable”, not “offline”. - Presence is approximate. Keep moves and matchmaking on your server. Any user of your app who knows an ID can query it; this is not friend-only access.
Limits and HTTP routes
The SDK uses POST /_saasland/presence/query with { userIds } and POST /_saasland/presence/heartbeat with { clientId, sequence, online }; both need the app session, JSON and CSRF token. Limits: 50 IDs per query, 4 KiB body, 20 presence requests per user/app/minute, 32 recent tab leases per user/app. Presence adds no browser storage and shares no account IDs, other-app activity or last-seen times.
Send Messages to your users
Tell a user something later, for example when a background task finishes. Address them by the usr_… ID your app already has. You never need their email, and app messages are never emailed.
// Server code. SAASLAND_APP_TOKEN is added to every published runtime.
const response = await fetch('https://saasland.io/api/app-messages', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SAASLAND_APP_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
to: userId, // the usr_ ID from X-Saasland-User-Id
title: 'Your export is ready',
body: 'Open the app to download it.',
path: '/exports/42', // optional: "Open in app" link inside your app
dedupeKey: 'export-42', // optional: retries with the same key send once
}),
signal: AbortSignal.timeout(10000),
});
if (response.status !== 202) console.warn('Message not sent', response.status);
# Server code, Python: requests uses HTTPS_PROXY automatically.
import os, requests
requests.post('https://saasland.io/api/app-messages',
headers={'Authorization': f"Bearer {os.environ['SAASLAND_APP_TOKEN']}"},
json={'to': user_id, 'title': 'Your export is ready', 'body': 'Open the app to download it.', 'dedupeKey': 'export-42'},
timeout=10)
| Rule | Details |
|---|---|
| Who | Only people who have opened your app (they have a usr_ ID in it). Other IDs return 404. |
| Content | Plain text. Title up to 120 characters on one line, body up to 2,000. No HTML, no links rendered; use path for one link into your app. |
| Limits | 5 messages per user per day from your app, 1,000 per app per day, 60 per minute. Over the limit returns 429. |
| Reply | 202 {"status":"accepted","duplicate":false}. A muted app gets the same reply; the message is dropped. |
| Network | saasland.io is always allowed by the outgoing firewall; no rule needed. |
Keep the key safe
The key only sends Messages for this app. Use it in server code only: never send it to the browser, never log it and never print it in diagnostics. Each Publish creates a new key and the old one stops when the new version goes live. If it leaks, open the app's Configuration, choose Revoke key, then Publish again. Users read messages under Messages in saasland.io and can mute your app there.
Live messaging (AppSync Events)
Optional live channels for chat, turn-based games and shared activities. Off by default.
- BrowserCalls
realtime.publishorsubscribe - saasland.ioAsks your server at
/_saasland/realtime/authorize - Your serverChecks membership, saves the action, returns
allow - SubscribersReceive
{ id, userId, data }
- Turn it on: Developer workspace → Configuration → AppSync Events, save, then Publish. Each app gets its own isolated service; usage joins the app's daily hosting charges. Wait until the status is ready.
- Answer the callback on your server (below). Anything other than
{ allow: true }denies. Browsers cannot call this route. - Subscribe and publish from the browser.
const live = await saasland.realtime.subscribe('rooms/room-123', {
onEvent: ({ id, userId, data }) => applyNotification(id, userId, data),
onStatus: ({ resync }) => { if (resync) void reloadSavedRoom(); },
onError: error => showConnectionError(error.message),
});
await saasland.realtime.publish('rooms/room-123', { move: 'e2-e4' }, {
id: crypto.randomUUID(),
});
live.stop(); // When leaving the room
// Server code. readJson, findRoom, validMove, saveOnce and sendJson are your own code.
if (req.method === 'POST' && req.url === '/_saasland/realtime/authorize') {
const { operation, channel, id, userId, event } = await readJson(req);
const room = await findRoom(channel);
if (userId !== req.headers['x-saasland-user-id'] || !room?.members.includes(userId))
return sendJson(res, { allow: false });
if (operation === 'subscribe') return sendJson(res, { allow: true });
const move = validMove(event); // keep only data that is safe to share
if (!move) return sendJson(res, { allow: false });
await saveOnce(room, id, move); // id deduplicates retries
return sendJson(res, { allow: true, event: move });
}
| Rule | Details |
|---|---|
| Channels | Exact names, 1-120 letters, numbers, dashes and single slashes; start alphanumeric, no trailing slash, no wildcards. A channel name never proves membership. |
| Limits | 8 KiB input event, four subscriptions per page, 30 live requests per app/user/minute. Renewals count and call your server. |
| Delivery | No replay, ordering or exactly-once guarantee. Keep state in storage and reload when onStatus gives resync: true (also on first connect). |
| Removed members | Access renews every minute, so a removed member may still get messages until then. |
| Retries | Reconnects back off; denial stops them. Publish never retries itself: reconcile by id first. |
MCP control and status
get_app_configuration({ slug }) returns current.realtimeEnabled, draft.realtimeEnabled and the active service realtime status. Prepare with set_app_configuration({ slug, revision, changes: { realtimeEnabled: true } }); use false to prepare removal, or the current value to cancel a pending change. Only the human Publish activates it. Then wait for realtime.enabled true and realtime.status ready; other statuses are disabled, provisioning, disabling and failed (a persistent failure needs platform support). Disabling also goes through Publish and removes the service. No socket opens until you subscribe; tickets stay in memory.
User preferences: appearance and languages
Apps can read the user's Light/Dark/Auto choice and up to two chosen languages. Only saasland.io Settings can change them.
const preferences = await saasland.preferences.get();
// theme: light | dark | auto; colorScheme: light | dark
// primaryLanguage and secondaryLanguage: language tag or null
const unsubscribe = saasland.preferences.subscribe((preferences) => {
document.documentElement.dataset.colorScheme = preferences.colorScheme;
const supported = ['en', 'lv', 'de'];
const language = [preferences.primaryLanguage, preferences.secondaryLanguage]
.find(tag => supported.includes(tag)) || 'en';
document.documentElement.lang = language;
// Render your own translations for language; updating lang alone is not translation.
}, { onError: error => console.warn('Preferences could not be refreshed.') });
// Call unsubscribe() when this component is removed.
- Write matching light and dark CSS. Use CSS
prefers-color-schemefor Auto before JavaScript loads. - Pick a supported primary language, then secondary, then your default. You supply the translations.
- Server pages get
X-Saasland-Themeand, when set,X-Saasland-Primary-LanguageandX-Saasland-Secondary-Language.Accept-Languageis a different, browser-only hint.
Subscribers get the first value, device changes and saved changes on focus; failures keep the last good values. A language choice says nothing about location or nationality.
Configuration and secrets
Configure everything in the portal or through MCP; no manifest file is needed. Changes save as drafts and apply when you press Publish.
| Change | What Publish does |
|---|---|
| Source, Dockerfile, build context | Builds, checks health, then switches traffic |
| Memory, timeout, port, health path, Files, Datastore | Runtime update with the existing image |
| Environment variables | Applied to the replacement runtime |
| Name, description, categories, artwork | Listing update, no restart unless other changes need one |
| Policies | Relevant changes can need new user approval |
| Address, public paths, firewall | No rebuild |
A failed replacement keeps the current version serving. New uploads reuse saved settings; omitted environment keys stay until you remove them.
Keep secrets out of source and the browser
Put API keys in Environment variables and read them only in server code:
// Server code
const apiKey = process.env.OPENROUTER_API_KEY;
if (!apiKey) throw Error('Set OPENROUTER_API_KEY in Environment variables.');
| Rule | Details |
|---|---|
| Limits | 30 keys, 2,500 JSON bytes. Platform, proxy and database names are reserved. |
| Write-only | Settings show names, never values. Values are literal strings; ARNs and paths are not resolved. |
| Runtime only | Never passed to the image build. Never send them to browser code. |
| Uploads | .env*, Git history, credential folders, private keys and installed dependencies are excluded. Root .env values can be imported one by one (single-line, no interpolation). |
An API key alone does not open network access: also allow the host in the Outgoing firewall.
App addresses
App address → Change app address keeps the app ID, data, users and ownership. Old GET/HEAD links redirect; old-host writes and SDK calls fail with 409. Use the current browser origin instead of building hostnames from me.app. Browser storage, cookies and external callbacks tied to the old origin need separate handling.
Call external HTTPS APIs
Allow each host in Outgoing firewall, keep its API key in Environment variables, and use your normal server-side HTTP client.
// Server code; normal fetch in a maintained Node 24 runtime.
const response = await fetch('https://openrouter.ai/api/v1/chat/completions', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.OPENROUTER_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ model: process.env.OPENROUTER_MODEL, messages }),
signal: AbortSignal.timeout(15000),
});
# Server code, Python: requests honors HTTPS_PROXY automatically.
import os, requests
r = requests.post('https://openrouter.ai/api/v1/chat/completions',
headers={'Authorization': f"Bearer {os.environ['OPENROUTER_API_KEY']}"},
json={'model': os.environ['OPENROUTER_MODEL'], 'messages': messages}, timeout=15)
| Rule | Details |
|---|---|
| Destinations | Up to 20 exact hostnames (e.g. openrouter.ai) or public IPv4 addresses, port 443. No paths or wildcards. |
| Empty list | Blocks everything |
| Always blocked | Private/reserved networks, IPv6, other ports |
| Redirects | The redirect target host must be allowed too |
| Proxy | Runtimes get HTTPS_PROXY/HTTP_PROXY and NODE_USE_ENV_PROXY=1. Node 24 fetch, Python requests and Go's default client use it. Custom agents may need the standard proxy option; clients that ignore it stay blocked. |
| Privacy | TLS stays end to end. The proxy never reads or adds API keys. |
Activation and timeouts
The editor shows whether the firewall is active and whether the app needs its first runtime update; saved rules alone do not activate it. After that, rule changes apply to new connections without a restart and open connections are rechecked every few seconds. A timeout cannot undo a request the provider already received, so check provider state before retrying a write. Set spending limits with the provider. Users see allowed destinations in the app menu; this is not request history.
Test privately, then publish
New apps are private. You and invited testers can use them. Publish app lists an eligible app for everyone; making it private again keeps owner and tester access.
- Testers: under Manage testers, use the tester's platform user ID from Profile & settings (not their
usr_…, username or email). Testers get their own storage and no management or profile access. - Checklist: app and developer details, policy links, acknowledgements and a Ready runtime. Optional: categories, a JPEG/PNG logo and promo image (2 MiB and four megapixels each; square and 16:9 work best, never cropped).
- Age: visits are never blocked by age or country. You decide who sees signed-in pages and set
minimumAgeon paid features. The Age self-check in Configuration is optional and only suggests a limit. Declaring prohibited sexual content or nudity blocks publication and access.
Public pages without sign-in
New apps start with these public paths (Configuration → Access). They work only once the app is published.
| Path | Matches |
|---|---|
/ | Home page only |
/public | That exact path |
/public/* | Everything below /public/, not /public itself |
Matching is case-sensitive and ignores the query string. Only a final /* wildcard works.
A public home page does not make its files public. /styles.css, /app.js, /icon.svg and /assets/components/workspace/78628f62e03092348f5ca737386489056d328e4b5a5c1a6a73a587577da89779/* still need sign-in, so signed-out visitors get bare HTML, broken images or a page stuck on “Connecting”. Your own signed-in preview hides this. Serve public files under /public/:
<link rel="stylesheet" href="/public/styles.css">
<link rel="icon" href="/public/icon.svg" type="image/svg+xml">
<script type="module" src="/public/landing.js"></script>
<a href="/app">Sign in to use the app</a>
- Keep
/appprotected.landing.jsmust not import/_saasland/sdk.js; load the SDK only when the server seesX-Saasland-Authenticated: true. - Sign in buttons are plain same-tab links to a protected path, like
<a href="/app">Sign in</a>. saasland.io signs the visitor in with the whole tab and returns to that path. Do not usetarget="_top",target="_blank",window.open(), saasland.io login URLs, your own login form orsaasland.signIn()on public pages; the app frame blocks those or they need a session. - A source folder named
publicmounted at/still serves protected/styles.css. Check the served URLs, including imports, lazy chunks, CSS@import/url(), fonts and images. - For existing apps, move files under
/public/or add their exact paths. Never open/*or private APIs to fix styling./_saasland/and sign-in routes stay protected anyway. - Keep personal data and paid operations off public routes. Public write routes keep same-origin rules and cannot receive webhooks.
Serve build assets through the CDN
Configure a directory in the final image, then upload source and publish:
{"changes":{"runtime":{"staticAssets":[
{"directory":"/app/dist/assets","urlPath":"/public/assets"}
]}}}
Use set_app_configuration with the app slug and current revision. The default /public/* access rule covers this example. Changing directories requires a new source build. Omission preserves the saved mappings; [] removes them on a fresh build.
Export public scripts, styles, fonts, images and data only. Keep HTML and APIs dynamic. Public-path rules describe URL access and never automatically export files. Bundle startup code, combine duplicate reads and lazy-load optional features.
CDN limits and access
Eight directories, 5,000 files, 100 MiB expanded, 25 MiB compressed and 32 MiB per file. No HTML, hidden files, links, credentials or server source. Original asset URLs pass gateway authorization and redirect to cached files without invoking the app. Private previews still require owner/tester access. Grants expire within 60 seconds, including after access removal; expired URLs return through the gateway for a new check. Do not save or share signed URLs. Use absolute paths for dependencies outside a mapped directory.
How to verify public pages and access
Test signed-out public pages, signed-out protected paths, owner, invited tester, an unrelated account and revoked tester access. After the owner publishes, use a fresh signed-out browser with an empty cache: styles, images and public interactions must work, and in the Network panel every resource must return the intended content without a sign-in redirect (a login page returned as 200 is a failure). Private previews, localhost and Ready status do not prove anonymous access.
Public pages, previews, logos and artwork must contain no age-restricted images, video, animation or audio. Uploaded artwork is checked in the background; a check is not an age rating or legal approval. If saasland.io Support Team needs a change, it contacts you in Feedback. Platform admins cannot open another creator's private app.
Video and audio
Videos from well-known platforms load right away on any app page and may autoplay if you ask. Paste the platform's normal embed code. Other frame sources stay blocked.
| Platform | Embed address |
|---|---|
| YouTube | www.youtube.com/embed/, www.youtube-nocookie.com/embed/ |
| Vimeo | player.vimeo.com/video/ |
| X | platform.twitter.com/embed/ |
| Dailymotion | www.dailymotion.com/embed/, geo.dailymotion.com/player |
| Twitch | player.twitch.tv, clips.twitch.tv/embed (add parent= your app host) |
| Loom, TikTok, Wistia, Streamable | www.loom.com/embed/, www.tiktok.com/embed/, www.tiktok.com/player/v1/, fast.wistia.net/embed/, streamable.com/e/ |
<saasland-video video-id="M7lc1UVf-VE" title="A description of the video" autoplay muted></saasland-video>
This YouTube helper is optional. autoplay, muted and loop are optional too. Browsers usually autoplay only muted videos, so add muted (or mute=1 in the URL).
The video provider gets the visitor's IP address and may store data in the browser. Name it in your privacy and cookie policy.
Your own audio and video on public pages must not start sound on load, on a timer or after an unrelated click. A native Play/Listen/Unmute button, or an accessible button with data-saasland-play, tells the platform the user chose to play. Public content must suit all ages. If Support Team contacts you in Feedback, fix the issue and reply; serious issues can be blocked at once. Browser safeguards do not certify content.
Operate and support your app
Deployments and logs
| Where | Shows |
|---|---|
| Deployment history | Validation, build and runtime status per version. The previous version keeps serving until a replacement passes. |
| Build logs | Image creation |
| Deployment logs | Stages and health checks |
| Runtime logs | Startup and request diagnostics. Empty may mean “not arrived yet”: refresh. |
Log only operation IDs, request IDs and safe messages: never session tokens, signed URLs, credentials or full profiles. Keep user input on failures.
Feedback and refunds
Users reach you through Feedback in the saasland.io menu; reply under App feedback. Wallet shows app, product, transaction ID and credits, and can prefill a refund request. The original owner can choose Refund and reply for a full or partial credit refund; the platform restores credits, adjusts compensation and sends the reply together. Low compensation can create a recorded debt but never blocks a valid refund. Refunds keep history, do not cancel subscriptions or reset usage budgets, and do not replace legally required money refunds. Apps have no refund API.
Developer account and hosting
| Topic | Key facts |
|---|---|
| Business & tax | Saved once for all apps and locked; add missing details later, ask Support for corrections. Publishing needs supplier type, legal name, country, registration number and address (companies and self-employed) and two confirmations. Tax, VAT, representative and beneficial-owner details are needed before the first supplier payment. Bank details live in Supplier payments & bank. |
| Credits | Developer Account shows Pending, Available and Under review. Completed paid work becomes available after 24 hours; refund rights continue after that. |
| Hosting | Charged in credits. Settled app usage plus wallet allocations, minus hosting and amounts reserved for claims, decide if you need to add more. A negative available balance suspends hosted apps. Optional databases cost credits even when idle. See the estimates and Developer workspace → Hosting usage. |
| Cash compensation | Reviewed separately. Wallet allocations and your own app use can fund hosting but never become cash. A compensation request PDF is not a tax invoice. Preparing a supplier payment never sends money; apps have no payout API. |
You remain responsible for your software, legitimate charges, delivery and support to DryBits. Read the Developer Services Agreement; this guide does not replace it.
Session expiry without losing work
When a session expires, protected fetches return JSON 401 with code: 'session_expired', a signInUrl and header X-Saasland-Session: expired. Page visits redirect to sign-in.
const stop = saasland.session.onExpired(() => showSignInAction());
// In your sign-in button handler, after preserving your draft:
await saasland.signIn({
returnTo: location.pathname + location.search + location.hash,
});
// Reconcile server state before the user explicitly retries a save.
stop();
| Call | Behavior |
|---|---|
session.onExpired(cb) / onRestored(cb) | Notify on confirmed expiry or same-user recovery; also check on tab return and reconnect. Return an unsubscribe function. |
session.check() | Signed-in or confirmed signed-out result. Offline, permission and server failures reject. |
signIn({ returnTo }) | Opens a trusted separate window and keeps your page. App-relative paths only. Never replays a request. |
- Keep the editor or game mounted, pause protected actions and keep failed input. Mark navigation dirty.
- For your own fetch calls, treat only HTTP 401 plus
X-Saasland-Session: expired(orsession.check()) as sign-out. Your own 401s, 403s, HTML, redirects and outages are not. - A different account gives
session_user_changed: keep the old user's draft separate and require an explicit reload. - After recovery, reload server state and reuse original action and payment keys. Never auto-replay a write, move or payment.
Browser draft storage must be declared, scoped to the original user and follow consent and retention rules. Never store credentials in drafts.
Browser SDK reference
Import { saasland } from /_saasland/sdk.js on signed-in pages. The platform serves it; do not bundle a copy. It adds the session and CSRF token to platform calls. Your own endpoints still need their own validation and authorization.
| Method | Result / purpose |
|---|---|
saasland.session.check() | { authenticated: true, user } or { authenticated: false, code, signInUrl }; other failures reject |
saasland.session.onExpired(callback) / saasland.session.onRestored(callback) | Unsubscribe function; confirmed expiry or same-user restoration and tab-return checks |
saasland.signIn({ returnTo? }) | Verified same-user session after separate-window sign-in; original document retained, no operation replay |
saasland.me() | { platformOrigin, user: { id }, app, preferences, csrfToken }; app-scoped identity |
saasland.presence.start({ onError }) | { stop }; track this visible page, call await stop() to stop |
saasland.realtime.subscribe(channel, { onEvent, onError, onStatus }) | Promise of { stop }; needs opt-in and your server's channel approval. Resync saved state on connection. |
saasland.realtime.publish(channel, event, { id }) | Promise of { id, accepted }; server-authorized JSON event, no automatic retry |
saasland.presence.get(userIds) | { users: [{ userId, online }] }; up to 50 known app user IDs; see Online friends |
saasland.preferences.get() | Resolved theme, colorScheme and primary/secondary languages |
saasland.preferences.subscribe(listener, { onError }) | Unsubscribe function; initial and changed preferences |
saasland.profile.read({ fields, purpose?, expiresAt?, grantId? }) | { profile }; returns requested public username plus approved private fields; reviews missing private access when grantId is omitted |
saasland.profile.request({ fields, purpose, expiresAt? }) | Advanced. Private-field approval has grantId and selected terms.fields; username-only requests return public: true without a grant |
saasland.profile.checkAge18({ purpose?, expiresAt?, grantId? }) | { is18OrOver: true | false | null }; never the birthday |
saasland.profile.requestAge18({ purpose?, expiresAt? }) | Advanced. Explicit request for the separate age18 permission |
saasland.profile.getAge({ purpose?, expiresAt?, grantId? }) | { age: number | null }; whole years through the separate age permission, never the date |
saasland.permissions.request(options) | Advanced. Generic request with a supported kind; prefer the typed helpers |
saasland.permissions.status(id) | Current request outcome, scoped to this app and user |
saasland.wallet.authorize(options) | { id, status, credits, app, idempotencyKey, authorizedAt, expiresAt, completedAt? } |
saasland.wallet.payment(id) | Current one-time payment state |
saasland.wallet.advice(id) | Complete and settle a saved one-time action; safe to retry |
saasland.wallet.release(id) | Release an unfinished hold |
saasland.wallet.subscribe(options) | { id, active } after subscription approval |
saasland.wallet.subscription(id) | { id, active } for the current app/user enrollment |
saasland.wallet.charge({ grantId?, credits, idempotencyKey, productName?, description?, ...permissionLimits }) | { id, debited, app, chargedAt, grantId, replayed? }. Without grantId, supply maxCredits, totalCredits, period, expiresAt and purpose. |
saasland.wallet.requestRecurring(options) | Advanced. Reusable capped usage grant |
saasland.wallet.check({ credits, comparison, purpose?, expiresAt?, grantId? }) | { matches }; reviews missing permission when grantId is omitted |
saasland.wallet.requestCheck(options) | Advanced. Grant for one exact threshold/comparator |
saasland.store.get(key) / put(key, value) / delete(key) | Stored value or null / { ok: true }; app/user-scoped JSON |
saasland.files.list() / upload(file) / download(key) | { files } / resolves without a value / { url, method } |
saasland.navigation.register(options) | { update, openMenu, dispose }; platform menu integration |
saasland.storageConsent.get() | { categories } the visitor allowed; empty when unavailable. See Cookies. |
saasland.storageConsent.subscribe(listener) | Unsubscribe function; called now and on every change |
Failures reject with an Error, usually with error.status and error.code (see error codes). Catch them, show a useful message and keep drafts. Never retry payments or external writes with a new operation key.
Troubleshooting and release checks
SDK error codes
error.code | Status | Meaning / what to do |
|---|---|---|
permission_denied | 403 | User denied. Explain the limited feature; a later user action may ask again. |
permission_unavailable | 403 | Review expired or is no longer available. Ask again from a user action. |
session_expired | 401 | Signed out. Keep work and offer sign in. |
session_user_changed | 409 | Another account signed in. Keep drafts separate; reload to switch. |
session_shell_required | - | Open the app inside saasland.io (Launch app). |
session_sign_in_cancelled, session_sign_in_timeout | - | Sign-in window closed or timed out. Your page is still open; try again. |
age_restricted, birthday_required | 403 | A recurring charge failed the payment's minimumAge. |
invalid_response | varies | The platform returned something unexpected. Retry safe reads later. |
Common problems
| Symptom | Check / recovery |
|---|---|
| App user ID differs from Settings | Expected: Settings shows the platform ID; the app gets its own stable usr_… ID. See User identities. |
| Username changed or is not set | Refresh saasland.me() for the current user.username; use a display fallback for null. Keep data keyed by user.id. |
| 401 / sign-in required | Launch through saasland.io again. SDK services always need sign-in, even on apps with public pages. |
| 403 / access denied | Check developer setup, tester access and grant scope/expiry/revocation. Only the user can re-approve. |
| 404 / not found | Check the selected app and current access. Private resources may look absent on purpose. |
| 409 / conflict | Old app address, changed configuration, or an operation key reused with different terms. Reload state before retrying. |
| 429 / rate limit or busy runtime | Keep input and honor Retry-After. SDK safe reads retry short waits at most twice with jitter; raw fetch callers handle their own retries. Longer waits expose retryAfterSeconds. Check payment/write state before resubmitting. |
| Permission review will not open | Open the app in its current shell and ask from a user click. Closing or denying grants nothing. |
| Payment or provider request timed out | It may have succeeded. Check the saved operation, payment or provider state before retrying or releasing. |
| Upload or build fails | Check archive limits, Dockerfile/context paths and public dependency installs. See Deployment history. |
| Health check fails | Linux/amd64, the configured PORT, binding to 0.0.0.0, exact HTTP 200, no external calls in the health route. |
| API key is set but server fetch fails | Allow the host in Outgoing firewall, check activation and runtime update, and make sure the HTTP client honors HTTPS_PROXY. |
| Data disappears after a request or redeploy | Memory and local files are temporary. Use durable storage. |
| Public page is unstyled, has broken images or stays on “Connecting” | Check resource redirects while signed out. Serve public files under /public/ or add exact paths. Do not load the SDK until signed in. See public pages. |
Before releasing your app
- Health route, asset loading, desktop and phone layouts, keyboard use and visible error states.
- Owner, tester, unrelated user and signed-out access, and per-user data isolation.
- Permission denial, closed review, partial profile approval, expiry and revocation.
- Payments: price/operation binding, insufficient funds, retries, duplicates, saved delivery and settlement recovery; subscription plan checks and each cancellation type you offer.
- Source updates and failures while the previous version keeps serving.
Capabilities and limits
The portal and your app's configuration decide what an app can use. Code or examples alone never enable a feature or grant permission.
| Capability | Status |
|---|---|
| HTTP containers, shared sign-in, app-scoped identity | Supported |
| Profile and wallet | Requested from the user at runtime; no configuration needed |
| Files, Datastore | Turn on in configuration |
| Appearance, languages, app menu | SDK; you supply translations and styles |
| Public pages | Published app plus public paths |
| External HTTPS APIs | Server-side, through Outgoing firewall destinations |
| Managed PostgreSQL | Optional; charged in daily hosting |
| Age limits | minimumAge on paid features against a self-declared date of birth; no verified age assurance |
| App-joining legal gates, email-domain gates | Unsupported; a policy URL does not implement them |
| Live messaging | Optional AppSync Events per app; usage in daily hosting |
| App-hosted WebSocket servers, always-on workers, scheduled jobs, external SQL, custom domains, GitHub imports, camera/microphone, payout APIs | Not supported |
| Resource | Limit |
|---|---|
| Source upload | 25 MiB ZIP; 100 MiB expanded; 5,000 entries. Uploads are unlimited (each replaces the previous ZIP); 10 publishes (builds and deployments) per creator per UTC day. |
| Image / runtime | 1 GB including wrapper; 256/512/1024/2048 MB memory; 1-20 seconds; ports 1024-65535 except 3000 and 9001 |
| App HTTP traffic | 1 MiB request, 4 MiB decoded response. Per app/account: reads 60/second and 600/minute; writes 20/second and 120/minute; CDN grants 120/second and 2,400/minute. Anonymous dynamic traffic: 120/second and 1,200/minute per app/network address. Fixed windows; endpoint-specific limits still apply. Runtime ceilings: 128 active calls/app, 192/creator, subject to shared capacity. |
| SDK JSON / files | 32 KiB JSON request; 5 MiB per file; list up to 100 files; signed URLs valid for 120 seconds |
| Environment | 30 keys and 2,500 JSON bytes; reserved platform/database names excluded |
| Public paths / navigation | 50 paths of up to 256 characters; 12 menu items |
| Outgoing firewall | 20 destinations, port 443 only |
| Presence | 50 IDs per query; 20 requests per user/app/minute |
| Live messaging | 8 KiB event; four subscriptions per page; 30 requests per app/user/minute |
| Messages to users | Title 120, body 2,000 characters; 5 per user/app/day, 1,000 per app/day, 60 per app/minute |
| Artwork | JPEG/PNG, 2 MiB and four megapixels per image |
| Permission requests / grants | Review request expires after ten minutes; profile/threshold grants default to 30 days, maximum one year; usage charges need an explicit expiry |
| One-time holds | 24 hours after approval; subscriptions use their own prepaid periods |
| Browser storage | 20 declared items; retention up to 180 days |
Cookies and browser storage
Every cookie, localStorage and sessionStorage key your app or its libraries use must be declared. Visitors see your cookie policy and the exact list on their first visit.
- Exercise every feature while signed in as the developer. saasland.io records storage names and types it sees (never values), including blocked attempts.
- Explain each item in Configuration → Cookies & browser storage → Review storage & cookie notice: purpose, provider, category and retention (up to 180 days), plus why a necessary item is needed. Add anything discovery missed (up to 20 items), or choose No app browser storage.
- Confirm the app cookie policy. saasland.io can draft it with AI; edit and confirm it.
- Publish. No rebuild needed; visitors reload to get the change. Unexplained items or an unconfirmed policy block publication.
const consent = saasland.storageConsent.get();
if (consent.categories.includes('preferences')) {
try { localStorage.setItem('saved-view', 'list'); } catch { /* Use memory. */ }
}
const stop = saasland.storageConsent.subscribe(choice => {
// Stop optional work when its category is absent.
});
| Rule | Details |
|---|---|
| Names | 1-80 letters, digits, . : _ -, starting with a letter or digit, no personal data. Reserved prefixes: __Host-, __Secure-, saasland, cognito. |
| Cookies | Browser-set, host-only, Path=/. Server Set-Cookie headers are always dropped and flagged in previews. |
| Unsupported | IndexedDB, Cache Storage, workers, third-party trackers, fingerprinting |
| Optional categories | Start optional work (preferences, analytics, marketing) only while its category is allowed. Undeclared or declined keys fail; catch errors and keep core features working. |
Rejected names and new versions
Each deployment starts a new observed inventory; confirm the full list for every uploaded version. Rejected findings show the type, the naming problem and the name when it is safe to show. Older reports without details are advisory: reload the developer preview for current details. Fix invalid names in source, deploy and preview again; redeploying unchanged source does not fix them. Choices are made only in the trusted saasland.io Cookie settings, and changed disclosures need fresh opt-in. MCP can prepare the inventory and policy before the owner publishes. See the Cookie Policy for enforcement limits.
Hosting price estimatesThese estimates assume free allowances are exhausted. No free tier, promotional credits or discounts are deducted from requests, execution or storage.
No flat app fee and no platform surcharge. Private and published apps pay the same rates.
| Resource | Unit | Estimated credits |
|---|---|---|
| Lambda requests | 1 million requests | 17.3 credits |
| Lambda execution (x86) | GB-second | 0.00144 credits |
| Container image storage | GB-month | 8.63 credits |
| Standard log ingestion | GB | 54.3 credits |
| Compressed log storage | GB-month | 2.8 credits |
| Small Linux build | build minute | 0.431 credits |
| Security scan of an uploaded version | image | 9.49 credits |
| Security rescan after a new CVE | image rescan | 0.863 credits |
Frankfurt · verified 2026-09-13, standard paid rates.Estimates use standard paid resource prices and the exchange rate dated 2026-09-11. Actual usage and dated exchange rates decide the charge. Storage prices cover a full month; partial months cost proportionally. Numbers are rounded to three digits.
Example: 2 million requests a day, 512 MB memory, 100 ms each ≈ 178 credits / 24h.Requests and execution only, all at paid rates. Logs, image storage and other services are extra. An unused Lambda function has no execution charge.
Shared files, datastore, gateway and delivery are paid by saasland.io for now.Shared files, datastore, gateway, delivery, authentication, network and reporting costs are currently funded by saasland.io. Dedicated PostgreSQL has separate authorization. Database and runtime-secret charges follow actual usage. Charges use available credits in your Developer Account; fractional credits accumulate until a whole credit is due. Pending usage cannot cover hosting until settlement, and a negative balance must be covered to restore hosting.