Tabby
A private desktop workspace: AI chat and notes, side by side
The problem
AI assistants were useful for everyday work like drafting agendas, writing code and summarising notes, but they lived in a browser tab, sent everything to someone else's servers and charged a monthly fee. For people working on client or internal material, that was a hard sell.
The answers also ended up stranded in a chat window, apart from the notes and to-do lists people kept elsewhere. When you're juggling a handful of things at once, keeping the conversation and the work in one place matters.
What I built
- Built it as an Electron desktop app that starts a local llama.cpp server with a quantised Mistral 7B Instruct model, so prompts never leave the machine and it works offline.
- It checks the machine's hardware at startup and offloads model layers to the GPU only when a capable NVIDIA card is present.
- Laid the screen out as side-by-side panels of tabs, where any tab can be a chat or a page, so a conversation and the document it feeds sit next to each other.
- Streamed replies token by token from the local server, then converted them from Markdown and syntax-highlighted any code, with a copy button on each code block.
- Made pages rich editors with headings, lists, checklists, editable tables and inserted media or code blocks, and saved tabs as plain JSON files on the user's own disk.
What it does
- Chat with the assistant in one panel while editing a plan in the next
- Replies stream in as they're written, then render as formatted lists and highlighted code
- Pages with checklists, tables and a formatting toolbar
- An insert menu for images, video, audio, code, tables and checklists
- Light and dark themes that follow the system setting
- New chats and pages from the + on any panel, and more panels added to the right
Built with Electron, JavaScript (ES modules), llama.cpp, Mistral 7B Instruct (GGUF), Showdown + highlight.js, systeminformation, 2024.