for your AI

for people: docs.

tell it to read noback.app/llms.txt. or let it publish by itself: https://apps.noback.page/mcp. to publish to your account, make a token in your account → "connect your AI".

below, what your AI reads (also at /sdk.md; in spanish, at /sdk.es.md).


How to make an app for noback

noback publishes the app you made for a person and gives them a link to use and share it. What the app saves in localStorage is saved and synced by itself, across their devices and with the people they share it with.

So there is no need for:

The usual case: deliver an HTML that works

Most of the time the person copies the HTML you gave them and pastes it on https://noback.app. You don't publish anything: deliver a single complete HTML file, with the CSS and JS inside, that works when opened. If you like, end with: "Paste it on noback.app and you'll get a link to share it".

If you have noback's MCP tools, you can publish it yourself: see "Technical manual", further down. For the usual case you don't need to read it.

How it's shared

noback keeps each app's data in a copy. Whoever publishes the app has theirs: the owner's copy. Whoever opens the app's link sees that copy, with what the owner loaded, and can leave their own: comment, sign up, order, vote. They change or delete only what they left; the owner's and other people's, no (noback stops it). The owner can change or delete everything.

From noback, the owner can also choose how the link shares their data (for example, everyone edits everything instantly, for a family shopping list or a team board, or they only watch), or that everyone starts their own, empty: good for personal tools (expenses, a diary, a game). The app needs nothing for any of these.

And who sees it: private (only the owner), anyone with the link (the default) or public (on their profile).

The same app works the same in every case, with localStorage or with app.db. Don't add your own share button. Any number of people can use a copy, with no limit.

Apps where others leave things

A blog with comments, a menu with orders, an invitation with a guest list: whoever opens the link leaves something and can't touch the owner's. To make it work:

  1. One thing per item. Each comment, order or sign-up is its own item: app.db.collection("comments").add({...}), or a localStorage key with a list that gets elements added at the end ([...read(), item]), or with an object that gets keys added (mural[x + "," + y] = color). noback lets people add to someone else's list or object (also inside it: state.comments.push(...)), but not remove or change what's already there.
  2. Keep the owner's things apart from everyone else's. In one object ({ posts: [...], comments: [...] }) others can add, but not change anything already there (not even their own earlier items). If things need editing or deleting, use separate keys or collections for the owner's things (the posts, the menu) and everyone else's (the comments, the orders).
  3. Show "delete" and "edit" only where it works, with app.canChange(item) (app.db items). If someone tries anyway, noback doesn't save it and tells them "you can only change what you left".
await app.ready
const me = await app.me()             // { author, isOwner, role }
const comments = app.db.collection("comments")
comments.watch(list => draw(list.map(c => ({ ...c, canDelete: app.canChange(c) }))))
if (me.isOwner) showPostEditor()      // what only the owner does

