Setpoint / Mail and time

One inbox, my calendar and the day's news, sorted so catching up takes seconds

My routine had a context-switching problem - multiple email accounts, my calendar, Todoist, multiple news channels to check. I designed and built Setpoint to bring them all into one central hub, so I can get my day started and keep things caught up.

The source is on GitHub ↗
Role
Scope, design, build
Timeline
Since March 2026
Stack
TypeScript, React, SQLite, Claude API
Runs on
Docker
Mail, calendar and news, in one place.

Overview

One place for mail and time

What is Setpoint?

Setpoint is a private platform that eliminates the need to switch between different apps. Multiple email accounts condensed into one, calendar events and Todoist tasks share one calendar, and another page collects and summarizes the latest world events. It's built for exactly how I use it, runs in a single container on my home server, is used daily, and has become pivotal for how I work.

The problem

Going through mail, agenda, and staying up to date with the latest technologies and events became tedious. Mornings meant going through individual email accounts one by one. Switch over to check my calendar, again for my Todoist. None of it was hard, but every switch cost a little focus, and the email that actually needed me was easy to miss among the dozens that didn't. Having one place for all of it would give that time back.

What it had to do

Four design pillars that guide the decision making.

  1. Show what needs me first

    Mail that needs action sits at the top and persists until I handle it. Everything else is grouped, folded or counted.

  2. Keep the providers in charge

    Gmail, iCloud, Google Calendar and Todoist own the data. Read in Setpoint means read in Gmail, and vice versa.

  3. Let the AI sort, never decide

    It picks a lane, pre-fills an event and answers within context. It never adds a deadline or a task without permission.

  4. Fail with grace, and never silently

    Unsorted mail stays in view, a failed change shows the provider's own message, and stale data says how stale it is.

Design

Day-to-day with Setpoint

Setpoint is built for how I work and plan throughout the day.

Sorting my mail

Attention

Actionable emails that require a response, or a deadline. An email stays there until I explicitly mark it Done - read or not, because reading isn't the same as handling it.

FYI

Most mail lands in this category. Things that are only informational that don't require action, such as updates, reports, verification codes, or confirmations make their way here. Divided into kinds like: Career, Security, Deliveries, Money, or Other.

Noise

Everything else lands here: marketing emails, ads, promotional content. Automatically folded and de-emphasized to keep my inbox tidy and focused on what matters most.

Planning the day

A single calendar puts both my Google calendar and Todoist on one month grid. Thoughtful support for NLP: Lunch with Priya thu 12:30-1:30pm @Blue Door fills in day, time and place, with live preview of conflicts and surrounding block.

One line becomes an event, without leaving the keyboard.

Staying up-to-date with the latest events

Free news sources are grouped, every article read: combined into one story, with one summary, backed by all their sources. The biggest stories come first and the small ones never show. Stories last seen get updated with what changed since last viewed.

Eight outlets, one story.

Decisions

Why it works the way it does

Most of Setpoint is a series of small calls about what to trust, what to show and what to leave out. These are the ones that shape it most.

Providers staying the source of truth

Mail, Calendar and Todoist are often read in more than just one app, so their state has to be true everywhere. Setpoint mirrors the providers instead of keeping its own copy because read in Setpoint should also be read in Gmail. Every change waits on a provider, but optimistic updates hide most of that.

  • No split-brain: any action in Setpoint shows up the same in every other app
  • No conflicts to resolve: the provider’s version always wins
  • Every action waits on a provider round trip. Partially solved through optimistic UI to make it feel fast
  • Provider outages and rate limits can become Setpoint outages, too

Knowing when something is broken

Sources are considered healthy when their last check succeeded, not when its data last changed. Quiet days with no new mail are still healthy. Each source’s limit comes from its own schedule, about twice its check interval plus a grace period, so every source is judged by its own clock.

When it isn’t healthy

It shows only where it matters. A stale source shows “as of 9:14 PM”, a failing one adds the provider’s reason, and an account that needs signing in again gets a notification plus a Reconnect button.

  • A quiet source stays healthy
  • Each source is judged by its own schedule
  • A source that answers with stale data still looks healthy

Sorting mail without missing what matters

Every new email is sorted once. Rules settle the obvious cases, like codes and deliveries. The rest goes to Claude Sonnet, and Claude Opus reads it again whenever Sonnet wants Attention, is less than 72% sure, or thinks the email might be protected. Only mail that can interrupt me pays for the stronger model.

When it's unsure

An unsure answer goes to FYI, never Attention. If the model can't be reached, the email waits in Unsorted at the top and is retried every five minutes, rather than guessed into a lane.

What no rule can move

Password and recovery changes, locked accounts and money leaving an account are protected: they always go to Attention, and no rule I write can move them. Protected wording also beats a verification code, so this mail can't expire out of view the way a code does.

A year of backfilled history

Mail history before production went through a one-time backfill process: sorted by my rules, then read once by the cheaper Claude Haiku to fill in who it's from and what it is: $1.26 for 2,828 emails. Old mail never landed in Attention.

  • The stronger model only reads mail headed for Attention or unsure
  • Attention mail gets two reads before it reaches me
  • Attention mail takes two model calls, so it arrives a little later
Attention always gets a second opinion.

Opening email safely

HTML email loads remote images, and many of them are tracking pixels that tell the sender I opened it. Each email opens in a sandboxed frame, and remote content loads on its own only when the sender passes DMARC, proof the email really comes from its domain, and the email isn't Noise. Anything else shows "Images hidden" with Show and Always show from that domain, which covers the company's subdomains too.

  • Mail from real senders looks right without a click
  • Spoofed mail and Noise can't learn that I opened them
  • Verified senders can still track opens
  • A real sender without DMARC needs a click

Keeping credentials safe

