How iiia-ko/lanka works
Lanka is an influencer-marketing platform connecting bloggers and brands through campaign management, with user identity and Instagram linking, analytics, and search/discovery. The client routes users into those workflows; the backend is documented as a modular monolith with CQRS, module-owned persistence, and integration events. README capabilities are included even where implementation files were not sampled. The available excerpts show client routing and selected query handlers, but not API dispatch or most module wiring, so those links are omitted or marked unverified.
Main entry points: Program.cs API host · Analytics Instagram analytics · app.routes.ts Client routes · Users Users and linking
Components 20
Web client
- Client routes
client/lanka-client/src/app/app.routes.ts - Campaign workflows
client/lanka-client/src/app/features/bloggers/campaigns/campaigns.component.ts - Blogger profiles
client/lanka-client/src/app/features/bloggers/public-profile/public-profile.component.ts
Business modules
- Users and linking
src/Modules/Users - Campaign lifecycle
src/Modules/Campaigns - Instagram analytics
src/Modules/Analytics - Search and discovery
src/Modules/Matching
Shared backend
- CQRS handlers
src/Common/Lanka.Common.Application/Messaging/IQueryHandler.cs - Domain results
src/Common/Lanka.Common.Domain/Result.cs - Shared infrastructure
src/Common/Lanka.Common.Infrastructure
Platform services
- API host
src/Api/Lanka.Api/Program.cs - API gateway
src/Api/Lanka.Gateway/Program.cs
Other components
- Platform user
- PostgreSQL
- MongoDB
- Redis
- RabbitMQ events
- Keycloak identity
- Elasticsearch
- Instagram APIs
Connections 22
- Platform user → Client routes: uses
client/lanka-client/src/app/app.routes.ts - Client routes → Campaign workflows: routes to
client/lanka-client/src/app/app.routes.ts - Client routes → Blogger profiles: routes to
client/lanka-client/src/app/app.routes.ts - Client routes → API host: API calls
- API gateway → API host: proxies requests
- API host → Users and linking: hosts module
- API host → Campaign lifecycle: hosts module
- API host → Instagram analytics: hosts module
- API host → Search and discovery: hosts module
- Campaign lifecycle → PostgreSQL: persists data
- Users and linking → PostgreSQL: persists data
- Instagram analytics → MongoDB: stores insights
- Shared infrastructure → Redis: caches data
- Search and discovery → Elasticsearch: indexes and searches
- Users and linking → Keycloak identity: delegates identity
- Instagram analytics → Instagram APIs: fetches insights
- Users and linking → Instagram APIs: links accounts
- Campaign lifecycle → RabbitMQ events: publishes events
- Instagram analytics → RabbitMQ events: consumes events
- Campaign lifecycle → CQRS handlers: uses handlers
src/Modules/Campaigns/Lanka.Modules.Campaigns.Application/Chat/GetThreads/GetChatThreadsQueryHandler.cs - Instagram analytics → CQRS handlers: uses handlers
src/Modules/Analytics/Lanka.Modules.Analytics.Application/Instagram/ProfileSummary/GetProfileSummaryQueryHandler.cs - CQRS handlers → Domain results: returns results
src/Common/Lanka.Common.Application/Messaging/IQueryHandler.cs