Skip to content
xucklessPublic

About

Mail client for every inbox, with agents you control. Early: architecture and walking skeleton.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

EveryMail

The mail client for every inbox, with agents you control

Early: the whole interface works against a local database and a scripted stand-in for the Backend. The real Backend is not built yet.

CI License: FSL-1.1-ALv2

Architecture rules · License

What it will do

EveryMail is being built as one client for all your mail, Drive, OneDrive and calendar. Agents you define handle routine work on a schedule, and nothing they draft leaves without your approval. The pictures below are sketches of the planned interface, not screenshots.

Every inbox in one list

Gmail, Outlook, iCloud and others sit side by side. Drive, OneDrive and calendar are readable and writable from the same place.

Sketch of one list holding mail from Gmail, Outlook and iCloud accounts, with Drive, OneDrive and Calendar below

Agents that run on a schedule

You write an agent profile and a trigger. The agent runs the task on its own, at a time or when mail arrives.

Sketch of three agents, each with a trigger and the time of its next run

Nothing sends without approval

An agent's reply waits as a draft. You read it, then approve and send, or discard it.

Sketch of a drafted reply marked waiting for you, with Approve and send and Discard buttons

How it is built

The Rust engine sits between the UI and the server. The UI talks only to the engine, and the engine is the only client of the Backend.

The React Frontend connects to the Rust engine, which connects to the Bun Backend with Postgres, both over protobuf

  • The engine owns all application state and sends it as protobuf oneofs. TypeScript holds only presentation state.
  • Protobuf is the only wire format.
  • One Rust crate serves desktop (native in Tauri) and web (WASM in a Worker).
  • The Frontend never talks to the Backend.

Target: the whole desktop app under 300-400 MB of RAM.

Develop

Needs Bun, Rust with the wasm32-unknown-unknown target, wasm-pack, Docker for the dev Postgres, and Tauri's system dependencies on Linux.

bun install
cp backend/.env.example backend/.env   # then fill in the Google sign-in client
bun run gen            # TypeScript from the .proto files
bun run wasm           # the engine as a WASM package
docker compose up -d   # dev Postgres with pgvector
bun run dev:backend    # reads backend/.env; Microsoft's client is optional, see docs/BACKEND.md
bun run dev:desktop    # Tauri app; its Backend address defaults to http://localhost:5173, the dev server it starts, which proxies to the Backend
bun run dev:web        # same UI, engine as WASM in a Worker
bun run check          # lint, types, clippy, tests; the Backend's queue tests need the dev Postgres running
  • proto/ the contract
  • backend/ Bun and Postgres
  • engine/ the Rust crate
  • desktop/ the Tauri shell
  • frontend/ the React UI
  • design/ tokens, component CSS and icons shared by the app and the site
  • site/ the landing page

Rules are in AGENTS.md, and how each part works is in docs/BACKEND.md and docs/ENGINE.md. The roadmap is in TODO-backend.md, TODO-rust-core.md and TODO-frontend.md.

License

FSL-1.1-ALv2. Use, modify and self-host it for any purpose except a competing product. Each release becomes Apache-2.0 two years after it ships.

About

Mail client for every inbox, with agents you control. Early: architecture and walking skeleton.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages