Skip to content
项目

关于

Crumbs by Bretzel - a self-hosted, privacy-first Google Keep alternative. Capture your thoughts, ideas and notes. Built with SvelteKit.

效率与自动化

这些数字如何统计

可以做什么

  • 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
  • Note version history — browse and restore previous versions

实测星标增长

24小时
+1
7天
+2
15天
+4
1个月
+4

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

CI License: MIT Version Docker

Crumbs logo

Crumbs by Bretzel

A self-hostable, offline-first note-taking app that respects your privacy. Part of the Bretzel app universe.

Crumbs notes grid view

Install

Docker (Recommended)

mkdir crumbs && cd crumbs
curl -fsSLO https://raw.githubusercontent.com/bretzel-app/crumbs/main/docker-compose.yml
docker compose up -d

Open http://localhost:3000 and create your admin account. The first visitor becomes the admin, so do this before exposing the port.

To use it from other devices you need HTTPS and a matching ORIGIN. Plain http://<server-ip>:3000 won't keep you signed in. docs/DEPLOYMENT.md covers reverse proxies, backups, updates and a production checklist.

With SSO (optional)

# docker-compose.yml
services:
  crumbs:
    image: ghcr.io/bretzel-app/crumbs:latest
    ports:
      - "3000:3000"
    volumes:
      - crumbs-data:/data
    environment:
      - ORIGIN=https://notes.example.com
      - AUTH_OIDC_ISSUER=https://authentik.example.com/application/o/crumbs/
      - AUTH_OIDC_CLIENT_ID=your-client-id
      - AUTH_OIDC_CLIENT_SECRET=your-client-secret
      - AUTH_OIDC_DISPLAY_NAME=Authentik
    restart: unless-stopped

volumes:
  crumbs-data:

Google and GitHub OAuth are also supported. See docs/AUTH.md for all providers and setup guides.

With Email Notifications (optional)

Add SMTP settings to enable email notifications (share alerts, welcome emails, security alerts):

environment:
  - SMTP_HOST=smtp.example.com
  - SMTP_PORT=587
  - SMTP_USER=your-username
  - SMTP_PASS=your-password
  - SMTP_FROM=Crumbs <[email protected]>

Auto-enabled when SMTP_HOST is set. Users can opt out in Settings > Preferences. See docs/DEPLOYMENT.md for details.

Manual (Node.js 22)

git clone https://github.com/bretzel-app/crumbs.git && cd crumbs
pnpm install --frozen-lockfile
pnpm build
DATABASE_URL=./data/crumbs.db ORIGIN=http://localhost:3000 BODY_SIZE_LIMIT=12M node build

Use Node.js 22 (see .nvmrc). See docs/DEPLOYMENT.md for a production setup with systemd.

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
  • Note version history — browse and restore previous versions
  • Share notes with other users on the same instance
  • Email notifications for shares, security alerts, and account events (optional SMTP)
  • PWA — installable, works offline via IndexedDB + LWW CRDT sync
  • MCP server — let AI assistants (Claude Code, etc.) manage your notes
  • Multi-user auth (Argon2) with optional OAuth/SSO (Google, GitHub, OIDC)
  • 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
Auth Password auth, OAuth/SSO setup (Authentik, Keycloak, etc.)
Deployment Docker, Node.js, reverse proxy, backups, env vars
API REST API reference (auto-generated)
Contributing How to contribute
Security Vulnerability reporting policy
Changelog Release history

CI/CD

  • CI — lint, type check, unit tests, E2E tests, Docker build on every push/PR
  • Release — builds and pushes a multi-arch (amd64, arm64) image to ghcr.io/bretzel-app/crumbs on v* tags, authenticated with the workflow's GITHUB_TOKEN (no extra secrets needed)

License

MIT

探索相关项目

加载中…