DuoFrame

A private photo widget. A snap from your person lands on your home screen and disappears after 24 hours.

Role
Backend owner, led the app redesign
Where
Personal product
Year
2026
Status
Live
  • Flutter
  • Next.js
  • Supabase
  • Cloudflare R2

The context

DuoFrame is for partners, best friends and family who want a private frame instead of another feed. You send a photo, and it shows on the other person's home-screen widget and in the app for 24 hours. Then it's gone.

It's live on Google Play. The API runs on Next.js at Vercel, Postgres and auth are on Supabase, and photos are served from Cloudflare R2.

The problem and my approach

A photo should reach the other person’s home screen even when the sender loses signal. Expiry, multiple recipients and older installed app versions make that promise more complicated than an image upload.

I own the backend and led the October redesign of an app a teammate originally built. The work covered the camera, outbox, photo viewer, widget delivery and the access rules underneath them.

How it works, from start to finish

  1. Make a photo feel personal

    The camera and editor let someone prepare a snap with a caption and colours.

    Underneath

    The redesign uses a widget-shaped camera and an optimistic outbox so a send can be queued while offline.

    Photo editor with caption styles and colours
    Photo editor with caption styles and colours
  2. Send once, reach several people

    The sender can share a photo with several recipients.

    Underneath

    One stored image is referenced by several snap rows. Removal deletes the rows first and only removes an image after its last reference is gone.

    Home tab with a streak and the latest snap from a friend
    Home tab with a streak and the latest snap from a friend
  3. Deliver it to the home screen

    A friend’s latest photo appears in the Android widget and remains available in the app.

    Underneath

    The November updates improved widget refresh and outbox retry. A Cloudflare Worker checks private image access, with per-viewer signed links for older clients.

    DuoFrame widget on an Android home screen showing a friend's latest photo
    DuoFrame widget on an Android home screen showing a friend's latest photo
  4. Open it and reply

    The viewer supports reactions and replies, and received snaps show their remaining time.

    Underneath

    Exact deep links take activity entries to the relevant content. The backend uses Next.js, Supabase and Cloudflare R2.

    Story viewer with emoji reactions and a reply button
    Story viewer with emoji reactions and a reply button
  5. Let the photo expire

    Snaps disappear after 24 hours. Streak freezes and the day-off control allow a break.

    Underneath

    Streaks use a permanent send log because photo rows expire. The phone’s time-zone offset determines the user’s day.

    Received snaps, each showing the hours it has left
    Received snaps, each showing the hours it has left

What I did

  • Improved widget refresh and queued-send retries, and added a day-off control that protects yesterday’s streaks.
  • Moved the API from Express to Next.js and TypeScript, with zod validation on every route and row-level security locked down in Postgres.
  • Rebuilt the app in October 2026: an offline-first outbox with optimistic sends, a widget-shaped camera, two-person DuoShots taken at the same time, a story viewer with replies, and memories with monthly recaps.
  • Built streaks with streak freezes, a daily question, an activity feed with exact deep links, and contact discovery.
  • Added a Pro plan and gifting a year of Pro, through RevenueCat.
  • Shipped the Play policy work: age gate, account deletion, block and report, child-safety pages.
  • Built the marketing site, with widget set-up guides for each phone brand, structured data and IndexNow.
  • Wrote contract tests and end-to-end feature checks. CI typechecks and runs them before every deploy.

Engineering decisions

Private photos without breaking old installs

Photos moved to private storage behind a Cloudflare Worker that checks access on every load. Older app versions don't send a token with image requests, so the API gives them signed links per viewer instead. Old and new apps both kept working, so the backend could ship before the app update.

One upload, several recipients

A multi-recipient send stores one image shared by several snap rows. Unsending, removing a friend or deleting an account removes the rows first and only deletes images that nothing references any more, so one person's unsend never blanks someone else's widget.

Streaks for photos that expire

Snaps are deleted after 24 hours, so streaks come from a permanent send log. Every request carries the phone's time-zone offset, so a day means the user's day, not the server's.

Release and verification

DuoFrame is live on Google Play. CI runs type checking, contract tests and end-to-end feature checks before deployment. Release work also covered account deletion, blocking and reporting, phone-specific widget guides, Pro and gifting.

A teammate built the first version of the app. I own the backend and led the October 2026 redesign.