Case study · Solo founder project

Keep all your languages alive.

A vocabulary manager for people who speak more than one language. Save each word once — with its translations in every language you know — and let the app turn that data into practice.

Solo founder and full-stack developer. I designed, built, and ship the whole product end to end: the React frontend, the Node.js API, the PostgreSQL data model, an internal admin panel, and the automated Docker/CI-CD deployment on a self-managed VPS.

Built for EnglishEspañolDeutschEesti

Showreel. — one word, many languages, full grammar.
Role
Solo founder & full-stack developer
Product
Multilingual vocabulary manager
Languages
English · Español · Deutsch · Eesti
Status
Live in production
  • React 18
  • TypeScript
  • Vite
  • Tailwind CSS
  • TanStack Query
  • Node.js
  • Express
  • PostgreSQL
  • Drizzle ORM
  • Docker
  • Ansible
  • Terraform
  • Cloudflare
  • GitHub Actions
  • Playwright

1 The core idea

One word. Many languages. Full grammar.

Most vocabulary apps treat “bailar → dance” as a single pair. Ladu stores a word as one concept — with a translation in every language you speak, each carrying its full grammatical detail.

Enter a word once and Ladu keeps its conjugations, declensions, gender, plurals and irregular forms next to every translation. The same concept can then be practised in any direction: Spanish → Estonian, German → English, Estonian → Spanish.

English, Spanish, German and Estonian are treated as equals. There is no hard-coded “primary” language; the interface and the practice engine both work across the full set.

Why it is different

The data model is the product: a word holds translations, and each translation carries the grammar that belongs to it. Practice is generated from that structure.

  1. Level 01

    Word

    The concept itself, specifying a part of speech, shared across every language you study.

  2. Level 02

    Translation

    One per language, encompasses all the information including cases and other properties, like gender or auxiliary verbs.

  3. Level 03

    Case

    The elements that build the forms, things like cases, tenses, regularity.

One concept, many different grammars. Word details with the forms each language needs.

2 Platform

How the platform is built and run

Three separate surfaces, a delivery pipeline with tests and a way back, access gates the owner controls at runtime, and an admin panel for staff.

2.1 Architecture

A monorepo with three front doors

Ladu is an npm-workspaces monorepo with separate applications for learning, administration and end-to-end tests, backed by one typed API and one relational database.

Client

Web app

React 18 with strict TypeScript, Vite, Tailwind CSS, TanStack Query and TanStack Router. Server state lives in Query; forms are generated from a per-language config rather than handwritten for each language.

React 18 · TypeScript · Vite · Tailwind · TanStack Query

Server

API

Node.js and Express with typed controllers, Drizzle ORM on PostgreSQL, JWT authentication, transactional writes and an expand / contract migration discipline.

Node.js · Express · PostgreSQL · Drizzle ORM · JWT

Internal

Admin

A separate staff-only Vite / React application, deliberately split from the learner app and shipped as its own surface with its own login.

Vite · React · TypeScript · REST API

The surfaces stay separate on the network too. The landing page is served on the apex domain, the learner app on the app subdomain, and the admin panel on its own subdomain that is kept off the public list. A failure or a deploy in one does not take down the others.

The four supported languages also make the frontend internationalised rather than English-first: interface copy, grammar labels and practice instructions all exist in EN, ES, DE and EE.

2.2 Delivery

From merge to production, with a way back

Ladu runs on a self-managed VPS as Docker containers behind a Caddy reverse proxy. DNS and TLS are managed with Terraform; server provisioning with Ansible.

  1. 01

    Merge to main

    GitHub Actions starts the release.

  2. 02

    Build images

    App, admin and landing images.

  3. 03

    Deploy staging

    A full environment, not a preview mock.

  4. 04

    Smoke test

    The gate before production.

  5. 05

    Production

    Deploy, with automatic rollback on failure.

Separate subdomains serve the landing page, the app and staging, with dedicated admin environments kept out of the public list. Transactional email for verification and password reset runs over Resend. Nightly backups, restore tests and a purge job complete the operational loop.

2.3 Verification

Tests are part of the release

Every feature ships with tests, and the staging smoke test can block a production deploy.

Jest — backend

API, scheduling logic and data access covered where the rules live.

Vitest + MSW — frontend and admin

Components and flows tested against mocked network responses.

Playwright — full stack

A real browser against the real backend and PostgreSQL, not a mocked path.

Staging smoke test

Runs on every deploy and blocks production when it fails.

The result is a test pyramid that covers the grammar-heavy backend, the state-heavy frontend, and the path a person actually takes through the product.

2.4 Access control

Accounts, gates and bot protection

Authentication is more than a login form here. Ladu supports two sign-in methods, account linking, captcha on public forms, and owner-controlled access gates that can be changed without a deploy.

Google sign-in
OAuth 2.0 / OIDC with PKCE. ID tokens are verified server-side. Accounts can link and unlink a Google identity from the profile, alongside email and password.
Captcha
Cloudflare Turnstile protects the three public forms: sign-up, password reset and demo. It can be switched from the admin panel.
Access gates
The owner can switch registration and login between open, closed or limited — an invite list for sign-ups, an allow-list for logins — with no deploy. A “sign everyone out” control covers the emergency case.
Verified badges
An official badge can be granted by the owner and is shown on tags, with anti-impersonation rules applied to usernames.
Two ways in. Email and password, or Google — on the same account.
Account creation. Step one of two, with the Google path and a standard profile form.

2.5 Operations

A tool for running the platform

The admin panel is a separate staff-only web app: a searchable user list, moderation actions, a complete audit trail, role-based permissions and live operational status.

It is protected by Cloudflare Access in front of a second staff login and split by environment. The admin surfaces are intentionally not shown on this public page.

  • User management. Search, ban, unban, force-logout, delete and restore.

  • Audit log. Every staff action is recorded and reviewable.

  • Role-based permissions. Staff accounts see only what their role allows.

  • Health and backups. Live service health and backup status in one place.

  • Platform switches. Sign-up, sign-in, demo and captcha controls.

  • Usage statistics. Product activity without opening the database.

  • Cloudflare Access. A first gate before the staff login, not instead of it.

  • Environment split. Production and staging admin are separate deployments.

2.6 First impression

A landing page designed for phones too

Ladu has a public landing page of its own, separate from the app, served on the apex domain.

It lives in landing/ as a separate static site, built into its own Docker image. It is available in the same four languages as the app, in light and dark themes, and keeps its cookie notice to essentials only.

Desktop layout. The desktop landing page, with its rotating preview stage.
Phone layout. The phone layout, designed on its own.

The phone is a different edit, not a shrink

The desktop page rotates through its previews. On a phone, that stage becomes a single stacked story with its own order and spacing, not a smaller copy of the desktop layout.

Static build · four languages · light and dark

Pages
Privacy, terms, credits, legal notice
Blog
Markdown, built at image time

2.7 Low-friction access

A demo with no sign-up

A tool that needs data before it feels useful needs a way in that asks for nothing. “Try the demo” gives a visitor a working account in one click.

“Try the demo” opens a throwaway account pre-loaded with sample data. It stays usable for a few minutes, then expires and destroys itself. Any app screenshot taken in the demo shows the countdown chip in the top bar (“Demo 14:08”).

Trying the demo. No account, no commitment: pick the languages and enter a sample dictionary.

3 The product

The learner app

The product itself, in the order a new user meets it: onboarding first, then the dictionary, practice, tags and the dashboard.

3.1 First session

No empty dictionary

First login asks for languages, level, interests and word count, then pre-fills the account with real, tagged words. The user practises in under a minute instead of starting from an empty table.

“Your choices so far” stays visible on the left through the whole flow, so every step can be checked before it becomes a tag or a study level. The result is a dashboard that already has something to practise.

Onboarding. Languages, level, interests and word count, ending on a dashboard that is already filled.

3.2 Saving a word

Forms that know the language

The entry form adapts to the part of speech and the language. A German noun asks for gender and plural; an Estonian verb asks for different cases than a Spanish one.

A grammar-aware autocomplete fills conjugations and genders from a base form, so most words are entered from a type-ahead rather than typed field by field. The dictionary then shows one row per concept and one column per language, with gender badges, tags, search and filters.

Adding a word. Type-ahead finds the concept, matches appear in other languages, and the grammar form arrives filled.
The dictionary. One row per word, different language columns, gender and part-of-speech badges, tags and filters.

3.3 Practice

An engine that watches what you forget

Practice is generated from the vocabulary you have saved. A spaced-repetition engine based on forgetting-curve decay prioritises the words you are about to forget.

Sessions mix card types and language pairs. Every answer gets feedback; a recent-history indicator shows how the word has been going, and mastered / revise overrides let you correct the algorithm when you know better. Saved configurations keep the language, word-type and ordering choices you use most.

