Mentifaber · FaberOS for makersOpen FaberOS

Make apps for FaberOS

FaberOS runs web apps in windows, with one place for permissions, a shared file Shelf, notifications, and AutoFaber, an AI that can operate any app that says what it can do. Foundry, its app store, is open to other makers: send your app from this page, and once it's reviewed it appears in Foundry and FaberOS. This page is everything an app needs, and a checker for your manifest.

1 · The manifest

One JSON object, format faberos/1. It's the same shape the workshop's own apps use.

FieldWhat it is
idUnique, lowercase: letters, digits, hyphens (2 to 40).
name, descWhat it's called, and what it does in one sentence.
entryThe https:// page FaberOS opens in a window.
catIts room: signals, ai, tools, world, play or craft.
hue, glyphIts tile: a colour (0–359) and an SVG path drawn on a 24×24 grid.
permissionsThe browser features the window may grant: fullscreen, autoplay, clipboard-write, and (FaberOS asks people first) camera, microphone, geolocation, clipboard-read, motion sensors, XR. Nothing else is granted.
acceptsFile types it opens from the Shelf, like ".pdf" or "image/*".
verbsWhat AutoFaber may ask it to do (below).
kittrue if it loads the Faber kit.

2 · The Faber kit

Load https://mentifaber.org/assets/os/faber.js. Outside FaberOS every call does nothing and Faber.inOS is false, so the app works the same on its own.

Faber.notify("Indexed", "3 files are ready")      // a notification in FaberOS
Faber.open("orbit")                               // open another app
Faber.save(blob, "report.pdf")                    // put a file on the Shelf
Faber.onFiles((files) => openThese(files))        // take files from the Shelf ("Open in…")
Faber.verbs({ "add-transaction": (a) => …,        // what AutoFaber may ask it to do
              balance: () => "Balance now $412" })

3 · Faber Verbs

A verb is something the app can do when someone asks AutoFaber in words: "log $40 for gas", "track the ISS". FaberOS checks every argument against what the manifest declares, and asks the person before any verb that changes their data. The app's own function does the work and answers in a sentence.

{ "name": "add-transaction", "label": "Add a transaction", "changes": true,
  "desc": "Log money in or out.",
  "args": { "amount": "number", "label": "string", "direction?": "enum:out|in", "date?": "date" },
  "words": "log add spent paid bought expense income" }

Argument types: number, string, date (YYYY-MM-DD), boolean, or enum:a|b|c. A name ending in ? is optional. At most 8 verbs, 8 arguments each.

4 · Check your manifest

5 · Into Foundry

  1. Check the manifest here until it passes, then send it. You get a private link to follow it; keep it, it's also how you send updates.
  2. Each app is opened and tried by hand: what it does, what it asks for, that its verbs do what they say. You hear back on your link, with a note if something needs changing.
  3. Approved apps appear in Foundry and in FaberOS's launcher, marked with who made them, and AutoFaber can operate their verbs. An update waits for review while the approved version stays listed.
  4. In FaberOS your app runs in its own sandboxed window: it talks to FaberOS only from your app's own address and gets only the permissions it declares.

Questions: write to the workshop.