Home
Ashavid
Back to Portfolio

Built by AshaVidFamily Tech / Digital WellbeingIn development, 2026

HOMA

Parental Controls for Several Families, With the Contract Written Once and Generated Everywhere

A self-owned screen-time platform where every family is its own tenant, the rules a parent sets are a single Zod schema, and the iOS app’s Swift models are generated from that schema rather than written by hand.

Parent webChild iOSZod contractsSupabase
Rules, events and commands are defined once in packages/contracts; the web reads them as TypeScript and the iPhone as generated Swift.
Venture
HOMA
Category
Parental controls, multi-family
Stage
In development; iOS awaiting Family Controls distribution entitlement
Core challenge
One rule model across web, server and a native phone
Our role
Product design, web and iOS engineering
Focus areas
Shared contracts, tenant isolation, on-device privacy

Origin

Why we started building this

When a rule about a child’s phone exists in a web form, a database row and a Swift struct, the only honest design is to make all three the same object.

Parental-control products are built for one family at a time and funded by the data they gather. HOMA started from a different premise: several families — multiple parents, multiple children, multiple devices per child — on infrastructure the operator owns, with each family isolated in its own tenant.

The design brief was equally specific: calm, clear, caring. One card per child, status first, no surveillance aesthetics. Avatars are initials, never photos of children. The design system forbids fear-based colour and writes down the contrast ratio of every token.

The engineering brief followed from the product: a rule a parent sets on the web has to mean exactly the same thing on the child’s iPhone, so the rule is defined once and generated into both places.

What we built

What we built

A pnpm monorepo with a family dashboard, an MFA-protected super-admin console and a six-locale marketing site, all on Supabase with Edge Functions; a packages/contracts library of Zod schemas for rules, events and commands that also emits JSON Schema for Swift model generation; and a native iOS app with four Screen Time extensions.

  • Contracts as the single source of truth

    Rules (schedule blocks, downtime, daily limits), device events and parent commands are Zod schemas with a schema version. A future version is rejected by parse, not discovered in production.

  • Presets by age band

    Guided, coached and trusted presets give default rule templates parents can edit; the TypeScript presets mirror Presets.swift and are kept in step deliberately.

  • Parent dashboard and approvals

    Children, devices and pairing, rules, activity, extra-time requests and approvals, invitations for a second parent, and a transparency screen showing the child what parents can see.

  • Native iOS with Screen Time

    One app in Parent and Child mode plus ActivityMonitor, ShieldConfiguration, ShieldAction and ActivityReport extensions; specific apps are opaque on-device tokens, so the server only ever sees coarse categories.

  • Admin console behind MFA

    Families, devices, support threads, errors and a full audit trail — with support notifications and log and event retention rules in migrations.

  • Deletion that actually deletes

    Account deletion revokes HOMA at Apple with a second Sign in with Apple; family deletion asks for the family name; a child phone whose device row is gone clears its rules and shields on next sync.

The Problem

Why this needed to exist

  • A rule mis-translated between web and phone is not a bug a parent can see — the child simply has more or less freedom than intended.

  • iOS Screen Time keeps usage detail on the device and exposes apps as opaque tokens; a server that wants per-app data is designing against the platform.

  • Several families on one backend means tenant isolation has to be enforced at the database, with row-level rules, not in application code.

  • Family Controls only works on a real device and distribution needs Apple’s entitlement approval, which puts a hard external gate on shipping.

  • A six-language marketing site with Persian as the default means logical CSS properties and RTL from the first component.

The Thesis

How we framed the opportunity

The thesis was that correctness across devices is a type-system problem: define the rule once, version it, generate every consumer from it, and treat the on-device privacy model as a feature to honour rather than a limitation to work around.

  • Generate, do not transcribe

    packages/contracts emits JSON Schema; Swift models are generated from it. The one place humans keep two files in step — presets — is named in a comment and tested.

  • Version the contract

    Every rule, event and command carries a schema version, and parsing rejects anything newer than the app understands.

  • Coarse by design

    A limited data-fidelity mode for iOS means the server only receives category-level events, which is both what Apple allows and what a child should expect.

  • A calm interface is a product decision

    No fear colours, no left-border cards, no photos of children; every functional colour passes 4.5:1 on both surfaces.

The Landscape

Where the existing options fell short

What parental-control apps offered

  • Single-family products funded by the data they collect.
  • Dashboards built to alarm, with surveillance as the aesthetic.
  • Web and mobile clients that drift because the rule model lives in three places.

What was missing

  • Several families on self-owned infrastructure, each in its own tenant.
  • A rule contract defined once and generated into every client.
  • A privacy model that keeps per-app detail on the child’s device.
  • A child-facing screen that shows exactly what parents can see.

Design Principles

The decisions that shaped the product

  1. 01

    One contract, many consumers

    Zod on the web, JSON Schema in between, generated Swift on the phone. Drift is a build failure, not a support ticket.

  2. 02

    Tenant isolation in the database

    Each family is its own tenant with Supabase row rules; the admin console is a separate app behind MFA.

  3. 03

    Calm, clear, caring

    The design system is written as rules with reasons, and the iOS app follows the same tokens as the web.

The Build

How it came together

  1. Phase 1

    Contracts, schema and the parent app

    Zod contracts with schema versioning and tests, the core Supabase schema and invites, and the family dashboard: children, pairing, rules and approvals.

  2. Phase 2

    Admin, audit and support

    The MFA-protected admin console, full audit logging, support threads with notifications, transparency for children, and retention rules for events and logs.

  3. Phase 3

    iOS and the marketing site

    The native app with Parent and Child modes and four Screen Time extensions, Apple and Google sign-in, account and family deletion end to end, and the six-locale site.

Stack

  • Next.js
  • TypeScript
  • Zod
  • Supabase
  • PostgreSQL
  • Swift / SwiftUI
  • Screen Time API
  • pnpm workspaces

Role

Product & Engineering

Audience

Parents · Children · Family Operators

What Shipped

  • A shared contracts package for rules, events and commands with schema versioning and a JSON Schema export for Swift
  • A parent dashboard, a separate MFA-protected admin console and a six-locale site (fa, en, fr, ar, he, zh) on one Supabase backend
  • Eleven migrations covering core schema, invites, admin, audit, support, transparency, retention and deletion
  • A native iOS app with four Screen Time extensions, generated from project.yml, with unit tests for schedules, phone parsing and auth nonces
  • Account and family deletion flows that revoke at Apple and clear child devices on next sync
  • Not yet shipped: public release waits on Apple’s Family Controls distribution entitlement

What building this taught us

  1. 01

    If the same object lives in three languages, generate two of them.

  2. 02

    Platform privacy limits are usually the right product decision in disguise.

  3. 03

    Multi-family means multi-tenant from the first migration.

  4. 04

    Write the design system as rules with reasons, so the phone and the web agree without a meeting.

  5. 05

    Some gates are external; plan the build around them instead of pretending they are not there.

We build the products we would want to operate ourselves.

HOMA is one of the ventures we design, build, and run in-house at AshaVid.