A fastanchorprojectOpen-Source Release v0.9.0

Your classroom, synchronized. Zero missed deadlines.

Samay is an open-source academic companion for students, class representatives, and faculty — uniting live deadline countdowns, 85%/75% attendance simulation, offline study assets, and real-time room chat in one fast Android & Web app.

Android & Web (React Native + Expo 58)KeyStore AES-256-GCM & PostgreSQL RLSSeed Room: CSE-SEM3-2026
samay://CSE-SEM3-2026
Interactive What-If Simulator
85.0%Eligible (>= 85%)

34 attended out of 40 conducted lectures. You can safely skip 0 more classes without dropping below 85%.

CUE Portal Sync Architecture
  • Credentials encrypted locally inside Android KeyStore using AES-256-GCM.
  • Visible WebView handoff respects Cloudflare verification checks cleanly.
  • Instant O(1) client math with offline snapshot recovery.
lib/attendance.ts · cueExtractor.ts

01 · What is Samay

Everything your classroom runs on, unified inside one room code.

Samay replaces scattered group chats, expiring portal tabs, and forgotten PDF links with a single synchronized workspace scoped to your class.

01 / DEADLINES & FOCUS.ICS Ready

Smart Deadlines & Focus Sprints

Live countdown badges, cross-device completion ticks, offline mutation queue flushing, one-tap .ics calendar export, and an interactive Focus Sprint timer for urgent submissions.

Live countdown badgesOne-tap .ics calendar exportOffline queue sync
02 / ATTENDANCE CLARITYO(1) Instant

CUE Portal Sync & 85% / 75% Simulator

Syncs directly with the Christ University CUE portal inside an embedded WebView (with visible Cloudflare verification), caches credentials in Android KeyStore AES-256-GCM, and runs instant O(1) what-if simulations.

O(1) attend/skip mathKeyStore AES-256-GCMVisible Cloudflare handoff
03 / OFFLINE STUDY VAULT1-Tap Cache

Multi-Format Offline Assets

Upload and preview PDFs, lecture slides (.ppt, .pptx, .odp, .key), documents (.docx, .zip), videos, and images. Open an asset once and Samay caches it locally so it opens offline anytime.

PDF, slides, docs & mediaZero re-downloadingRoom-scoped ownership
04 / CLASSROOM SYNCRoom-Scoped RLS

Room Chat & Role-Based Controls

Join your class using a Secret Room Code. Students collaborate in real-time room chat, Class Representatives publish deadlines and notes, and Admins manage rooms, subjects, and broadcasts.

Realtime Presence & ChatStudent, CR/Faculty & AdminRLS privilege guards
05 / RELIABLE REMINDERSExact Alarms

Custom Chimes & Background Wakeups

Choose bundled WAV alert tones (Chime, Bell, Pulse, Soft) or custom audio files, configure Quiet Hours + Morning Digests, and wake reliably via Firebase Cloud Messaging v1.

4 bundled WAV chimesQuiet Hours & DigestsFCM v1 Edge Dispatch
06 / ROLES & GOVERNANCE

Built for Students, CRs & Faculty

Three cleanly isolated roles — Student, CR / Faculty, and Admin — enforced both in the UI and directly inside PostgreSQL Row Level Security triggers.

Student
CR / Faculty
Admin

02 · Why Samay is Used

Engineered against portal timeouts, guesswork, and silent alerts.

Most college portals log you out every 15 minutes, scatter PDFs across chat threads, and leave you guessing whether skipping one lecture drops you below attendance requirements. Samay solves each failure point at the systems level.

Audited Security Hardening
  • Hardware-backed Android KeyStore AES-256-GCM encryption for portal credentials & offline recovery vaults.
  • HTTPS-only in-app APK updater verifying package ID & SHA-256 signing cert.
  • PostgreSQL triggers blocking non-admin privilege escalation and enforcing room isolation.
PROBLEM 01Android KeyStore AES/GCM/NoPadding (256-bit) + cueExtractor.ts
Before Samay

College portals log you out every 15 minutes and gate sessions behind Cloudflare checks.

With Samay

Safe visible WebView handoff with hardware-backed credential autofill.

PROBLEM 02lib/attendance.ts + SubjectAttendanceCard
Before Samay

Guessing whether skipping one class drops your subject below 85% or 75% eligibility.

With Samay

Instant O(1) attend/skip simulator calculates safe bunks and recovery classes live.

PROBLEM 03lib/offlineAssets.ts + Supabase Storage / File Server
Before Samay

Important PDFs, slides, and assignment briefs get buried inside noisy group chats.

With Samay

Structured subject folders with one-time local caching for offline exam prep.

