Skip to content
Dálcio Garcia

Cloud storage for iPhone and teams · Mobile · Cloud storage · Security

Pratika Alívio

Keeps photos, videos and files safe in the cloud, frees space on the phone, and lets teams share folders. Paid in Kwanza.

Role
Founder & Software Engineer: product, architecture, iOS app, storage API, security, billing
Organisation
Pratika
Period · status
2026 to Present · In production
  • TypeScript
  • Expo / React Native
  • Next.js
  • Supabase
  • PostgreSQL
  • Cloudflare Workers
  • Cloudflare R2
  • Backblaze B2
Pratika Alívio, public product page
Public landing page of alivio.pratika.io, captured 19 Oct 2026

Overview

Pratika Alívio stores the photos, videos and documents from an iPhone in the cloud at full quality and frees space on the phone. Teams get shared folders with per-person permissions, and anyone can deliver files with a link.

It runs as an iOS app (Expo / React Native) and a web app at alivio.pratika.io, with monthly or yearly plans paid locally in Kwanza.

Problem

People run out of space on their phones and the usual cloud services are paid by card in foreign currency, which many people in Angola do not have.

A storage product is only worth using if nothing is ever lost or exposed: files must stay private to their owner, be verified before the phone copy can be removed, and survive the failure of any single provider.

Role

I defined the product and built it end-to-end: the iOS and web apps, the storage API, the database and its policies, team workspaces, billing and the operations around backups and recovery.

Architecture

  • Expo (React Native) app for iOS and a Next.js site and web app. Supabase (Auth + PostgreSQL with row-level security) holds accounts, file metadata, plans, subscriptions and payments.
  • A Cloudflare Worker is the only path to file contents: it checks the session and ownership on every request and streams originals from Backblaze B2, with thumbnails on Cloudflare R2. Phones upload directly to B2 with pre-signed URLs.
  • A second, non-public Worker runs on a schedule: it computes SHA-256 checksums, purges abandoned uploads, evaluates alerts and exports an encrypted copy of the database.

Technical decisions

Content never leaves storage directly
There are no public or signed read URLs. The app asks the API, which confirms the session and reads the file row with the person's own token (row-level security proves they own it) before streaming the bytes.
The server builds every storage key
An object key is always derived from the verified account and file id on the server, never sent by the client, and the write key for originals can upload and hide but cannot read or delete.
The database decides what an account may do
One function returns plan, status, quota and usage; the API and database triggers enforce it (no upload without a valid plan or over quota), and the app only displays it.
Verified before it is removed
A file only becomes removable from the phone after its checksum is confirmed, and even then only with an explicit action and the system's confirmation.

Stack

  • TypeScript
  • Expo / React Native
  • Next.js
  • Supabase
  • PostgreSQL
  • Cloudflare Workers
  • Cloudflare R2
  • Backblaze B2

Engineering challenges

  • Designing ownership and team permissions (owner, admin, editor, viewer) in row-level security so quota, billing and storage always follow the account that pays.
  • Large uploads from phones on unstable connections, without routing every byte through the API.
  • Keeping the iOS app within App Store rules for cloud storage while payments happen locally on the web.

Outcome

Live at alivio.pratika.io with the web app, personal and professional plans and team workspaces; the iOS app is built and was submitted to the App Store in October 2026.

What I learned

  • For storage, trust is the product: most of the engineering is in what the system refuses to do.
  • Pushing authorisation into the database makes every surface (app, web, API and jobs) safe by default.