Self-Hosted Open Source Google Classroom Alternative & Autonomous Zero-PII LMS
Full Google Classroom v1 REST API parity (105 methods), 100% offline interactive school whiteboard, split-screen SpeedGrader, Simonov educational analytics, client-side WebCrypto AES-256-GCM encryption, and 0 bytes of server-side personal data under Russian Federal Law 152-FZ.
English · Русский
Why BormoClass · Features · Screenshots · Architecture · Zero-PII & Crypto · Pedagogical Analytics · Quick Start · REST API · Contributing · Support
🌐 Project home: педобраз.рф
Note
Every screenshot in this documentation illustrates a synthetic live demonstration classroom (8A Computer Science & ICT, 6B Mathematics, 10A Python Algorithms, 7V Physics) generated with authentic decrypted Zero-PII student callsigns and live pedagogical telemetry. Zero real student personal data is collected, stored, or processed.
Modern educational institutions face a critical challenge: proprietary cloud learning management systems (LMS) such as Google Classroom, Microsoft Teams, and Canvas offer streamlined assignment workflows, but they demand exhaustive personal data collection, impose heavy vendor lock-in, and rely on centralized corporate cloud infrastructure. School-wide email accounts, legal student names, phone numbers, surveillance telemetry, and behavioral footprints are routinely uploaded to overseas cloud silos. In many jurisdictions — including the Russian Federation under Federal Law 152-FZ ("On Personal Data") and Federal Law 273-FZ ("On Education in the Russian Federation") — institutional data privacy and digital independence mandates make reliance on proprietary US cloud services legally problematic or impossible.
BormoClass is the first completely autonomous, self-hosted, 100% free and open-source alternative to Google Classroom:
- True Self-Hosting & 100% Open Source (Apache-2.0): Run BormoClass entirely on your institution's own servers, school VPS, or air-gapped local network. You own 100% of your data and infrastructure. Zero licensing fees, zero ads, zero telemetry, and zero risk of cloud account deplatforming or service sunset.
- Drop-In Google Classroom Experience: Built around the iconic 4-screen layout that educators and students already master: Stream, Classwork, People, and Grades (Лента, Задания, Пользователи, Оценки). Teachers organize materials by topic, publish assignments with rubrics and deadlines, conduct class discussions, and grade submissions with zero learning curve.
- Full Google Classroom v1 REST API Parity (105 Methods): Directly implements the official Google Classroom API Discovery v1 specification (
/v1/courses,/v1/courseWork,/v1/studentSubmissions, etc.). School automation scripts, grade exporters, roster synchronizers, and bot integrations work out-of-the-box. - Absolute Zero-PII Standard (152-FZ RF): Physical servers, SQLite databases, HTTP session cookies, and operational logs store 0 bytes of student personal data. Students onboard using anonymous procedurally generated callsigns (
Adjective-Noun-Code) and 4-word recovery passphrases. Real names, email addresses, phone numbers, and Russian national identifiers (SNILS) are never requested, stored, or processed. - Client-Side Zero-Knowledge Encryption (WebCrypto E2EE): Any sensitive student submissions, private teacher remarks, rubric annotations, and canvas drawings are encrypted directly in the browser via WebCrypto AES-256-GCM + ECDH P-256 using class PIN-derived keys. The backend server acts solely as a blinded content-addressable storage (CAS) engine.
- 100% Offline Interactive School Board (Excalidraw 0.18.1): Replaces the discontinued Google Jamboard with an integrated, air-gapped whiteboard featuring zero external CDN dependencies, complete Russian localization, and a dedicated Teacher Tools panel (
linear ruler,protractor,set square,compass, and authentic Russian notebook rulings: 5mm grid, 1st-grade slanted guidelines, wide lines, music staves, and coordinate planes). - Two-Pane SpeedGrader & Simonov Pedagogical Analytics: Split-screen SpeedGrader with freehand vector annotations, rubrics, comment bank, Russian 5-point scale translation, and exact mathematical evaluation of СОУ (Degree of Student Learning), КЗ (Quality of Knowledge), and Усп (Absolute Performance).
| Architectural Dimension | Google Classroom | BormoClass (Self-Hosted Open Source Alternative) |
|---|---|---|
| Hosting & Deployment | Proprietary SaaS cloud (Google Cloud). Closed-source, subject to sanctions, outages, and regional blocks. | 100% Self-Hosted & Air-Gap Ready. Run on your own school server, VPS, or LAN via Docker Compose in 60 seconds. |
| Licensing & Cost | Commercial subscription tiers (Google Workspace for Education Plus); corporate vendor lock-in. | 100% Free & Open Source (Apache-2.0). Zero subscription fees, zero ads, zero paywalls, zero telemetry. |
| Data Privacy & 152-FZ | Centralized corporate cloud. Mandatory student Google accounts with real personal data (PII). | Absolute Zero-PII Standard. 0 bytes student PII on server; strict 152-FZ regex firewall (pii_guard.py). |
| Data Encryption at Rest | Server-side transparent encryption under Google-managed cloud KMS keys. | Client-Side Zero-Knowledge WebCrypto E2EE (AES-256-GCM + ECDH P-256). Backend is blinded. |
| Google Classroom API v1 | Official cloud API gated by Google Cloud Console project approvals and OAuth2 scopes. | Full Google Classroom v1 REST API Parity (105 methods) implemented locally under /v1/. |
| Interactive School Whiteboard | Deprecated / Discontinued Google Jamboard; requires external 3rd-party paid SaaS boards. | Built-in Offline Excalidraw 0.18.1 with teacher geometry tools & Russian notebook rulings. |
| Grading & SpeedGrader | Basic grading pane; document annotations require Google Docs viewer integration. | Full Split-Screen SpeedGrader with vector canvas annotations, rubrics, comment bank & AST anti-plagiarism. |
| Educational Analytics | Raw arithmetic point averages; no localized pedagogical metrics. | V. P. Simonov's Methodology with real-time computation of СОУ, КЗ, and Усп percentages. |
| Testing & Practice Sets | Google Forms redirect; external tab switching with zero focus-loss awareness. | Integrated Quiz Player (6 question types) with tab visibility monitoring and hint-enabled Practice Sets. |
| National Standards & SanPiN | None. No awareness of national educational or hygienic regulations. | Grade 1 homework ban (grade_level == 1) and live SanPiN 1.2.3685-21 screen-time timer. |
🔒 Zero-PII & Client-Side E2EE
🏫 Smart Classroom & Live Telemetry
📝 SpeedGrader, Rubrics & Simonov Analytics
|
📐 100% Offline Interactive Whiteboard
🧪 Testing, Practice Sets & Plagiarism
🇷🇺 Russian School Standards & SanPiN
🌐 Interoperability & Admin Governance
|
BormoClass is built upon a hardened, four-tier architecture engineered for extreme reliability, minimal memory footprint, and air-gapped deployment capability:
| Layer | Technology | Operational Responsibility |
|---|---|---|
| Edge Proxy | Caddy 2 / Nginx | TLS termination, automatic HTTPS, HTTP/2, static asset caching, and SSE streaming reverse proxy. |
| Application Server | FastAPI 0.115+, Python 3.12+ | High-performance asynchronous REST API, Google Classroom v1 endpoints, Simonov analytics, PII guardrails. |
| Real-Time Hub | Starlette SSE (sse_hub.py) |
In-memory reactive Server-Sent Events bus broadcasting live traffic light and desk status to connected teachers. |
| Relational Database | SQLite 3.45+ in WAL mode | Zero-maintenance single-file ACID storage with 43 normalized tables, foreign key constraints, and zero concurrency lockups. |
| Blob Engine (CAS) | SHA-256 CAS Storage | Content-Addressable Storage deduplicating file uploads by SHA-256 hash with individual assignment copy materialization. |
| Frontend UI | Vanilla JS (ES2022) + MD3 | Zero-build modern frontend with Material Design 3 tokens (Ember Newsroom palette #f57300), local SVG icons, and zero CDN calls. |
| Interactive Board | Custom Excalidraw 0.18.1 | Fully localized, air-gapped collaborative whiteboard bundle running entirely in the client browser with IndexedDB persistence. |
All uploaded coursework materials, student submission attachments, scanned PDF homework pages, and canvas vector overlays are stored in a content-addressable storage engine (app/storage/):
- SHA-256 Ingestion & Deduplication: When a file is uploaded, its SHA-256 checksum is computed. The binary content is stored under
data/storage/blobs/ab/cd/<sha256>, ensuring identical attachments uploaded across multiple classrooms consume storage space exactly once. - Assignment Materialization Modes:
STUDENT_COPY: Upon student assignment access, the server materializes a distinct working copy linked to the student's submission.EDIT: Shared group assignments where authorized students write to a unified collaborative document.VIEW: Read-only reference materials (curriculum textbooks, worksheets, assignment rubrics).
- SVG Preview Generation & In-Browser PDF Scanning: The CAS subsystem automatically generates lightweight SVG thumbnails for vector documents and bundles a client-side document scanner converting camera captures directly into PDF documents.
BormoClass/
├── app/
│ ├── main.py # FastAPI application factory, lifespan handlers, middleware
│ ├── config.py # Environment configuration and SanPiN thresholds
│ ├── database.py # SQLite WAL connection management, pragmas, and migration runner
│ ├── schema.sql # Normalized relational schema (43 tables)
│ ├── classroom/ # Core Classroom management & pedagogical engines
│ │ ├── classroom.py # Seating algorithms, call wheel, team balancer, duty roster
│ │ ├── router_courses.py # Course CRUD, 5-digit PIN generation, invitations
│ │ ├── router_coursework_submissions.py # CourseWork & Submissions state machine
│ │ ├── router_speedgrader_rubrics.py # Two-pane SpeedGrader, visual rubrics, comment bank
│ │ ├── router_gradebook_analytics.py # Gradebook matrix & V. P. Simonov metrics calculation
│ │ ├── router_quizzes_and_sets.py # Multi-modal quiz player, practice sets, AST plagiarism engine
│ │ ├── router_global.py # To-review, To-do queues, RFC 5545 iCalendar feed
│ │ ├── router_notifications_admin.py# Org units, OneRoster CSV schedule import, Data Takeout ZIP
│ │ ├── sse_hub.py # In-memory Server-Sent Events reactive pub/sub bus
│ │ └── whiteboard.py # Board metadata endpoints and encrypted session storage
│ ├── passport/ # Zero-PII Pedobraz-Passport identity & authentication
│ │ ├── auth.py # Callsign generation, 4-word recovery, PBKDF2/scrypt hashing
│ │ ├── pii_guard.py # Multi-stage regex firewall blocking Russian full names, phones, SNILS
│ │ ├── crypto.py # Server-side cryptographic signatures and cookie validation
│ │ └── rate_limiter.py # Sliding-window anti-bruteforce and bot prevention
│ ├── v1/ # Google Classroom v1 REST API compatibility layer
│ │ ├── router_v1.py # Standard /v1/courses, /v1/courseWork endpoints
│ │ └── serializers.py # Google Classroom API v1 JSON serializers and updateMask handlers
│ ├── storage/ # Content-Addressable Storage (CAS) engine
│ │ ├── cas.py # SHA-256 deduplication and blob lifecycle
│ │ └── preview.py # Automatic SVG preview generation
│ ├── static/ # 100% self-hosted frontend assets (Zero CDN)
│ │ ├── css/ # Material Design 3 theme tokens (Ember Newsroom palette)
│ │ ├── js/ # Vanilla ES2022 modules (e2ee-crypto.js, sanpin-timer.js)
│ │ └── board/ # Pre-compiled offline Excalidraw bundle
│ └── templates/ # Jinja2 HTML templates for server-rendered entry points
├── board-src/ # Source code for custom Excalidraw 0.18.1 whiteboard
│ ├── components/ # Teacher Panel, Ruling Dialog, Snap Layer
│ └── tools/ # Geometry tools (ruler, protractor, set square, compass)
├── docs/ # Technical specifications, guides, and visual assets
│ ├── assets/ # SVG infographics and verified screenshots
│ └── google_classroom/ # Official Google Classroom v1 schema reference and ERDs
├── scripts/ # Operator utilities, demo data seeders, and E2E smoke tests
├── tests/ # Comprehensive automated test suite (pytest)
├── docker-compose.yml # Production container orchestration
├── Dockerfile # Hardened non-root container definition
└── requirements.txt # Pinned Python dependencies
BormoClass is architected from the ground up around a Zero-Trust, Zero-PII paradigm. No student personal data ever crosses the network boundary in plaintext.
Instead of registering with legal names or email addresses, students receive procedurally generated credentials:
For account recovery, students are assigned a sequence of 4 secret words from an audited 512-word mnemonic dictionary:
Passwords and secret recovery phrases are normalized and hashed using PBKDF2-HMAC-SHA256 (with 100,000 iterations and salt) or scrypt.
Every incoming text payload (comments, stream announcements, forum replies) passes through a multi-stage regex defense engine before hitting SQLite:
- Russian Full Names (FIO): Intercepts standard 3-part Cyrillic nominative patterns (
Иванов Иван Иванович). - Russian Phone Numbers: Blocks national mobile prefixes (
+7,8,9xx10-digit formats). - Russian SNILS: Blocks 11-digit national pension insurance identifiers (
\d{3}-\d{3}-\d{3}\s?\d{2}). - Email Addresses: Intercepts standard RFC 5322 email patterns.
Violations result in immediate request rejection with HTTP 422 Unprocessable Entity.
Sensitive coursework files, canvas annotations, and teacher comments are encrypted client-side using the browser's native WebCrypto API:
- Classroom Key Derivation: Keys are derived from the 5-digit classroom join PIN and class ID using PBKDF2:
const keyMaterial = await crypto.subtle.importKey("raw", enc.encode(joinPin), "PBKDF2", false, ["deriveKey"]); const classKey = await crypto.subtle.deriveKey( { name: "PBKDF2", salt: enc.encode("bormo-class-pin:" + classId), iterations: 100000, hash: "SHA-256" }, keyMaterial, { name: "AES-GCM", length: 256 }, false, ["encrypt", "decrypt"] );
- Text Envelope Format:
BORMO_E2EE_V1:<base64url_iv_12bytes>:<base64url_ciphertext_and_tag> - Binary Envelope Format: 16-byte magic header
BC_E2EE_BLOB_V1\0followed by 12-byte IV and AES-256-GCM encrypted payload.
BormoClass incorporates the standardized pedagogical analytics framework developed by Soviet and Russian educational methodologist V. P. Simonov. The system computes real-time diagnostic indicators directly from the gradebook matrix:
The percentage of students who attained satisfactory or higher grades (marks 5, 4, and 3) relative to the total number of grades submitted:
The proportion of students demonstrating advanced mastery (marks 5 and 4):
Simonov's weighted formula assigning non-linear pedagogical value coefficients to each grade level (Mark 5: 100%, Mark 4: 64%, Mark 3: 36%, Mark 2: 16%):
With
These values match the real-time telemetry cards shown in the Gradebook Matrix screenshot.
BormoClass supports both WEIGHTED_CATEGORIES (e.g., Homework: 20%, Tests: 50%, Practice: 30%) and TOTAL_POINTS grading. Point-based assignments (0–100%) automatically map to traditional Russian 5-point marks according to ministerial recommendations:
| Criterion Range | Percentage | 5-Point Mark | Pedagogical Interpretation |
|---|---|---|---|
| Excellent | 5 | Comprehensive mastery of curriculum standards. | |
| Good | 4 | Solid comprehension with minor non-systematic errors. | |
| Satisfactory | 3 | Minimum required threshold of standard competencies. | |
| Unsatisfactory | 2 | Critical knowledge gaps requiring intervention. |
The fastest way to deploy BormoClass in production:
git clone https://github.com/Bormotoon/BormoClass.git
cd BormoClass
docker-compose up -d --buildAccess the web interface at http://localhost:8010.
Prerequisites: Python 3.12+ (or 3.13) and Git.
git clone https://github.com/Bormotoon/BormoClass.git
cd BormoClass
# 1. Create and activate virtual environment
python3 -m venv .venv
source .venv/bin/activate
# 2. Install production dependencies
pip install -r requirements.txt
# 3. Start development server
uvicorn app.main:app --host 0.0.0.0 --port 8010 --reloadCaddy provides automatic HTTPS with Let's Encrypt certificates and seamless SSE streaming:
class.your-school.ru {
encode zstd gzip
# Proxy Server-Sent Events with buffer disabling
@sse path /classroom/*/sse
reverse_proxy @sse http://127.0.0.1:8010 {
flush_interval -1
}
# Proxy all application traffic
reverse_proxy http://127.0.0.1:8010 {
header_up X-Forwarded-Proto {scheme}
header_up X-Real-IP {remote_host}
}
}| Variable | Default Value | Description |
|---|---|---|
DB_PATH |
./bormoclass.db |
Absolute or relative path to the SQLite WAL database file. |
STORAGE_DIR |
./data/storage |
Directory where CAS binary blobs and uploads are persisted. |
SECRET_KEY |
(Auto-generated) | 256-bit cryptographically secure secret for HMAC cookie signatures. |
SESSION_COOKIE_NAME |
pb_pass |
Name of the secure HttpOnly authentication cookie. |
SANPIN_ENFORCE |
true |
Enables client-side SanPiN screen-time counters and advisory pauses. |
CORS_ORIGINS |
"" |
Comma-separated list of allowed cross-origin origins (empty = same origin only). |
RATE_LIMIT_LOGIN |
5/minute |
Rate limit ceiling on login attempts per IP/ticket to prevent bruteforcing. |
BormoClass maintains a strict automated test suite covering API contracts, cryptographic envelopes, Simonov mathematical invariants, and Zero-PII boundaries:
# Run complete test suite
pytest -v
# Run with coverage report
pytest --cov=app tests/
# Execute end-to-end smoke verification
python3 scripts/e2e_smoke.py- ✅ Zero-PII Filter Gate (
test_pii_guard.py): Verified rejection of FIO, phone numbers, and SNILS. - ✅ WebCrypto E2EE Serialization (
test_crypto.py): Verified round-trip encryption/decryption ofBORMO_E2EE_V1. - ✅ Simonov Mathematical Engine (
test_analytics.py): Unit verification of СОУ, КЗ, and Усп calculations against known benchmarks. - ✅ Google Classroom API v1 Parity (
test_v1_api.py): Verified REST compatibility andupdateMaskfiltering. - ✅ Plagiarism Engine (
test_plagiarism.py): Verified 5-gram token winnowing and AST syntax tree matching.
BormoClass serves as a true drop-in self-hosted replacement for Google Classroom, featuring full protocol parity with the official Google Classroom v1 REST API (all 105 discovery methods registered under the /v1/ prefix):
| Endpoint Resource | HTTP Method | Description |
|---|---|---|
/v1/courses |
GET, POST |
List active courses or create a new course with joining PIN. |
/v1/courses/{courseId} |
GET, PATCH, DELETE |
Retrieve course metadata or update course state with updateMask. |
/v1/courses/{courseId}/aliases |
GET, POST, DELETE |
Manage standardized administrative course aliases. |
/v1/courses/{courseId}/courseWork |
GET, POST |
List or create assignments, quizzes, and practice materials. |
/v1/courses/{courseId}/courseWork/{id}/studentSubmissions |
GET, PATCH |
Retrieve student submissions, modify state, or turn in work. |
/v1/courses/{courseId}/teachers |
GET, POST, DELETE |
List or invite co-teachers and teaching assistants. |
/v1/courses/{courseId}/students |
GET, POST, DELETE |
Manage enrolled students by Zero-PII callsigns. |
/v1/courses/{courseId}/rubrics |
GET, POST, PUT |
Define multi-criterion evaluation rubrics. |
/v1/courses/{courseId}/gradingPeriods |
GET, POST |
Configure quarters, trimesters, or academic semesters. |
- RFC 5545 iCalendar Feed:
GET /api/calendar/feed.ics?token={user_token}— Cookie-free WebCal subscription. - OneRoster CSV Schedule Import:
POST /api/admin/oneroster/import— Bulk ingest classes, periods, and rooms. - Data Takeout ZIP Archive:
GET /api/user/takeout.zip— Complete student portfolio export in an open format.
Contributions are welcomed! Please read our CONTRIBUTING.md guide before submitting pull requests.
- Found a bug? Submit an issue via the GitHub Issue Tracker.
- Security Vulnerability? Please read SECURITY.md and report vulnerabilities privately to
security@pedobraz.ruorbormotoon@gmail.com.
- Excalidraw (MIT License): Custom offline adaptation for autonomous school classrooms.
- FastAPI: Modern asynchronous web framework for Python.
- SQLite: High-reliability embedded database engine.
BormoClass is free, open source, and built in the author's spare time. If it empowers your school, classroom, or educational projects, consider supporting development:
A ⭐ on GitHub helps too — it makes the project easier for other educators and schools to find.
BormoClass is distributed under the Apache License 2.0.
Copyright 2026 BormoClass Contributors (PedObraz.RF)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Made with ❤️ for teachers and students who believe privacy in education is a fundamental right.
🌐 Project Home · 🐛 Report Bug · 💬 Request Feature · ☕ Support Development









