Concept

You book a trip; flights, hotels, restaurants, museum tickets are now emails sitting in a busy inbox. What if you could forward those emails to a travel planner, and they appear as one, continuous timeline?

Travel Planner

You start by forwarding apps to a given aliased email address. Those emails sit for 3 days maximum on Cloudflare’s servers. Then, when you sync them, those emails are deleted. Finally, you can send those emails off for processing, and with a system prompt designed to extract useful information out of them, we query a RESTful API that returns the result into a nice looking timeline.

Yes, I called it Atlas, Travel Planner got too mouthy.

The links it extracts are actual links to your tickets and reservations, if the email linked to them! Travel has actually gotten easier.

I’ve used an app like this before, but it didn’t work nearly as well as what I have now. If it couldn’t extract information (which was very often), then it would force you to use a terrible UI for correcting it.

Problems

It’s a simple concept. Here’s the constraint that made it impossible: I wanted to keep it entirely local. One neat little package that ran entirely on your phone. Here’s why that didn’t work.

  1. There’s no easy way to share emails between apps.
  2. LLMs powerful enough to extract useful information consistently only run on the latest phones.

It’s not just about sharing the emails to the timeline, but doing so in a way the user finds easy. Email apps don’t have a dedicated share option like social media apps do; people naturally forward emails when they want to share them.

Phones can technically host their own mailboxes. However, if I forward an email to it, what if the app is unavailable at the time it’s sent? Is the phone currently reachable from the public internet? How much power would always running the app sap from the phone? This is Android we’re talking about too, iOS does not let you background apps like this, so that’s not happening either.

And as for the information extraction; current flagship phones can in fact run local LLMs, at low parameter counts. If that’s good enough to extract data from an email, then that’s one exciting problem down… for users with phones that can run them.

So TL;DR, an app like this requires some cloud infrastructure, at least for right now. The hardware will catch up eventually, but the mailbox issue will continue to persist. I’m certain there’s a way to allow the email app to share its contents over to an app like this locally, but will it be as convenient as forwarding? And would you trust it?

There were lots of other little problems that needed solving that I’d love to go into, like how the text MIME wasn’t appropriate for an LLM so I had to use an HTML to markdown parser, or how DNS gets fiddly when you want to redirect to 2 different mailboxes, but this is getting long.

Goals

In game development, there is an archetype of developer known as the engine programmer. You find out you are one of these people when you come up with a really cool game idea, but hold on, it needs a custom engine to work. These people aren’t making a game; they’re making an engine because that’s the area that interested them most. I followed this path too; I liked the idea of creating multiplayer functions in games, but oh darn, I need to learn this low-level socket development first. In reality, I just liked making computers communicate. I liked learning how the internet works, how traffic gets routed from one area to the next.

I bring this up because that wasn’t my motivation here. I actually wanted this app. My next trip will use this app.

I feel that this need hindered my learning, aided by how easy the tools are. I wanted to develop an understanding of how to use AI Agentic tooling, and I came out of it comfortable with the API and uncomfortable with the frontend. I have never developed with Kotlin, and I’d still say that’s true. I couldn’t tell you how to create a header from memory and I spent a few days on this, staring at that code trying to make the clock render somewhere that looked normal. Actually, let me spin these into their own headers;

Frontend

Hi, I still don’t really know Kotlin, and I think the reason for that is there were no stakes here. Fundamentally, I am a backend developer. I know some React, but for this I needed an Android app, and I asked for one. I spent some time asking for things that made it look better and communicate with the API properly, but that’s where it ended.

Backend

Here’s a message I wrote to someone while working on this that I feel encapsulates my feelings on this well:

Letting software write your software is like letting an algorithm drive your car. It’s convenient, and we’re getting somewhere, but I’m not taking my eyes off the road.

When I put my card details into Cloudflare to access their R2 Storage, there were stakes. I only wanted to use their free 10GB a month tier for temporarily storing emails, but they don’t cut you off if you go over. They do this for processing power; if you go over your daily free use of their LLM service, or over the compute power for their workers for the day, they stop working, no charge required. So, there was a real feeling of making sure the API worked. I don’t need to give this app to anyone, those endpoints need to remain accessible anyway, so I am going to design them myself, and make sure they’re locked down behind secret keys, appropriate user tokens and a whitelisted architecture so only those authorised can take up my precious kilobytes of storage.

Admittedly there’s also some ego here. I didn’t study writing software for half a decade to not have strong opinions about how it should be done. Sure, I’m drawing from the same well, but I’m not drinking water without testing it, even if there’s an AI Agent that claims to have checked it for me. It does feel like a lot of the “grunt work” has been taken off my hands, and while I appreciate the capabilities, I do dread what it’s like for those who have these tools and are studying software development now.

Conclusion

I love Cloudflare’s free IaaS offerings. I’m sure the unlimited free email intake was a trap to draw people like me in, but it sure worked. I’d like to take the capabilities into somewhere I’m extremely comfortable in, but I fear taking it into game development would begin to dilute what made making games fun in the first place.

I’m sure there’s a balance to find here - a way to isolate the tooling to the grunt work without it overlapping with the work I’d rather do myself. As of writing this, I haven’t found it. This space moves quickly though.

Stacks Used

Frontend; Android, Kotlin. Backend; Cloudflare Workers (Email ingestor/LLM), D1 Database (PostgreSQL), R2 Storage Pool.