Mohamed Douare Logo

← Back to portfolio

Terrako: your land on the map, your papers kept safe

Terrako keeps a piece of land and its papers in one place. The owner uploads the survey plan, an agent reads the boundary markers on it and places the plot on the satellite map, and the owner checks the outline before it is saved. The title and the other papers are stored encrypted, and the owner can open them to a notary or to family for a few days, then take the access back.

Live at terrako.app since October 2026, on the web. The iPhone and Android apps are in internal testing and not yet in the App Store or on Google Play.

The home page of terrako.app: the headline "Your land, right before your eyes. Wherever you are." beside a plot outlined on a satellite map, on a laptop and on a phone. (opens in a new tab)
terrako.app, December 2026.

What it is

Terrako is for landowners in Mali first, then in the rest of West Africa and in the diaspora in Europe, who often live far from their land, and for the surveyors, notaries and agencies who prepare land files. Today a land title often travels as a photo in a WhatsApp chat: once it is sent it can't be taken back, and nobody knows who has seen it. In Terrako a share is a link that expires after 24 hours, 7 days or 30 days, gives the level of access the owner picks, can be revoked at any time and keeps a record of who viewed what.

Terrako is not a land registry and does not vouch for ownership. Every outline shows where it comes from (detected in a document, drawn, a GPS reading, a surveyor's plan) with its precision and its date, and the site says plainly that only the land services of a country issue a title.

What I built

Three apps on one account. A web app in Next.js, which also serves the API; a native iPhone app in Swift and SwiftUI, with Apple's Liquid Glass on iOS 26 and the system materials from iOS 18; a native Android app in Kotlin and Jetpack Compose, with Material 3 Expressive. Each one works in French and English, in light and dark mode, and the mobile apps keep a queue for when the network drops.

The detection agent. A model reads the document and points at what it finds: a table of boundary markers, a grid of coordinates, a sketch with its dimensions, a GPS point. Tools run by the code, deterministic and read only, do every measurement and every conversion (proj4 and PostGIS), score each coordinate system used in the country and propose an outline that the owner checks and confirms.

The vault. Each document is encrypted with its own key (AES-256-GCM), and that key is wrapped by a master key kept outside the database, so deleting a document destroys its key, backups included. A document opened through a share carries a watermark with the recipient's name and the date.

The professional space. A surveyor, a notary or an agency prepares a plot's file from their own plan and hands it over to the client, who becomes its only owner; the firm then keeps only a time-limited access that the owner can revoke.

Hosting. On my own server, with Docker Compose: the web app, PostgreSQL 17 with PostGIS and an S3-compatible store, behind the shared Caddy edge that serves all my products. One OpenAPI 3.1 contract describes the API, and the Swift and Kotlin clients are generated from it.

Decisions and why

The model reads, the code computes, the owner confirms (ADR 0007). On West African plans, a wrong coordinate system moves a plot by tens to hundreds of meters, and vision models tend to "fix" an unreadable value rather than flag it. So the model never converts a coordinate, and no detected outline is saved without the owner's confirmation.

Fully native apps (ADR 0012). SwiftUI and Jetpack Compose rather than a shared web view, so the iPhone app can use Liquid Glass and both apps can work offline with their platform's own storage.

One key per document (ADR 0004). Land papers attract fraud. With envelope encryption no file is ever served in the clear from storage, and erasing a document's key erases the document everywhere.

A share has a level and an expiry (ADR 0005). The link holds a random 256-bit token of which only the hash is stored, every opening is logged, and the person who receives it needs no account.

An interchangeable satellite background (ADR 0003). MapLibre draws the map everywhere and the imagery comes through a provider interface, because image quality, cloud cover and prices vary a lot across West Africa.

What the agent does and does not do

The agent reads a plan and proposes an outline with its confidence and its sources. It never converts a coordinate itself, never saves an outline the owner hasn't confirmed and never certifies anything: the words "certified", "official" and "guaranteed" are banned from the interface, except for data that really is official.

The position of a plot is never public. A professional never sees an owner's file without the owner's explicit consent, and that consent is logged. Detections are counted against the monthly allowance of the owner's plan.

Numbers

3 applications (iPhone, Android, web) on one API, and 3 shared packages: the domain rules, the OpenAPI contract and the database schema.

164 test files (71 for the web app and the API, 44 for Android, 23 for iOS, 26 for the shared packages), 27 architecture decision records and 121 commits.

First commit on October 10, 2026, specification approved on October 11, and an end-to-end acceptance test run against the production site on October 14.

Built through the AI Product Factory, from a sourced opportunity study with a GO verdict to production.

2 languages, French and English; plans start at 5,000 CFA francs a month.

Stack

TypeScript monorepo (pnpm) · Next.js and next-intl · Swift and SwiftUI (Liquid Glass, SwiftData, StoreKit 2) · Kotlin and Jetpack Compose (Material 3 Expressive, Room, WorkManager) · MapLibre · PostgreSQL 17 with PostGIS (Drizzle) · proj4 · S3-compatible storage · OpenAPI 3.1 · Anthropic SDK · Stripe · Docker Compose and Caddy

See also

AI Product Factory: how an idea becomes a reviewed pull request

Embertree: a private space for a family's stories, photos and tree

Pilume: the model proposes, the system verifies, the pharmacist decides

Send me an email about this product and I will walk you through it.