role is "owner" (the owner), "member" (joined with "use it together": changes everything), "contributor" (opened the app's link: leaves their own) or "viewer" (only watches). Each app.db item has in createdBy.author who left it (noback signs it, nobody can pretend to be someone else).

Saving the data

  1. Use localStorage as usual. noback saves it in the copy and syncs it. Variables in memory are lost on reload: everything the person enters has to go to localStorage (or to app.db, further down).
  2. Shared things in JSON; each person's, plain. A JSON object or list (JSON.stringify(...)) belongs to everyone using the copy and noback merges the changes: if two people add something to the same list at the same time, both things stay. One key per list or one per item, both work. A plain string or number (setItem("my-name", "Ana"), the unit, the light or dark theme, the best score) belongs to each person: each one reads their own (a viewer sees the owner's), also with "everyone edits". It isn't secret: it's in the copy's data. An object or list whose name says it's each person's (cart, carrito, prefs, preferencias, or with mine, mio or mia, like rsvp-mine) also belongs to each person. If the app changes what's already there (voting, checking, moving, deleting), noback publishes it with "everyone edits": everyone sees and changes the same, and the owner can undo what each person did in "data history".
  3. Listen to the storage event to see what others change live: window.addEventListener("storage", e => draw()). Otherwise they see it on reload.
  4. Space: localStorage uses the copy's space: 1 MB without an account, 10 MB with Hobby and 100 MB with Pro. A single key can hold up to 6 MiB (the whole whiteboard, for example). It counts what the data weighs now, not its history: deleting frees space. When it's full, setItem throws QuotaExceededError (also when someone else or app.db filled it).
  5. sessionStorage lasts as long as the page. IndexedDB and "pick a folder" (showDirectoryPicker, getFileHandle, createWritable, also navigator.storage.getDirectory) work and save to the copy, in the same space: the folder belongs to the copy, not to the person's disk, and the handle saved in IndexedDB opens it again. A photo takes a third more than the file and each record or file fits in a 6 MiB message: shrink photos before saving them (for example, to 1600 px with a canvas). Don't use Firebase: it doesn't work and the data would be lost. document.cookie works (it's saved like the copy's localStorage and never goes to a server) and navigator.storage.estimate() gives the copy's space. Gemini Canvas's Firebase (__firebase_config) works because noback translates it to app.db. For all of this, localStorage is simpler.
  6. A claude.ai artifact that saves with window.storage works unchanged: shared data (shared: true) goes to the copy and personal data, to each person.
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Shopping</title>
  <style>
    body { font: 18px/1.5 system-ui, sans-serif; margin: 0; padding: 16px; }
    input, button { font-size: 18px; min-height: 44px; }
  </style>
</head>
<body>
  <h1>Shopping</h1>
  <form id="new"><input name="text" placeholder="What's missing" required> <button>Add</button></form>
  <ul id="list"></ul>
  <script>
    const read = () => JSON.parse(localStorage.getItem("shopping") || "[]")
    function draw() {
      const ul = document.getElementById("list")
      ul.replaceChildren()
      for (const item of read()) {
        const li = document.createElement("li")
        li.textContent = item.text
        ul.append(li)
      }
    }
    document.getElementById("new").onsubmit = e => {
      e.preventDefault()
      const text = e.target.text.value.trim()
      localStorage.setItem("shopping", JSON.stringify([...read(), { id: crypto.randomUUID(), text }]))
      e.target.reset()
      draw()
    }
    // What other people add, or the same user on another device.
    window.addEventListener("storage", draw)
    draw()
  </script>
</body>
</html>

Design

Mobile-first and readable for older people: text of 18 px or more, buttons 44 px tall or more, good contrast, simple wording in the language of the person who asked for the app (if unclear, Spanish), with no technical words. Show errors inside the page.

New versions

If they later ask for changes, keep the same localStorage keys (and the same collection and field names in app.db): if you change shopping to shopping-v2, the person loses what they had. If you add a new field, treat its absence as a default value: old data doesn't have it. Don't delete or reset the data on startup.

Apps exported from Claude

A claude.ai artifact exported as HTML works as is: if it calls claude.use("db") or claude.use("user"), noback gives it window.claude and saves in the copy. It supports db.doc and db.collection with get, set, update, delete, add, where, orderBy, limit and live onSnapshot, and on user: id, me, isOwner, canEdit and can("data.write"). The rest (room, sample, assets…) resolves to null, as in a view that doesn't have it.

What works

Libraries from a CDN

