~/jay-fallon
active

Zaaber

A geography learning platform for schools.

Visit site
role
Solo founder & engineer
status
Active
years
2026 — present
stack · 16
next.js 16react 19typescriptheroui v3tailwind css 4postgresql 17prisma 7redisd3-geomapshapervisxstripesentryvitestgithub actionsrailway

Zaaber is a geography learning platform for schools. Pupils learn the world by finding places on a blank map: they press the country, drag its outline into place, drop a pin on the city or pick its flag. There are no multiple-choice lists to guess from. Teachers build lessons and courses from more than 600 quiz sets covering every country, continent and ocean, and follow their class's progress in live reports. It works in 22 languages, including right-to-left Arabic and Urdu. It was designed from the first day for children's privacy: no advertising, no trackers, no leaderboards, and pupils' names are encrypted so that only their own teacher can read them.

How it was designed, built and deployed

The problem

Most geography quizzes are multiple choice. A pupil who picks "Peru" from four options has learned to recognise a word, not to find Peru. Zaaber is built around recall on a real map. Every question shows a blank map, and the pupil answers by acting on it:

That choice drives most of the engineering. A map quiz needs accurate, licensed geographic data for every country it covers. It needs projections that are fair to the pupil, scoring that rewards a near miss, and touch targets a child can actually hit. It also has to run in a school, which means classes, teachers, reports and payment, and above all the privacy rules for under-13s.

Product principles

Before any code, a written specification and an implementation plan fixed a few rules that every later decision was checked against:

  1. Privacy first, not at the end. Under COPPA, a school product for children has to collect almost nothing. Privacy work was scheduled first, and the build fails when the code drifts from the published privacy notice (see Testing below).
  2. No engagement mechanics. No streaks, no loss-aversion nudges, no rankings. Levels only ever go up, and a timed run only races the pupil's own best time.
  3. Adding a country is a data change. The application should not need code to support a new country's provinces or capitals. A country is a configuration entry that the data pipeline turns into published quiz sets.
  4. Every published fact has a source. Each quiz set records where its geometry came from, under what licence and with what corrections. A provenance file is generated on every build.

Architecture

Zaaber is a Next.js 16 / React 19 application written in strict TypeScript, served from a single Node process.

LayerChoiceWhy
UIHeroUI v3 + Tailwind CSS v4An accessible component library (React Aria underneath) gives keyboard support, focus management and screen-reader semantics for free. A project rule: every piece of UI is a HeroUI component.
DataPostgreSQL 17 via Prisma 7Relational data (organisations, classes, memberships, attempts, courses) with migrations in the repo.
Sessions and rate limitsRedisServer-side sessions (no JWTs to revoke) and sliding-window limits on sign-in and claim codes.
Mapsd3-geo, drawn as plain SVGProjections and path generation on the server where possible, so the browser gets SVG paths, not geometry libraries.
ChartsvisxOnly the plot. Cards, legends and the "view as a table" alternative are HeroUI components, and charts draw with theme variables, so light and dark mode need no second code path.
PasswordsArgon2id (@node-rs/argon2)
PaymentsStripe Checkout (hosted)No card data and no Stripe script on our pages.
ErrorsSentryConfigured to send no names, usernames, addresses or request bodies.

The server owns everything that matters. Scoring is computed on the server from the published quiz document, never trusted from the client. Every quiz document is versioned and immutable: an attempt is pinned to the exact version it was played against, so a corrected border never changes a score already given.

The geography data pipeline

The largest single body of work is an offline pipeline (pnpm geo:build) that turns raw geographic sources into the quiz documents the app plays.

Sources. The baseline is Natural Earth (public domain) for countries, first-level divisions, rivers, lakes and physical regions. Where Natural Earth is not detailed or not current enough, national and humanitarian sources take over. Each is recorded with its licence and a file digest:

Processing.

Publishing. pnpm geo:publish loads the documents into Postgres. Published versions are never edited; a correction is a new version. The result is over 600 quiz sets: the world and its continents and regions, the 197 countries, and dedicated sets (divisions, capitals, cities, rivers, lakes, peaks, islands, airports) for about fifty countries.

Making a map quiz fair

A few problems came up again and again on the map canvas, and each has its own module:

Classrooms, courses and reports

Teachers create a class with a name, a web address and a list of pupils, one per line.

Reports are computed from attempts, so they can be rebuilt at any time. A nightly job stores daily rows for trend lines.

Privacy and security by design

Privacy is not a policy page attached at the end. It is built into the data model and enforced by tests.

Internationalisation

The interface is in 22 languages:

Interface and design process

The visual design came as a series of design handoffs: static HTML mock-ups with a theme and written notes. Each was rebuilt in HeroUI against the real application, not copied. That mattered because designs regularly misstated how the app worked. The rule became "build on the app, fix the copy, and list every difference in the pull request".

The theme is a set of HeroUI v3 CSS variables with a derived dark palette. A repository-wide rule (and a test) bans hand-rolled UI: no <div> cards, no hand-built tables or modals. This came from experience: the component library had once been installed and then ignored for thirty components, and nothing caught it, because the shared stylesheet made them look right.

Testing and quality

Deployment and operations

How it was built

The project started on 15 September 2026 with a specification, an implementation plan and a build checklist, before any code. Work then moved issue by issue:

The code was written in close collaboration with an AI coding agent (Claude Code), with the product owner deciding scope, reviewing every change and merging it. The agent did:

The owner made every product decision. That included the pricing, which member lists to trust when sources disagreed, and when a design should give way to how the app actually works. A persistent project memory kept those decisions consistent from one session to the next.

In its first weeks the project reached about 720 commits, 240 merged pull requests and 140 issues. The result is roughly 195,000 lines of TypeScript across the application, the data pipeline and the tests.

What I would do next

Stack: Next.js 16, React 19, TypeScript, HeroUI v3, Tailwind CSS v4, PostgreSQL 17, Prisma 7, Redis, d3-geo, mapshaper, visx, Stripe, Sentry, Vitest, GitHub Actions, Railway.