How korean-deamon/qadr works
Qadr is a multilingual neighborhood borrowing marketplace. A user discovers nearby listings, contacts an owner or submits a borrow request, then participants manage approval, loan return, messages, and notifications; administrators review reports and listings. The graph combines the documented product areas with source-indexed backend routes and services. Several frontend-to-API and unsampled feature connections are not visible in the excerpts, so they are shown as unverified rather than asserted as calls.
Main entry points: router.py API v1 router · models PostgreSQL data · [locale] Localized web app · api.ts API client
Components 23
Web experience
- Localized web app
client/src/app/[locale] - Listing discovery
client/src/app/[locale]/explore/page.tsx - Listing management
client/src/app/[locale]/items - Borrowing views
client/src/app/[locale]/borrowings/page.tsx - Messages and alerts
client/src/app/[locale]/messages - Moderation panel
client/src/app/[locale]/admin/reports/page.tsx - API client
client/src/lib/api.ts
API and identity
- FastAPI application
server/app/main.py - API v1 router
server/app/api/v1/router.py - Authentication
server/app/modules/auth/service.py - User profiles
server/app/modules/users/routes.py
Marketplace lifecycle
- Listings and saved items
server/app/modules/listings/service.py - Categories
server/app/modules/categories/routes.py - Borrow requests
server/app/modules/borrowing/service.py - Loan tracking
server/app/modules/loans/service.py
Communication and trust
- Direct messages and calls
server/app/modules/messages/service.py - Notifications
server/app/modules/notifications/service.py - Reports and moderation
server/app/modules/moderation/routes.py - Telegram integration
server/app/modules/telegram/service.py
Runtime services
- Realtime delivery
server/app/realtime/event_bus.py - Scheduled jobs
server/app/tasks - PostgreSQL data
server/app/db/models
Other components
- Neighbor
Connections 39
- Neighbor → Localized web app: uses
README.md - Localized web app → Listing discovery: browses
README.md - Localized web app → Listing management: manages listings
README.md - Localized web app → Borrowing views: manages borrowing
README.md - Localized web app → Messages and alerts: communicates
README.md - Localized web app → Moderation panel: moderates
README.md - Listing discovery → API client: requests data
- Listing management → API client: submits changes
- Borrowing views → API client: requests borrowing
- Messages and alerts → API client: loads messages
- Moderation panel → API client: loads reports
- API client → FastAPI application: calls API
- FastAPI application → API v1 router: mounts routes
server/app/main.py - API v1 router → Authentication: routes to
server/app/api/v1/router.py - API v1 router → User profiles: routes to
server/app/api/v1/router.py - API v1 router → Listings and saved items: routes to
server/app/api/v1/router.py - API v1 router → Categories: routes to
server/app/api/v1/router.py - API v1 router → Borrow requests: routes to
server/app/api/v1/router.py - API v1 router → Loan tracking: routes to
server/app/api/v1/router.py - API v1 router → Direct messages and calls: routes to
server/app/api/v1/router.py - API v1 router → Notifications: routes to
server/app/api/v1/router.py - API v1 router → Reports and moderation: routes to
server/app/api/v1/router.py - API v1 router → Telegram integration: routes to
server/app/api/v1/router.py - Borrow requests → Listings and saved items: uses listing service
server/app/modules/borrowing/service.py - Borrow requests → Notifications: creates alerts
server/app/modules/borrowing/service.py - Listings and saved items → Realtime delivery: publishes events
server/app/modules/listings/service.py - Notifications → Realtime delivery: publishes events
server/app/modules/notifications/service.py - Reports and moderation → Notifications: creates alerts
server/app/modules/moderation/routes.py - Telegram integration → Neighbor: bot interaction
- Authentication → PostgreSQL data: reads and writes
server/app/modules/auth/service.py - User profiles → PostgreSQL data: reads and writes
server/app/modules/users/routes.py - Listings and saved items → PostgreSQL data: reads and writes
server/app/modules/listings/service.py - Categories → PostgreSQL data: reads data
server/app/modules/categories/routes.py - Borrow requests → PostgreSQL data: reads and writes
server/app/modules/borrowing/service.py - Loan tracking → PostgreSQL data: updates loans
- Direct messages and calls → PostgreSQL data: reads and writes
server/app/modules/messages/service.py - Notifications → PostgreSQL data: reads and writes
server/app/modules/notifications/service.py - Reports and moderation → PostgreSQL data: reads and writes
server/app/modules/moderation/routes.py - Scheduled jobs → Neighbor: sends reminders