Browser extension
Votion Companion is the Manifest V3 browser extension for Chromium browsers (Chrome, Edge, Brave — one codebase, no Firefox/Safari support in v1).
It adds one or more Votion instances to the browser, then lets you save the page you're looking at straight into one of them — as a sidebar page or as a database row — without switching tabs. Under the hood:
- a background service worker, popup, and content-script, built from one Vite build (
vite.config.ts's multi-entryrollupOptions.input); - a
chrome.storage.local-backed list of saved instances (src/lib/instances.ts):{ id, label, baseUrl, authKind, tokenLastVerifiedAt }; - a popup UI to add, list and remove instances, requesting that instance's own origin permission via
chrome.permissions.requestbefore saving it.
Download and install (sideload)
There is no Chrome Web Store listing yet. Until one exists, this is how you install it:
Download the latest build from the project's
package:extensionCI job — the permalink always serves the artifact from the newest successful pipeline onmain:https://gitlab.com/venturini.codes/votion/-/jobs/artifacts/main/download?job=package:extensionThat download is a
.zipplus a.zip.sha256checksum, covering exactly that.zip's bytes. (GitLab project access is required to reach that link — ask an instance admin if you don't have it; this closes once the store listing ships.)Verify it before loading anything from it:
shsha256sum -c votion-companion-vX.Y.Z.zip.sha256This catches a corrupted or incomplete download. The download link already requires GitLab project membership, so no additional signature ships alongside it — see Releases & versioning for how the package is built.
Unzip it. You get a folder named
votion-companion-vX.Y.Z.In Chrome, Edge or Brave, open
chrome://extensions, enable Developer mode (top-right toggle), then Load unpacked and select that unzipped folder.The Votion Companion icon appears in the toolbar — pin it for easy access.
Developer mode is Chromium's own gate for anything not installed from a store listing; it isn't specific to Votion, and it needs to stay enabled for the extension to keep running. The store listing removes this step once it ships.
Build it from source instead
just extension npm run buildThen in Chrome/Edge/Brave: chrome://extensions -> enable Developer mode -> Load unpacked -> select apps/extension/dist.
For iterative development, just extension npm run dev runs vite build --watch instead of a one-shot build — reload the unpacked extension in chrome://extensions after each rebuild (MV3 has no dev-server/HMR equivalent to apps/web's Vite dev server).
Adding an instance
Open the popup, enter a label and the instance's base URL (e.g. https://votion.example.com), and submit. The browser will prompt for permission to access that specific site — declining leaves the instance unsaved.
Once permission is granted, the extension authenticates automatically:
- Session inherit (tried first). The background service worker looks for an open, signed-in tab on that origin and reads the same bearer token the web app itself stores (
votion.auth.tokenin that tab'slocalStorage), then verifies it withGET /api/auth/me. If that succeeds, the instance is saved right away — no further input needed. - Personal API key (fallback). If no tab is open, or the token found doesn't verify, the popup prompts for a personal API key instead. Generate one on that instance under Settings → API Keys & AI, paste it in, and it is verified the same way before saving.
Either path ends with a verified instance persisted in chrome.storage.local (the bearer token itself lives in a separate votion.tokens entry, never alongside the instance list) and surviving a browser restart.
Reconnecting a stale instance
Every time the popup opens, each saved instance's token is re-verified against GET /api/auth/me. A token that no longer verifies (expired, revoked, password change invalidating a session) shows a Reconnect action next to that instance — never a silent failure. Reconnect re-runs the exact same session-inherit-then-API-key flow described above, scoped to that one instance.
Capturing a page
The popup uses Votion's own colours and follows your browser's light or dark setting.
Opening the popup (or pressing its keyboard shortcut — Ctrl+Shift+V on Windows/Linux, Cmd+Shift+V on macOS, both bound to the reserved _execute_action command, which just opens the same popup) captures the active tab on demand: its title, URL and meta description (<meta name="description">, falling back to og:description when the page has no plain description tag). Nothing is captured in the background and nothing is kept once the popup closes — only ever a fresh, one-shot read of whatever tab was active at the moment.
Some pages cannot be read at all (the browser blocks scripts on them). For an ordinary web page the popup then shows "Could not read this page." with the tab's URL and still lets you save it — the title starts as the tab's title (or its URL) and stays editable. Browser-internal pages such as chrome:// ones cannot be captured.
This needs no per-site permission grant the way adding an instance does: manifest.json's activeTab permission grants temporary access to exactly the tab that was active when the extension was invoked, which is also what makes the keyboard shortcut and the popup-click the same trigger under the hood.
Below the captured title/URL/description, pick:
- which saved instance to save into — skipped when there is only one (it's used automatically), shown as a radio group once there are two or more;
- where to save it — a page in the sidebar, or a row in a database.
Once a destination is picked (and an instance is available), the popup announces a "Ready to save as … into …" status to screen readers and shows that destination's form.
Saving a row to a database
Choosing "Row in a database" renders its own picker-then-form flow, scoped to the instance the capture is going into:
- Workspace. A select of the caller's workspaces (
GET /api/spaces); when there is exactly one it is already chosen. - Database. A select of that workspace's databases, again preselected when there is only one — read off the same sidebar tree
GET /api/spaces/:id/pagesalready serves, filtered tokind === 'database'(there is no dedicated "list databases" route). - Property form. The chosen database's real, live property schema (
GET /api/databases/:id) renders one field per property:- Title auto-fills from the captured page's title, editable.
- Text fields get two optional fill-in links, "Fill with URL" and "Fill with description", which copy the captured values into that field.
- Number, URL, Email, Phone, Select, Status, Multi-select, Date, Checkbox, Person and Place each get their own editor, matching the cell shapes
row_values.ts'snormalizeCellValueexpects. URL, Email, Phone and Number show a leading icon; Status shows the chosen option as a tag with its coloured dot; Multi-select options are chips you toggle; Date opens a small month calendar (weeks start on Monday) and has a "Clear" link; Checkbox reads "Checked"; Person lists the workspace's members with their initials. Place is a full-width label input with latitude and longitude side by side, rather than a map search — a lightweight tradeoff for a browser-popup surface, not the web app's own geocoded picker. URL, email and phone formats are checked by the server. - Button, Relation and Group are not rendered as editable fields (named instead in a "Not editable here" note) — the web app itself has no cell editor for any of the three yet, so the extension does not invent one either.
- Leaving any field blank never blocks Save — Votion's schema has no "required" flag to block on, so an unfilled property is simply omitted from the row it creates, left to be filled in later from the app itself.
- Save. One
POST /api/databases/:id/rowswith the title and whatever properties were filled in, then onePUT /api/pages/:id/content(the same optimistic-concurrency content write every page/row body save goes through) carrying a linked paragraph to the captured URL, plus a second paragraph for the description when one was captured. While saving, the button reads "Saving…" with a spinner. A failed save shows "Could not save this row." under the button, with the server's reason beneath it, and leaves the filled-in form exactly as it was, so nothing already picked or typed is lost on a retry.
Saving a page to the sidebar
Choosing "Page in sidebar" renders its own picker-then-form flow, scoped to the instance the capture is going into:
- Workspace. A select of the caller's workspaces (
GET /api/spaces); when there is exactly one it is already chosen. - Save under. A select that starts on "Top level", built from the same sidebar tree the database picker reads (
GET /api/spaces/:id/pages), filtered tokind === 'page'and flattened depth-first for the picker — a database or a row is never a choosable parent (POST /api/spaces/:id/pagesrejects any parent that isn't a plain page). With no pages in the workspace yet, "Top level" is the only choice. - Title form. Auto-fills from the captured page's title, editable.
- Save. One
POST /api/spaces/:id/pageswith the title and the chosenparent_id(nullfor top level), then the samePUT /api/pages/:id/contentwrite the database-row flow uses, carrying a linked paragraph to the captured URL plus a second paragraph for the description when one was captured. The create route always appends the new page after its siblings — there is no create-time "insert at this position" field (that only exists on the move route), so "parent + position" from the plan resolves to "parent, appended last", same as every other page this route creates. A failed save shows "Could not save this page." under the button, with the server's reason beneath it, and leaves the chosen parent and typed title exactly as they were, so nothing is lost on a retry.