How luenkai/tanimtech works
TanimTech is a Philippine crop-planning website and Flask API. Farmers enter field conditions, browse crop information, and receive explainable crop-fit rankings; signed-in users can save profiles and plans, and soil-photo screening is optional. The graph keeps rule-based fit, advisory ranking, soil context, crop discovery, and persistence distinct. Several route modules and browser-to-API details were not excerpted, so those connections are left unasserted; optional integrations are shown separately.
Main entry points: __init__.py Flask application · site.js Website UI · profiles.py Profile routes · plants.py Plant routes
Components 27
Web experience
- Website UI
js/site.js - Crop guides
js/crop-guide.js - Plant browser
js/plants.js - Access gate
js/access-gate.js
API workflows
- Flask application
backend/tanimtech/__init__.py - Auth routes
backend/tanimtech/routes/auth.py - Profile routes
backend/tanimtech/routes/profiles.py - Recommendation routes
backend/tanimtech/routes/recommendations.py - Plant routes
backend/tanimtech/routes/plants.py - Soil routes
backend/tanimtech/routes/soil.py - Other API routes
backend/tanimtech/routes - Auth sessions
backend/tanimtech/auth.py
Crop analysis
- Rule-based scoring
backend/tanimtech/scoring.py - ML advisory ranking
backend/tanimtech/crop_suitability.py - Soil references
backend/tanimtech/soil_analysis.py - Soil photo review
backend/tanimtech/soil_image_classifier.py - SoilGrids lookup
backend/tanimtech/soilgrids.py - Planting calendar
backend/tanimtech/planting_calendar.py
Data and integrations
- Local profile store
backend/tanimtech/store.py - Edible crop catalog
backend/tanimtech/plant_catalog.py - Trefle plant data
backend/tanimtech/trefle.py - Supabase browser auth
js/supabase-config.js
Other components
- Farmer
- Vision service
- NASA POWER
- Supabase service
- Manus OAuth
Connections 31
- Farmer → Website UI: uses
README.md - Website UI → Crop guides: opens guides
- Website UI → Plant browser: browses plants
- Website UI → Access gate: gates access
- Flask application → Auth routes: registers
backend/tanimtech/__init__.py - Flask application → Profile routes: registers
backend/tanimtech/__init__.py - Flask application → Recommendation routes: registers
backend/tanimtech/__init__.py - Flask application → Plant routes: registers
backend/tanimtech/__init__.py - Flask application → Soil routes: registers
backend/tanimtech/__init__.py - Flask application → Other API routes: registers
backend/tanimtech/__init__.py - Auth routes → Auth sessions: calls
backend/tanimtech/routes/auth.py - Auth sessions → Local profile store: reads users
backend/tanimtech/auth.py - Profile routes → Local profile store: reads and writes
backend/tanimtech/routes/profiles.py - Profile routes → Rule-based scoring: requests rankings
backend/tanimtech/routes/profiles.py - Profile routes → Planting calendar: requests calendars
backend/tanimtech/routes/profiles.py - Recommendation routes → Rule-based scoring: requests rankings
backend/tanimtech/routes/recommendations.py - Recommendation routes → Local profile store: reads saved data
backend/tanimtech/routes/recommendations.py - Rule-based scoring → ML advisory ranking: ranks advisory
backend/tanimtech/scoring.py - Rule-based scoring → Soil references: checks soil fit
backend/tanimtech/scoring.py - Plant routes → Edible crop catalog: searches catalog
backend/tanimtech/routes/plants.py - Plant routes → Trefle plant data: fetches plant data
backend/tanimtech/routes/plants.py - Soil routes → SoilGrids lookup: requests soil data
backend/tanimtech/routes/soil.py - Soil routes → Soil references: requests analysis
backend/tanimtech/routes/soil.py - Soil routes → Soil photo review: requests screening
- Soil photo review → Vision service: sends image
- SoilGrids lookup → NASA POWER: fetches context
- Plant routes → Plant browser: supplies plant data
- Website UI → Flask application: requests API
- Supabase browser auth → Supabase service: authenticates
README.md - Auth sessions → Manus OAuth: exchanges identity
backend/tanimtech/auth.py - Flask application → Supabase service: optional client