The app doesn't load anything from the internet while it runs. JavaScript and CSS libraries from jsDelivr (/npm/), unpkg, cdnjs, esm.sh, skypack or jspm are downloaded by noback at publish and stay inside the app, with their exact version: with <script src>, <link rel="stylesheet">, import (also with importmap), import("…") or a <script> the app creates and gives a src. They count toward the plan's size. Write the full address, ideally with the version (https://cdn.jsdelivr.net/npm/gsap@3.12.5/dist/gsap.min.js); if one doesn't exist or doesn't fit, publishing says so. Other sites are rejected. These get special handling: Tailwind 3, Google Fonts, Chart.js 4, canvas-confetti, qrcodejs, jsQR, SortableJS, Leaflet 1.9 (js and css), Lucide, Font Awesome, Alpine.js 3, three.js and jsPDF (with AutoTable). For icons, emojis or SVG written in the HTML also work.

What doesn't work

The app runs isolated, inside a browser frame with no network of its own. This can't be enabled by changing permissions or loading libraries:

Doesn't work inside the appInstead
Workers from a file or data:, and SharedWorkerBuild the worker from a Blob: new Worker(URL.createObjectURL(blob)) works, without network (like the app). eval and new Function work too.
WASM with threads / SharedArrayBufferUse single-threaded WASM builds. WebAssembly.compile, instantiate and instantiateStreaming are allowed.
Navigating the page to another site (location.href = "https://…")Use a link (<a href>, with or without target="_blank") or window.open(url): noback opens it in a new tab.
Cookies and Firebase (except Gemini Canvas's)Save with localStorage, IndexedDB or app.db; use variables only for what's temporary.
WebSocket and EventSourceTo see what others change live, the storage event (or app.db's watch); for internet data, fetch (see "Internet").
Reading the clipboard (readText) and pointer lockAsk them to paste into a text field.
An offline mode of the app's own with service workers (navigator.serviceWorker, caches)Not needed: register resolves without effect and caches keeps things in memory, so the app doesn't break. noback already does it for the app: once it's been opened on a device, the same link opens it again offline, with its data, and what gets saved syncs when the connection comes back.

Camera, microphone and location

Use the normal API: navigator.mediaDevices.getUserMedia({ video, audio }), enumerateDevices and navigator.geolocation. noback asks the person with the app's name ("QR Reader" wants to use the camera) and then the browser asks for its permission. The stream works for a <video>, for drawing on a canvas (reading a QR) and for recording with MediaRecorder.

Internet

fetch and internet images work in apps saved to an account; some services, without asking and also without an account. Write fetch, XMLHttpRequest or <img src="https://…"> as usual: noback makes the request for the app and gives it back a normal response (res.json(), res.text(), res.blob(), status, headers). Images show up by themselves, including the ones you add with innerHTML, background-image: url(https://…) backgrounds and Leaflet tiles.

// Works the same with or without an account: dolarapi.com is on the list.
try {
  const r = await fetch("https://dolarapi.com/v1/dolares")
  const rates = await r.json()
  show(rates.find(d => d.casa === "blue").venta)
} catch {
  showError("We couldn't get the rate. Try again in a while.")
}

Without and with an account

No plan limits how many people use an app.

Technical manual

What follows is for AIs with tools (MCP), large apps with separate resources and data with an author. To deliver an HTML that the person pastes, you don't need it.

Publish with MCP

Add the MCP server https://apps.noback.page/mcp (Streamable HTTP): it connects without login or token; the step-by-step for each agent (Claude Code, Codex, Cursor, claude.ai, ChatGPT…) is at https://noback.app/get-started.md. Then read get_sdk, write the HTML, validate with validate_app {html} and publish with create_app {html, name?}. get_sdk returns {"markdown": ...} with this guide, the same as https://apps.noback.page/sdk.md (this file); in Spanish it's at https://apps.noback.page/sdk.es.md. Without MCP, the person can also paste or drop the HTML on https://noback.app.

Approval. Connecting asks for nothing. The person approves you once, in their browser, with one tap, the first time you publish:

Never ask for a password or a token. Clients that do MCP OAuth on their own still work. What the person approves is listed and revoked in My account (with an account) or in My apps (without an account); tokens last 90 days. If a call says the credential is invalid, publish again without it to get a new link.

Without an account the app gets an id a-xxxxxx and has the limits of an app without an account (see "Without and with an account", plus 10 new apps per hour per connection). Its link opens the publisher's copy: whoever opens it sees what they entered and adds their own, without touching anyone else's (see "How it's shared"). If the app asks for sensitive data, everyone starts their own. The app belongs to the browser where the person approved you: opening the link there lets them change its settings and save it to their account, and from then on it's no longer deleted. You never get an edit key or a link to claim it.

When you publish, tell the person the message that create_app returns, in the language of the conversation and without adding explanations:

> Your app is ready: openUrl

Keep appId and the HTML. If they ask for changes to that same app, use update_app {appId, html}: it keeps the data and link, as long as you keep the same localStorage keys and app.db collections. Don't create another app for a new version. openUrl is the only thing to share. Without an account, list_apps lists what you published with this connection. If the person already saved the app to their account, update_app answers with connect: they approve you again, signed in.

With an account you publish apps to the account, which don't expire, and management tools are enabled: list_apps, get_app, rollback_app (go back to a version), delete_version (delete an old version, never the one in use, and only if the person confirms), fork_app, list_instances, revoke_link, renew_link and delete_app. The openUrl from creation opens a new copy: for others to see the same data, the person shares from the noback menu. A personal token created in My account → "Connect your AI" also works in the Authorization header.

Apps published before connecting existed keep working: update_app still takes the editKey you got back then.

No MCP client (curl)

To publish, first ask for approval (it gives you url, code and pollKey; take the person to url and ask every 3 seconds until you get token):

curl -s -X POST https://apps.noback.page/api/connect/start -H 'Content-Type: application/json' -d '{"agent":"my-agent"}'
curl -s -X POST https://apps.noback.page/api/connect/poll -H 'Content-Type: application/json' -d '{"pollKey":"<pollKey>"}'

The server is stateless: each request is an independent JSON-RPC POST to https://apps.noback.page/mcp, with no Mcp-Session-Id. Always send these headers (without the double Accept it answers 406):

The sequence is initialize, notifications/initialized and then tools/call. The response is JSON; the tool's result comes as JSON text in result.content[0].text.

MCP=https://apps.noback.page/mcp
H=(-H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -H "Authorization: Bearer $NOBACK_TOKEN")
curl -s "${H[@]}" $MCP -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1"}}}'
curl -s "${H[@]}" $MCP -d '{"jsonrpc":"2.0","method":"notifications/initialized"}'
curl -s "${H[@]}" $MCP -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"create_app","arguments":{"name":"Hello","html":"<!doctype html><html><body><h1>Hello</h1></body></html>"}}}'
From a browser or Python

The same requests work from JavaScript in any web page (an AI that runs in the browser): /mcp accepts every origin (CORS, OPTIONS answers 204) and never uses the browser's cookies: send only the Authorization header. With Python, send a User-Agent of your own (some networks block Python's default one).

const MCP = "https://apps.noback.page/mcp"
const rpc = (id, method, params) => fetch(MCP, {
  method: "POST",
  headers: { "Content-Type": "application/json", Accept: "application/json, text/event-stream", Authorization: `Bearer ${token}` },
  body: JSON.stringify({ jsonrpc: "2.0", ...(id ? { id } : {}), method, params }),
}).then(r => r.status === 202 ? null : r.json())
await rpc(1, "initialize", { protocolVersion: "2025-06-18", capabilities: {}, clientInfo: { name: "browser", version: "1" } })
await rpc(0, "notifications/initialized")
const res = await rpc(2, "tools/call", { name: "create_app", arguments: { name: "Hello", html: "<!doctype html><h1>Hello</h1>" } })
const app = JSON.parse(res.result.content[0].text)   // app.openUrl, app.appId, app.message
import json, urllib.request
MCP = "https://apps.noback.page/mcp"
def rpc(body):
    req = urllib.request.Request(MCP, json.dumps(body).encode(), {"Content-Type": "application/json", "Accept": "application/json, text/event-stream", "Authorization": f"Bearer {token}", "User-Agent": "my-agent/1.0"})
    with urllib.request.urlopen(req) as r:
        return json.loads(r.read() or "null")
rpc({"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2025-06-18", "capabilities": {}, "clientInfo": {"name": "python", "version": "1"}}})
rpc({"jsonrpc": "2.0", "method": "notifications/initialized"})
res = rpc({"jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": {"name": "create_app", "arguments": {"name": "Hello", "html": "<!doctype html><h1>Hello</h1>"}}})
app = json.loads(res["result"]["content"][0]["text"])   # app["openUrl"], app["appId"], app["message"]

