Skip to content

pacphi/emailibrium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

248 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Emailibrium πŸ“§

Your inbox found its balance.

Email + Equilibrium = Emailibrium. Because your inbox shouldn't feel like a second job.

CI Docker Release Check Links GitHub release License: MIT

Emailibrium is a vector-native email intelligence platform that replaces keyword search and manual filters with semantic understanding. Connect your accounts, and in under 10 minutes it clusters, classifies, and cleans 10,000+ emails β€” then keeps learning from every interaction.

πŸ”’ No cloud processing. No data leaving your machine. Just fast, private, intelligent email.


πŸ’‘ Why Emailibrium?

Most email tools treat your inbox like a database β€” keyword filters, folder rules, manual sorting. Emailibrium treats it like a living knowledge graph. Here's what makes it different:

  • 🧬 Semantic, not syntactic β€” understands meaning, not just keywords. "Call with the London team about Q3" matches even if you search for "UK quarterly meeting."
  • 🏠 100% local by default β€” your emails, embeddings, and models never leave your machine. No SaaS subscriptions, no data brokers, no surprises.
  • ⚑ 10,000 emails in 10 minutes β€” HNSW vector indexing and batch classification deliver inbox zero at a pace no manual approach can match.
  • πŸ”„ Gets smarter with you β€” SONA adaptive learning updates classifications from every correction you make, so the system improves continuously without retraining.
  • 🌐 Any account, one brain β€” Gmail, Outlook, IMAP β€” unified under a single semantic search layer and shared intelligence model.
  • πŸ›‘οΈ Enterprise-grade encryption, zero cloud risk β€” AES-256-GCM at rest, Argon2id key derivation, Web Crypto API. Your privacy is a hard guarantee, not a policy.

πŸ“Έ Screenshots

Command Center β€” semantic search hub with Cmd+K palette Β  Email Reader β€” full thread view with compose

Command CenterΒ Β Β Β Β Β Β Β Email Reader

Inbox Cleaner β€” 4-step guided cleanup wizard Β  Insights Explorer β€” analytics dashboard and health score

Inbox Cleaner WizardΒ Β Β Β Β Β Β Β Insights Explorer

Rules Studio β€” AI-suggested semantic automation rules Β  Chat β€” conversational email assistant

Rules StudioΒ Β Β Β Β Β Β Β Chat Assistant

Settings β€” per-account configuration and appearance

Settings


✨ What It Does

Capability How
πŸ” Semantic search Find "that budget spreadsheet from Sarah" β€” not just emails containing the word "budget"
⚑ 10-minute inbox zero Guided cleanup wizard with batch actions across thousands of emails
πŸ“¬ Subscription intelligence Auto-detects 47 newsletters you forgot you signed up for
πŸ—‚οΈ Topic clustering Emails self-organize into projects, threads, and themes
🧠 Continuous learning Every click, star, and archive makes search and classification smarter
πŸ“± Multi-account unified inbox Gmail, Outlook, IMAP β€” one interface, one search, one brain

βš™οΈ How It Works

Email arrives β†’ Embed as vector β†’ Classify via centroid similarity β†’ Cluster by topic β†’ Archive
                    ↓                        ↓                           ↓
              Searchable in <50ms    Learns from corrections    Groups evolve over time

Under the hood: HNSW vector indexing, Reciprocal Rank Fusion hybrid search, GraphSAGE-inspired clustering, 3-tier adaptive learning (SONA), and AES-256-GCM encryption at rest. All running locally in Rust.

πŸš€ Quick Start

# Clone
git clone https://github.com/pacphi/emailibrium.git
cd emailibrium

# Guided setup (recommended for first time)
make setup            # interactive wizard: prerequisites, secrets, AI, Docker

# Option A: Native
make install
make dev
# β†’ Backend: http://localhost:8080  Frontend: http://localhost:3000

