Overview#
Vatary Desk is a document-first browser workspace with AI working in the background, built for people whose project work lives in documents and is currently split between file storage and AI chats. Each project gets its own desk, where notes, tables, files and AI results sit together and stay there.
The role#
I built it, end to end: product decisions, UX and visual design, frontend, backend and infrastructure. I also run the research loop: collecting user feedback, watching behavior in analytics and turning it into the roadmap.
The problem#
Most Notion-like workspaces don't let you see the big, structured picture of your data. They use a master–detail layout (sidebar + content), which is more linear and less flexible than a spatial layout, and can feel cluttered when there are too many navigation sections.

Users run into the same issue in AI chats. Imagine a basic user story: "Tell me the pros and cons of this project decision." The response comes back, and the user keeps chatting. Along the way, the chat produces artifacts: text, images and files. The next day, the user comes back to work and starts searching for that data with the internal search, digging through work and personal chats and endlessly scrolling to the top of the content window. The conclusion is simple: chats aren't good at keeping working context, because it gets lost among tons of information. No matter how many "work and content organization" features get added, it's still a chat, built to answer questions, not to keep your work organized.

This creates a temptation to store important pieces of data somewhere else, perhaps in the file system. But from my own experience and from users' feedback, there's a subtle cognitive trap here. We treat large file storage as out of sight, out of mind: we put things there and forget about them for a while.

The alternative#
The solution isn't new: the wheel has already been invented. It's the workspace layout, used mainly in operating systems and, to a lesser extent, in canvas tools like Miro (opens in a new tab).

But every concept has its disadvantages, and the workspace approach is no exception. Without proper organization, it often feels overwhelming and becomes harder to manage at a large scale.
The solution#
To address this, I introduced a workspace split into desktops, like in a classic OS, but with a limit on how many elements each desktop can hold. This partly solves the overload problem and isolates the AI's context, which in turn makes its answers more accurate. Instead of overloading one desktop, you can nest new desktops inside existing ones, which handles hierarchy properly. AI works in the background, indexing every element and every change made inside.

Core features:
- Visual Workspace. A desktop-based space where you place, move and organize work objects, with nested desktops and a limit on how much each one holds.
- Unified Content & Tools. Documents, tables, kanban, tasks, notes, files and images, all edited in one environment.
- Context Awareness. AI continuously indexes the workspace and understands what's in it and how elements relate to each other.
- AI Workspace Operations. The whole workspace can be managed in natural language: create documents, fill tables, rearrange desktops.
- Controlled AI Execution. AI never changes anything silently. You review the proposed plan, apply it, and can undo it.
The full list of features is on GitHub (opens in a new tab).
Key decisions#
- Context
- A free canvas becomes overwhelming at scale, and the more one space holds, the noisier the context the AI has to work with.
- Choice
- Each desktop holds a limited number of elements. When it fills up, you nest a new desktop inside it instead of piling more onto the same one.
- Trade-off
- Nested content is one step further away, and users can hit the limit before they see why it exists. In return, every desk stays readable and the AI's context stays focused.
- Context
- An assistant that edits documents and tables directly is fast, but one wrong change can quietly damage work the user relies on.
- Choice
- Every AI operation is shown as a plan first. The user reviews it, applies it, and can undo it.
- Trade-off
- One extra step before anything happens, which feels slower for simple requests. In return, users can trust the AI with real project files.
- Context
- Most document-first tools avoid DOCX, XLSX and PDF, because every new format widens the scope of support.
- Choice
- Build editors for the formats people already use, aim for the part of each format that users actually need, and cover it with tests.
- Trade-off
- A larger surface to maintain and never full parity with Word or Excel. But users bring their existing files instead of rewriting them.
Legacy formats#
Compared with other browser-based workspaces and web operating systems, Vatary Desk has one significant difference. Most document-oriented apps offer limited support for legacy formats like DOCX and PDF, and they have strong arguments for not handling them. Every new format expands the scope of support and pulls resources in another direction. The logical solution is to make users adopt your own format or environment, but that doesn't work in reality, where universities still rely on old presentation formats and offices are full of Word and Excel files.
Five years ago, I would have completely agreed that there was no point in replicating Word's functionality or supporting old Microsoft and Apple formats. But the world has changed. With agentic engineering, it's now possible to implement this support in a short time, cover it with tests, and maintain it. A good example is Craft, which rebuilt much of Adobe's core functionality from scratch in Rust. Its business value is hard to judge, but it's a strong engineering case.
In Vatary Desk, I built editors for 48 file types in a short time and covered them with tests, which keeps the system stable and easy to upgrade.
I'm not saying we need to replicate 100% of the functionality and build our own Word or Excel inside the app. But we can cover around 75% of what users actually need with a fraction of the effort.
Design#
The design system is inspired by a forest. The desk sits on a quiet forest backdrop with layered trees that drift slowly and respond to the cursor with a light parallax, and everything holds still while you scroll or when the tab is in the background. The palette follows the same idea: soft, muted greens and warm off-whites instead of bright colors, with a single deep-green accent reserved for primary actions and the active state.
Every forest has someone living in it, so the mascot is an owl. The owl is a traditional symbol of wisdom, and that is what the system is about: not just storing text and data, but helping you make sense of them. Notes, tables, documents and files collect on the desk, and the assistant reads, sorts, connects and turns them into something useful. Like an owl, it stays quiet and in the background until you need it.
The idea is that a workspace should feel calm rather than busy. Elements on the desk are simple white cards with soft edges, so the content stays in focus and the background feels like a place, not decoration. Behind the softness there is a strict system: every color is a token, every text color is checked against WCAG contrast in tests, and motion switches off for users who prefer reduced motion.
The full design system (opens in a new tab) is documented on its own page.
The ambition#
The ambition is to build a kind of workspace where users can freely reshape and rearrange elements on the desktop. Any element can change its form: notes can become a page, tasks can become a kanban board, and a kanban board can become a table. Elements can also be combined. If the desktop holds several different types of elements, such as tables, images and audio, the user can gather them and turn them into something new with a single command in the chat. The goal has been partly achieved, but there is still a lot to improve and build.
The bet behind all of this is simple: a spatial desk keeps working context better than chats and folders. The second part of this case study looks at how it is built: the architecture, the engineering decisions behind it, and how AI is used in development.
Architecture#
- React PWA — Browser-based application interface.
- NestJS Modular Monolith — Core business logic and API.
- Go Orchestrator — Long-running jobs and workflow coordination.
- gRPC — Fast, strongly typed communication between services.
- Python Document Service — PDF processing, OCR, text extraction, and document conversion.
- AI Runtime — Centralized AI model execution and provider management.
- Nginx — Reverse proxy and traffic routing.
- Docker Compose — Container orchestration and deployment.
- Cloudflare R2 — Object storage with direct uploads via presigned URLs.
- Neon PostgreSQL — Relational database and application data.
- pgvector — Vector storage and semantic search.
Technical highlights#
Front end
- Feature-oriented architecture — Organizes the application around independent product features, keeping each feature's business logic and components together.

