alturo: a reading companion that keeps everything on your phone
how alturo, an iphone app for focused reading sessions, computes progress from sessions and works without an account or a backend.
the problem
reading a book competes with everything else on the phone. alturo is designed to make room for it: you start a timed reading session, the apps that distract you most stay out of the way, and a giraffe moves through stages as the hours add up.
it is an iphone app in portuguese, for readers in brazil, and it works for printed books and ebooks alike. besides sessions, it keeps your library and your memories: the quotes and thoughts you save from what you read. it is not released yet: app blocking is still simulated, and only the giraffe’s first stage is drawn.
how it works
the app is written in swift 6 with swiftui and swiftdata. the library, the sessions and the memories live on the device. the app has no account, no backend and no analytics.
a session is measured from system timestamps, not from a timer running on screen, so closing the app or locking the phone does not change the session time. blocking the distracting apps goes through a single interface inside the app. today there is only a simulated implementation behind it, and the rest of the code does not depend on how screen time works.
books enter the library by isbn lookup or by hand, and their covers are drawn by the app instead of downloaded. widgets show the day, the book in progress and a memory, and a live activity shows the session in progress.
the landing page is an astro site on cloudflare workers: static pages plus one endpoint for the waitlist.
decisions
progress is computed, not stored. the giraffe’s stage comes from the total minutes in reading sessions, and the streak comes from the calendar days with at least one counted minute. besides the sessions, the app only saves the highest stage already celebrated, so the same celebration never plays twice. widgets get a computed copy. with no counters in the database to keep in sync, there is less to drift out of date.
stages do not go back. the giraffe starts curious, becomes a reader at ten hours and a guardian of stories at forty. a slow month does not undo that; only erasing all data starts over.
data stays on the device. there is no sync in the first version, and the app can export what you saved. the data models were still written to be compatible with cloud sync, so that adding it later should not mean rewriting them.
pixel art instead of 3d. the mascot was a 3d giraffe at first. switching to sprites cut the scope enough to make the whole core loop work well: start a session, read, come back, see the giraffe.
the app prefers to say “time in reading sessions”. it can measure the session, not what happened in it, and the stats are worded that way.
trade-offs
the plan is to use the system’s device activity scheduling, which only works in blocks of at least fifteen minutes. so the current rule is: when a paused session is resumed with less than that left, it continues without blocking, rather than extending the session or refusing to resume. that rule may still change when real blocking lands.
isbn lookup depends on a public brazilian api, and it may not have the book. manual entry is always there.
design
the style is a cosy pixel corner: a cream paper background, hard shadows and no decorative gradients. the giraffe always wears a red scarf, and each art pixel covers a whole number of screen pixels, with no smoothing.
the app is always in a light theme, except during a session, which has a night theme. the tone is warm and never guilty, and the mascot says nothing while you read.
what i took from it
cutting scope was the decision that made the rest possible. a smaller app with a core loop that feels right taught me more than a larger plan with a 3d mascot would have.
