All work

Case study · 01

SSociety

One app for a school class: timetable, homework, chats, files and an AI study helper, in English and Arabic.

Live on the web, not yet used by a school. Android APK; iOS and Windows are planned.

SSociety class chatSSociety timetablePilot, the AI helper
78
Screens
172
API endpoints
414
Automated tests, all passing
2
Languages, with right-to-left Arabic
3
Form factors: phone, tablet, web

What it does

SSociety puts a school grade’s timetable, homework, chats and files in one Flutter app for Android, tablets and the web. Students see today’s lessons and what’s due, chat in class, direct and subject rooms, ask questions anonymously, and study with Pilot, an AI helper that explains, quizzes and reads class files.

  • Students: a week timetable, homework with reminders and an exam study plan, chats with threads, polls, voice messages and scheduled messages, class files with a built-in PDF reader, and study sessions with focus rounds.
  • Class admins: approve join requests, suggested homework and files; slow mode, announcements-only and blocked words; reports and a moderation log.
  • Teachers: join with an invite, choose their subjects, set office hours and answer students’ questions.
  • Managers: a full web panel with a dashboard, users, classes and grades, CSV import that creates sign-in codes, Pilot usage and app versions.

Everything works in English and Levantine Arabic, in light and dark, and keeps working offline from a local cache, with photos and voice notes waiting in an outbox until there’s a connection.

The week timetable, placed by real lesson times
Class chat: a pinned message, anonymous questions, a study session
Pilot, the AI helper (answer text from a local test stand-in)
Home with the month calendar and subject dots
One list for class, direct, group and school chats
Files by subject, with teacher-pinned previews
Home in Arabic, right to left
The manager panel on a computer
CSV import that creates sign-in codes
The student app on a computer

How it’s built

One Flutter codebase runs on phones, tablets and the web, with a side rail, two-pane layouts, keyboard shortcuts and right-click menus on bigger screens. The backend is a Node.js API that I designed and run myself.

  • App: Flutter and GetX, Hive for the offline cache, secure storage for tokens, Socket.io for live chat, Firebase Cloud Messaging for pushes, home-screen widgets on Android.
  • API: Node.js with Express 5, Sequelize and MySQL 8.4; JWT sessions that can be revoked, bcrypt, Joi validation, Helmet and rate limits.
  • AI: Google Gemini, called only from the server, with a daily limit per student.
  • Hosting: a locked-down Docker container (read-only, non-root, 384 MB) on my VPS behind Caddy and Cloudflare, S3-compatible file storage, deploys on every push to main, nightly encrypted backups.
  • Tests: 238 API tests and 176 app tests, including a contrast check, right-to-left layouts and large text.
  • Flutter
  • Dart
  • GetX
  • Hive
  • Node.js
  • Express
  • MySQL
  • Sequelize
  • Socket.io
  • Firebase
  • Gemini API
  • Docker

Engineering stories

Anonymous questions that stay anonymous everywhere

A question sent anonymously reaches classmates in four ways: lists, live socket events, push notifications and Pilot’s replies. One leak would reveal who asked. Every path that sends a message to people now goes through one function, which hides the sender from classmates while moderators, teachers and managers still see it. API tests cover each path.

A leaked AI key and holes in the roles

In October 2026 I found that the AI key was inside every APK (Google had disabled it as leaked), anyone could sign up as an admin, and some responses included password hashes. I moved the AI behind the API with daily limits per student, made roles server-only, and stripped secrets from every response.

From three hosted services to one small server

The API, database and files were spread across three free hosting services, and automatic deploys didn’t run. Now everything runs on one VPS I control: the API in a locked-down container next to MySQL and S3-compatible storage, deployed automatically when main changes, with nightly encrypted backups.

Where it stands

SSociety is built and running, but no school uses it yet: the data on it is demo data. The web app is live; the newest Android version still has to be published as an update, push notifications need testing on real phones, and iOS and Windows builds are planned.

Next projectOnhand

↑↓ move · Enter open · Esc close