How itqan-community/cms-backend works
Fanar is a Quranic content management and distribution backend. Publishers and staff manage licensed, versioned resources through the portal; developers and publisher-branded clients consume content through the public and tenant APIs, while platform users use the CMS API. Content services and domain models underpin these workflows, with package delivery and usage analytics as supporting capabilities. The README documents the API audiences and capabilities; sampled source confirms selected storage, background-task, and identity relationships, but many endpoint-to-service calls were not excerpted.
Main entry points: ayah_text.py Public API · asset_content.py Portal API · models.py Content records · tasks.py Background tasks
Components 19
API interfaces
- CMS API
apps/users/api/internal/applications.py - Portal API
apps/content/api/portal/asset_content.py - Tenant API
apps/content/api/tenant/recitation_list.py - Public API
apps/content/api/public/ayah_text.py
Content lifecycle
- Content records
apps/content/models.py - Content services
apps/content/services/asset_content.py - Recitation services
apps/content/services/recitation.py - Recommendations
apps/content/services/recommendations.py - Quran data access
apps/quran/services/quran.py
Platform services
- File storage
apps/core/mixins/storage.py - Publisher membership
apps/publishers/services/publisher_member_invitation_service.py - Users and apps
apps/users/models.py - Package registry
apps/package_manager/services/package_registry.py
Operations and analytics
- Usage analytics
apps/usage_tracking/services/usage_reports.py - Background tasks
apps/content/tasks.py - Repository updates
apps/dependabot/services/github_client.py
Other components
- Publishers and staff
- Developer clients
- GitHub
Connections 21
- Publishers and staff → Portal API: manage content
README.md - Portal API → Content services: manage resources
- Content services → Content records: persist content
- Content records → File storage: store files
apps/content/models.py - Publishers and staff → Tenant API: serve tenant content
README.md - Developer clients → Public API: request content
README.md - Developer clients → CMS API: manage applications
README.md - Public API → Quran data access: expose Quran data
- Public API → Recitation services: serve recitations
- Public API → Recommendations: request recommendations
- Public API → Content records: serve resources
README.md - Portal API → Publisher membership: govern access
- CMS API → Users and apps: manage accounts
apps/users/api/internal/applications.py - Portal API → Package registry: manage packages
- Public API → Package registry: distribute packages
README.md - Public API → Usage analytics: track usage
- Background tasks → Content records: read content
apps/content/tasks.py - Background tasks → Recommendations: compute suggestions
apps/content/tasks.py - Repository updates → GitHub: query repositories
apps/dependabot/services/github_client.py - Background tasks → Repository updates: dispatch updates
- Publisher membership → Users and apps: create member accounts
apps/publishers/services/publisher_member_invitation_service.py