OFFER-HUB/offer-hub-monorepo
About
A platform designed to transform the freelance market by connecting professionals and clients worldwide in a secure and innovative environment.
Systems & InfrastructureWhat you can do
- 💰 User Balances: Internal management of available and reserved balances.
- ⚡ Deposits: USDC deposits to each user's Stellar wallet.
- 🤝 Smart Escrow: Secure checkout with non-custodial escrow via TW.
- 💸 Withdrawals: USDC withdrawals to Stellar addresses and bank payouts through BlindPay.
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalOFFER-HUB Orchestrator
██████╗ ███████╗███████╗███████╗██████╗ ██╗ ██╗██╗ ██╗██████╗
██╔═══██╗██╔════╝██╔════╝██╔════╝██╔══██╗ ██║ ██║██║ ██║██╔══██╗
██║ ██║█████╗ █████╗ █████╗ ██████╔╝█████╗███████║██║ ██║██████╔╝
██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██╔══██╗╚════╝██╔══██║██║ ██║██╔══██╗
╚██████╔╝██║ ██║ ███████╗██║ ██║ ██║ ██║╚██████╔╝██████╔╝
╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝
--------------- Marketplaces Orchestrator & Freelance Platform ---------------
OFFER-HUB Orchestrator is a self-hosted payments orchestration system designed for Marketplaces. It manages a Web2-like experience (balances, deposits, payments with escrow, and withdrawals) using Stellar wallets, BlindPay for bank payouts, and Trustless Work for non-custodial escrows on the Stellar network.
Features
- 💰 User Balances: Internal management of available and reserved balances.
- ⚡ Deposits: USDC deposits to each user's Stellar wallet.
- 🤝 Smart Escrow: Secure checkout with non-custodial escrow via TW.
- 💸 Withdrawals: USDC withdrawals to Stellar addresses and bank payouts through BlindPay.
- 🔐 Secure & Audited: Native idempotency, audit logs, and modular architecture.
🛠️ Tech Stack
- Framework: NestJS (API Server)
- Runtime: Node.js 20 LTS
- Database: PostgreSQL (via Prisma ORM)
- Cache & Queues: Redis + BullMQ
- Monorepo: npm Workspaces
🏁 Quick Start
Clone and Prepare:
git clone https://github.com/your-org/OFFER-HUB-Orchestrator.git cd OFFER-HUB-Orchestrator cp .env.example .envInstall Dependencies:
npm installGenerate Database Client:
npm run prisma:generateStart Infrastructure (Optional): If you don't have local Postgres/Redis, use Docker:
docker compose up -dRun in Development: You can start both the API and the Worker concurrently:
npm run devNote: This starts the API on port 4000 and the Worker in the same terminal.
🏗️ Project Structure
offer-hub-monorepo/
├── src/ # Next.js frontend (this app: marketing site + docs website)
├── backend/ # Standalone Express backend (own package.json, installed separately)
├── mcp/ # Standalone MCP server exposing docs/ + content/docs/ to AI assistants
│ # (own package.json; not an npm workspace — run `npm install` inside mcp/)
├── content/docs/ # Public docs website content (MDX, rendered at offer-hub.tech/docs)
├── docs/ # Internal engineering documentation (Markdown, read on GitHub)
├── config/ # Shared app-level config (e.g. security headers)
├── scripts/ # Build/codegen scripts (OpenAPI, docs search index)
└── supabase/ # Supabase schema/config
The root package.json has no workspaces field, so npm install at the
repo root only installs the frontend's dependencies. backend/ and mcp/
are independent packages — each has its own package.json and needs its
own npm install (see mcp/README.md for the MCP
server's setup and usage).
📚 Documentation
Comprehensive documentation is available in the /docs folder:
Quick Start
- 🧠 AI Context - Development guide for AI assistants (Read first!)
- 📖 Main Documentation - Complete documentation index
Core Documentation
- 📐 Architecture Overview - System architecture
- 📋 Product Overview - Vision, goals, and value proposition
- 📚 Use Cases - Common marketplace scenarios
Development
- 💻 Naming Conventions - File, variable, and function naming rules
- 🔌 API Design - Backend API patterns
- 🤝 Contributing Guide - How to contribute
🎯 Use Cases
Freelance Marketplace (Primary)
Connect freelancers with clients using escrow protection:
- Client deposits USDC to their Stellar wallet
- Client pays for project → funds go to escrow (Trustless Work)
- Freelancer completes work
- Client approves → funds released instantly to freelancer
- Freelancer withdraws USDC or requests a bank payout through BlindPay
Other Marketplaces
- E-commerce: Buyer/seller escrow with delivery confirmation
- Service Marketplaces: Service booking with payment protection
- Digital Goods: Instant or escrow-based delivery
- Gig Economy: Worker/client escrow with job completion
🤝 Contributing
We welcome contributions! Please see CONTRIBUTING.md for detailed guidelines.
Quick Contribution Guide
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'feat: add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
🧪 Tests
The frontend suite runs on Vitest. A plain npm ci is enough — no .env file,
no credentials, and no network access are required.
npm run test # run the suite once
npm run test:watch # re-run affected tests as you edit
npm run test:coverage # run the suite and enforce coverage thresholds
Tests live in __tests__/ folders beside the code they cover. CI runs
npm run lint, npm run build and npm run test:coverage, and fails when
coverage drops below the thresholds in vitest.config.ts. See the
Testing section of the contribution guide
for conventions and what is expected of a PR.
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🆘 Support
- Documentation: /docs
- Issues: GitHub Issues
- Discussions: GitHub Discussions
👥 Maintainers
- @Josue19-08 - Project Lead & Full-Stack Developer
- @KevinMB0220 - Core Contributor & Developer
🙏 Acknowledgments
Built with ❤️ for the decentralized marketplace future.
- NestJS - Progressive Node.js framework
- Prisma - Next-generation ORM
- BullMQ - Premium message queue
- BlindPay - Bank payouts
- Trustless Work - Non-custodial escrow on Stellar
🚀 Empowering marketplaces with trustless payments 🚀
Explore related projects
Loading…