Skip to content
Fermium

Apps and managed functions

Build an HTML app, add Fermium data and managed backend functions, test a revision, and publish it with explicit compute limits.

An app is the container for one job. It holds that job's tables and forms, and, when the job needs them, a page and the functions behind it: HTML, CSS, JavaScript, data and backend code stay together in Fermium. A database is never a thing beside an app; it is the tables inside one. An app can stay tables and forms only. You can author a page and functions in the browser or through Fermium's connected AI tools, including on the Free plan.

Every workspace, Free included, can publish an App and run its functions, routes and scheduled jobs. Each plan includes a monthly allowance of function time: one hour on Free, 5 on Starter, 10 on Team, 50 on Business and 200 on Enterprise. Nothing above it is charged unless a workspace owner authorizes additional compute with a spending limit. Ordinary browser-only pages and forms remain a separate publishing path.

The app screen

For the people it was built for, an app opens in use: its page, and a tab for each of its tables. Nothing else is on the screen. The header names the app, the folder it lives in (access comes from that folder), who can open it, and whether one of its forms is open to anyone with the link. Open app in the header opens the page at the app's own address, with nothing of Fermium around it.

People who can edit the app land somewhere else: on its Overview, drawn as a map of its parts. They also see Share and Builder in the header, and the sections the app is built from, down the left:

Section What it holds
Overview What the app is for, what happens when it is used, its parts and what needs attention. See Read what an app does.
Page Preview (published or saved draft), Code and History.
Tables The grid and charts of each table, with Used by for the chosen table.
Forms Every form, under the table it adds rows to, and New form.
Automations What starts each function, who it runs as and how its last run went; then Functions, Schedules and Webhooks.
Activity Runs and changes to the tables in one list, then Runs and Analytics.
Addresses Every address the app answers on.
Settings Pause, limits, secrets and the advanced operations; Access is sharing.

Use the app, at the top of the sections, shows the app as everybody else sees it: the page and the tables. Edit app in its header comes back. A link that names a view opens that view for anyone who may see it, and an app with nothing saved yet opens on its code. Builder opens the AI builder in a panel at the right of whichever section you are in, and it stays open while you move between sections. The same panel has Details: press any part of the app (a table, a function, a form, an address) to see what depends on it before you change it. On a narrow window the sections become a row above the content and the panel opens over the screen.

Every view has its own address, so you can link to a section, a table or a file. Addresses from before the sections existed still open the same thing.

The Builder

Builder is the AI builder for the app you are in. Every workspace has one, built in: there is no Agent to create or set up first, and it does not use up one of the Agents your plan allows. It is made the first time somebody opens the panel.

  • Chat reads the app and answers. Build may save a draft revision, check it and test it. It never publishes: a person presses Publish.
  • It works as you, with your access, and only on the app it was opened in. Asked to change another app, it refuses; open the Builder in that app instead.
  • It uses the workspace's AI credits. If the panel says the Builder is switched off, a workspace owner or admin switched it off for the workspace.
  • Owners and admins can open the Builder under Agents by its address (/app/agents/builder) to write what every app in the workspace should follow, to choose its model or to switch it off. It is not in the list of Agents, because it is not one of the Agents you made.

The app's own address