# Option B: Docker
make setup-secrets    # generate dev secrets (first time only)
make docker-up-dev    # start with hot-reload

Prerequisites: Rust 1.95+, Node.js 26 (LTS)+, pnpm 10.32+ β€” or just Docker. See Setup Guide for details.

πŸ—οΈ Architecture

React TypeScript SPA ──REST + SSE──→ Axum API Gateway
         β”‚                                β”‚
    TanStack Router                  Intelligence Layer
    TanStack Query              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    Zustand + PWA               β”‚    RuVector Engine  β”‚
                                β”‚  HNSW Β· SONA Β· GNN  β”‚
                                β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                     Data Layer
                                SQLite Β· Redis Β· REDB
  • πŸ¦€ Backend: Rust (Axum 0.8), SQLite, 22 vector intelligence modules (ONNX/fastembed default embeddings)
  • βš›οΈ Frontend: React 19, TypeScript, Tailwind CSS, 8 features, PWA-ready
  • πŸ”’ Privacy: All embeddings generated and stored locally. Cloud is opt-in, never required.

🎯 Features at a Glance

  • πŸ” Command Center β€” search hub with Cmd+K palette
  • 🧹 Inbox Cleaner β€” 4-step guided cleanup wizard
  • πŸ“Š Insights Explorer β€” charts, subscription analytics, health score
  • πŸ“§ Email Client β€” view, reply, compose with thread view
  • πŸ€– Rules Studio β€” AI-suggested rules with semantic conditions
  • βš™οΈ Settings β€” per-account config, encryption, appearance

πŸ“š Documentation

πŸ‘₯ For Everyone

Document Description
User Guide Getting started, features, keyboard shortcuts
UI Overview Visual tour β€” screenshots of every screen
Deployment Guide Install, Docker, production setup
Configuration Reference Every config key, default, and env override

πŸ‘©β€πŸ’» For the Team

Document Description
Maintainer Guide Developer, designer, operator, security, and PM perspectives
Architecture 4-tier system design, bounded contexts, data flow
Releasing Version, tag, changelog, Docker image publishing
API Spec OpenAPI 3.0 β€” all 12 endpoints with schemas

πŸ›οΈ Architecture Decisions

See all ADRs in docs/ADRs.

πŸ—ΊοΈ Domain Model

See all DDDs in docs/DDDs.

πŸ”¬ Research & Evaluation

Document Description
Research: Initial Evaluation Academic evaluation with 30 citations
Research: LLM Options ONNX, Ollama, cloud β€” tiered AI architecture
Search Quality Recall, NDCG, MRR methodology
Classification Macro-F1, per-category P/R
Clustering Silhouette, ARI, detection metrics
Performance Benchmarks and memory profiling
Domain Adaptation Model switching, multilingual
Inbox Zero Protocol User study design

πŸ› οΈ Development

make help              # see all available targets
make ci                # format-check + lint + typecheck + test
make test              # backend (Rust) + frontend (Vitest)
make docker-up-dev     # full stack with hot-reload
make upgrade           # upgrade all dependencies
make outdated          # check what's stale

See the Maintainer Guide for the full developer experience.

πŸ”§ Tech Stack

Layer Technology
Backend Rust, Axum 0.8, SQLite (SQLx), Moka cache
Vector Intelligence HNSW indexing, SONA learning, GraphSAGE-inspired clustering, adaptive quantization (scalar/PQ/binary)
Frontend React 19, TypeScript 5.9, Vite 8, TanStack Router + Query, Zustand, Tailwind CSS
UI Components shadcn/ui pattern, Radix primitives, cmdk, Recharts, Framer Motion
Infrastructure Docker Compose, GitHub Actions CI, Dependabot, Husky + lint-staged
Security AES-256-GCM encryption at rest, Argon2id KDF, Web Crypto API, CSP headers

πŸ“„ License

MIT


Emailibrium: where email finds its equilibrium.

About

Bring your inbox into equilibrium.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors