Frederic CabassutandClaude Opus 4.6 8f0c18d5fa fix: handle offline note editing with sync queue, toasts, and live sync indicator
- Extract toast store to standalone module so notes store can show toasts
- Add try/catch to all note mutations with optimistic updates + IDB queue on network error
- Wire up startSync/stopSync in layout to enable online/offline event listeners
- Reload notes from server after successful sync push to prevent data loss
- Connect SyncIndicator to real sync status with Lucide cloud icons
- Add 300ms minimum display time for status transitions
- Add e2e tests for offline create, edit, trash, and sync-on-reconnect

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 23:12:36 +01:00
2026-03-06 17:21:04 +01:00

🥨 Crumbs by Bretzel

A self-hostable, offline-first note-taking app inspired by Google Keep. Part of the Bretzel app universe.

Quick Start

docker compose up -d

Open http://localhost:3000 and set your password on first visit.

Development

pnpm install
pnpm dev

Run make help to see all available commands, or use pnpm directly:

pnpm test          # Unit + E2E tests
pnpm check         # Type checking
pnpm build         # Production build

Features

  • Rich notes with Markdown, checklists, image attachments, and 12 color themes
  • Organize with #tags, pinning, archive, and trash
  • Full-text search across titles, content, and tags
  • Dark mode with system detection
  • PWA — installable, works offline via IndexedDB + LWW CRDT sync
  • Single-user password auth (Argon2)
  • Docker deployment with a single command

See docs/FEATURES.md for detailed feature documentation.

Tech Stack

Layer Technology
Framework SvelteKit 2 (Svelte 5 runes)
Language TypeScript (strict)
UI Tailwind CSS 4
Database SQLite (better-sqlite3) + Drizzle ORM
Client DB IndexedDB (idb)
Sync LWW CRDTs
Auth Argon2 + session cookies
Testing Vitest + Playwright
Container Docker (multi-stage)
CI/CD GitHub Actions

Documentation

Document Description
Features Detailed feature list and behavior
Architecture Local-first sync design, tech rationale, DB schema
Deployment Docker, Node.js, reverse proxy, backups, env vars
API REST API reference (auto-generated)

CI/CD

  • CI — lint, type check, unit tests, E2E tests, Docker build on every push/PR
  • Release — builds and pushes Docker image on v* tags

Configure registry via GitHub Secrets: REGISTRY_URL, REGISTRY_USER, REGISTRY_TOKEN.

License

MIT

S
Description
Crumbs fork
https://crumbs.bretzel.app/
Readme MIT
7.6 MiB
Languages
TypeScript 68.5%
Svelte 25.1%
HTML 2.7%
CSS 2.7%
Shell 0.5%
Other 0.5%