PROBLEM 04DeviceReliabilityModule.kt + FCM v1 Deno Edge Functions
Before Samay

OEM battery savers silently suppress deadline reminders until after the cutoff.

With Samay

Custom Android notification channels, exact alarm permissions, and OEM reliability helpers.

PROBLEM 05ApkUpdaterModule.kt + PostgreSQL RLS & Triggers
Before Samay

Unverified sideloaded APKs and client-side role tampering pose security risks.

With Samay

HTTPS-only release checks with SHA-256 signing-cert verification and Postgres trigger guards.

03 · How to Use It

Join your classroom in seconds, or self-host your own instance.

Students only need the signed Android APK and a Secret Room Code. Self-hosters and contributors can clone the repository and deploy with their own Supabase project.

Get Latest Samay.apk
STEP 01

Install & Launch Samay

Download the latest release APK on Android (or run the Expo Web build) and grant notification reliability permissions for exact deadline chimes.

STEP 02

Enter Secret Room Code

Sign in or register using your class Secret Room Code (starter seed: CSE-SEM3-2026). Samay isolates deadlines, files, and chat per room.

STEP 03

Sync, Cache & Focus

Connect your CUE portal once inside the encrypted WebView vault, simulate 85%/75% attendance scenarios, cache study PDFs offline, and launch Focus Sprints.

Setup & Developer Quickstart

Fastest setup for students — ready in under a minute.

1. Download Latest Samay.apk

Grab the signed release APK directly from GitHub Releases.

2. Allow & Install

Tap Samay.apk on your device and allow "Install unknown apps" when prompted.

3. Join with Secret Room Code

Open Samay and sign in or register using your classroom Secret Room Code (default starter seed: CSE-SEM3-2026).

04 · Languages & Technologies

Strictly typed from React Native UI down to Kotlin KeyStore & PostgreSQL RLS.

Every layer of Samay is engineered for low-latency mobile execution, encrypted local storage, and room-isolated real-time synchronization.

Programming & Query Languages Used

Multi-layer Android + Web + Postgres Stack
TypeScript62%
~6.0.3 (Strict)

Expo Router screens, global context, O(1) attendance math, KeyStore wrappers, & Supabase Edge Functions.

Kotlin14%
Android Native Bridge

DeviceReliabilityModule.kt (AES-GCM vault, sound channels) & ApkUpdaterModule.kt (SHA-256 verified updates).

SQL / PL/pgSQL12%
PostgreSQL + RLS

Idempotent schema, Row Level Security policies, room-scoped RPCs, and privilege-escalation trigger guards.

JavaScript8%
ES5 DOM & Node.js ESM

WebView CUE portal DOM extractor, Expo Android Gradle config plugins, and server/file-server.mjs.

CSS / Tailwind4%
NativeWind + Tokens

Light & Midnight Dark (#0C2F7B / #0B1120) design tokens, adaptive web/mobile styling.

Frameworks, SDKs & Infrastructure

Frontend & Mobile

Mobile & Web UI

File-based navigation, New Architecture rendering, Light & Midnight Dark theming, and unified Android + Web builds.

React 19.3React Native 0.88.1Expo SDK 58Expo RouterHermes
Frontend & Mobile

Styling & Motion

Minimal UI cards, animated OrbitRing atom graphics, gesture bottom sheets, and adaptive typography.

NativeWind 4.2Tailwind CSS 3.4Reanimated 4.7Lucide IconsDM Sans
Native Android

Android Native Bridge

Hardware-backed vault encryption, custom sound channels, OEM battery helpers, and SHA-256 verified APK updates.

KotlinAndroid SDK 37Gradle 9.4.1Android KeyStoreAES/GCM/NoPadding
Native Android

Portal Integration

Parses CUE portal attendance tables securely on-device without headless scraping or CAPTCHA bypass.

react-native-webview 14DOM JS ExtractorVisible Cloudflare Handoff
Backend & Database

Backend & Realtime

Room-scoped RPCs (verify_room_code, get_room_members), Realtime Chat & Presence, and server push dispatchers.

SupabasePostgreSQLRow Level SecurityDeno Edge FunctionsFCM v1
Backend & Database

Self-Hosted File Server

Optional authenticated file upload/delete server blocking active HTML/SVG payloads and serving Expo web bundles.

Node.js >= 20 / 22Multipart HTTPSupabase JWT Authnosniff Headers
DevOps & Security

CI/CD & Release Signing

Automated Android release APK builds, cryptographic signature verification, and GitHub Releases publishing.

GitHub ActionsapksignerSHA-256 Cert PinningOTA Manifests