Every app has a hostname of its own, <name>.fermium.bot. The name is the app's title when the app is made: "Client intake" is client-intake.fermium.bot. If another app already has that name, four letters are added to keep the two apart (client-intake-7k2q.fermium.bot). Once the app has a page published, Open app in the header opens it there, and it is the first row under Addresses. The window holds the app's page and nothing of Fermium: no navigation, no header, no tabs.

  • Renaming it. Anybody who can edit the app can change the name: under Addresses, press the pencil beside the address. Use 3 to 40 lowercase letters, numbers and hyphens. A name belongs to one app, and a few are kept back (www, login, fermium and the like). The old address stops working the moment you save, so tell the people who use it.

  • Its link. The app's document link, https://fermiumusercontent.app/d/<id>/ (or the same path on your workspace's own link host), opens the same page and is listed second.

  • What the hostname serves. That one app: its page, and everything else of it that has an address (one root). Not another document, not the wiki, not Fermium's own API.

  • Who can open it. The people the app is shared with, signed in to Fermium. Someone who is not signed in is sent to sign in and comes straight back; that lasts 12 hours per browser. Someone the app is not shared with gets the page every document shows for that, where a workspace member can ask for access. That is Restricted, the default. The app's access can also let in people who are not signed in: anyone with the link, or anyone with a password.

  • What the page can do. What it does in Preview: list the app's tables, read rows, add rows, call the app's functions and read the result of a call, as the person who opened it and within the same limits. It is always the live revision; a draft is previewed inside Fermium.

  • When there is no page to show. A paused app says it is paused. An app with nothing published, and an app that only holds tables and forms, show a short page that points into Fermium, as the link did before.

  • On your own domain. A workspace administrator can bind a path on a hostname the workspace verified to the app, for example tools.example.com/intake. The page is served at that path and below it. See Custom domains.

The app's own code runs sealed, here as in Preview: it gets no cookie and no network, and reaches the app only through the page that holds it. See Two origins.

One root for everything of an app

The app's address is its root, and everything of the app that has an address is under it. For "Company board" at company-board.fermium.bot:

Address What it is
company-board.fermium.bot The page. Every path that is not one of the others shows it too
company-board.fermium.bot/forms/board-decisions/ A form of the app, once you give it that name
company-board.fermium.bot/api/summary A function, called from outside the page with POST
company-board.fermium.bot/runs/<id> The result of such a call
company-board.fermium.bot/hooks/<secret> An incoming webhook
company-board.fermium.bot/edit Takes you to the app in Fermium, where it is built
  • Forms. A form is under the root once somebody gives it a name: under Forms, press Give it a short address on the form, or tick the box when you make a new one. An agent passes address to create_form or update_form. A form is never named for you, and here is why. Every form has a link of its own (.../d/<id>/) that cannot be guessed. For a form that is open to anyone with the link, that link is the only thing between the form and a stranger. A short address can be guessed, so on such a form it lets in anyone who finds it, not only the people you sent the link to. That is yours to decide, form by form:

    • A form that asks for a sign-in or a password still asks for it at a short address. Whoever can edit the form can name it. In the new-form dialog the box is ticked for these.
    • A form open to anyone with its link can be named by its owner (in a shared space, by whoever can edit it there), the people who may change who can open it. The dialog leaves the box unticked and says what ticking it means.

    The name is yours to choose: 1 to 40 lowercase letters, numbers and hyphens, one per form in an app. It stays when the form's title changes and when you change who can open the form, so check the form's short address before you open a form to anyone. Remove address takes it away. Served at its short address a form behaves as at its own link: it keeps a respondent's place, takes the answer, and starts another response at the same address. Its own link keeps working either way.

  • Functions. POST to the function's path with a personal token (Authorization: Bearer <token>); people who can comment on the app can. The answer is a queued run and its id; GET .../runs/<id> with the same token gives the result. Where the app's access lets in people who are not signed in, a function you ticked for visitors can be called without a token, or with the link's password as HTTP Basic. A browser sign-in to Fermium does not count at this address.

  • Webhooks. A webhook's secret link is given under the root when it is made. Links made before keep working.

  • /edit. The app is built inside Fermium and nowhere else, so this address sends you there; Fermium asks you to sign in if you are not. Inside Fermium the address still has the app's id in it.

  • On your own domain. A path bound on your domain is the root in the same way: tools.example.com/intake/forms/board-decisions/, tools.example.com/intake/api/summary. When an app has one, Addresses lists everything under it; the Fermium hostname serves the same paths.

  • What does not move. Every address an app had before keeps working: a form's own link, fermium.app/api/apps/<id>/invoke/<route> for a function, the webhook links on fermium.app, and the app inside Fermium.

