How nirukshith/swiftdrop works
SwiftDrop is a parcel-delivery and courier-management platform: users enter through the Angular client, authenticate, create or manage shipments, and follow delivery through dispatch and tracking. Separate Spring Boot services handle identity, parcel lifecycle, operations, and merchant-facing integrations; Kafka supports event-driven coordination and notifications. The graph preserves the documented merchant, admin, assistant, webhook, reporting, and courier capabilities. Some service internals and cross-service wiring are unsampled, so those connections are shown only where the README or excerpts support them.
Main entry points: app.routes.ts Angular application · Parcel.java Parcel lifecycle · AuthController.java Auth service · DispatchService.java Dispatch and pricing
Components 26
Web client
- Angular application
frontend/projects/web/src/app/app.routes.ts - Auth client
frontend/projects/shared-auth/src/lib/services/auth.service.ts - Customer portal
frontend/projects/web/src/app/pages/customer.component.ts - Merchant portal
frontend/projects/web/src/app/pages/merchant/merchant-portal.component.ts - Courier portal
frontend/projects/web/src/app/pages/courier.component.ts - Dispatch portal
frontend/projects/web/src/app/pages/dispatch/dispatch.component.ts - Admin portal
frontend/projects/web/src/app/pages/admin/admin-users.component.ts - Tracking view
frontend/projects/web/src/app/pages/track.component.ts
Identity
- Auth service
services/auth-service/src/main/java/com/swiftdrop/auth/AuthController.java - Audit records
services/auth-service/src/main/java/com/swiftdrop/auth/audit/AuditService.java
Delivery operations
- Parcel lifecycle
services/parcel-service/src/main/java/com/swiftdrop/parcel/parcel/Parcel.java - Parcel queries
services/parcel-service/src/main/java/com/swiftdrop/parcel/parcel/ParcelQueryServiceImpl.java - Dispatch and pricing
services/operations-service/src/main/java/com/swiftdrop/operations/dispatch/DispatchService.java - Courier routing
services/operations-service/src/main/java/com/swiftdrop/operations/navigation/NavigationRouteService.java - Delivery reports
services/operations-service/src/main/java/com/swiftdrop/operations/reports/ReportService.java
Integrations
- Merchant orders
services/integration-service/src/main/java/com/swiftdrop/integration/merchant/MerchantOrderService.java - Delivery assistant
services/integration-service/src/main/java/com/swiftdrop/integration/assistant/service/AssistantService.java - Notifications
services/integration-service/src/main/java/com/swiftdrop/integration/notification/service/NotificationService.java - Merchant webhooks
services/integration-service/src/main/java/com/swiftdrop/integration/webhook/WebhookService.java
Other components
- Customer
- Merchant
- Operations staff
- Kafka
- PostgreSQL
- OSRM routing
- Mail service
Connections 35
- Customer → Angular application: uses
README.md - Merchant → Angular application: uses
README.md - Operations staff → Angular application: uses
README.md - Angular application → Auth client: uses
frontend/projects/web/src/app/app.routes.ts - Angular application → Customer portal: routes to
frontend/projects/web/src/app/app.routes.ts - Angular application → Merchant portal: routes to
frontend/projects/web/src/app/app.routes.ts - Angular application → Courier portal: routes to
frontend/projects/web/src/app/app.routes.ts - Angular application → Dispatch portal: routes to
frontend/projects/web/src/app/app.routes.ts - Angular application → Admin portal: routes to
frontend/projects/web/src/app/app.routes.ts - Angular application → Tracking view: routes to
frontend/projects/web/src/app/app.routes.ts - Auth client → Auth service: authenticates with
- Auth service → PostgreSQL: reads and writes
README.md - Auth service → Audit records: records actions
- Admin portal → Auth service: manages users
- Auth service → Mail service: sends provisioning mail
- Customer portal → Parcel lifecycle: creates parcels
- Merchant portal → Merchant orders: places orders
- Merchant orders → Parcel lifecycle: requests creation
services/integration-service/src/main/java/com/swiftdrop/integration/merchant/MerchantOrderService.java - Merchant orders → PostgreSQL: stores order state
- Dispatch portal → Dispatch and pricing: assigns parcels
- Dispatch and pricing → Parcel lifecycle: assigns courier
services/operations-service/src/main/java/com/swiftdrop/operations/dispatch/DispatchService.java - Courier portal → Parcel lifecycle: updates delivery
- Tracking view → Parcel queries: looks up status
- Parcel queries → Parcel lifecycle: reads parcels
services/parcel-service/src/main/java/com/swiftdrop/parcel/parcel/ParcelQueryServiceImpl.java - Dispatch and pricing → Courier routing: requests routes
- Courier routing → OSRM routing: gets route
services/operations-service/src/main/java/com/swiftdrop/operations/navigation/NavigationRouteService.java - Dispatch and pricing → Delivery reports: views reports
- Parcel lifecycle → Kafka: publishes lifecycle events
README.md - Kafka → Notifications: delivers events
README.md - Kafka → Delivery reports: delivers events
README.md - Kafka → Merchant webhooks: delivers events
- Notifications → Mail service: sends email
- Customer portal → Delivery assistant: asks questions
- Delivery assistant → Parcel queries: queries parcel data
- Merchant portal → Merchant webhooks: configures callbacks