



A plan a student has bought is a membership, and the classes and sessions it allows are counted in credits. A class is one scheduled group lesson, a session is a one-on-one meeting with a coach, and a belt is a student's level. "Staff" means coaches, office staff and admins together.


Practice in small groups is the core of the school's method, so we made forming the groups a matter of seconds.
Coaches can also create rooms manually, shuffle students, rename a room, close one room or bring everyone back to the main room. A coach can visit a room or ask another staff member to move to one; that person gets a prompt to accept or decline. A closed set of rooms is remembered, with coach positions, and can be reopened as a draft.
The first version created video rooms one after another, so opening several groups felt slow. Now the proposal is saved as a draft while the coach reviews it, and on Open the server creates all video rooms in parallel. Participant lists of the rooms are also fetched in parallel and briefly cached, so the coach's overview of rooms stays responsive when many people switch rooms.
The coach controls the whole class from one panel while students are spread over many rooms.


The coach presents a class file, such as lesson slides, directly in the classroom, so nobody needs a second tool or a screen share for it.
In the main room students follow the coach's page and scrolling. When the class splits, the file opens in each breakout room on the page the main room was on, and each room then turns pages on its own. The server checks that the file belongs to the class and serves it through a temporary signed link that stops working after an hour.
The coach can draw on slides with a pen, use disappearing ink that fades after two seconds, erase or clear. The same tools work on a screen share for the person sharing. Drawings stay in the room where they were made, and people who join later receive the pen strokes already on screen.
A screen share can run alongside the PDF: it takes over the view while active, and when it ends the room returns to the same slide. In Chrome and Edge the presenter can scroll a shared browser tab from inside the classroom.
Students join from laptops, headsets and phones, so some sound too quiet and others too loud. We built an audio chain that runs in the browser on each microphone:
Gain rises slowly, 3 dB per second, and falls fast, 40 dB per second, so a quiet voice is brought up gradually and a shout is cut quickly. A speech gate tracks background noise and freezes the gain during silence, so room noise is not amplified. If the noise filter stops working, the classroom turns it back on, and after a change of microphone it rebuilds the chain.


Paid sign-up is built so that a student does not end up with an account without a payment, or a payment without an account.
Admins and office staff can refund a payment in full or in part from the portal. Office staff have a daily refund limit. Refunds made directly in Stripe appear in the portal too. A failed payment triggers an email to the student. When Stripe marks a subscription as unpaid after its retries, the membership is suspended and both the student and the admins are notified.
The school can package its teaching in different ways without asking developers.
Admins and office staff can pause a membership in the portal, which moves its end date by the length of the pause, cancel a scheduled pause, and adjust a student's session credits and punch card balance. A pause extends the membership instead of stopping payments: billing in Stripe continues unchanged.


Coaches and admins set up a class once, and the platform keeps the schedule and the queue for places.
Students book private time with a coach without emails back and forth.


Progress is visible to the student and usable in booking rules. The school measures progress in belts, from White through Yellow, Green, Blue, Purple and Black to a top Ninja Master level. Coaches assign belts, and each change is kept as history.
A class type can require a minimum belt, and the server rejects bookings from students below it. Students without a belt see all classes but cannot book those with a minimum belt.
A week counts toward a streak when the student attends at least three classes. The portal shows the current and best streak and the last eight weeks. Leaderboards rank the top ten students by classes attended, among students on the same plan and across the school, for the last 30 days and for all time. A "My Journey" page shows each student's belt progress.
Coaches get attendance from the classroom's join and leave records instead of ticking names. LiveKit reports who joined and for how long, and with one click the coach marks students who spent at least five minutes in class as present and the rest as no-shows. Coaches can also mark attendance by hand, one by one or in bulk.
For each student, staff see time in class, speaking time, camera and microphone time, screen sharing, raised hands and reactions. After every third consecutive no-show the student receives a warning email.
Staff can email everyone booked into a class and see for each recipient whether the email was sent or failed. Failed emails are resent automatically, up to ten attempts in total.


Students can attend from whatever device is at hand. The classroom changes its layout with the screen width: on phones the controls and side panels move into bottom sheets, and on a tablet in portrait the participant sidebar becomes a strip under the stage.
There are six layout modes: coach speaking, presentation, screen share, one-on-one, and two breakout modes. With up to nine people everyone gets a tile. In larger classes the grid shows eight people plus a "+N" tile. People who are speaking or have a hand raised are shown first, and a speaker keeps the place for ten seconds after falling silent, so tiles do not jump around with each word.
Background blur and virtual backgrounds are processed in a separate thread where the browser allows it, so the classroom controls stay responsive. On weaker devices they switch to a lighter model.
Coaches keep order in class without leaving the classroom.
Coaches can mute one student or everyone, see who is speaking, lower hands, remove a participant and open a student's profile from the classroom.
Muting, removing and moving people between rooms go through the server, which checks the caller's role. The server also writes each participant's role into the LiveKit access token, and browsers ignore coach-only commands, such as starting a presentation, from anyone without the coach role. A student's browser cannot give itself the coach role.


Coaches see their teaching schedule in the calendar they already use. Classes and one-on-one sessions appear in each coach's own Google Calendar, and a pending request holds its slot there, marked as unconfirmed until the coach accepts. Changes go through a job queue that processes them in batches of 20, so booking does not wait for Google. A failed update gets up to eight attempts, with delays that double from 15 seconds and are capped at 30 minutes. Students receive calendar invites and cancellations by email.
The school runs its daily operations in the portal.


Users sign in with email and password, Google, or a one-time email code. Sessions are kept in secure cookies with protection against forged requests from other sites (CSRF), and public endpoints are rate-limited per IP address; login, for example, allows five attempts in 15 minutes. Admins can suspend users and revoke their sessions.
To support GDPR requirements, the portal records consent to terms, privacy policy and marketing emails, stores cookie consent, lets students export their own data and lets them turn off class invitation emails.
The server is covered by about 3,000 automated tests. More than 500 of them are end-to-end tests that run whole business flows through the server against a real PostgreSQL database, with Stripe, email and file storage replaced by test stand-ins. The web app has Playwright browser tests and unit tests.
Each pull request is checked automatically before it is merged: server tests and code formatting, plus lint, type checks and a build of the web app. After the checks pass, the main branch is deployed to a test environment on Google Cloud Run. Production runs on Google Cloud Run in Europe, and releasing to it is a deliberate manual step.


LiveKit carries the video and audio of the classroom, and Krisp, MediaPipe and the browser's audio engine process sound and video on each participant's device. Stripe handles checkout, subscriptions and refunds. Resend sends the emails. Google Cloud Storage keeps class files, and Google Cloud Scheduler starts the scheduled jobs. Student, payment and staff events are published to the school's CRM through Google Cloud Pub/Sub. Checkout and purchase events go to the Meta Conversions API with click IDs and hashed contact data, so ad campaigns can still be measured when browser tracking is blocked. New leads, new students and status changes reach Zapier through a webhook that an admin sets in the portal.
