A multi-user app usually starts with one database that holds everyone. LastDB starts with one person and one node, on their own Mac, and lets people share from there.
To let people use an app together, the developer builds one place that holds all of them. The developer runs that database, writes the sync, and holds every user’s data in an account that must be protected.
The next app does all of it again. People end up with one copy of their life in each app, and own none of them. No single system holds the full picture, and the person it describes controls no part of it.
Each person runs one LastDB on their own Mac. That is their node. Apps become clients of the person’s database and stop being the owners of the data. That inversion is the thesis: the app comes to the data.
A node holds several named databases, some private and some shared. One person, the publisher, shares a whole database with other people by invitation. A family, a team, or a club is a database that its members all hold. No database holds everyone.
An app built this way has no backend. The developer’s code runs on each person’s machine, next to the data, and the developer hosts nothing.
The node is one background service. Apps read and write it by key over a local Unix socket. Reads and writes happen on the Mac, so an app for one person needs no account and no network.
The cloud is a central service, and it is optional until a person wants backup or sharing. It stores and passes along end-to-end encrypted bytes that it cannot read. It runs none of the app’s code. Backup is set up with lastdb backup connect.
Apps are clients of a person’s database, not keepers of copies. Swap an app and the data stays where it was.
Declare a schema, write, and read by key. That is a complete app for one person. To share, the app sends the same requests, addressed to a shared database.
A database is shared whole, by invitation. Everyone invited can read it. The publisher grants writing by schema and can revoke it.
The cloud holds encrypted bytes and runs no app code. The checks on shared data run on the publisher’s own LastDB.
The short version. The developer guide has the requests.
LastDB is alpha and in active development. It runs on macOS on Apple Silicon only, and it is not ready for production. The starter apps in the App Registry are Brain and LastSecrets.
The database and the apps are free. Publishing an app needs a paid Exemem subscription; Exemem is the cloud service LastDB uses for backup and sharing. People who use a published app pay nothing to use it.