app.db: data with an author, live

app.db is optional. It's for when you want rows with author and date, or to redraw live with watch without handling the storage event. The platform injects window.app before your code runs: you don't need to include anything.

await app.ready                       // wait for this before using the rest

const me = await app.user()           // { id, name } of whoever is using the app
const who = await app.me()            // { author, isOwner, role }: see "Apps where others leave things"
const people = await app.people()     // [{ id, name, isOwner, isMe }]: see "Secrets per person"

const tasks = app.db.collection("tasks")

const id = await tasks.add({ text: "Buy bread", done: false })
await tasks.update(id, { done: true })     // changes only those fields
await tasks.remove(id)
const one = await tasks.get(id)            // the object, or null
const all = await tasks.all()              // list sorted by createdAt

// watch calls your function at the start and every time something changes,
// also when another person or the same user on another device changes it.
const stopWatching = tasks.watch(list => draw(list))

await app.share()                     // opens noback's share

Use app.share() only if the person asks for a share button inside the app: noback already offers sharing from its little tab.

To add to or subtract from a number (stock, votes, points), use app.db.increment(n): it adds n to whatever is there, even if two people do it at the same time. Two registers selling the last cookie with stock - 1 leave the stock one down (one of the two writes wins); with increment(-1), two down. It goes in top-level fields, with integers (with decimals it adds just the same, but two at once can overwrite each other). If the field didn't exist, it starts at zero.

await products.update(id, { stock: app.db.increment(-1), sold: app.db.increment(1) })

If only one person can take something (a time slot, a seat, a raffle number, a place in a list), use create(id, data) with that thing as the id. It creates the record only if nobody created it before, and noback decides, not the device: if two people ask at once, one gets it and the other gets a ConstraintError. Checking the list first and then calling add isn't enough, because both see it free.

const bookings = app.db.collection("bookings")
try {
  await bookings.create(`${day}-${time}`, { day, time, name })
} catch (e) {
  if (e.name === "ConstraintError") show("That time is already taken.")
  else throw e
}
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>My app</title>
  <style>
    body { font: 18px/1.5 system-ui, sans-serif; margin: 0; padding: 16px; }
    button { font-size: 18px; min-height: 44px; }
  </style>
</head>
<body>
  <h1>My app</h1>
  <ul id="list"></ul>
  <script>
    app.ready.then(async () => {
      const things = app.db.collection("things")
      things.watch(list => {
        document.getElementById("list").innerHTML = ""
        for (const t of list) {
          const li = document.createElement("li")
          li.textContent = t.text
          document.getElementById("list").append(li)
        }
      })
    })
  </script>
</body>
</html>
Private data

For a contact form, use an inbox: anyone who can submit to the app can add an inquiry, but only the owner can see the list and delete entries. Show the list only when me.isOwner; don't store inquiries in a regular collection or localStorage, where others could read them.

await app.ready
const me = await app.me()
const inquiries = app.db.collection("inquiries", { inbox: true })
document.querySelector("#send").onclick = async () => {
  await inquiries.add({ name, email, message })
}
if (me.isOwner) inquiries.watch(showInquiries)
// The owner can delete an inquiry after handling it:
// await inquiries.remove(id)

For visitors, all() and watch() give [], get() gives null, and changing or deleting fails with NotAllowedError. The owner reads submissions in the app itself, on all their devices. Content is encrypted per person; noback holds the keys and can read it. Submissions previously saved in a regular collection do not become private automatically: anyone who received that copy may keep it.

What you save in app.db or localStorage reaches whoever opens the link in full, even if the app doesn't show it: it isn't secret. For what others shouldn't read (a blog's drafts, the owner's notes, a menu's costs), ask for a private collection:

await app.ready
const me = await app.me()
const drafts = app.db.collection("drafts", { private: true })
if (me.isOwner) {
  drafts.watch(drawDrafts)
  document.querySelector("#save").onclick = () => drafts.add({ title, text })
}
// Publishing a draft: it moves to a regular collection and leaves the private one.
await app.db.collection("posts").add({ title, text })
await drafts.remove(id)
Secrets per person

