Role-based school operating system with Personal AI, memory, learning maps, grounded research & human-confirmed AI actions.
🚀 Quick Start · 🧠 Intelligence · 🎨 Brand · 👨💻 Creator · 🤝 Contribute
🌐 Language: English (default) · فارسی
Built by Sina Jafari (سینا جعفری) — 14 years old
Founder & lead developer of Quanta.
This project is developed with his international team that includes members from South Africa and England, working together under the Cypher Group spirit.
A 14-year-old student from Iran building a full school operating system with AI, together with teammates across continents.
Quanta is an AI-native School Operating System. School management, learning intelligence, research, communication and permission-aware AI live in one coherent product — not disconnected modules.
- 👨🎓 Students get a personal dashboard + AI companion
- 👩🏫 Teachers see class tools, signals and smart proposals
- 👨👩👧 Parents receive transparent progress views
- 🏫 Admins hold the real School Pulse
- 🔐 Everything is protected by strong RBAC + human confirmation for consequential actions
Version 2.0 turns the school-management foundation into an intelligence platform: personal memory, learning maps, school signals, grounded research with citations, audit logs, and AI actions that only execute after human confirmation.
| Feature | Description |
|---|---|
| 🎭 Role-Based Access | Six primary roles + secondary security code for teacher/developer |
| 🧠 Personal AI | Provider-agnostic chat with memory scoped to user + school |
| 🗺️ Learning Maps | Concept mastery map and real progress tracking |
| 📡 School Pulse | Live signals and pulse for school / class |
| 🔍 Grounded Research | URL + file ingestion (PDF/TXT/MD/CSV) with citations |
| ✅ Human-Confirmed Actions | AI only proposes — execution requires a human-confirmation endpoint |
| 🔒 Audit & Rate Limit | All AI usage is rate-limited and fully auditable |
| 🏫 Multi-tenant ready | Server-side isolation by school and role |
Frontend → React 19 + TypeScript + Vite 7
Backend → PHP 8.1+ · PDO/MySQL · custom service layer
Auth → Token sessions + RBAC + secondary security code
AI → OpenAI-compatible endpoint (provider-agnostic)
Research → Source ingestion · chunking · retrieval · citations
Quanta/
├── frontend/ # React + TypeScript (build → dist/)
├── backend/ # PHP API + core services
│ ├── core/ # auth, permissions, school, education...
│ ├── app/ # Intelligence, Services, Analytics
│ └── config.local.example.php
├── database/ # migrations (via upgrade.php)
├── docs/ # architecture, history, master plan
├── assets/ # branding (logo, mark, favicon)
├── tools/qa.sh # automated QA checks
├── index.php # production entry
└── .htaccess # routing + security headers
cd frontend
npm ci
npm run typecheck
npm run build # output lands in frontend/dist/- Create an empty MySQL/MariaDB database.
- Copy
backend/config.local.example.php→backend/config.local.phpand fill in credentials. - Run the one-time upgrade from CLI:
php backend/upgrade.php
⚠️ After a successful migration, remove or disable public access toupgrade.php.
// backend/config.local.php
'ai' => [
'url' => 'https://api.example.com/v1/chat/completions',
'key' => 'YOUR_SERVER_SIDE_KEY', // never put this in frontend or Git!
'model' => 'gpt-4o-mini',
],- Build
frontend/dist/on a development machine. - Upload the full tree including the generated
dist/. - Upload
config.local.phpseparately (never commit it). - Point the domain document root at the Quanta root.
- Verify:
/backend/api.php?action=health - Run migration via SSH/CLI and then lock the upgrade endpoint.
- ❌ AI never receives unrestricted database access
- ✅ Student / parent / teacher data is scoped by authenticated school + role
- ✅ Research answers are grounded in retrieved source chunks and return citations
- ✅ AI actions are proposals by default → execution only via human-confirmation endpoint
- ✅ AI usage is rate-limited and fully auditable
- ✅ Memory is scoped strictly to the authenticated user and their school
Official Quanta brand — the glowing quantum loop mark, modern geometric typography, deep navy + electric blue/purple gradient.
Tagline: Learn · Connect · Grow
Color Palette: Purple → Blue → Cyan → Silver
The full brand system (logo variations, app icons, phone/business card/hoodie/office/laptop mockups, light & dark landing pages, and the student dashboard) is designed and ready. The official brand images you provided are prepared for the assets/ folder.
bash tools/qa.shChecks PHP syntax, critical files, migration presence and frontend prerequisites.
GNU Affero General Public License v3.0 (AGPL-3.0)
See LICENSE.
If you use Quanta in research or educational work, please cite it via CITATION.cff.
Before opening a PR or issue please read:
CODE_OF_CONDUCT.mdSECURITY.md- Architecture notes under
docs/andarchitecture/
Clean PRs, bug reports and thoughtful ideas are always welcome! 🚀
- Repository: sinajr2011-prog/Quanta
- Creator: Sina Jafari (14) + international team (South Africa & England)
- Version:
2.0.0-FINAL(25 Sep 2026)
ساخته شده توسط سینا جعفری (۱۴ ساله) با تیم بینالمللیاش که اعضایی از آفریقای جنوبی و انگلیس داره.
Quanta یک پلتفرم عملیاتی مدرسه است که مدیریت مدرسه، هوش یادگیری، تحقیق، ارتباطات و AI آگاه از مجوز رو در یک محصول واحد جمع کرده.
- 👨🎓 دانشآموز داشبورد شخصی + AI همراه داره
- 👩🏫 معلم ابزارهای کلاس، سیگنالها و پیشنهادهای هوشمند میبینه
- 👨👩👧 والدین نمای شفاف از پیشرفت دارن
- 🏫 مدیر مدرسه نبض واقعی مدرسه (School Pulse) رو در اختیار داره
- 🔐 همه چیز با RBAC قوی و تأیید انسانی برای اقدامات مهم محافظت میشه
نسخه ۲.۰ فونداسیون مدیریت مدرسه رو به یک پلتفرم هوشمند تبدیل کرده.
| ویژگی | توضیح |
|---|---|
| 🎭 نقشمحور | شش نقش اصلی + کد امنیتی ثانویه |
| 🧠 هوش مصنوعی شخصی | چت provider-agnostic با حافظه محدود به کاربر و مدرسه |
| 🗺️ نقشههای یادگیری | نقشه تسلط مفاهیم و پیشرفت واقعی |
| 📡 School Pulse | سیگنالها و نبض زنده مدرسه / کلاس |
| 🔍 تحقیق زمینهدار | ingestion از URL و فایل + citation |
| ✅ اقدامات تأییدشده توسط انسان | AI فقط پیشنهاد میده |
| 🔒 ممیزی و محدودیت نرخ | همه استفادههای AI قابلممیزی |
| 🏫 آماده multi-tenant | isolation سمت سرور |
cd frontend && npm ci && npm run build
# سپس config.local.php را تنظیم و php backend/upgrade.php را اجرا کنجزئیات کامل در بخش انگلیسی بالا.
Built with ❤️ by a 14-year-old and his global team
Quanta — A School for the Future