How dabaly/agrilink works
AgriLink is a Flask agricultural marketplace. Farmers publish listings and buyers browse them, negotiate through persistent conversations and offers, and acceptance creates a confirmed order with a stock claim. The broader product also covers fulfillment, payments, disputes, reviews, notifications, and administrator operations. The graph uses documented capabilities and sampled call/import evidence; some later-stage routes and integrations are represented at their existing subsystem paths because their implementation excerpts were not available.
Main entry points: __init__.py Flask application · orders/services.py Orders and fulfillment · notifications/services.py Notifications · routes.py Marketplace routes
Components 21
Accounts and access
- Accounts and OTP
app/auth/services.py - OTP delivery
app/integrations/otp.py
Marketplace and trade
- Listings and search
app/marketplace/services.py - Marketplace routes
app/marketplace/routes.py - Listing images
app/marketplace/images.py - Conversations and offers
app/chat/services.py - Chat routes and sockets
app/chat/routes.py
Orders and resolution
- Orders and fulfillment
app/orders/services.py - Payment orchestration
app/payments/services.py - Payment providers
app/payments/providers.py - Dispute resolution
app/disputes/services.py - Reviews
app/reviews/services.py
Operations and messaging
- Admin operations
app/admin_ops/services.py - Audit records
app/audit/services.py - Notifications
app/notifications/services.py
Other components
- Visitor
- Farmer
- Buyer
- Administrator
- Flask application
app/__init__.py - Application database
app/models/trading.py
Connections 30
- Visitor → Flask application: browses
- Farmer → Flask application: manages listings
- Buyer → Flask application: uses marketplace
- Administrator → Flask application: manages platform
- Flask application → Accounts and OTP: registers
app/__init__.py - Accounts and OTP → OTP delivery: sends challenges
app/auth/services.py - Flask application → Marketplace routes: registers
app/__init__.py - Marketplace routes → Listings and search: queries and updates
app/marketplace/routes.py - Marketplace routes → Listing images: serves images
app/marketplace/routes.py - Marketplace routes → Reviews: loads summaries
app/marketplace/routes.py - Flask application → Chat routes and sockets: registers
app/__init__.py - Chat routes and sockets → Conversations and offers: handles messages and offers
app/chat/routes.py - Conversations and offers → Listings and search: checks purchasability
app/chat/services.py - Conversations and offers → Orders and fulfillment: creates confirmed orders
app/chat/services.py - Flask application → Orders and fulfillment: registers order routes
app/__init__.py - Orders and fulfillment → Application database: persists order state
app/orders/services.py - Orders and fulfillment → Payment orchestration: supports payment actions
app/orders/routes.py - Payment orchestration → Payment providers: queries and refunds
app/payments/services.py - Flask application → Dispute resolution: registers dispute routes
app/__init__.py - Dispute resolution → Orders and fulfillment: updates disputed orders
app/disputes/services.py - Dispute resolution → Payment orchestration: requests refunds
app/disputes/services.py - Flask application → Admin operations: registers admin routes
app/__init__.py - Admin operations → Audit records: records actions
app/admin_ops/services.py - Flask application → Notifications: registers notification routes
app/__init__.py - Admin operations → Notifications: notifies users
app/admin_ops/services.py - Notifications → Application database: stores notices
app/notifications/services.py - Orders and fulfillment → Notifications: notifies participants
app/orders/services.py - Reviews → Notifications: notifies participants
app/reviews/services.py - Listings and search → Application database: stores listings
app/marketplace/services.py - Accounts and OTP → Application database: stores account challenges
app/auth/services.py