{"id":49310167,"url":"https://github.com/cfarvidson/kurir-server","last_synced_at":"2026-06-10T23:00:54.004Z","repository":{"id":349552644,"uuid":"1159528801","full_name":"cfarvidson/kurir-server","owner":"cfarvidson","description":"Self-hosted, HEY-inspired email client. Calmer inbox via Screener, Imbox, Feed, and Paper Trail.","archived":false,"fork":false,"pushed_at":"2026-06-10T09:23:25.000Z","size":3782,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-10T10:17:11.567Z","etag":null,"topics":["docker","email","email-client","hey","imap","nextjs","postgresql","prisma","self-hosted"],"latest_commit_sha":null,"homepage":"https://kurir.io","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cfarvidson.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-16T20:53:01.000Z","updated_at":"2026-06-10T09:23:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cfarvidson/kurir-server","commit_stats":null,"previous_names":["cfarvidson/kurir-server"],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/cfarvidson/kurir-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfarvidson%2Fkurir-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfarvidson%2Fkurir-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfarvidson%2Fkurir-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfarvidson%2Fkurir-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cfarvidson","download_url":"https://codeload.github.com/cfarvidson/kurir-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfarvidson%2Fkurir-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34174148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","email","email-client","hey","imap","nextjs","postgresql","prisma","self-hosted"],"created_at":"2026-04-26T12:02:40.894Z","updated_at":"2026-06-10T23:00:53.980Z","avatar_url":"https://github.com/cfarvidson.png","language":"TypeScript","funding_links":["https://github.com/sponsors/cfarvidson"],"categories":[],"sub_categories":[],"readme":"# Kurir\n\nA self-hosted email client inspired by [HEY](https://www.hey.com). Kurir connects to your existing email via IMAP/SMTP and gives you a calmer, more focused experience. Open source under the [O'Saasy License](LICENSE).\n\n**[Website](https://kurir.io)** · **[Documentation](https://kurir.io/docs/getting-started)** · **[GitHub Sponsors](https://github.com/sponsors/cfarvidson)**\n\n## Features\n\n- **Screener** — New senders land here, not your inbox. You decide who gets through.\n- **Imbox** — Only mail from approved senders. The important stuff.\n- **The Feed** — Newsletters and subscriptions in a browsable feed.\n- **Paper Trail** — Receipts and notifications, kept separate.\n- **Full-text search** — PostgreSQL-powered search across every email.\n- **Snooze \u0026 follow-ups** — Snooze messages until later. Set follow-up reminders.\n- **Scheduled send** — Write now, send later.\n- **Threaded conversations** — Messages grouped by thread, reply inline.\n- **Compose in Markdown** — Rich email authoring with auto-save drafts.\n- **Keyboard-first** — Full shortcuts, command palette, vim-style navigation.\n- **Mobile PWA** — Install on iOS and Android with push notifications.\n- **Dark mode** — Light, dark, or match your system.\n- **Multi-account** — Connect multiple email accounts, send from any.\n- **Archive** — Archive with undo, swipe gestures on mobile.\n- **Contacts** — Browse all senders, view conversation history.\n- **Admin dashboard** — System health, sync status, user management.\n- **One-command install** — Single `curl` command provisions a fresh server.\n- **Auto-updates** — Checks for new versions, one-click update from admin.\n- **Backup \u0026 restore** — Full database + config backup and restore.\n\n## Quick Start\n\n### One-Command Install (Recommended)\n\nProvisions a fresh Ubuntu 22.04+ or Debian 12+ server with everything:\n\n```bash\n# Public domain (default) — Caddy + Let's Encrypt\ncurl -fsSL https://raw.githubusercontent.com/cfarvidson/kurir-server/main/install.sh | sudo sh\n\n# Tailscale-only deploy — Tailscale Serve handles TLS\ncurl -fsSL https://raw.githubusercontent.com/cfarvidson/kurir-server/main/install.sh | sudo sh -s -- --mode tailscale\n\n# HTTP-only (local VM testing — passkeys won't work)\ncurl -fsSL https://raw.githubusercontent.com/cfarvidson/kurir-server/main/install.sh | sudo sh -s -- --mode http\n```\n\nThe installer handles Docker, PostgreSQL, Redis, TLS, and all secrets. Once running, open the URL to complete the setup wizard. Run with `--help` to see all options.\n\n### Setup Wizard\n\nOn first visit, Kurir walks you through:\n\n1. **Create account** — Set your name and register a passkey (WebAuthn)\n2. **Connect email** — Enter your IMAP/SMTP credentials (or use OAuth for Gmail/Outlook)\n3. **Initial sync** — Kurir fetches your emails with a live progress indicator\n4. **Done** — You land in your Imbox\n\n### Local Development\n\n```bash\npnpm install\ndocker compose up postgres -d\ncp .env.example .env\npnpm db:generate\npnpm db:push\npnpm dev\n```\n\n## Tech Stack\n\n- **Framework:** Next.js 15 (App Router, Turbopack)\n- **Auth:** NextAuth.js v5 (passkeys via WebAuthn, OAuth for Gmail/Outlook)\n- **Database:** PostgreSQL 16 + Prisma 6\n- **Email:** ImapFlow (IMAP), Nodemailer (SMTP)\n- **Search:** PostgreSQL full-text search (tsvector + GIN index)\n- **Cache:** Redis 7 (SSE push, sync jobs)\n- **UI:** Tailwind CSS, shadcn/ui, Framer Motion\n- **State:** TanStack Query, Zustand\n- **PWA:** Service worker with Web Push notifications\n\n## Email Providers\n\nKurir works with any IMAP/SMTP provider:\n\n| Provider | IMAP Host             | SMTP Host           | Auth                                                                       |\n| -------- | --------------------- | ------------------- | -------------------------------------------------------------------------- |\n| Gmail    | imap.gmail.com        | smtp.gmail.com      | OAuth or [App Password](https://support.google.com/accounts/answer/185833) |\n| Outlook  | outlook.office365.com | smtp.office365.com  | OAuth or App Password                                                      |\n| iCloud   | imap.mail.me.com      | smtp.mail.me.com    | [App Password](https://support.apple.com/en-us/102654)                     |\n| Fastmail | imap.fastmail.com     | smtp.fastmail.com   | App Password                                                               |\n| Yahoo    | imap.mail.yahoo.com   | smtp.mail.yahoo.com | App Password                                                               |\n\nFor other providers, use the custom option and enter your server details.\n\n## Deployment Options\n\n### Option A: One-Command Installer\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/cfarvidson/kurir-server/main/install.sh | sudo sh\n```\n\nHandles everything: Docker, secrets, HTTPS, database. Idempotent — safe to re-run.\n\n### Option B: Docker Compose\n\n```bash\ncp .env.production.example .env\n# Edit .env — set DOMAIN, generate secrets\ndocker compose -f docker-compose.production.yml up -d\n```\n\n### Option C: Kamal\n\nFor multi-host deploys across Tailscale-connected servers. See [DEPLOY.md](DEPLOY.md).\n\n```bash\nkamal setup    # First deploy\nkamal deploy   # Subsequent deploys\n```\n\n## Scripts\n\n```bash\npnpm dev          # Dev server (Turbopack, port 3000)\npnpm build        # Production build\npnpm lint         # ESLint\npnpm db:push      # Push Prisma schema to DB\npnpm db:generate  # Regenerate Prisma client\npnpm db:studio    # Prisma Studio GUI\npnpm add-user     # CLI: add user with IMAP/SMTP config\npnpm sync-user    # CLI: trigger sync for user(s)\npnpm backup       # Create backup archive (pg + redis + env)\npnpm restore      # Restore from backup archive\n```\n\n## License\n\n[O'Saasy License](LICENSE) — open source with one restriction: you cannot take this code and offer it as a competing hosted email service. Self-hosting for personal or business use is fully permitted.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfarvidson%2Fkurir-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfarvidson%2Fkurir-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfarvidson%2Fkurir-server/lists"}