Skip to content
sinajr2011-progPublic

About

مدرسه در ابعاد آینده · A School for the Future — Role-based school operating platform with Personal AI, memory, learning maps, grounded research & auditable intelligence. AGPLv3.

Resources

Code of conduct

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

⚡ Quanta 2.0.0

A School for the Future · مدرسه در ابعاد آینده

Version License PHP React TypeScript MySQL Status

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) · فارسی


👨‍💻 Creator & Team

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.


🌟 What is Quanta?

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.


✨ Key Features

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

🛠️ Tech Stack

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

📁 Project Layout

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

🚀 Quick Start

1. Local frontend development

cd frontend
npm ci
npm run typecheck
npm run build          # output lands in frontend/dist/

2. Database

  1. Create an empty MySQL/MariaDB database.
  2. Copy backend/config.local.example.php → backend/config.local.php and fill in credentials.
  3. Run the one-time upgrade from CLI:
php backend/upgrade.php

⚠️ After a successful migration, remove or disable public access to upgrade.php.

3. AI configuration (server-side only!)

// 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',
],

4. Shared-host deployment

  1. Build frontend/dist/ on a development machine.
  2. Upload the full tree including the generated dist/.
  3. Upload config.local.php separately (never commit it).
  4. Point the domain document root at the Quanta root.
  5. Verify: /backend/api.php?action=health
  6. Run migration via SSH/CLI and then lock the upgrade endpoint.

🧠 Intelligence Guarantees

  • ❌ 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

🎨 Brand Identity

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.


🧪 QA

bash tools/qa.sh

Checks PHP syntax, critical files, migration presence and frontend prerequisites.


📜 License

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.


🤝 Contributing

Before opening a PR or issue please read:

Clean PRs, bug reports and thoughtful ideas are always welcome! 🚀


📬 Links

  • 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

About

مدرسه در ابعاد آینده · A School for the Future — Role-based school operating platform with Personal AI, memory, learning maps, grounded research & auditable intelligence. AGPLv3.

Resources

Code of conduct

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages