Tutoreli
The independent teacher’s desk: schedule, lesson credits, charges and lesson notes in the app, with a browser portal for students and guardians.
- Role
- Product, design and development
- When
- November 2026, ongoing
- Team
- Solo, with AI agents on the code
- Status
- In development, not published yet
- 60 screens in the teacher app, each with its own route
- 22 request types that only the server applies, in a transaction
- 600 random sequences test the lesson balance on every run
- 410 test cases in 32 files
How Many Lessons Are Left in the Package?
A package of eight lessons, one absence, one reschedule, one holiday. Two weeks later nobody knows how many lessons are left, and the talk with the family turns into an argument. Private teachers track this in spreadsheets and messages, where attendance, credit, charge and payment blur into one thing.
Tutoreli keeps the four apart. The teacher uses the app. Students and guardians open a portal in the browser, with nothing to install, and see only what was published to them. The teacher can also have a public page that receives lesson requests.
The challengeBuild a balance anyone can check, show families only what the teacher chose, and lose nothing when the connection drops, with data from minors in the mix.
The Choices That Shaped the Product
- 01
A Credit Statement, Not a Counter
Each package becomes a grant, each lesson holds at most one credit, and every movement goes into an append-only journal. Rescheduling keeps the same credit: no new lesson, no new charge. The statement shows where each lesson came from and where it went.
- 02
The App Asks, the Server Decides
Lessons, credits and money go in as requests in a queue. The server applies them in a transaction and recognizes a repeated request, so a lost response never uses up two lessons. The screen shows what is confirmed and what is still pending.
- 03
Consequences Before the Button
Before approving a reschedule, the screen says what happens to the credit, whether a charge is created and who gets notified. The teacher decides knowing it, instead of finding out later.
- 04
Clashes Block, the Rest Warns
Two lessons at the same time are refused in the app and on the server, because they would reserve two credits. Outside working hours or with a short break, the app only warns: the schedule belongs to the teacher. A group counts as one lesson.
- 05
Access Per Person, Not Per Student
Two guardians of the same student have separate access, and one of them may see only the learning side. The portal never reads the database directly: the server sends a view built for that person, and revoking takes effect on the next read.
- 06
Public Page Away from Private Data
The portfolio comes from a copy with a closed list of fields, rendered as HTML on the server. The lesson request works without JavaScript and reaches the app as a lead, who can become a student.
The Teacher’s Day and the Family Portal
The app opens on today: the next lesson, what still needs a record and what calls for a decision. On the other side, the family sees the next lesson, the balance, the learning path and the assignments in the browser.
-
01 Today. The day opens on the next lesson, with direct access to the call and shortcuts the teacher picks.
-
02 Balance. The balance with its statement: three done, one reserved, four free, and the reason for each line.
-
03 Series. Before booking the series, every date is checked: the one that clashes locks the button until it is removed.
-
04 Record. Recording a lesson on one screen, choosing who will see the summary.
-
05 Reschedule. A request that came from the portal: two suggested slots and the consequence before approving.
-
06 Portal. The portal in the phone browser: next lesson, balance, learning path and the teacher’s note.
-
07 Public page. The public page, with experience marked as self-declared and the lesson offers.
Under the Hood
Lesson balance, money and children’s data call for rules on the server and tests that look for the case nobody thought of.
Stack
- React Native 0.88
- Expo SDK 58
- TypeScript
- Reanimated 4
- Firebase
- Cloud Functions
- Next.js 16
- Zod
- GitHub Actions
Safeguards
- Credits, charges and payments are written only by the server; database rules refuse direct writes from the app
- A correction is a reversal with a reason: no movement is ever deleted
- Single-use invitations and access links, stored only as hashes
- Files sent through the portal stay in a separate area and have their type checked by content
- Account deletion with 7 days to change your mind; portal and public page go offline at once
- Android automatic backup turned off, so student data does not leave the app’s control
Tests and Quality
- Jest
- Vitest
- fast-check
- Firebase Emulator
- Playwright
- axe
- Credit engine tested with 600 random sequences of actions: the balance always adds up and a refusal never changes the state
- Database and file rules with 33 cases on the emulator, covering who can and who cannot
- Six end-to-end scripts on the emulator, one of them with a lesson booked offline that syncs when the network is back
- Backend reviewed by another model before the gate: in account deletion, the review found 6 race conditions that 106 green tests missed
What You Would See in the Repository
The code is private. Here is what is in it, with the path or number that backs each point, as a script for a technical conversation.
Architecture
-
pnpm monorepo
apps/mobile · apps/web · functions · packages/sharedTeacher app, portal site, server and a shared package of rules in the same repository.
-
Shared pure rules
packages/shared/src/domainCredits, schedule and money are functions that read no clock, network or database. The app shows what is pending and the server confirms it with the same code.
-
Idempotent requests
commands · 22 typesEach request has its own id and a content hash. Repeated, it returns the same result; with changed content, it is refused.
-
TypeScript at its strictest
tsconfig.base.jsonstrict with noUncheckedIndexedAccess and exactOptionalPropertyTypes, and no lint warning tolerated.
Tests
-
Property testing
fast-check · credits.test.tsInstead of hand-picked examples, randomly generated sequences run against the invariants of balance and schedule clashes.
-
Server against the emulator
functions/test · 6 filesRequests, finance, portal, public page and account run in integration tests with the Firebase Emulator.
-
Contrast as a test
theme.test.tsColor pairs in the light and dark themes must pass the minimum contrast, or the test fails.
-
Accessibility in the script
Playwright · axeaxe runs inside the end-to-end scripts and has already caught a selector that screen readers could not make sense of.
Process
-
Decisions with a reason
26 decisions · docs/decisoes.mdEach decision records why, the discarded alternative and when to revisit it. A change of mind becomes a new one.
-
Spec before code
20 PRDs · docs/prdOne document per major feature. The credit engine spec failed an independent review and was rewritten before the first line of code.
-
CI gate
GitHub Actions · knip · gitleaksFormatting, lint, types, tests and dead code on every push, with rules and secret scanning in separate jobs.
Where It Stands
In development, not published yet. Everything runs on emulators and in a preview with sample data; the real Firebase project and the first native build do not exist yet.
Done in code: schedule and credits, portal, finance, learning path and assignments, public page, spreadsheet import, support and account deletion. Plans with limits are being built, and AI help to draft learning paths is only on paper.
Still to come: the real environment, the build with notifications and offline cache on the phone (today it is tested only in the browser), the legal review of the terms and a pilot with teachers before the stores.
Have a Similar Project in Mind?
I like problems with real people on the other side. Tell me what you need.