completed

Notes App

A minimal, local-first note-taking app with markdown support, tags, and full-text search. No account required.

#React#TypeScript#Electron#SQLite

Overview

A desktop note-taking application focused on simplicity and privacy. Notes are stored locally as SQLite, with markdown rendering and full-text search.

Problem

I tried many note-taking apps and kept hitting the same issues:

  • Sync requires an account
  • Too many features I don’t need
  • Poor markdown support
  • Slow performance

I wanted something simple: write markdown, search notes, that’s it.

Solution

Built a minimal Electron app with:

  • Local SQLite database (no cloud, no account)
  • Real-time markdown preview
  • Full-text search using SQLite FTS5
  • Tags for organization
  • Fast startup time

Tech Stack

  • Electron — Cross-platform desktop app
  • React — UI components
  • TypeScript — Type safety
  • SQLite (better-sqlite3) — Local database with FTS5
  • CodeMirror — Markdown editor
  • Marked — Markdown rendering

Architecture

The app uses Electron’s main/renderer process split:

  • Main process handles file system and database operations
  • Renderer process handles UI
  • IPC bridges the two via typed channels

Lessons Learned

Electron has gotten better. Security model improvements in recent versions make it much more reasonable to build with. Still heavier than a web app, but the desktop integration is worth it for this use case.

SQLite is underrated. FTS5 full-text search is fast and surprisingly capable for local search. No need for a dedicated search service.

Local-first is a valid choice. Not everything needs to sync to the cloud. Sometimes “it just works offline” is the best feature.