Decentralized Fair Lending Platform
Built with Next.js, TypeScript, TailwindCSS, NextAuth.js, and MongoDB
Metric is a private credit network designed for principled borrowers and discerning lenders. It leverages machine-evaluated risk, community-backed insurance, and radical transparency to create a fair and efficient lending ecosystem.
- ML-Powered Risk Scoring: Get a fair credit score based on your on-chain and off-chain activity.
- Request Loans: Easily request loans with flexible amounts and durations.
- Transparent Repayments: Manage your active loans and view your repayment history.
- Profile Verification: Strengthen your profile and unlock better terms through various verification methods.
- Lender Dashboard: Get a comprehensive overview of your lending activities.
- Loan Marketplace: Browse and fund pending loan requests from a diverse pool of borrowers.
- Portfolio Management: Track your funded loans and potential returns.
- Insurance Pool: Protect your capital with a community-backed insurance pool.
- Secure Authentication: Sign in with Google or your Ethereum wallet.
- Decentralized Identity: Link your Web3 wallet to your account for a unified identity.
- Role-Based Access: Choose your role as a borrower, lender, or both.
Frontend Next.js + TypeScript
UI/UX TailwindCSS + shadcn/ui + Framer Motion
Backend Next.js API Routes
Database MongoDB
Authentication NextAuth.js
- Node.js (>= 18)
- MongoDB URI
- Google Client ID and Secret
- NextAuth.js Secret
git clone https://github.com/kushu30/metric.git
cd metric
npm installCreate a .env.local file in the root of your project and add the following variables:
MONGODB_URI=your_mongodb_uri
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your_nextauth_secretnpm run devOpen http://localhost:3000 with your browser to see the result.
