
ToastMaster Online Assistant
A real-time web app for online English reading clubs, used next to Google Meet or Zoom: the host walks the group through an 8-part session while supporters add pronunciation notes, vocabulary, QA answers and discussion notes that everyone sees instantly. It began on Firebase and Cloud Run, and now runs on my own server at tm.dngioi.com.
- Status
- Completed · 2026
- Built with
- React 19
- TypeScript
- Vite
- Tailwind CSS
- Node.js
- Fastify
- PostgreSQL
- WebSockets
- Firebase Authentication
- Docker
- Caddy
- Vitest
- Playwright
- Cloud Firestore (until 2026-10)
- Google Cloud Run (until 2026-10)
About the project
Online reading practice usually happens on a video call, with notes scattered across chat messages. This app gives the session one shared screen.
The host prepares a session (a dialogue script, the participants and some questions) and starts it live. Everyone joins as host, supporter or reader. The host moves the group through eight parts: opening, first reading, role-switch reading, pronunciation feedback, new vocabulary, QA practice, topic discussion and closing. Each part changes what the presentation view shows, and every change reaches all participants in real time.
Supporters select words in the passage to add pronunciation notes with IPA, coloured by the reader who needs them. They also add vocabulary, record answers with evidence picked from the text, and write discussion notes. When the host ends the session, it becomes a review page, and the words go into a vocabulary book that can be searched across sessions.
I built the first version in about ten days with Google AI Studio, on Firestore and Google Cloud Run. In October 2026 I moved it to the server that runs dngioi.com, to cut the cloud bill. A small Node.js API with PostgreSQL replaced Firestore, and live sync now runs over a WebSocket. All 710 documents from four months of weekly sessions were exported, checked against a manifest and imported.
The screenshots show the app running locally with demo sessions and participants.
Features
- Session setup: title, topic, meeting link, a dialogue script, participants with roles, and multiple-choice or open questions.
- Live session in 8 parts, driven by the host, with a session timer and a notice to everyone when the part changes.
- Roles: host, supporter and reader, each with its own views (presentation, supporter, vocabulary, QA, discussion).
- Pronunciation feedback: select text, add IPA and a note for a reader; the passage highlights each word in that reader's colour, with filters by who added it.
- Vocabulary and QA: highlight to capture a word or the evidence for an answer.
- Review page and Vocabulary Book: everything from a finished session on one page, and all words across sessions with search, filtering by session and inline editing.
- Sign-in with email and password or Google (with a redirect fallback when pop-ups are blocked).
Screenshots
Architecture
- A React 19 + TypeScript single-page app built with Vite and styled with Tailwind CSS.
- A Node.js (Fastify) API stores sessions, notes, vocabulary and answers in PostgreSQL. Each table keeps typed columns for sorting, and the rest of the document as JSON.
- Live sync: every saved change is pushed over one WebSocket to everyone viewing that session. Changes made while a screen loads are queued behind its snapshot, so nothing is lost or undone.
- Firebase Authentication stays for sign-in (email and Google). The API checks Firebase ID tokens against Google's public keys, and the browser refreshes them before they expire.
- One Docker image serves the app and the API behind Caddy (HTTPS), next to dngioi.com on the same 2 GB server, using about 25 MB of memory. Backups run nightly to R2.
- Before October 2026: the browser talked to Cloud Firestore directly, and the static build ran in Nginx on Google Cloud Run.
Challenges & what I learned
- Keeping many live views consistent, so a part change or a new note reaches everyone at once and late joiners get a complete picture.
- Turning a selection in the passage into a highlight that survives re-rendering, and colouring it by reader when several people share a word.
- Google sign-in inside embedded previews, where pop-ups are blocked: falling back to a redirect.
- Moving off Google Cloud without losing data. The steps:
- a read-only export with a checksum manifest;
- an import that refuses any count mismatch;
- a rehearsal on a local copy;
- freezing Firestore to read-only, then the final export and import;
- a test restore of the first backup.
- Finding where the old app actually ran: its Firebase project and its Cloud Run project were different.
- Firestore's real-time listeners make collaborative features easy to start, but a small API with Postgres and a WebSocket costs far less to run and is easier to back up.
- Firebase Authentication on its own doesn't refresh ID tokens ahead of time (Firestore used to trigger that), so the client has to schedule it.
- A migration is safest as a rehearsal plus a short read-only window, with the data verified by counts and checksums at every step.
- Building with an AI assistant works best step by step, with exact error messages and a written plan that a fresh reviewer checks at the end.