The global education sector manages over 2 million schools serving 1.5 billion students, yet 78% still rely on paper-based or fragmented digital systems. This inefficiency costs the industry $12B annually in wasted administrative processes, with each administrator losing 40 hours monthly to manual tasks. Meanwhile, 65% of parents express dissatisfaction with school communication, and manual attendance/grade tracking suffers from a 23% error rate.
Hogwarts is envisioned as the world's most comprehensive, accessible, and user-friendly school management platform—a true operating system for educational institutions. We will revolutionize school administration by providing an all-in-one, cloud-based solution that serves schools, teachers, students, and parents globally.
The MEA region represents a high-growth opportunity for school management systems:
EdTech Market:
Country Wise:
| Country | Size | Growth | Notes |
|---|---|---|---|
| Sudan | Emerging | - | Arabic-first target market |
| Saudi Arabia | $2.32B | 12.77% CAGR | Largest MENA market |
| Egypt | $302M | 14.0% CAGR | 234 active EdTech companies |
| South Africa | $929M | 11.78% CAGR | 40% of Africa EdTech 50 |
The K-12 education sector operates under unique constraints:
SaaS B2B multi-tenant school management system. Next.js 16 + React 19 + TypeScript + Prisma + PostgreSQL. A school can enroll students, manage classes, track attendance, grade assignments, collect fees, and communicate with parents—all within a single platform.
Success is measured by genuine transformation of educational operations and stakeholder satisfaction.
| Metric | Baseline | Target |
|---|---|---|
| Administrator Time Savings | 40 hours/month lost | 8 hours/month (80% reduction) |
| Parental Engagement | 65% dissatisfaction | 85% satisfaction (NPS) |
| Data Accuracy | 23% error rate | <1% error rate |
| School Operational Cost | $15K-$50K/year | 60% reduction |
| Teacher Admin Time | 11 hours/week | 4 hours/week (64% reduction) |
Year 1: 100 schools, $240K ARR, 98% CSAT, <3% monthly churn
Year 3: 2,500 schools, $6M ARR, 85+ NPS, <1.5% monthly churn
Year 5: 15,000 schools across 50+ countries, $36M ARR, IPO-ready metrics
A school can enroll students, manage classes, track attendance, grade assignments, collect fees, and communicate with parents—all within a single platform.
See MVP for detailed epic breakdown with story-level tracking.
Multi-tenant architecture, subdomain routing, and core technical setup.
User management, role-based access control, and secure auth flows.
School profile, academic structure, branding, and settings.
Student lifecycle from enrollment to graduation with profiles.
Subjects, classes, teachers, parents, and staff records.
Daily attendance tracking, reports, and absence management.
Exam scheduling, grading, results, and report cards.
Class scheduling, period management, and conflict detection.
Application processing, enrollment workflow, and registration management.
Post-MVP features that expand capabilities and market reach:
Long-term features that position Hogwarts as the definitive education platform:
Multi-tenant subdomain-based architecture where each school gets isolated data via schoolId scoping. Stateless serverless functions on Vercel with 8-role RBAC system (Developer, Admin, Teacher, Student, Guardian, Accountant, Staff, User).
Critical Security Rule:
// NEVER do this
await prisma.student.findMany()
// ALWAYS scope by schoolId
await prisma.student.findMany({
where: { schoolId }
})Data Isolation:
@@unique([schoolId, email]) on all modelsschoolId + requestId + userId + timestampEnvironment Routing:
Production: school.databayt.org → /[lang]/s/school/...
Preview: tenant---branch.vercel.app → /[lang]/s/tenant/...
Development: subdomain.localhost:3000 → /[lang]/s/subdomain/...
Custom: www.theirschool.com (CNAME) → Hogwarts platform| Role | Key Permissions |
|---|---|
| DEVELOPER | Access all schools, platform configuration, monitoring |
| ADMIN | Full access within school, manage users, financial oversight |
| TEACHER | Manage assigned classes, grade assignments, mark attendance |
| STUDENT | View own grades, attendance, assignments, submit work |
| GUARDIAN | View linked students' data, pay fees, receive notifications |
| ACCOUNTANT | Manage finances, generate reports (no academic data) |
| STAFF | Limited operational module access |
| USER | Minimal access, pending role assignment |
Permission Matrix:
| Tier | Price | Limits |
|---|---|---|
| FREE | $0 | 100 students, 1GB storage, community support |
| PRO | $1.50/student/month | 10GB, priority support, custom branding, API 1K req/hr |
| ENTERPRISE | $1.00/student/month | Unlimited storage/API, white-label, SLA 99.9%, SSO |
Billing: Stripe Subscriptions, monthly/annual (15% discount), 14-day free trial, metered per-student pricing.
RESTful API v1:
student.enrolled, payment.received, grade.updatedSSO (Enterprise):
Third-Party Integrations:
Typography:
<h1>-<h6>, <p>)text-* or font-* classesColors (OKLCH):
Components:
layout-container)Locales: en, ar
RTL Support:
URL Structure:
/[lang]/path → /en/docs, /ar/docs
/[lang]/s/[school]/path → /en/s/demo/dashboardAgile Methodology:
Quality Gates:
Tech Debt Management:
Required:
Coverage Targets:
Testing Pyramid:
| Risk | Severity | Mitigation |
|---|---|---|
| Data breach | Critical | Penetration testing, bug bounty |
| Multi-tenant leak | Critical | Isolation tests, schoolId scoping |
| Performance issues | High | Load testing, caching |
| Non-compliance | Critical | Legal review, audits |
| Low adoption | High | User research, pilots |
| Integration failures | Medium | Retry logic, monitoring |
| Competition | Medium | Rapid iteration |
| Funding constraints | Medium | Lean MVP, early revenue |
Developer-focused PRD for Hogwarts school management platform.
On This Page
Executive SummaryProject ClassificationMarket Size (Middle East & Africa)Domain ContextToo Long; Didn't ReadSuccess CriteriaPrimary MetricsBusiness MetricsImpact MilestonesMVP ScopeGrowth PhaseVisionTech StackMulti-Tenancy PatternRole-Based Access ControlSubscription TiersAPI & IntegrationsNon-Functional RequirementsPerformanceSecurityScalabilityAccessibilityComplianceDesign SystemInternationalization & RTLDevelopment ApproachTesting StrategyRisk ManagementReferences