Peer-to-peer lending marketplace for Nepal — verified borrowers, fractional funding and explainable risk.
Lenders browse verified loan requests, fund them fully or in fractions, and earn interest as borrowers repay. Borrowers apply for small loans, receive an explainable risk rating, and repay through the app. NepalLend never lends its own money: it connects people, checks who they are, scores the risk, records the agreement and keeps an exact ledger of who is owed what.
⚠️ Status: pre-alpha. Auth vertical slice is live (OTP + JWT/auth/*and/meon the API, wired end-to-end in the mobile app against the mock adapter); everything else renders hard-coded sample data and no lending endpoints exist yet. Not a lending offer.
| Layer | Choice |
|---|---|
| Mobile app | Flutter (Dart), Android first |
| Backend | Node.js + Express + TypeScript + Prisma — SQLite for dev, PostgreSQL in production |
| Money | Integer paisa + append-only double-entry ledger (planned) |
| Payments | Behind a swappable provider interface; NepalLend never custodies lender funds (regulated partner holds funds) |
nepallend/
├── apps/mobile/ # this Flutter app ✓
├── apps/api/ # Express + Prisma backend ✓ (auth + health live; lending APIs pending OpenAPI, Stage 5)
├── apps/admin/ # KYC/loan review console (planned)
├── packages/api-spec/ # OpenAPI 3.1 contract + Prism mock ✓ (npm run mock :4001)
└── docs/ # scope, security baseline, decisions
# Requires Flutter 3.47+ (Dart 3.13+)
cd apps/mobile
flutter pub get
flutter analyze # 0 issues
flutter test # 41 tests
flutter run --flavor dev --dart-define=ENV=dev # Android emulator or device
# Flavors (android/app/build.gradle.kts): dev -> .dev id, staging -> .staging,
# prod -> np.nepallend.app. Pair each with the matching --dart-define=ENV.
# ENV=mock serves canned API responses (no backend needed).
# Dev OTP: the code is 123456 and is shown on the OTP screen in dev/mock
# builds (real SMS kicks in once apps/api sets SMS_PROVIDER=http + SMS_API_URL).
# API (Node 22+)
cd apps/api
npm install
npm run dev # http://localhost:3000 (see apps/api/README.md)Release builds use debug keys until you create apps/mobile/android/key.properties
(see apps/mobile/android/key.properties.example). The file and any *.jks keystore are gitignored.
- Borrower: phone OTP signup, KYC, income-based loan request, explainable risk rating, e-signed agreement, repayment schedule (eSewa / Khalti / ConnectIPS / bank)
- Lender: wallet, browse risk-graded loans, fractional funding, portfolio and payouts
- Admin: KYC review, flagged-request approval, overdue monitoring, audit log
Full scope: docs/product-scope.md · decisions: docs/decisions.md · security: docs/security-baseline.md
- Design system lives in
apps/mobile/lib/shared/widgets/ui.dart; style guide runs at the/style-guideroute - Amounts are formatted NPR with lakh grouping (
formatNPRinapps/mobile/lib/shared/widgets/ui.dart) - Tests: per-screen render smoke tests in
apps/mobile/test/screens_smoke_test.dart
Private / unlicensed — all rights reserved (until the team decides otherwise).