Offline-first platform for Irish schools
App Store Microsoft Store Website
- Result
- Desktop builds for direct download, the Microsoft Store and the Mac App Store come out of one pipeline.
- My role
- Electron Developer, desktop release owner
- Team
- 10 developers
- Platforms
- Desktop, Web
Client name left out
Teachers and students in Irish schools needed e-books, notes and homework that keep working when the classroom has no internet. The team built one platform as a web app and an Electron desktop app for Windows and macOS. I owned the desktop build and release pipeline, and built the offline mode for books, notes and homework.
The problem
Teachers and students in Irish schools work with e-books, notes and assignments every day, and the classroom does not always have a connection. The platform had to keep working offline, protect the publisher's book content from copying, and reach school devices through the app stores as well as direct downloads. All of that from one codebase, shipped as a web app and a desktop app.
What we built
- One React, TypeScript and Vite codebase that ships as a web app and an Electron desktop app, with separate main, preload and renderer packages.
- Roles and administration: students, teachers, school staff and admins, with schools, subjects, classes and push notifications managed in the same app.
- A book reader for HTML and PDF chapters on pdf.js, with drawing notes on top of pages, text and audio notes, and search across chapters with highlighted matches.
- Classrooms and homework: resources per class, assignments written in CKEditor 5, submissions with images and audio, marks and progress tracking.
- Offline mode: books are downloaded as AES-encrypted archives, decrypted only while in use and removed on exit; books, notes and homework live in IndexedDB with a per-user sync queue that pushes changes back and checks chapter versions when the connection returns.
- Content protection: copy, print and screenshot protection in the browser, and native content protection in the desktop app.
- Desktop releases: direct builds (NSIS and portable for Windows, DMG for macOS) and store builds (APPX for the Microsoft Store, MAS for the Mac App Store) from a GitHub Actions matrix, with test, live and store-production jobs.
My part
- Owned the desktop build and release pipeline: the electron-builder configs for direct and store targets, the GitHub Actions matrix for Windows and macOS, environment-specific builds, release creation and artifact upload. I wrote the CI scheme document the team works from.
- Set up signing for the stores: certificates in the macOS keychain on the runner, provisioning profile and App Store entitlements for the Mac App Store, APPX identity for the Microsoft Store, store icons and usage descriptions.
- Built the offline mode for books: encrypted download and decryption, offline rendering of HTML and PDF chapters, pagination, search and navigation without a connection, and per-user separation of downloaded books.
- Built homework offline: students do and submit homework offline, teachers download it, and the sync queue pushes it back with error marking for items that fail.
- Notes offline and online: drawing and audio notes that sync both ways, note downloads, audio recorder validation and microphone access in Electron.
- Drove the chapter reader wrapper, the file where most of the reading experience lives, and fixed the pdf.js worker packaging for production builds.
- Added IndexedDB migrations so existing installs survive schema changes.
Result
- Desktop builds for direct download, the Microsoft Store and the Mac App Store come out of one pipeline, per environment, on every release branch.
- Books, notes and homework work with no connection and sync back when the device is online again.
Tech stack
- Desktop & web
- Electron 30
- React 18
- TypeScript
- Vite 5
- electron-builder 26
- @electron/osx-sign
- NSIS and portable (Windows)
- DMG (macOS)
- APPX (Microsoft Store)
- MAS (Mac App Store)
- UI
- MUI 5
- Emotion
- dnd-kit
- Formik + Yup
- Sass
- State & data
- Redux Toolkit
- Redux Thunk
- Axios
- IndexedDB (JsStore)
- AWS S3 SDK
- Reading & editing
- pdf.js
- React PDF Viewer
- CKEditor 5
- Drawing canvas (react-sketch-canvas)
- Text search highlight (mark.js)
- DOMPurify
- Offline & protection
- AES-encrypted book archives (crypto-js)
- Zip handling (adm-zip, unzipper)
- Per-user sync queue
- Screenshot and copy protection
- Electron content protection
- Media
- Audio recording
- React Player
- Google Drive picker
- Quality & releases
- Jest
- Cypress
- Playwright
- Sentry
- Firebase
- GitHub Actions
- GitLab CI
- SonarQube
- Lefthook
Shipping a desktop app? Tell me where the release is stuck.
Pick a 30-minute slot to talk about signing, notarization, installers or auto-update, or send a few sentences by email.
Related work
- Education
- AI products
ChatGPT learning app for kids, built as an MVP in one month
A working app in the client's hands a month after the start. It won the company the next project.
- Mobile
- MVP
- AI
- CI/CD
- Release / stores
- Healthcare / MedTech
Medical documents with on-device encryption
Published on the App Store and Google Play; the app has since been taken down from the stores.
- Mobile
- Security / encryption
- Offline
- Release / stores