How google-developers-group-iit-mandi/geoledger works
GeoLedger is a Stellar/Soroban charitable-giving platform. Donors discover verified NGOs, authenticate and connect a wallet, then make geolocated donations; NGOs submit evidence and impact can be tracked. The web app calls an Express API for authentication, NGO/project, donation, evidence, and assistant features, while Soroban contracts provide the documented ledger capabilities. Several backend controllers shown are placeholders, so the graph represents documented product capabilities without implying those handlers are implemented. Evidence is limited to the README and sampled excerpts; contract-to-backend runtime calls are not shown.
Main entry points: client.ts API client · index.ts API routing · donations.ts Donation processing · page.tsx Donation and dashboards
Components 28
Web application
- Discovery and entry
frontend/src/app/page.tsx - Web identity
frontend/src/hooks/useGoogleAuth.ts - API client
frontend/src/lib/api/client.ts - Donation and dashboards
frontend/src/app/dashboard/donate/page.tsx - Wallet integration
frontend/src/lib/stellar/wallet.ts - Evidence submission
frontend/src/components/EvidenceUpload.tsx - Giving assistant
frontend/src/components/Chatbot.tsx
Backend API
- API application
backend/src/app.ts - API routing
backend/src/routes/index.ts - Authentication
backend/src/routes/auth.routes.ts - NGO and projects
backend/src/routes/ngos.ts - Donation processing
backend/src/routes/donations.ts - Evidence processing
backend/src/routes/evidence.ts - AI assistant API
backend/src/routes/chat.ts - Database access
backend/src/config/database.ts - Evidence storage
backend/src/services/ipfs.service.ts - Stellar integration
backend/src/lib/stellar.ts
Soroban contracts
- Donation registry
contracts/donation_registry/src/lib.rs - NGO verification
contracts/ngo_verification/src/lib.rs - Impact escrow
contracts/impact_escrow/src/lib.rs - Evidence contract
contracts/evidence/src/lib.rs - Token manager
contracts/token_manager/src/lib.rs - NFT minting
contracts/nft_minting/src/lib.rs
External services
- Google and Firebase
- Stellar network
- Gemini AI
- IPFS or Pinata
Other components
- Donor or NGO
Connections 31
- Donor or NGO → Discovery and entry: browses
frontend/src/app/page.tsx - Discovery and entry → API client: loads NGOs
frontend/src/app/page.tsx - Donor or NGO → Web identity: authenticates
README.md - Web identity → Google and Firebase: signs in
frontend/src/hooks/useGoogleAuth.ts - Web identity → Authentication: posts login
frontend/src/hooks/useGoogleAuth.ts - Donor or NGO → Donation and dashboards: starts donation
README.md - Donation and dashboards → Wallet integration: connects wallet
README.md - Donation and dashboards → API client: requests donation
README.md - API client → Donation processing: calls API
README.md - Evidence submission → API client: prepares evidence
- API client → Evidence processing: uploads evidence
README.md - Donor or NGO → Giving assistant: asks questions
README.md - Giving assistant → API client: sends message
README.md - API client → AI assistant API: calls assistant
README.md - Discovery and entry → NGO and projects: lists NGOs
frontend/src/app/page.tsx - API application → API routing: mounts routes
backend/src/app.ts - API application → Database access: initializes database
backend/src/app.ts - API routing → Authentication: routes auth
README.md - API routing → NGO and projects: routes directories
README.md - API routing → Donation processing: routes donations
README.md - API routing → Evidence processing: routes evidence
README.md - API routing → AI assistant API: routes chat
README.md - Donation and dashboards → Stellar network: submits transactions
README.md - NGO and projects → NGO verification: verifies NGOs
README.md - Donation processing → Donation registry: records donations
README.md - Donation processing → Impact escrow: uses escrow
README.md - Evidence processing → Evidence storage: stores evidence
README.md - Evidence processing → Evidence contract: records proof
README.md - Donation processing → Token manager: handles tokens
README.md - Donation processing → NFT minting: mints NFTs
README.md - AI assistant API → Gemini AI: uses AI
README.md