AI-assisted agricultural waste marketplace for listings, demand matching, portfolio analytics, and carbon-impact tracking.
Live App | Contributing | License
AgriLink helps teams convert agricultural waste into structured, market-ready supply through a single operational flow:
- Capture and classify waste with AI-assisted inputs.
- Publish listings and respond to industrial marketplace demand.
- Track performance in a portfolio dashboard.
- Measure carbon-equivalent impact from completed activity.
| Module | Route | Purpose |
|---|---|---|
| Landing | / |
Product positioning, trust signals, and conversion entry points |
| Upload Workspace | /app |
AI-assisted listing intake and submission workflow |
| Marketplace | /marketplace |
Tender discovery, filtering, and response workflow |
| Portfolio | /portfolio |
Revenue and listing performance analytics |
| Carbon | /carbon |
CO2-equivalent and token-impact dashboard |
| Auth | /login, /api/auth/* |
Civic-based authentication flow |
flowchart LR
UI[Next.js App Router UI]
A[Server Actions]
API[API Routes]
DB[(MongoDB)]
SB[(Supabase Storage)]
AI[Puter/Gemini API]
AUTH[Civic Auth]
UI --> A
UI --> API
UI --> AUTH
A --> DB
A --> SB
API --> AI
| Layer | Tools |
|---|---|
| Frontend | Next.js (App Router), React 18, Tailwind CSS |
| UI/Icons | Lucide React, Framer Motion |
| Data | MongoDB |
| Storage | Supabase Storage |
| AI | Puter API (Gemini model endpoint) |
| Auth | @civic/auth |
npm installCreate .env.local in the project root:
# Required
MONGO_CS=
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
# Optional for server-side AI proxy calls
PUTER_API_KEY=
# Civic Auth variables
# Configure according to @civic/auth documentation for your app setup.npm run devApp runs at http://localhost:3000.
npm run dev # Start local dev server
npm run build # Production build
npm run start # Start production server
npm run lint # Lint projectapp/
actions/ # Server actions (MongoDB + Supabase workflows)
api/ # Route handlers (auth, gemini proxy)
app/ # Upload workspace page
marketplace/ # Marketplace page
portfolio/ # Portfolio page
carbon/ # Carbon impact page
login/ # Auth page
components/ # Shared UI components
layout.jsx # Root layout + metadata
page.jsx # Landing page
lib/
mongodbconnector.js # MongoDB client helper
public/
agrilink-logo.svg # Brand mark
SEO is configured using App Router metadata and route generators:
app/layout.jsxfor global metadata and JSON-LDapp/sitemap.jsfor/sitemap.xmlapp/robots.jsfor/robots.txt
The app is deployed on Vercel:
- Production URL:
https://agri-link-one.vercel.app/
For your own deployment, configure the same environment variables in your platform.
See CONTRIBUTING.md for setup, branch strategy, and pull request guidelines.
This project is licensed under the MIT License. See LICENSE.