A practice session. From a saved configuration to answered cards, with feedback and mastered / revise overrides.

3.4 Collections

Tags you can follow or make your own

Words can be grouped into tags with three scopes: private, friends-only or public. A public tag can be followed to read its words, or cloned into your own editable dictionary.

The tags screen filters by All, Yours, Followed and Discover. A tag detail shows its words in the same four-language table, with controls to add, remove and edit. Creating a tag can bundle a label, a description and a set of words in one step.

Tags from words. Browse the tag list, open a collection, and create a tag from a set of words in one dialog.

3.5 Overview

The state of your vocabulary

The dashboard answers three questions quickly: how much do I have, how complete is it, and what should I do next?

Totals and incomplete words sit next to a breakdown by word type and language, growth over time, and shortcuts to random practice or a new word. It is a working page, not a report: every number has a route back into the dictionary or a session.

Dashboard. Totals, incomplete words, type / language distribution, monthly growth and two shortcuts.

4 Challenges

Problems that come with building it

Building a platform means solving many problems nobody lists in the brief. This is one example, chosen because it shaped the whole data model, not a full account.

4.1 The problem

Every language brings its own grammar

A word in Ladu is a bundle: one concept, translated into several languages, where each language has its own set of inflected forms. The shape of that data changes with every part of speech and every language.

English noun
singular, plural
Spanish noun
singular, plural, gender
German noun
gender, plus 4 cases × singular / plural
Estonian noun
3 cases × singular / plural, plus a short form

And these are only nouns. Verbs multiply the same idea by tense × person × number. Across four languages that is hundreds of possible fields, and almost all of them are optional: a user’s entry for “go” may only have the simple present filled in.

Two obvious designs fail on this data.

A table per language and type

nouns_es, verbs_de and so on. Every new language means new tables, new queries and new forms. It does not scale by design.

One JSON blob per word

Flexible, but nested data has no proper indexes, every read needs defensive parsing, and validation turns into string matching against an untyped object.

Plain columns are no better. One column per form gives a table of about 100 columns that is 95%NULL.

4.2 The schema

Normalise on optionality, not on word type

Instead of one wide row per word, Ladu stores one row per thing that actually exists, across three linked tables.

  1. Table 01

    words

    The concept. It exists once, whatever languages are attached to it.

  2. Table 02

    translations

    One row per language the user knows. No row means the language is not known yet.

  3. Table 03

    translation_cases

    One row per form that exists: a case name and the word that fills it.

The key move

Optionality is a row that exists or does not, not a nullable column. Sparse data stays short instead of wide.

The first two tables are ordinary normalisation: a word has many translations. The third is an entity–attribute–value pattern, where each attribute value is its own row. Adding a form for a new language is just new rows, with no migration and no empty columns.

Purists call EAV an anti-pattern, because it trades query ergonomics and database-level typing for flexibility. It is not a perfect solution, but for fields that keep changing it is a good compromise. Its classic failure is the attribute name turning into a junk drawer of free-text strings.

That is where TypeScript Enums come into play.

4.3 The guardrail

The enums are the vocabulary

The case name is never free text. Every possible form is a member of a TypeScript string enum, and its value describes itself.

One naming convention

Category, tense or case, person or number, then language. The name alone says what the row is, so nothing has to be looked up.

The catalog

The union of all enum members is the full, compiler-checked list of forms the app can store. A new form is one new member, in one place.

The contract

The database and the code share the same names. A typo like simplePresent1sEn is a compile error, not a silent empty field.

The meaning

Each name carries its category, tense, person, number and language, so forms can be matched across languages. This is what makes cross-language practice possible.

Greppable data

Values are stored as readable strings, not integers. A raw SQL query reads like a dictionary.

4.4 The result

Flexible, maintainable, and open to growth

Any type of word, in any language, with as many or as few forms as needed, stored in a handful of tables.

The design started as a rough JSON object and ended as this hybrid of normalised tables and EAV rows, without losing the depth that makes the platform useful. Adding a language or a part of speech now means adding enums and forms. There are no new tables that stay mostly empty, and no JSON blobs that fight SQL.

It held up in practice. Despite hundreds of fields across many forms, mislabelled values were rare, thanks to tight typing and readable stored values. When one did appear, the schema and the enum names made it easy to trace. That left time for the other features of the platform.

5 Explore

See it running

The demo is the shortest route: no account, sample data, and a real practice session. The live app and the landing page are public too.

Screenshots come from the local app with demo sample data and a throwaway account. No real user data appears in them.

← All projects