How kingofstates/agrishare works
AgriShare is a farmer-facing marketplace for finding nearby agricultural equipment to rent and publishing listings. The main browsing flow starts in the React app: farmers can set location, search or filter machinery, sort results, inspect listing details, estimate rental cost, and contact owners. Lenders use a listing form whose data is retained in browser storage. The README also describes GPS proximity, voice input, multilingual UI, and direct phone and WhatsApp actions. Several implementation details are unsampled, so the graph omits uncertain wiring.
Main entry points: App.jsx App state and results · translations.js Translations · SearchBarAndFilters.jsx Search and filters · EquipmentDetailModal.jsx Details and estimator
Components 18
Application flow
- React entry
src/main.jsx - App state and results
src/App.jsx
Marketplace experience
- Location and language
src/components/Navbar.jsx - Search and filters
src/components/SearchBarAndFilters.jsx - Equipment cards
src/components/EquipmentCard.jsx - Details and estimator
src/components/EquipmentDetailModal.jsx - Marketplace footer
src/components/Footer.jsx
Listing and data
- Listing form
src/components/AddEquipmentModal.jsx - Default equipment catalog
src/data/equipmentData.js - Browser listing storage
src/utils/storage.js
Shared services
- Voice input control
src/components/VoiceInputButton.jsx - Speech recognition
src/utils/speech.js - Distance and city lookup
src/utils/distance.js - Translations
src/utils/translations.js
Other components
- Farmer
- Browser geolocation
- Phone dialer
Connections 25
- Farmer → React entry: opens app
README.md - React entry → App state and results: renders
src/main.jsx - App state and results → Location and language: renders
src/App.jsx - App state and results → Search and filters: renders
src/App.jsx - App state and results → Equipment cards: renders results
src/App.jsx - App state and results → Details and estimator: renders selection
src/App.jsx - App state and results → Listing form: opens listing flow
README.md - App state and results → Marketplace footer: renders
src/App.jsx - App state and results → Browser listing storage: loads and saves listings
src/App.jsx - App state and results → Default equipment catalog: uses defaults
src/App.jsx - App state and results → Distance and city lookup: calculates proximity
src/App.jsx - Farmer → Browser geolocation: shares location
README.md - Browser geolocation → App state and results: provides coordinates
README.md - Search and filters → Voice input control: accepts dictation
src/components/SearchBarAndFilters.jsx - Search and filters → Default equipment catalog: uses categories
src/components/SearchBarAndFilters.jsx - Search and filters → Translations: loads labels
src/components/SearchBarAndFilters.jsx - Listing form → Voice input control: accepts dictation
src/components/AddEquipmentModal.jsx - Listing form → Distance and city lookup: looks up city
src/components/AddEquipmentModal.jsx - Voice input control → Speech recognition: starts recognition
src/components/VoiceInputButton.jsx - Equipment cards → Translations: loads labels
src/components/EquipmentCard.jsx - Details and estimator → Translations: loads labels
src/components/EquipmentDetailModal.jsx - Details and estimator → Phone dialer: starts call
README.md - Details and estimator → WhatsApp: opens chat
README.md - Location and language → Translations: loads labels
src/components/Navbar.jsx - Marketplace footer → Translations: loads labels
src/components/Footer.jsx