← portfolio

SilaLingo

Thai learning site and Android app · silalingo.com

SilaLingo home page: green hero panel, sign-up form, and counters for 1123 vocabulary words, 131 example sentences and 315 lessons.
The front page of silalingo.com: the headline, the sign-up box and the counters for words, sentences and lessons.

What it is

SilaLingo is a Thai learning site. It has a dictionary, lessons built from that dictionary, and a review queue that decides what you practice next. Words are shown with their tone and played out loud, because tones are the part most learners find hardest at the start.

There are two parts. The website holds all the content and does the teaching. The Android app uses the same API, so a lesson finished on the phone appears on the site too, and the same in reverse. The database has about 1,100 words, 130 example sentences and 300 lessons.

The Android app

The app is written in React Native with Expo. It is not a wrapper around the website: it has its own screens for the daily lesson, the review queue, the vocabulary list with search, the alphabet, typing practice for every lesson, the progress pages and the achievements.

You install it as an APK from the site, or through Google Play, where it is in closed testing and should go public soon.

The current version is 2.5, from November 2026. It added dark mode across the app, a home screen with your streak, words learned, 30-day accuracy and items due, and a notice when a newer build is ready. One account works everywhere, with Google sign-in or email.

What's in it

How it's built

Django 5.1 + DRF
Server-rendered pages for the site and REST endpoints for the app. One codebase, one database.
PostgreSQL 16
Dictionary, lessons, accounts and review history.
Redis + Celery
Caching and the scheduled jobs: reminder emails, streak updates, the counters behind the progress pages.
HTMX
Quizzes, review screens and filters update without reloading the page. I did not need a JavaScript frontend for pages that mostly replace one piece of HTML.
Tailwind CSS
Moved here from Bootstrap 5 in steps. A theme is a set of CSS variables behind a data-theme attribute, so dark mode is a second set of values, not a second stylesheet.
React Native + Expo
The Android app: Expo Router for navigation, React Query for API calls, Google Sign-In for login.
django-modeltranslation
Russian fields sit next to the English ones on the same model, so there is no second copy of the content.
Content Security Policy
Scripts are limited to the site itself and two CDNs, with no inline JavaScript and no eval. Styles still allow inline, scripts do not.
Docker + Caddy
Containers on a VPS I run myself. Caddy handles TLS and the reverse proxy.
MCP endpoint
/mcp lets an AI client search the dictionary instead of guessing a word or a tone.

Links

The source is private. If you want to talk about how the review scheduling or the API works, ask me and I will show you the relevant parts.

← portfolio