Haqak (حقك) منصة Civic‑Tech مصرية بتنظم تواصل ومتابعة القضايا المحلية بين المواطنين ونواب مجلس الشعب والإدارة.
الحالة الحالية: MVP / Prototype (Pre‑Production) — مناسبة للتجربة والتطوير.
🇪🇬 Scope: مصر فقط حاليًا.
الموقع: https://haqak.org
الحالة: ✅ Live on GitHub Pages
الدومين: haqak.org (DNS موجّه لـ GitHub Pages)
GitHub Pages Configuration:
- Branch:
gh-pages(auto-generated) - Source: GitHub Pages
- HTTPS: ✅ Enabled (Free)
- Domain: haqak.org
Build Environment:
- Platform: GitHub Actions
- Build command:
npm run build - Output directory:
dist - Node.js: 18+
Auto-deployment:
- Trigger: كل push على main branch
- Workflow:
.github/workflows/deploy.yml - Build time: ~2 دقايق
- Deployment time: ~1 دقيقة
A Records (الـ root domain):
185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153
CNAME Record (for www):
www → synapbytes.github.io
Verification:
✅ DNS check: Successful
✅ HTTPS: Active
✅ Custom domain: haqak.org
Frontend (GitHub Secrets):
VITE_SUPABASE_URLVITE_SUPABASE_ANON_KEYVITE_TURNSTILE_SITE_KEYVITE_VAPID_PUBLIC_KEYVITE_ENV=production
Backend (Supabase):
SUPABASE_URLSUPABASE_ANON_KEYSUPABASE_SERVICE_ROLE_KEYTURNSTILE_SECRET_KEY
AI & Services:
OPENAI_API_KEYGEMINI_API_KEY(optional)RESEND_API_KEYVAPID_PUBLIC_KEY,VAPID_PRIVATE_KEY
Service Worker Strategy:
- Cache-first for static assets
- Network-first for API calls
- Offline fallback to cached content
- Auto-update on new deployment
Cache Headers (GitHub Pages):
- index.html: Cache-Control: no-cache
- sw.js: Cache-Control: no-cache
- registerSW.js: Cache-Control: no-cache
- manifest.json: Cache-Control: no-cache
- Static assets: Cache-Control: max-age=31536000
Upstream: Axonexiis/haqak
Sync Schedule: كل 6 ساعات تلقائي
Workflow: .github/workflows/sync-upstream.yml
Behavior: Fast-forward merge أو create pull request on conflict
/ /auth /reset-password /citizen /mp /admin /mps /profile /genius /privacy /terms
React + TypeScript + Vite + Tailwind + shadcn/ui
Supabase + React Query + i18next + Leaflet + Recharts
Vitest (ومهيأ للتوسع بـ Playwright)
Requirements: Node.js >= 20
git clone https://github.com/SynapBytes/haqak.git
cd haqak
npm install
npm run devcp .env.example .env
# fill env values- Provider: Leaflet with OpenStreetMap tiles (no API key required).
- Issue maps and location pickers use browser geolocation.
- Markers/heat overlays are rendered via Leaflet.
- العربي (الأساسي):
docs/README.md - English (short):
docs/README_EN.md - Architecture:
docs/architecture.md - Roadmap:
docs/roadmap.md - Deployment:
DEPLOYMENT.md - Technical:
TECHNICAL_IMPLEMENTATION.md - Security:
SECURITY.md
Not specified yet.
- Official contact (partnerships & general): team@haqak.org
- Support (issues, help, complaints): support@haqak.org
- Administrative/legal: admin@haqak.org
Haqak is an independent platform. You can now contribute to its development through our Contribution Page.