GearFlow is a next-generation, zero-trust autonomous bike service ecosystem. By leveraging n8n orchestration and multimodal AI, it automates the entire service lifecycleβfrom intelligent lead triage and proximity-based dispatch to vision-locked part verification and automated payouts.
- Overview
- Application Preview
- System Features
- Architecture
- Tech Stack
- Project Structure
- Infrastructure & Workflows
- Installation
- Usage
- Configuration
- License
GearFlow transforms traditional bike maintenance into a fully autonomous digital operation. The platform eliminates human intervention in logistics and verification, ensuring a "zero-trust" environment where every action is verified by AI and logged on-chain (or in a secure ledger).
Key User Flows:
- Customers: Request service via a premium Next.js portal, track mechanics in real-time, and receive AI-generated health reports for their bikes.
- Mechanics: Use an offline-first Expo app to receive jobs, navigate to locations, and verify part replacements using vision-based AI.
- System: n8n acts as the "Central Nervous System," handling fraud detection, automated payouts, and RAG-based technical support for mechanics.
The Admin Dashboard provides real-time oversight of the entire autonomous fleet.
Real-time metrics, revenue tracking, and active session monitoring.
Geographic distribution of active mechanics and service requests.
| Active Service Orders | Registered Technicians |
|---|---|
![]() |
![]() |
| Feature | Description |
|---|---|
| π― Smart Dispatch | Real-time mechanic allocation based on Geo-proximity, rating, and current load. |
| ποΈ Vision Verification | Multimodal AI validates new vs. old parts via photos to prevent fraud. |
| π RAG Support | Instant technical assistance for mechanics using a RAG pipeline over maintenance manuals. |
| π‘οΈ Fraud Detection | Automated n8n workflow monitors patterns and flags suspicious service claims. |
| π³ Automated Payouts | Weekly cron-based payouts for mechanics via integrated fintech gateways (Razorpay/Cashfree). |
| π± Offline-First Mobile | Reliable mechanic app that functions in low-connectivity areas with sync-on-reconnect. |
graph TD
subgraph "Clients"
A[Next.js Portal] -->|API Requests| B[Express Backend]
C[Expo Mobile App] -->|API Requests| B
end
subgraph "Core Logic"
B --> D[(PostgreSQL / pgvector)]
B --> E[n8n Orchestrator]
end
subgraph "Automation & AI"
E --> F[Dispatch Workflow]
E --> G[RAG Support System]
E --> H[Fraud Detection]
E --> I[Payout Cron]
end
subgraph "External Services"
G --> J[Groq / OpenAI]
I --> K[Payment Gateway]
F --> L[WhatsApp API]
end
| Layer | Technology |
|---|---|
| Frontend | Next.js 15+, TailwindCSS 4, Framer Motion |
| Mobile | React Native (Expo), Moti (Animations), SecureStore |
| Backend | Node.js, Express 5, JWT Auth, Helmet |
| Orchestration | n8n (Self-hosted or Cloud) |
| Database | PostgreSQL + pgvector (Vector Search) |
| AI / LLM | Groq (Llama 3), OpenAI Vision, LangChain |
| Infrastructure | Docker, AWS EKS (Proposed) |
GearFlow/
β
βββ admin/ # Admin Dashboard (React)
βββ backend/ # Core Express API
β βββ src/
β β βββ controllers/ # Business logic
β β βββ db/ # Migrations & Models
β β βββ middleware/ # Auth & Security
β β βββ routes/ # API Endpoints
β βββ package.json
β
βββ frontend/ # Customer Web Portal (Next.js)
β βββ src/app/ # App Router
β βββ src/components/ # UI Library
β βββ tailwind.config.ts
β
βββ mobile/ # Mechanic Mobile App (Expo)
β βββ src/ # Reusable logic
β βββ app/ # Expo Router pages
β
βββ infra/ # Infrastructure & Automation
β βββ n8n/ # Workflow JSON exports
β βββ dispatch.json
β βββ rag_workflow.json
β βββ payouts_cron.json
β
βββ deploy/ # Deployment scripts (Docker/K8s)
βββ README.md
The infra/n8n/ directory contains the blueprint of GearFlow's intelligence.
dispatch_workflow.json: Handles the logic for matching service requests to the best available mechanic.rag_workflow.json: Implements the Retrieval-Augmented Generation pipeline to provide mechanics with repair guides.operations_fraud.json: Analyzes technician photos and logs to detect anomalies.payouts_cron.json: Triggered weekly to calculate and disperse earnings.
git clone https://github.com/crastatelvin/GearFlow.git
cd GearFlowcd backend
npm install
cp .env.example .env
npm run db:init # Initialize database schema
npm run devcd ../frontend
npm install
npm run devcd ../mobile
npm install
npx expo startEnsure your backend/.env contains:
DATABASE_URL=postgresql://user:pass@localhost:5432/gearflow
JWT_SECRET=your_super_secret_key
N8N_WEBHOOK_URL=http://your-n8n-instance/webhook/...
GROQ_API_KEY=gsk_...
OPENAI_API_KEY=sk-...- Zero Trust: All mechanic actions require proximity-based GPS verification and visual confirmation.
- JWT Auth: Stateless authentication across Web and Mobile.
- Rate Limiting: Protects the n8n webhooks from excessive automated calls.
This project is licensed under the MIT License - see the LICENSE file for details.
Built by Telvin Crasta β’ Empowering Autonomous Service
β Star this repo if you're building the future of autonomous logistics!







