Local-first email engine

Turn your inbox into a queryable data layer

Postmesh lets you query, structure, and automate your inbox—built for developers and AI agents.

Get Started Learn More
$ mesh query "emails from last week that require action"
Found 12 emails requiring action...
$ mesh query "invoices from Stripe this month"
Extracted 3 invoices: $99, $299, $49
Features

Your email, your data

Most tools try to manage your inbox. Postmesh gives you control over your data.

Sync locally

Connect Gmail or Outlook and maintain a continuously updated, normalized copy of your inbox on your machine.

🔍

Query like a database

Use natural language or structured queries to instantly find exactly what you need.

Agent-ready

Expose the same interface as a deterministic JSON API so AI agents can reliably read and act on your data.

Low-latency

No waiting on APIs. No rate limits. Your data is always available, fast, and private.

🔗

Cross-provider

Works across Gmail and Outlook with a normalized schema for consistent queries.

💻

Developer-first

CLI + JSON interface. Local storage, no vendor lock-in. Works seamlessly over SSH.

How It Works

Get started in minutes

Four simple steps to turn your inbox into a programmable data source.

1

Connect

Link your Gmail or Outlook account

2

Sync

Normalize messages locally

3

Query

Search via CLI or API

4

Automate

Build pipelines and workflows

Use Cases

Example queries

Natural language queries that just work.

"Which emails from last week need my attention?"
"What subscriptions changed pricing recently?"
"Summarize all emails from Stripe this month"
"Find invoices and extract due dates"

Build on top of your inbox

Create pipelines that turn raw emails into structured data.

  • Auto-generate todo lists from actionable emails
  • Track subscriptions and billing changes
  • Extract invoices, alerts, or key events
pipeline.yaml
pipeline:
  - filter: subject contains "invoice"
  - extract: amount, due_date
  - store: invoices

Your inbox is data. Use it like it.

Postmesh turns email into a programmable data source—ready for queries, automation, and agents.

npm install -g postmesh