This guide covers what a Custom App is made of, how to build one inside Tenseri, how to test it, and how to work on it from your own code editor and local dev server instead of typing directly into Tenseri's code editor.
If you have not read the Mini Apps Overview yet, start there for a sense of when a Custom App is the right tool.
A Custom App is, at its core, one HTML page. Everything the app needs, markup, styling, and behavior, lives in that single page, written as if it were a small standalone website.
When the app runs, Tenseri injects a script that exposes window.AppContext, which is how the app reads and writes your accounting data rather than working with static content. There is no import or setup step; AppContext is simply available as a global once your page is running inside Tenseri. The full set of what it can do is covered in the App Context guide.
You are free to use any tooling you like while writing the app, bundlers, frameworks, a local build step, as long as what you paste into Tenseri at the end is a single, complete HTML page with no external file dependencies.
1. Open the Apps tab.
2. Click + Create, then choose Custom App.
3. Give the app a name and, optionally, a description.
4. Under UI Code, write or paste your HTML, CSS, and JavaScript into the code editor. If you want a working starting point rather than a blank page, see the Example App.
5. Click Create App.
There is no separate save-and-preview step while you write; the code editor is where the entire app lives, and you test it by actually running it, described next.
Click Open App on the app's card to run it. The app loads inside a sandboxed frame, isolated from the rest of Tenseri's interface, with AppContext available to it. Use this to check that your layout renders correctly and that any reads or writes to your accounting data behave the way you expect.
To make a change, click Edit on the app's card, return to the UI Code tab, adjust the code, and save. There is no live-reload while the app is running; close it and open it again to see your changes.
Because the app runs in a sandbox, it can run scripts, submit forms, show dialogs, and trigger downloads, but it cannot reach outside that sandbox to interfere with the page around it. Keep this in mind if you are debugging something that seems to work differently inside Tenseri than it did elsewhere; the sandbox is intentional, not a bug.
Instead of typing every change into Tenseri's code editor, you can develop locally and pull changes in with one click.
Requirement: both your local server and the app's shell in Tenseri must point to the same URL, set via data-update-url.
1. Serve your app locally, e.g. at http://localhost:8080.
2. Create the shell in Tenseri. Build a Custom App as usual, with data-update-url set to that same local address:
<html data-update-url="http://localhost:8080">
Save it once, even with minimal code, this is the version Tenseri runs.
3. Develop normally in your own editor, with the local server running.
4. Pull in your changes. Open the app in Tenseri and click Check for updates. Tenseri fetches whatever your local server is currently serving and, if it differs from the saved code, applies it, no need to close and reopen the app.
Every read or write your app makes against accounts, transactions, reports, or its own stored data goes through AppContext, and every method on it returns a Promise. A minimal read looks like this:
(async () => {
const accounts = await AppContext.getAccounts();
console.log(accounts);
})();
And a minimal write, posting a transaction, looks like this:
(async () => {
await AppContext.postTransaction(
16, 9, 2026,
'Office supplies purchase',
[{ accountID: 4, amount: 50 }], // debit
[{ accountID: 1, amount: 50 }] // credit
);
})();
This guide will not repeat every method here, the App Context guide is the complete reference, covering accounts, transactions, financial reports, your app's own storage, and currency settings, with the exact parameters, return shapes, and errors each method can throw. Keep it open in another tab while you build.