How sayantan-pachal/smartkrishi works
SmartKrishi is a farm and crop management web application. A farmer enters through the routed React app, signs in or creates an account, then uses protected farm-management pages; field and crop records are managed alongside dashboard and weather advisories. The README also describes image-based disease detection, while the Vision page excerpt presents that capability as forthcoming. The backend configuration excerpt sends requests to a Google Apps Script endpoint; the README identifies Google Sheets as its database. Some page implementations were not sampled, so their internal interactions are not expanded.
Main entry points: main.jsx Route Application · Fields.jsx Field Management · useWeather.js Weather Retrieval · config.js Backend Adapter
Components 22
Application
- Route Application
src/main.jsx - Page Layout
src/Layout.jsx
Farm Management
- Farm Dashboard
src/component/DashTemp/Dashboard.jsx - Field Management
src/component/FieldsTemp/Fields.jsx - Field Forms
src/component/FieldsTemp/FormFieldModal.jsx - Field Cards
src/component/FieldsTemp/FieldCard.jsx - Field Definitions
src/data/FieldsData.js - Crop Management
src/component/Crops/Crops.jsx
Insights
- Weather Advisory
src/component/Advisory/Advisory.jsx - Weather Retrieval
src/hooks/useWeather.js - Farming Advice Rules
src/data/weatherUtils.js - Disease Detection
src/component/Vision/vision.jsx
Identity
- Account Signup
src/component/Auth/Signup.jsx - Account Login
src/component/Auth/Login.jsx - Session Guard
src/ProtectedRoute.jsx - User Profile
src/component/Profile/Profile.jsx - Account Settings
src/component/Settings/Settings.jsx
Services
- Backend Adapter
src/appwrite/config.js - Google Sheets
- OpenWeather API
- Browser Geolocation
Other components
- Farmer
Connections 26
- Farmer → Route Application: uses
- Route Application → Account Signup: routes to
src/main.jsx - Route Application → Account Login: routes to
src/main.jsx - Route Application → Session Guard: protects pages
src/main.jsx - Route Application → Page Layout: wraps pages
src/main.jsx - Route Application → Farm Dashboard: routes to
src/main.jsx - Route Application → Field Management: routes to
src/main.jsx - Route Application → Crop Management: routes to
src/main.jsx - Route Application → Weather Advisory: routes to
src/main.jsx - Route Application → Disease Detection: routes to
src/main.jsx - Route Application → User Profile: routes to
src/main.jsx - Route Application → Account Settings: routes to
src/main.jsx - Session Guard → Backend Adapter: checks session
src/ProtectedRoute.jsx - Account Signup → Backend Adapter: creates account
src/component/Auth/Signup.jsx - User Profile → Backend Adapter: uses account
src/component/Profile/Profile.jsx - Field Management → Backend Adapter: reads and writes
src/component/FieldsTemp/Fields.jsx - Field Management → Field Definitions: uses definitions
src/component/FieldsTemp/Fields.jsx - Field Management → Field Cards: renders
src/component/FieldsTemp/Fields.jsx - Field Management → Field Forms: uses forms
src/component/FieldsTemp/Fields.jsx - Farm Dashboard → Weather Retrieval: loads weather
- Weather Advisory → Weather Retrieval: uses weather
- Weather Retrieval → Farming Advice Rules: gets advice
src/hooks/useWeather.js - Weather Retrieval → Browser Geolocation: requests location
src/hooks/useWeather.js - Weather Retrieval → OpenWeather API: fetches forecasts
src/hooks/useWeather.js - Backend Adapter → Google Sheets: sends requests
src/appwrite/config.js - Disease Detection → Farmer: offers future detection