For what only one person should see (the cards in their hand, their character's clue, who they give to in a secret Santa, a teacher's note to each student), give that person their secret collection with { for: person }:

await app.ready
const me = await app.me()
// Who's here: [{ id, name, isOwner, isMe }]. watch tells you when someone arrives.
app.people.watch(people => drawPlayers(people))

// The owner of the copy (who deals) writes each one theirs:
if (me.isOwner) document.querySelector("#deal").onclick = async () => {
  for (const p of (await app.people()).filter(p => !p.isOwner))
    await app.db.collection("clues", { for: p.id }).set("mine", { text: clueFor(p) })
}
// Each one watches theirs:
app.db.collection("clues", { for: me.author }).watch(([clue]) => show(clue?.text))
Version changes and data

noback saves a checkpoint before running each version on a copy for the first time. The copy's owner can recover its data from more → data history → Back to here, and undo that restore. Recovered data syncs with everyone using the same copy. The history and the checkpoints take up plan space.

_boxy, __proto__, constructor and prototype are reserved names: don't use them as a collection name. A transformation done by your code may run again every time the app opens: first check each record's state and avoid deleting the originals. There is no app.db.migrate; checkpoints let you recover data but don't convert between formats.

Internet with app.net.fetch

app.net.fetch is the same network as fetch, with a different response shape. The first time the app asks for a site off the list, the platform asks the person whether to allow it. If they say no, it fails with an error: show a friendly message and let the app keep working.

const res = await app.net.fetch(url, { method: "GET", headers: {}, body: "text" })
// res = { ok, status, headers, text, json }
// json is the object if the response was JSON; otherwise null.

