# LastDB > Build for your happiness. On a foundation you own. > > LastDB is a local database you build your own tool stack on > (Brain, Kanban, Situations, LastSecrets, Search, agent skills, and the apps you write — > tools on one foundation you own, not SaaS silos). Deliver slices of your > database to others. > > Local use needs no account. Optional encrypted cloud backup and multi-device sync > register or connect your local database identity (`lastdb --data-dir ~/.lastdb backup connect --env prod`) > without asking for a name or email, with paid cloud storage managed via > `lastdb cloud payment checkout`. Website: https://thelastdb.com Pages are prerendered at build time so agents and curl can read them without executing JavaScript. ## Understand LastDB Interactive system guide: https://thelastdb.com/explore/#diagram Explore 123 parts across memory, disk, cloud, sharing, the data model, protection, data lifetime, and services. Each part explains its purpose, connections, example, and limits. The guide describes source from 14 November 2026 and marks future designs. JavaScript enables the diagram. Public design notes: https://thelastdb.com/explore/sources/design-notes.html ## Install (macOS Apple Silicon) Needs Homebrew, Bun (https://bun.sh), and Node 18+ with npm (npm builds the LastDB Browser UI). Apple Silicon only. Paste-safe for macOS zsh: the bash blocks below have **no `#` comment lines**. Default interactive zsh has `interactivecomments` off, so pasting `# 0) …` yields `parse error near ')'` / `command not found: #`. Put notes in markdown prose, not inside the fence. Skip the Bun line if `bun --version` already works; skip the node line if `npm --version` already works. ```bash curl -fsSL https://bun.sh/install | bash export PATH="$HOME/.bun/bin:$HOME/.local/bin:$PATH" brew install node test "$(uname -m)" = "arm64" || { echo "LastDB needs macOS Apple Silicon" >&2; exit 1; } for tool in brew git bun node npm; do command -v "$tool" >/dev/null || { echo "Missing $tool" >&2; exit 1; }; done node --version git --version git clone https://github.com/EdgeVector/last-stack ~/.last-stack ~/.last-stack/setup ~/.last-stack/bin/last-stack-install-apps brew services start lastdb lastdb status curl --fail --silent --show-error --unix-socket ~/.lastdb/data/folddb.sock http://localhost/health brain init --grant-consent kanban init situations init lastsecrets init org init search init --quiet kanban list ``` Health path is `/health` (not `/api/health`). Expect `{"status":"ok"}`. The installer ends with `RESULT: PASS` or `RESULT: FAIL`. Stop on `RESULT: FAIL`. The bundle installs Brain, Kanban, Situations, Routines, Dogfood Graph, Org, LastSecrets, Search, and LastDB Browser. Kanban Factory is optional. On the first LastDB start, save any recovery phrase in a password manager. Never put the phrase in chat, a source file, or a log. Apps install by proof (LastDB 0.23.5 and later). `last-stack-install-apps` asks `lastdb app resolve` for each app: the newest app commit that the LastDB app registry proved with the LastDB build on your machine. The registry is one static signed index on the Homebrew tap (https://raw.githubusercontent.com/EdgeVector/homebrew-lastdb/main/registry/stable.json, signature checked with the key inside `lastdb`). No account, no live service. Install checks out that exact commit, not `main`. ```bash lastdb app list # the shelf, with the row for your node lastdb app install brain # one app, at its proved commit lastdb app upgrade brain kanban situations # move to the newest proved pair ``` Each night the release loop builds LastDB main, installs every app at a fixed commit in an isolated home, runs this install path, and cuts its own primary over. After a 1 hour clean soak it publishes that pair set to brew stable and to the index together. So a row is on the shelf only because a fresh install of it passed, with the node you get from brew. A `lastdb` older than 0.23.5 has no `app resolve`: the installer falls back to `main` and says so; `brew upgrade lastdb` fixes that. If no row is proved with your LastDB build yet, install stops and names the remedy (`brew upgrade lastdb`, or wait for the next proved set). Database only: ```bash brew install edgevector/lastdb/lastdb brew services start lastdb ``` LastSecrets only (after LastDB is running): ```bash git clone https://github.com/EdgeVector/lastsecrets && cd lastsecrets bun install && bun link lastsecrets init ``` Org only (after LastDB + LastSecrets; share orgs via public-key invite). After init: `org create friends --name "Friends"`; invite path is https://github.com/EdgeVector/org/blob/main/docs/INVITE.md (friend: `org receive` → you: `org invite friends --to 'orgpk1:…' --agent` → friend: `org join --sealed 'orgseal1:…'`). ```bash git clone https://github.com/EdgeVector/org && cd org bun install && bun link org init ``` Search only (semantic plane for brain/kanban ask/search; after LastDB is running): ```bash git clone https://github.com/EdgeVector/search && cd search npm ci --omit=dev --no-audit --no-fund ln -snf "$PWD/bin/search" ~/.local/bin/search search init --quiet ``` Use npm for Search runtime dependencies. It runs the native transformer setup that Bun can block as an untrusted postinstall script. LastDB Browser (read-only local UI for schemas, keys, records, and fields; installed and built by `last-stack-install-apps`, which links the `lastdb-browser` launcher; needs Node 18+/npm). Open it after the node is running: ```bash lastdb-browser ``` It reads `~/.lastdb/data/folddb.sock` by default; set `LASTDB_SOCKET` to point at another machine-local socket. ## Kanban Factory (optional animated board UI) Local theater for your real Kanban board: cards hop between lanes, routines show as a crew, heartbeats tick in the factory log. Read-mostly; runs on loopback only. Needs `kanban` on PATH (from `last-stack-install-apps`) and Node 18+. `last-stack-install-apps` also clones this under `~/lastdb-apps/kanban-factory` when the public GitHub repo is reachable. Standalone (after kanban init works). Serves http://127.0.0.1:4177. ```bash git clone https://github.com/EdgeVector/kanban-factory.git \ ~/.local/share/edgevector/kanban-factory cd ~/.local/share/edgevector/kanban-factory node server.mjs ``` macOS auto-start on login: ```bash ./scripts/install-launchd.sh install open http://127.0.0.1:4177 ``` Source: https://github.com/EdgeVector/kanban-factory ## Mental model - **LastDB** — the database (Homebrew service `lastdb`, daemon `lastdbd`) - **Apps** — tools that talk to it (`brain`, `kanban`, `situations`, `lastsecrets`, `org`, `search`, …) - **Org** — separate app for shared org membership + named DBs; keys via LastSecrets - **LastDB Browser** — read-only local UI for schemas, keys, records, and fields (`lastdb-browser`) - **Kanban Factory** — optional local animated UI over your board (not a second database) - **The Last Stack** — installer + agent skills (not a second database) Socket: `~/.lastdb/data/folddb.sock` (Unix socket) ## Quick try after install Semantic ask may lag a few seconds after create; use a term from the body. `brain get` is immediate. LastSecrets: never put raw secret values on the command line; list/search always print `value=`. ```bash kanban list brain concept new hello --title "Hello" --body "my first note" brain get hello brain ask "first note" printf '%s' "$TOKEN" | lastsecrets put my-api-token \ --label "My API token" \ --provider example \ --purpose demo \ --env dev \ --value-stdin lastsecrets ref my-api-token lastsecrets list org create friends --name "Friends" org list ``` `lastsecrets ref` prints a `lastsecrets://…` locator. Org invite path: docs/INVITE.md on the org repo. ## Secrets policy (agents) - Store with `lastsecrets put … --value-stdin` (value on stdin only). - Persist only `lastsecrets://` locators in Brain, Kanban, docs, CI, and logs. - Retrieve with `lastsecrets get ` only at the point of use; do not print or re-store the value. - If LastSecrets is unavailable, stop before handling raw secret material. ## App readiness (ranked high → low; judgment, not SLAs) Whole stack is product alpha. Stages: Alpha · Dogfood · Early. | Rank | App | Stage | ~% | |------|-----|--------|-----| | 01 | Brain | Alpha | ~75 | | 02 | LastDB | Alpha | ~70 | | 03 | Kanban | Alpha | ~70 | | 04 | Last Stack | Dogfood | ~60 | | 05 | Situations | Dogfood | ~55 | | 06 | Search | Dogfood | ~50 | | 07 | LastSecrets | Dogfood | ~50 | | 08 | Org | Dogfood | ~50 | | 09 | Dogfood Graph | Dogfood | ~45 | | 10 | Kanban Factory | Dogfood | ~45 | | 11 | Routines | Early | ~35 | | 12 | CodeRings | Early | ~25 | | 13 | Discovery | Early | ~25 | First try: ranks 01–03; use Search (#06) for semantic ask/search; LastSecrets (#07) for credentials; Org (#08) for invite/join shared orgs (pubkey seal — no Exemem account required for join). Optional eye candy after the board works: Kanban Factory (#10). Full notes: https://thelastdb.com/apps#readiness ## Key pages - https://thelastdb.com/ — what it is + install - https://thelastdb.com/apps — what each app does + readiness - https://thelastdb.com/start — daily loop + agent MCP/skills - https://thelastdb.com/about — product thesis - https://thelastdb.com/developer — socket API for builders - https://thelastdb.com/docs — stable docs index - https://thelastdb.com/docs/install — install and version checks - https://thelastdb.com/docs/daily-loop — Brain/Kanban daily loop - https://thelastdb.com/docs/node-health — node health and socket checks - https://thelastdb.com/blog — engineering writing - https://github.com/EdgeVector/lastsecrets — LastSecrets public source - https://github.com/EdgeVector/org — Org public source (shared org membership + invite/join) - https://github.com/EdgeVector/org/blob/main/docs/INVITE.md — Org invite handshake - https://github.com/EdgeVector/search — Search public source (semantic MiniLM plane) - https://github.com/EdgeVector/kanban-factory — Kanban Factory (animated local board theater)