Skip to content

Sharing

Who can open an App: its Visibility, the people you invite, and how they sign in.

Basemodo stands in front of every App. When someone opens it, Basemodo decides whether to let them in, signs them in if needed, and tells your App who they are (see Who is visiting). Your App never implements login, invitations or passwords.

You share from the terminal with basemodo share, from the Sharing section of the App's page on basemodo.com, or by asking your agent.

Visibility

An App's Visibility says who gets in. Every new App starts Private.

Private

Only the Owner, the Members and the Editors (the people you invited). Anyone else sees a sign-in page and, once signed in, a page saying they have no access. The safe default for anything internal.

Terminal window
basemodo share --visibility private

Anyone who has the address and signs in, with any email. Good for a group you do not want to list one by one. Signing in still matters: your App learns who each visitor is. Someone signed out signs in on Basemodo's sign-in page for your App, on basemodo.com, which says your App will get their email address; signing in there is their yes, so they go straight in, even from an emailed link opened on another device. Someone you did not invite who arrives already signed in to Basemodo, or signed in any other way (one your App starts itself included), is asked once to confirm they want to continue to your App as their email.

Terminal window
basemodo share --visibility link

Public

Anyone opens it, with no sign-in: a landing page, a public tool. Nobody is asked to sign in, so most visitors arrive without an identity and your App must work for them. A visitor who has not signed in is a Guest: the Toolbar shows them as G and offers them Sign in, unless you turn it off. Someone already signed in to Basemodo arrives as a Guest too, until they press Sign in (one click: Basemodo asks them to continue as themselves), unless the App turns on Recognize. A visitor who signs in arrives with their identity. To offer the sign-in from your own pages, link to /.basemodo/sign-in?path= on the App's address: it opens Basemodo's sign-in page for your App on basemodo.com, and the visitor comes back to that path signed in (see Who is visiting).

Terminal window
basemodo share --visibility public

Workspace

Everyone in the Workspace that owns the App, with no list to keep: people who join the Workspace (by invitation, or by signing in with an email at its verified domain) get in, and people taken out of it lose access on their next request. Someone only invited to the Workspace is not in it until they join. The Owner, the Members and the Editors you invited still get in, so you can let in someone from outside too. Only for Apps a Workspace owns.

Your App learns who each visitor is, as always; someone let in only because they are in the Workspace arrives with no X-Basemodo-Role, as on a Link App. Nobody in the Workspace is asked to confirm before continuing to the App: it is their own Workspace's. Anyone else signed in sees a page saying the App is for the people of its Workspace, with a link to request access.

Terminal window
basemodo share --visibility workspace

Inviting people

Terminal window
basemodo share ana@example.com ben@example.com

Each email gets a message with a link to the App. The invitation is pending until they open the App signed in with that email (by a sign-in link, or Google or GitHub with the same address); then they are a Member, and you are told. The link brings them to the App signed in, whatever its Visibility, even a Public App that asks nobody to sign in: if they are not signed in to Basemodo yet, they sign in there first and come back to the App. Inviting someone again sends the email again.

See who has access, and who has not accepted yet:

Terminal window
basemodo share

Remove a Member, or take back an invitation; it takes effect at their next request:

Terminal window
basemodo share --remove ben@example.com

Editors

An Editor is a Member who may also work on the App from their own account: deploy it, roll it back, read its Logs, change its Secrets, run commands and SQL. The developer helping you, without your password or your bill:

Terminal window
basemodo share --editor dev@example.com

Editors cannot change who reaches the App; only the Owner shares it. See Roles.

Access Requests

Someone signed in who reaches a Private App they are not invited to sees a page saying so, with a button to ask for access. You are told by email and in your notifications, and answer in one click on the App's page, or from the terminal:

Terminal window
basemodo share # lists who asked
basemodo share --approve carla@example.com # makes her a Member
basemodo share --decline carla@example.com

How visitors sign in

Visitors sign in on basemodo.com, by a link emailed to them (no password), or with Google or GitHub. One email is one person, however they sign in. Their sign-in lasts 30 days on that device, and it opens every App shared with them.

Opening an App from basemodo.com, or with basemodo open, signs you in to it on the way, even to a Public App that asks nobody to sign in. So you arrive as yourself, with your Toolbar.

The Toolbar

On an App's pages, Basemodo shows signed-in visitors its Toolbar: a small floating pill with who is here now, the App's Visibility, Copy link, and Share for the Owner. Drag it to another corner, or hide it with ⌘. (Ctrl+. off a Mac); the browser remembers both for that App.

On a Public App, visitors who have not signed in see it too, as Guests: their face is a G, and Sign in, where the Owner's Share sits, brings them back to the same page signed in. Everyone sees Guests as G and "Guest", never named, and the App learns nothing about them. Public Apps made before Guests could see the Toolbar had it turned off; turn it on again with basemodo toolbar on.

The Toolbar only shows. It never changes who can reach the App itself: Share (for the Owner) and the lock (for the Owner and Editors) each open a panel on the pill showing basemodo.com, and the change is made there. Click the faces to see who has the App open now; the list changes as people come and go.

It is on for every App, Public ones included: one switch, for every visitor. Turn it off with basemodo toolbar off, from the App's page on basemodo.com, or with toolbar = false under [web] in its manifest, which applies when that Deploy goes live. A Deploy without the line leaves the Toolbar as it is. The Owner or an Editor turns it off or on.

Terminal window
basemodo toolbar off

The Toolbar is a script Basemodo adds to the App's HTML pages, served from the App's own address at /.basemodo/toolbar.js. A Content Security Policy with script-src 'self' lets it in. A strict policy that allows only scripts carrying a nonce keeps it out: Basemodo never edits your App's policy, so that App shows no Toolbar.

Recognize

A Public App lets everyone in as a Guest, people signed in to Basemodo included, until they press Sign in: opening a public page never tells it who you are. An App that needs to know who its visitors are, and still wants anyone to open it, turns on Recognize. Then a visitor already signed in to Basemodo is asked the first time they open the App, "Continue to lunch-rota.basemodo.app as you?", and goes straight in as themselves after. Cancel leaves them on the App as a Guest. A visitor not signed in to Basemodo is a Guest, with no screen, and is not asked again in that browser session.

Recognize is off for every App. Turn it on with basemodo recognize on, from the App's page on basemodo.com, or with recognize = true under [web] in its manifest, which applies when that Deploy goes live. A Deploy without the line leaves it as it is. The Owner or an Editor turns it on or off. It matters only while the App is Public: a Private, Workspace or Link App asks everyone who arrives signed in to Basemodo anyway.

Terminal window
basemodo recognize on

Search engines

Apps are never indexed by search engines: Basemodo answers /robots.txt for every App with "disallow everything" and marks every page noindex, whatever the App says. A Public App can choose to be found, for a landing page: basemodo indexing on, or indexable = true under [web] in its manifest. Making the App anything but Public turns indexing off again.

Webhooks

Other systems (Stripe, Trello, GitHub) cannot sign in. To let them call your App, declare those paths as Public Paths.

Who can change sharing

The Owner or an Editor changes the Visibility, Indexing, the Toolbar and Recognize; only the Owner invites and removes Members and Editors. Roles explains what Owners, Members, Editors and Admins can each do.