- Offline-first architecture — Ensures data persistence, offline operations, and automatic synchronization when connectivity is restored, using TanStack Query and IndexedDB. Docs (opens in a new tab)
- Design System & Accessibility — A custom token-based theming system with configurable themes, WCAG contrast testing, and reusable global styles for consistent UI styling. Docs (opens in a new tab)
- Resilience & Error Recovery — Sentry monitoring, root error boundaries, standalone crash fallback, stale-build and lazy-chunk recovery, and request timeout protection. Docs (opens in a new tab)
- Nginx Security Configuration Testing — Automated tests validate CSP directives, report-only policies, and consistent security-header inclusion across Nginx locations. Docs (opens in a new tab)
- Route Prefetching — Preloads route resources to make page navigation faster and reduce perceived loading time. Docs (opens in a new tab)
Server
- SSRF Protection & Secure Networking — Centralized URL validation, private IP blocking, DNS rebinding protection, and safe outbound HTTP connections. Docs (opens in a new tab)
- Distributed Workflow Orchestration — Integrates NestJS with a Go workflow runtime through gRPC, using asynchronous jobs, correlation IDs, job status tracking, and external artifact references. Repo (opens in a new tab)
- Real-Time Collaboration with CRDT — Uses Yjs and WebSockets for bidirectional document synchronization, collaborative editing, and awareness between connected clients. Docs (opens in a new tab)
- Atomic AI Usage & Budget Management — Transactional budget reservations, concurrent usage protection, idempotent releases, and automatic expiration of abandoned reservations. Docs (opens in a new tab)
- Observability & Operational Resilience — Health checks, structured error tracking, environment validation, background job monitoring, and configurable process roles. Docs (opens in a new tab)
AI development highlights#
- Skills, subagents and hooks — Docs (opens in a new tab)
- Shared rules for every agent — Docs (opens in a new tab)
- From user feedback to a fix — Docs (opens in a new tab)
- Change journal (History) — Docs (opens in a new tab)

- Releases built from History

- Docs that move with the code — Docs (opens in a new tab)

Discussion
Loading comments…


