Skip to content
Β 
Β 

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Stellance

Decentralized freelance payment platform powered by the Stellar blockchain

License: MIT Stellar PRs Welcome

🎯 Problem Statement

Freelancers worldwide face a broken payment system. Traditional platforms are:

  • ❌ Expensive (up to 20% in platform fees and payment processor cuts)
  • ❌ Slow (3–7 business days for payouts through multiple intermediaries)
  • ❌ Inaccessible (millions in Africa, Asia, and Latin America can't receive international payments)
  • ❌ Opaque (no transparent, verifiable record of agreements or payment history)

πŸ’‘ Solution

Stellance leverages the Stellar blockchain to create a borderless, low-cost platform where:

βœ… Freelancers get paid instantly with no bank account required
βœ… Clients secure work agreements with trustless on-chain escrow
βœ… Payments release automatically upon work approval
βœ… Everyone benefits from <$0.00001 transaction fees and 3–5 second settlement

πŸš€ Key Features

For Freelancers

  • πŸ’Έ Instant Payouts: Receive funds in seconds, not days
  • 🌍 No Bank Required: Just a Stellar wallet address to get started
  • πŸ“ˆ On-Chain Reputation: Build verifiable payment history and reviews
  • πŸ“± Mobile-Friendly: Works for anyone with a smartphone

For Clients

  • πŸ” Escrow Protection: Funds locked until work is delivered and approved
  • πŸ” Transparent Agreements: Immutable on-chain job contracts and milestones
  • ⚑ Instant Settlement: Release payment the moment you approve
  • πŸ’± Multi-Currency: Pay in USDC, XLM, or other Stellar assets

For the Platform

  • 🀝 Smart Escrow: Stellar claimable balances for conditional payment release
  • βš–οΈ Dispute Resolution: Platform mediates and releases funds accordingly
  • 🌐 Low Fees: Under 2% platform fee vs. 20% on traditional platforms
  • πŸ”— Open & Interoperable: API-first design for third-party integrations

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              Frontend (Next.js 14 App Router)            β”‚
β”‚         Web Dashboard + Mobile App (React Native)       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                     β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                  Backend API (NestJS)                    β”‚
β”‚   Auth β”‚ Users β”‚ Jobs β”‚ Contracts β”‚ Payments β”‚ Stellar  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                     β”‚
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β”‚                       β”‚              β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Stellar Node   β”‚   β”‚   PostgreSQL   β”‚   β”‚     IPFS     β”‚
β”‚  (Horizon API)  β”‚   β”‚  + Prisma ORM  β”‚   β”‚   / AWS S3   β”‚
β”‚                 β”‚   β”‚                β”‚   β”‚              β”‚
β”‚ β€’ Escrow        β”‚   β”‚ β€’ User data    β”‚   β”‚ β€’ Contracts  β”‚
β”‚ β€’ Payments      β”‚   β”‚ β€’ Jobs         β”‚   β”‚ β€’ Files      β”‚
β”‚ β€’ USDC / XLM    β”‚   β”‚ β€’ Milestones   β”‚   β”‚ β€’ Deliverablesβ”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ› οΈ Tech Stack

Blockchain

  • Stellar SDK (@stellar/stellar-sdk) β€” Payments and escrow
  • Horizon API β€” Blockchain queries and transaction submission
  • Stellar Wallet β€” JWT + wallet signature authentication

Backend

  • NestJS β€” Modular API server
  • PostgreSQL β€” Relational database
  • Prisma β€” ORM and migrations
  • JWT β€” Authentication

Frontend

  • Next.js 14 (App Router) β€” Web application
  • React Native β€” Mobile app (Phase 3)
  • TailwindCSS β€” Styling

DevOps

  • Docker β€” Containerization
  • GitHub Actions β€” CI/CD
  • Vercel β€” Frontend hosting
  • Railway β€” Backend hosting

πŸ“¦ Project Structure

stellance/
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ web/                        # Next.js frontend
β”‚   β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”‚   β”œβ”€β”€ (auth)/             # Login & register
β”‚   β”‚   β”‚   └── (dashboard)/        # Jobs, contracts, payments, profile
β”‚   β”‚   β”œβ”€β”€ components/             # UI, wallet, jobs, payments
β”‚   β”‚   β”œβ”€β”€ hooks/                  # useStellarWallet, useEscrow, usePayments
β”‚   β”‚   └── lib/                    # stellar.ts, api.ts
β”‚   β”‚
β”‚   └── api/                        # NestJS backend
β”‚       β”œβ”€β”€ src/
β”‚       β”‚   β”œβ”€β”€ auth/               # Auth module
β”‚       β”‚   β”œβ”€β”€ users/              # Users module
β”‚       β”‚   β”œβ”€β”€ jobs/               # Jobs module
β”‚       β”‚   β”œβ”€β”€ contracts/          # Contracts module
β”‚       β”‚   β”œβ”€β”€ payments/           # Payments module
β”‚       β”‚   └── stellar/            # Core Stellar integration + escrow
β”‚       └── prisma/                 # schema.prisma
β”‚
β”œβ”€β”€ packages/
β”‚   β”œβ”€β”€ shared/                     # Shared types & utilities
β”‚   └── stellar-utils/              # Reusable Stellar helpers
β”‚
β”œβ”€β”€ docs/                           # Architecture, API, Stellar integration
β”œβ”€β”€ .github/workflows/              # CI/CD pipelines
β”œβ”€β”€ docker-compose.yml
β”œβ”€β”€ turbo.json                      # Turborepo monorepo config
└── README.md

πŸš€ Quick Start

Prerequisites

Installation

  1. Clone the repository
git clone https://github.com/yourusername/stellance.git
cd stellance
  1. Install dependencies
npm install
  1. Environment setup
cp apps/api/.env.example apps/api/.env
cp apps/web/.env.example apps/web/.env
  1. Database setup
cd apps/api && npx prisma migrate dev
  1. Run development servers
npm run dev

Visit http://localhost:3000 πŸŽ‰

Environment Variables

Backend (apps/api/.env)

DATABASE_URL=postgresql://user:password@localhost:5432/stellance
JWT_SECRET=your_jwt_secret
STELLAR_NETWORK=testnet
STELLAR_HORIZON_URL=https://horizon-testnet.stellar.org
ESCROW_SECRET_KEY=your_stellar_secret_key

Frontend (apps/web/.env.local)

NEXT_PUBLIC_API_URL=http://localhost:3001
NEXT_PUBLIC_STELLAR_NETWORK=testnet

πŸ“š Documentation

πŸ—ΊοΈ Roadmap

Phase 1: MVP (Q1 2026)

  • User registration & Stellar wallet connection
  • Job posting and browsing
  • Basic escrow (fund β†’ approve β†’ release)
  • Payment history dashboard

Phase 2: Core Features (Q2 2026)

  • Milestone-based payments
  • Dispute resolution system
  • Freelancer reputation & reviews
  • Multi-currency support (USDC, XLM, EURC)

Phase 3: Scale (Q3–Q4 2026)

  • Mobile app (React Native)
  • Team / agency accounts
  • API for third-party integrations
  • Fiat on/off ramp integration
  • 10,000+ active freelancers

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

How to Contribute

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License β€” see the LICENSE file for details.

🌟 Team

  • Your Name β€” Project Lead
  • Open for contributors!

πŸ™ Acknowledgments

  • Stellar Development Foundation β€” Blockchain infrastructure
  • Freelancer communities worldwide β€” Domain expertise and feedback
  • Open source community β€” Tools and libraries

πŸ“ž Contact

πŸ”— Links


Built with ❀️ to empower freelancers worldwide

"Your work, your money, your terms."

About

Decentralized freelance payment platform powered by Stellar (XLM)

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages