Family tree · Mobile & web platform

UsraHub

An Arabic-first family-tree platform where families build, share and preserve one tree together. Currently in development.

Role
Sole engineer
Timeline
2026 – Present
Platforms
Android · iOS · Web
Status
In development
A UsraHub family tree drawn in the palm theme
  • ≈ 6 msLayout of a 1,000-person tree on an Android device (Hermes)
  • 3,000People in the largest synthetic family used for performance tests
  • AR · ENArabic-first, right-to-left by default

01Overview

UsraHub lets Arab families build one shared family tree together: invite relatives, propose changes, review and approve them, and share a view-only tree on the web. I am designing and building the product end to end: mobile app, API, web viewer and the tree layout and rendering engine.

02Business context

Family trees matter deeply to Arab families, but naming conventions (lineage chains, tribes, kunya) and family structures are poorly served by Western genealogy tools.

03The problem

A tree that many relatives edit needs trust: who can change what, how changes are reviewed, and how private details stay private. Large trees must stay smooth on mid-range phones, and Arabic text must render correctly everywhere.

04The solution

A shared tree per family with owner, admin, editor and viewer roles. Changes can be proposed and approved, every action is audited and reversible, and each person card has per-field privacy. A purpose-built layout engine and renderer keep thousands of people interactive.

05My role

Sole engineer: product architecture, mobile, API and web

  • Designed a monorepo with mobile, API and web apps plus shared domain, layout and drawing packages.
  • Built a zero-dependency tree-layout engine and a renderer that draws the same scene with Skia on mobile and SVG on the web.
  • Built the NestJS API on PostgreSQL with roles, invitations, proposals with approval, and an audit log with undo.
  • Designed privacy and safety in from the start: per-field visibility, secret-bearing links kept out of server logs, and moderation tooling.

06Architecture

  1. pnpm monorepo: mobile (Expo / React Native), API (NestJS), web (Next.js static export)
  2. Shared packages: domain rules and schemas, tree layout, tree drawing, fixtures, generated API client
  3. PostgreSQL with Prisma; integration tests against a real database in containers
  4. OpenAPI-generated typed client with a drift check in CI
  5. One scene description, drawn by Skia on mobile and as SVG on the web
  6. CI on GitHub Actions; infrastructure defined as code for staging and production

07Technology

  • React Native
  • Expo
  • TypeScript
  • Skia
  • NestJS
  • PostgreSQL
  • Prisma
  • Next.js
  • Playwright
  • Docker

08Engineering challenges

  • Layout for real family structures

    The layout engine models unions, so it handles multiple marriages, half-siblings and marriage order, and rejects cycles before rendering.

  • Frame budget on mobile

    Cached and batched paths, a decoration budget and level-of-detail thresholds keep rendering of 1,000 and 3,000-person trees within a frame budget of about 14 ms.

  • Right-to-left as the default

    Layouts use start and end, never left and right; digits follow user preference; interpolated text is isolated so mixed Arabic and English reads correctly.