Example with Open-Meteo (it's on the list: no question), which is free and needs no key:

async function weather(city) {
  const geo = await app.net.fetch(
    "https://geocoding-api.open-meteo.com/v1/search?count=1&language=en&name=" + encodeURIComponent(city))
  const place = geo.json?.results?.[0]
  if (!place) throw new Error("I couldn't find that city")
  const forecast = await app.net.fetch(
    "https://api.open-meteo.com/v1/forecast?latitude=" + place.latitude + "&longitude=" + place.longitude +
    "&current=temperature_2m,weather_code&daily=temperature_2m_max,temperature_2m_min&timezone=auto")
  return { place: place.name, now: forecast.json.current, days: forecast.json.daily }
}

noback packages (.zip)

For heavy code and your own resources (WASM, images, audio), deliver a zip with index.html at the root, an optional noback.toml and its resources. Don't add a wrapping folder. Allowed: .js, .mjs, .css, .wasm, .png, .jpg, .jpeg, .svg, .webp, .gif, .mp3, .ogg, .wav, .json, .woff, .woff2, .ttf and .otf. No other HTML, symbolic links, special files, encryption, ZIP64 or split zips. Up to 4096 entries. Paths are relative, with no leading /, .., empty segments, \, %, spaces, query or fragment. Names are case-sensitive. Each version includes all its resources and its descriptor.

Limits compressed and uncompressed: 5 MiB without an account, 25 MiB Hobby, 100 MiB Pro. index.html keeps the plan's HTML limit: 512 KiB / 2 MiB / 5 MiB. boxy.toml is accepted as a deprecated alias for older packages; use only one descriptor. noback.toml allows up to 16 KiB. Full example:

name = "Mom's medicines"
description = "To log the medicines so the family can see them"
network = ["api.open-meteo.com"]

name is non-empty text (up to 80 characters), description up to 500. name is used if the publish doesn't give an explicit name in the name argument. network allows up to 32 exact domains with no scheme, port or wildcards. It doesn't include subdomains automatically. network = [] rejects every internet connection. The old Spanish keys (nombre, descripcion, red) still work. Without network, the usual per-site permission applies. If network is declared, any site outside that list fails without asking, even if it had a saved permission. Declaring a site doesn't authorize it: it still needs the person's permission and an account. Other keys are ignored with a warning; they enable nothing.

At publish, relative scripts and styles are inlined; images and audio up to 256 KiB become data:. Larger media load separately as blob:; fonts in CSS are embedded as data:. The order of classic scripts with defer is kept by placing them at the end of the body. The transformed HTML can weigh up to twice the package limit; avoid repeating large resources inline. CSS url() resolves from the stylesheet. @import, relative srcset and JS imports between files aren't resolved: bundle the JS (classic or module) and the CSS into one stylesheet. Don't include the SDK: noback injects it first.

For files loaded at runtime:

await app.ready
const response = await fetch("engine.wasm") // relative GET, doesn't go to the internet
const module = await WebAssembly.instantiateStreaming(Promise.resolve(response), imports)
const bytes = await app.asset("data.json") // ArrayBuffer
const imageURL = await app.assetURL("photo.png") // blob: with the file's MIME
image.src = imageURL
// When you no longer use it:
URL.revokeObjectURL(imageURL)

fetch accepts relative paths (optional leading ./), GET and options like signal; it rejects site-absolute paths, other methods and ... Missing paths reject the promise. https:// URLs to other sites go over the internet (see "Internet"). Up to four simultaneous loads per app. Aborting a fetch rejects with AbortError.

XMLHttpRequest works on top of the same fetch (relative paths or internet). For Emscripten, set relative paths (locateFile: path => path) or pass it wasmBinary. Libraries that build absolute URLs from import.meta.url need that configuration. There are no threads or SharedArrayBuffer (workers built from a Blob, eval, localStorage, IndexedDB and OPFS yes). Don't promise automatic compatibility with all of Godot/Pyodide: they need single-threaded builds and bundles without dynamic imports.

Publish the zip by dropping it on https://noback.app, like an HTML. MCP validate_app, create_app and update_app accept zipBase64 instead of html. Don't send both. With an account, the POST /api/publish API also accepts {appId, zipBase64, name?} instead of html. If you have the noback repo: node cli/publish.mjs <appId> app.zip publishes and node cli/validate.mjs app.zip [anon|hobby|pro] validates without publishing. "Take it with you" also puts the package's resources inside the standalone HTML; "Export everything" keeps each original zip and its data separately. Offline, the package opens again with the resources it already loaded on that device; the standalone export carries all of them inside. Keep the original zip to edit and republish: the current chat gets the transformed HTML and doesn't rebuild a package with its resources.

Write rate

The app talks to noback over a connection that accepts up to 120 operations per second (each app.db, app.net.fetch or package-file call; localStorage already batches its writes by itself). If exceeded, it rejects the extra ones; the app can wait a second and try again. In games and clickers with app.db, don't save on every click: gather the changes in memory and write every 1–2 seconds.

let pending = null
function save(data) { pending = data }  // on each click: memory only
setInterval(() => { if (pending) { void points.update(id, pending); pending = null } }, 1500)

On top of that, noback accepts a per-device write rate on each copy that a game or a shared canvas doesn't reach, and another for the whole copy (all its devices added up). If an app writes faster, nothing is lost: the changes reach the others a bit later and noback says so.

A copy's owner can share it with a view-only link: whoever opens it sees the data live, but can't change anything. There, add, update and remove fail right away with a NotAllowedError, and localStorage.setItem stays only in that tab's memory (it isn't saved and nobody else sees it). With the app's link the same goes for someone else's things: setItem on another person's key (except adding to the end of a list or new keys to an object, and changing or removing list items that person added, if they have an id) doesn't throw, isn't saved, noback says so and the app gets what's in the copy (a storage event); what it saves next is saved. Catch app.db errors (try/catch) like any other. (await app.ready).readOnly is true in that case, in case you want to hide the edit buttons.

Each message from the app to noback can weigh up to 6 MiB (text, keys and structure included): a photo or a PDF of a few megabytes as data: fits in an add. Whatever doesn't fit, anything cyclic, anything that isn't data (functions, page elements) and unknown operations reject the promise with an error that says what happened; they never hang. Everything saved counts toward the copy's space and stays in its history: for many large files, shrink them first (for example, a photo to 1600 px with a canvas).