Menu

Building a cross-platform "quick capture" app for Notion with Electron, Vue 3 and TypeScript
πŸ“°

Building a cross-platform "quick capture" app for Notion with Electron, Vue 3 and TypeScript

DEV Community: vueΒ·SomarajΒ·16 days ago
#WaaSwmkK
#devtovue#devto#dev#notion#windows
Reading 0:00
15s threshold

I write a lot in Notion , but getting a thought into Notion was always slower than the thought itself. Switch apps, find the page, wait for it to load, and the idea is gone.

So I built Notion Quick Capture : a tray app for Windows, macOS and Linux. Press Ctrl+Shift+N anywhere, type, press Ctrl+Enter , and the note lands in a Notion page or database.

This post covers the parts that turned out to be more interesting than I expected.

The architecture in one picture

src/ β”œβ”€β”€ main/ Electron main process β”‚ β”œβ”€β”€ auth/ Token storage (safeStorage) β”‚ β”œβ”€β”€ notion/ API client + rate limiting, schema cache, search, capture β”‚ β”œβ”€β”€ drafts/ Offline queue (sql.js) and background sync β”‚ β”œβ”€β”€ ipc/ IPC handlers (Zod-validated) β”‚ β”œβ”€β”€ hotkey/ Global shortcut β”‚ └── tray/ Tray icon and menu β”œβ”€β”€ preload/ contextBridge API exposed to the renderer β”œβ”€β”€ renderer/ Vue 3 UI └── shared/ Types and the Markdown β†’ Notion converter

Enter fullscreen mode

Exit fullscreen mode

The renderer never touches the network or the file system.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.