The page itself cannot read its address (it runs in a sealed frame), so these names take nothing away from it.

Who can open it, and visitors

An app uses the access every page on Fermium has, set in the same place. In the app, press Share. Who can open has three choices, and under it are the people and groups the app is shared with:

Who can open Who gets in What they get
Restricted, the default The people and groups it is shared with, after they sign in to Fermium or through your company's sign-in The app as themselves, inside Fermium and at its address
Anyone with the link Anyone who has the app's address. No sign-in The app's page at its address, as a visitor
Password Anyone who has the address and the password you set The same, after the password

It is the control a document has, with the same rules. The app's owner changes it; in a shared space, the people who can edit there. A workspace policy that does not allow links without a sign-in refuses it for an app as for a document.

The last two let in people who are not signed in: a price calculator, an intake desk, a status board. Such a visitor gets the page and nothing more until you say so. Under Who can open, What somebody who is not signed in can do lists:

  • Tables, each with Read rows and Add rows. Reading shows a visitor every row and every field of that table, so tick it only for a table that holds nothing private. Adding lets them add a row and not read any.
  • Functions the page calls, by path. A visitor can call the ones you tick.

Nothing is ticked to begin with. Everything else the page asks for is refused to a visitor, whatever its code says, and tables and functions you add later are closed to visitors until you tick them. What you ticked is kept when the link goes back to Restricted, for the next time it is opened.

  • What is never public. The screens where the app is built: its files, its settings, its runs, its other tables. Inside Fermium the app stays for the people it is shared with. Only the page at the app's address, at its link and at a path you bound on your own domain is shown to a visitor.
  • Whose access a visitor uses. A visitor is nobody, so the rows they add and the functions they call are done with the access of the member who set the link's mode or last saved the list, and recorded as a visitor's. If that member leaves the workspace or can no longer edit the app, visitors are shown a short page that points into Fermium until somebody sets the mode again under their own name. Share says so when it happens, and why.
  • What it costs and what stops abuse. A function a visitor calls uses the app's compute like any other run and counts against the app's monthly limit under Settings; when the limit is reached the app's functions stop until you raise it or the month ends. From one network address a visitor gets 20 added rows and 20 calls a minute. Visitors together may keep only half of the app's queue busy, so schedules, webhooks and signed-in people are not shut out. A function gets what a visitor typed: check it in the function before using it.
  • What a visitor is shown of a run. Its state and its result. The output a function logged and the text of an error stay with the people who edit the app.
  • A password. The address asks for it the way a password-protected document does, and remembers it for the browser's session. Setting a new password stops pages that were opened with the old one. Somebody the app is shared with, signed in at the address, is not asked for it.
  • When it is paused, what search engines see, and frames. A paused app tells a visitor it is paused. The page is served with the instruction not to index it, like every page at these addresses, so it is found by its address and not through a search engine. It also refuses to be shown inside a frame on another site, so it cannot be embedded in a page of yours; link to it instead.
  • Plans. Every plan has all three choices. On the Free plan the page carries the Fermium badge that its documents carry.
  • Using such a page as yourself. At the address you are a visitor until you sign in there. Add ?signin to the address (https://client-intake.fermium.bot/?signin) to sign in and use the page with your own access. To see what a visitor sees, open the address in a private window.

The app's header and the Apps list show Public page or Password page while visitors are let in. Addresses says who the page is for, with a button to Share, and the Overview's map marks every part a visitor can reach: the page, and each table and function you ticked. Agents set the mode with set_visibility and the list with configure_app_public, and should do either only when you ask.

Invite customers to return to their own records

On Team and above, open the app’s visitor access settings and choose a visitor directory. Reuse the directory from your customer portal, or create a local directory for this app. Select the directory, group, or individual who can open it. Customers use no workspace seats. The same person can choose Sign in as a workspace member to use their staff permissions.

For a returns desk, select Read own records and Add records for the Requests table. Fermium assigns each submitted row to the signed-in customer. Another customer at the same company sees their own requests. Earlier and staff-created records stay in the staff view. Use firmi.query(tableId, { limit, offset }) to page through personal records and firmi.getRecord(tableId, recordId) to open one. A publisher can grant downloads from specific attachment fields and calls to specific published functions. The page receives the capabilities granted for that customer.

For example, a return can have one or more receipt files. When the publisher enables downloads on the receipt field, use the file ID returned with the customer's record.

const record = await firmi.getRecord(requestsTableId, returnId);
const receipt = record.data.receipt?.[0];
if (receipt) {
  await firmi.downloadAttachment(requestsTableId, record.id, "receipt", receipt.id);
}

Block ends that customer’s access on their next request. Restore lets them request a new sign-in link and recover their original records. Turning off customer sign-in or moving below Team closes customer access. While a directory is enabled or its customer records are present, the app requires a restricted link.

Existing apps with email-link customer sign-in can move their invitations and record owners into a visitor directory through the app’s visitor settings. Customers sign in again to use the new directory. An administrator can later make a local directory available to other apps in the workspace. Each additional app needs its own grant. Choose customer access and sign-in methods.

Create and preview a draft

  1. In Library, open a folder and choose New → App from the file browser's menu. Give the app a title and create it. With Start with a Requests table ticked it opens on that table; without it, a new app opens on its code.
  2. Under Page → Code, edit the source, and press Save to save a revision.
  3. Open Page → Preview → Saved draft to inspect the saved page. Save again to preview further changes; unsaved editor changes are not part of the saved preview.
  4. Use Tables to manage the app's tables and records. It is the same grid and charts a database has, inside the app. Each table has its own address, so you can link straight to one. The app's forms are under Forms, and what it sends to other tools is under Automations.
  5. Add standard-library JavaScript handlers, then Prepare the saved revision. Preparation validates the exact source in the production sandbox.
  6. Test functions from the draft. Test runs discard data writes. Review the run, result, and managed log before publishing that prepared revision.
  7. Publish the prepared revision, then configure only the routes, schedules and webhooks the app should expose.

While you edit, the app header names the live revision, for example Live r3, or says Not published before the first publish. When you have saved a revision newer than the live one, a Draft ahead: r4 label appears and Publish becomes the primary button. Visitors still see the live revision until you publish. Once the live revision is the latest save, the label clears and Publish returns to a secondary style. Publishing leaves you where you were; it does not move you out of the code. Back in Use the app the header leaves the numbers out: Live, or Changes not live yet when a draft is waiting.

The code view

Page → Code is a code view. On the left, a folder tree shows the app's files, the manifest and the managed fermium.log. Use the arrow keys to move, Right and Left to expand and collapse folders, and Enter to open a file. Search files looks through every file and the manifest; choose a result to open the file at that line. New file takes a relative path such as api/hello.py and creates the file in the draft.

The editor and revision comparisons detect the language from each filename and syntax-highlight it; switching files switches the language as well. Unknown extensions remain plain text rather than being guessed.

Edits stay in the browser until you press Save, or Ctrl/⌘+S in the editor, which saves a new revision. fermium.log is read only. You never need git.

History, compare and roll back

Open Page → History to see every saved revision, newest first. The live one is marked live and the newest latest. Choose From on one revision and To on another to see which files changed and the lines that changed in each. Source retention removes old idle drafts; those show as removed by source retention.

Roll back on a revision saves its files and manifest again as a new draft. It publishes nothing, so visitors still see the live revision. Publish the new draft when you want it live. Agents have the same three actions: list_app_revisions, diff_app_revisions and rollback_app_revision.

Saved draft previews can read live app data but cannot write records or access App secrets. Backend handlers read their App's tables through their managed context, live and with filters, sort and paging, and stage appends, updates and deletes that commit together when the run succeeds. They can read only the secrets configured for that App. Creating or saving a draft never publishes it automatically.

Read what an app does

An editor lands on the Overview. It is written from the app's own settings, so it is the same for every app, whoever or whatever built it. It opens as the Map; List shows the same thing as sentences, and the choice is remembered in your browser. On a phone, where the map does not fit, the lists are shown.

  • About is what the app is for, in its builder's words, with who last saved a revision. Edit changes it in place. It sits under the map too.
  • What happens has one short list for each way in: someone opens the page, someone submits a form, a schedule comes due, a request arrives at a webhook, someone visits a hostname bound to the app. Each list says who can use that way in, which function it starts and as whom, and what the function may touch. A name in a sentence is a button: press it, or Details, to open that part.
  • Parts counts the page, tables, forms, automations, addresses and secrets (names only). Each tile opens its section. Needs attention lists what is not working: a paused app, a schedule or webhook whose member is no longer in the workspace, a trigger that starts a function the live revision no longer has, a job that failed last time. Each one has a button that shows the part it is about, and the number beside Overview in the sections counts them. On the map, the count at the top right leads to this list.
  • Map draws the same thing in four columns: ways in, what runs, tables, goes out. A solid line is a setting somebody made. A dashed line is something every function is allowed to do (read and change the app's tables, contact the hosts the manifest allows); which function really does it is only in its code, so it is drawn once for the group. Press a part to open its details; the parts it is not connected to step back.

When a saved draft is newer than the live revision, Live r3 | Draft r4 at the top chooses which one the Overview describes. The draft shows what it adds (a new function is marked New in this draft) before any of it runs. While the draft is chosen, Automations, Addresses and a part's details describe it too: each says so in a line at the top, with Show what is live to go back. An app that was never published shows its saved draft. An agent reads the same thing with get_app_map, and the draft with revision="draft".

Before you change a part

Pressing a part opens Details at the right, with Before you change this:

  • Used by: for a function, what starts it; for a table, what writes here, what reads from here, who is notified of changes and which linked tables point at it or are pointed at. Each line says whether it is a setting somebody made (Configured) or something any function is allowed to do. Press a line to move to that part.
  • Runs as: whose name a run is recorded under. A schedule or a webhook runs as the member who made it, and stops if they leave the workspace.
  • Who can reach it: the app's audience, anyone with a form's link, anyone who holds a webhook's secret link.
  • Can it be undone: code and settings are a draft until you publish and can be published again from an earlier revision. A row that was changed stays changed.

Below that, What happens repeats the lists this part takes part in. In Tables, Used by beside the table tabs opens the same details for the chosen table.

Addresses

The Addresses section lists every way to reach the app from outside it, grouped as the page, the forms and the automations: the app's own address, each hostname bound to the app, the way into Fermium, each form, each function the page can call and each incoming webhook, all under the app's root once it has one. A form you have not given a short address is listed with its own link. Each row says where it leads, who can use it, what they get back and whether it is live, and has a copy button. The app's own address and a bound hostname also have Open. A webhook's secret is not shown again, so its address cannot be copied from here. Schedules are not listed: they have no address. Who can open the page, below the list, says who the page is for and leads to Share, where that is changed.

Schedules and webhooks

A published handler can run on a cron schedule with an IANA timezone, or on demand from another service: a webhook is a secret URL, created per handler after publishing (Automations → Webhooks, or configure_app_hook), that queues the handler with the request as its input: the headers, the query string, the body parsed as JSON or form fields, and the raw body text. The sender receives 202 Accepted with the run id; what the handler did with the event is in the app's runs and fermium.log. Verify a signing sender such as GitHub, Stripe or Slack inside the handler with crypto.hmac over the raw body and the signing secret stored as an App secret. The URL is shown once, in a dialog that forgets it when you close it; rotate it to replace it (the old URL stops at once), disable it to pause deliveries, or remove the webhook. Both schedules and webhooks are available on every plan.

Analytics

Activity → Analytics shows page views of the published app and handler runs, per day for the last 90 days, with today and 30-day totals. The same totals appear per app in get_app_usage. It is free on every plan. A page view is one load of the published page; the count holds no visitor, address or cookie, and nothing is requested from outside Fermium. Opening the live app yourself counts as a view, and a draft preview does not.

Automations lists what starts each function: the page calling it, a schedule or a webhook, with who it runs as, how its last run went and whether it is on. Functions that nothing starts are listed under it, and so are the rows the app's tables send to other tools through outgoing webhooks.

Automations → Functions lists every route and job the published revision declares, with its triggers, who may call it, its last run and a link to its run history. Editors see it; an agent reads the same rows from get_app.

Automations → Schedules shows each schedule in words with its time zone, its next run, its last run and its last error. Pause it, run it now, edit its cron and time zone, or remove it; removing keeps its past runs. Only the app owner or a workspace administrator can use these controls, and the page shows the API's message to anyone else.

Schedules use five-field cron. Weekdays follow standard cron: 0 or 7 is Sunday, 1 is Monday and 6 is Saturday, so 0 15 * * 5 runs Fridays at 15:00 in the schedule's timezone. Names such as fri or mon-fri also work.

Initial runtime boundaries

  • JavaScript standard-library handlers are supported. The manifest accepts python too, but its runtime has not shipped: saving a Python revision returns a warning and preparing it fails until it does. Declared third-party packages fail preparation until the package build path is enabled.
  • Every preparation or invocation runs as a short, resource-limited sandbox job. HTTP routes have the tighter request timeout; background invocations may run only up to the configured maximum.
  • Handlers run with no Kubernetes identity. Outbound fetch reaches only the hosts the manifest lists under network.allow, on the public internet; nothing inside the cluster is reachable.
  • Every workspace receives a monthly allowance. A workspace administrator chooses each App's memory profile, 128, 256 or 512 MB, and a larger profile draws on the allowance two or four times as fast. An App also has its own monthly ceiling. App compute never silently draws from the workspace's AI-credit balance; see billing.
  • A manifest may declare checks: handler files that run automatically after a successful preparation as preview runs of that revision, with no secrets and their writes validated then discarded. Publishing waits until every check has succeeded, unless it is forced.
  • Secrets are split into short-lived execution inputs, redacted from results and logs, then removed with the run resources.

Clone and push the source with git

Every app's retained revisions are also available as a git repository at https://fermium.app/api/apps/<app id>/git. Clone it with any user name and a personal token from Settings → Tokens as the password; each revision is one commit, authored by the member who saved it, with the manifest as fermium.json.

git push origin main saves the pushed files as one new revision, however many commits you push. The manifest is validated exactly as when you save from the editor or your AI tool, and the revision is authored by the member whose token you used, never by your user.name or user.email. A push never prepares or publishes the app. It is refused, with the reason printed next to main, when:

  • someone saved a newer revision first (fetch, rebase and push again);
  • the manifest or a file fails validation, a file is not UTF-8 text, or a path is a link or submodule;
  • the files match the current revision, or you push a branch other than main, or delete main.

After a push, the served history holds one commit for your revision, authored by you as a member, so run git pull --rebase and git drops your local commits as already applied. Editors need edit access to the app, as for a clone.

Work with your AI tool

Connect Codex, Claude Code, or another MCP client. The same app-authoring operations are available through Fermium's tools.

Try: “Create an App for a project request dashboard in [folder]. Add the source files and a requests table. Add a short function that counts requests by status, prepare the revision, run the function as a draft test, and show me the result. Keep it unpublished until I review it.”

Check the result in Overview, Page, Tables and Automations before sharing access. Share in the app's header opens Settings → Access, which controls who can open or edit it in Fermium.

Choose the smallest useful publishing path

Use an ordinary page when HTML and JavaScript in the reader's browser are enough. Use an App when the page needs Fermium-managed data, short backend computation, a route, or a scheduled job. For structured intake without custom code, a form and database remain the simpler path.