Setpoint holds sign-in tokens and app passwords for every account, so each one is encrypted with AES-256-GCM and bound to its own row and field: if copied anywhere else, it won’t decrypt. Once saved, a credential is write-only, and nothing ever shows it again.

Signing in, for an audience of one

Setpoint is built for one person behind a private network, so sign-in has one budget: 10 password attempts every 15 minutes, shared by every device, instead of limits per IP address. A passkey can replace the password, or be required after it for extra security, and changing either signs out every other session.

Search that finds the email I mean

Search prioritizes results by how I remember: by who sent it and what it was about, instead of its exact words. To stop guessing, I evaluated a set of my own emails real searches and scored every change against them. Results now rank by how well the words match: sender first, then subject, then body, with no boost for important mail.

Closing the vocabulary gap

electricity bill misses Edison's "Bill is Ready", so Claude Haiku writes a few search terms for every email - once, from what it's about, which costs $0.39 for all my mail. The test never called for embeddings, so I didn't build them.

Suggestions, not filters

A brief pause in typing offers a suggestion, like Only Mercury Insurance · 7 emails, and nothing filters until I accept it.

94%
of correct emails in the top 10, up from 73%
98%
found anywhere in the list, up from 85%
$0.39
to enrich all my mail with search terms

Making Alfred stay truthful

Alfred answers questions about my mail from search, with ⌘Enter. An assistant that makes things up is worse than none, so it's built to show its work and to say when it doesn't know.

Every answer names its sources

Alfred has to finish by listing the emails its answer rests on. The server drops any it never saw in this conversation's searches and reads, so it can't cite an email it didn't look at. Before saying what an email says, it has to open it; a search snippet isn't enough.

Not finding it is an answer

When my mail doesn't say, Alfred answers "Couldn't find that in your mail" and shows what it searched, rather than guessing.

It reads, it never acts

Its tools are the app's own searches and reads. Email text is marked as untrusted, so an email can't give it instructions. It can only propose an event or task when my own message asks for one, and I create it myself.

Alfred answers from my mail, with its source.

One story per event

In a feed, the same fire story from five TV stations is five headlines. News groups the articles about one event into one story, with a plain headline written from all its sources, and identical wire copies count as one outlet. Sources are free and hand-picked, tailored to my interests.

Free sources, one story per event.

How it works

One system, designed around every feature at once

Setpoint is one TypeScript codebase: a Node server, a React app and the types they share, in one Docker container with SQLite for storage.

One sync engine

Every provider plugs into the same engine through an adapter: Gmail's history and push notifications, IMAP for iCloud, Google Calendar's watch channels and Todoist. Each syncs from where it left off, a regular sweep catches anything a push missed, and every open tab updates live. Because the engine was designed with the whole feature set in mind, mail, calendar and news share one pipeline instead of each bringing its own.

The providers stay the source of truth.

One email, many views

Each email is stored once, with what triage found beside it. The Inbox, All, search and the Security group are just different questions asked of that record, so nothing is copied per view and nothing drifts. The calendar works the same way: events and Todoist tasks are both items with a time, a source and reminders.

Failing in plain view

If the AI is down, new mail waits in an Unsorted group at the top instead of disappearing, and a change a provider refused stays where it was with the provider's own message. Nothing that failed looks like it worked.

Cost

What it costs to run

Setpoint's models run on the API credits that come with my Anthropic subscription. Two systems use them - mail, which reads each new email once, and News, which reads up to 300 articles a day.

Mail: under $10 a month

Triage makes up most of it: $8.64 over 27 days, under 2 cents for each email a model reads. Alfred's 80 answers during that time cost $0.81, and search added $0.42 - nearly all of it through one-time search terms.

The stronger model

Opus reads about a quarter of the emails Sonnet does - the ones slated for Attention, unsure or possibly protected. Makes up about 36% of triage's cost.

Old mail, read once

When Setpoint started, existing mail was backfilled - read once by Haiku: $1.26 for 2,828 emails.

$8.64
for triage
36%
of cost comes from Opus, on a quarter of the emails
$1.26
to read 2,828 old emails using Haiku

News: under $50 a month

News runs a model over around 300 articles a day, more than anything else in Setpoint, but is designed with an upper limit in mind. Its first version ran about $116 before fine-tuning and cost optimizations.

Judge each story once

The first iteration had Sonnet re-judge every story on the page every hour, about $82 a month on its own. Instead, each story's importance is judged only once when it's written. The hourly ranking is plain arithmetic: how many outlets, how much it matters, how close it is and how fast it's growing. Expected cost of $1 a month.

Rewrite only on headline news

Rewriting a story on every new fact was wasteful - each rewrite meant re-sending everything the story held. After making optimization, stories now get written from its latest sources, with its current summary carrying its past, and only rewritten when the news changes the headline. A new quote still shows as new; it just waits for the next rewrite.

A gate before writing

A story isn't written at all until one of its articles rates 40 or more. until then, it's a one-line headline under Also reported. The gate skips about 43% of writes and misses about one front-page story in 50, which is a worthwhile tradeoff. If a month passes its $50 cap, story writing switches to the cheaper Haiku model until the month ends.

$48
compared to $116 in the initial release
43%
fewer story writes from the gate on top

Summary

Takeaways

  1. Weighing effort against results

    Not every feature earns its cost, in money or in attention. News is the clearest case: an initial version re-judged every story every hour. Very thorough, but very wasteful. Most of the work was finding where effort stopped paying off - for me that was a gate that skips 43% of writes, accepting a miss for 1 front-page story in 50.

  2. Not everything I designed survived

    Some of my first calls were wrong, verified through my own data. Sending unsure mail to Attention felt safe until I was moving 74% of it back out. Automatic deadlines were mostly autopay dates and ranking important mail first buried the email I was looking for.