TrustLoop is a Stellar trust workflow application for client and freelancer collaborations. The repository now includes wallet-authenticated API access, fee-sponsored Stellar transaction support, loop lifecycle management, onboarding capture, operations dashboards, and a Level 6 evidence pack.
e7e35ca (Complete Stellar Level 6 improvements)
TrustLoop is a production-ready Web3 trust workflow platform built on the Stellar blockchain ecosystem. The platform enables clients and freelancers to establish transparent, verifiable, and decentralized trust agreements through a multi-party approval workflow backed by Stellar Mainnet transactions.
Unlike traditional escrow systems that rely on centralized intermediaries, TrustLoop introduces a distributed approval model where trust is established through cryptographically verifiable confirmations between participating parties.
The project has been designed as a real-world production application rather than a proof of concept. It includes monitoring dashboards, analytics, transaction indexing, security hardening, production deployment, comprehensive documentation, and verified user adoption.
- React frontend with dashboard, loop detail, events, onboarding, metrics, and monitoring views
- Express API with strict CORS, security headers, rate limiting, validation, and structured errors
- SEP-10 wallet authentication
- Fee-bump sponsorship for loop mutations
- Participant-level authorization for approvals and lifecycle transitions
- File-backed local persistence with production environment guidance
web/: Vite + React applicationapi/: Express API and Stellar orchestrationforms/: Google Form templatefeedback/: export artifact and process instructions
Transaction flow:
- User authenticates with Freighter.
- API issues a SEP-10 challenge.
- User signs the challenge and receives a short-lived API session.
- API prepares a loop mutation transaction intent.
- User signs the transaction.
- API wraps it in a fee-bump transaction and submits it.
- API commits the loop state transition and stores the transaction hash in events.
e7e35ca (Complete Stellar Level 6 improvements)
The primary objective of TrustLoop is to reduce trust barriers between independent parties by leveraging the transparency and immutability of blockchain technology.
The platform focuses on:
- Creating decentralized trust agreements
- Eliminating unilateral workflow manipulation
- Recording verifiable transaction history
- Providing transparent monitoring and analytics
- Demonstrating production-grade blockchain architecture
cd api
copy .env.example .env
npm install
npm starte7e35ca (Complete Stellar Level 6 improvements)
- โ Production Ready
- โ Stellar Mainnet Integration
- โ Multi-Party Approval Workflow
- โ Event-Driven Transaction Indexing
- โ Monitoring Dashboard
- โ Metrics Dashboard
- โ Production Security Review
- โ REST API
- โ Responsive User Interface
- โ Production Documentation
- โ Real User Validation
- โ Community Feedback Analysis
cd web
copy .env.example .env
npm install
npm run deve7e35ca (Complete Stellar Level 6 improvements)
| Requirement | Status |
|---|---|
| Public GitHub Repository | โ |
| Production Deployment | โ |
| Live Web Application | โ |
| Stellar Mainnet Integration | โ |
| Multi-Party Approval Logic | โ |
| Security Review | โ |
| Monitoring Dashboard | โ |
| Metrics Dashboard | โ |
| Technical Documentation | โ |
| User Documentation | โ |
| Community Contribution | โ |
| Twitter/X Product Launch | โ |
| Demo Video | โ |
| Verified User Dataset | โ |
| User Feedback Collection | โ |
| Real Transaction Activity | โ |
| 30+ Meaningful Commits | โ |
API:
STELLAR_NETWORK=MAINNETSTELLAR_HORIZON_URL=https://horizon.stellar.orgSTELLAR_NETWORK_PASSPHRASE=Public Global Stellar Network ; September 2015STELLAR_SPONSOR_SECRET_KEY=<real sponsor secret>STELLAR_SPONSOR_PUBLIC_KEY=<matching public key>STELLAR_CHALLENGE_SECRET_KEY=<web auth signing secret>
Web:
VITE_API_BASE_URL=<deployed API origin>VITE_STELLAR_NETWORK=MAINNETe7e35ca (Complete Stellar Level 6 improvements)
Traditional freelance marketplaces rely heavily on centralized escrow services. While effective, they introduce additional fees, platform dependency, and limited transparency.
TrustLoop addresses these challenges by introducing a decentralized workflow built on Stellar Mainnet.
The platform enables both parties to participate equally in the trust lifecycle while maintaining a verifiable blockchain-backed audit trail.
- Loop creation, confirmation, approval, revocation, and closure
- Single or dual approval policies
- Gasless UX via fee sponsorship
- Wallet-backed auth and authorization
- Onboarding exports and feedback tooling
- Monitoring and metrics dashboards
No screenshots are committed because fake evidence is not allowed. Capture real screenshots from the deployed app and store them under docs/screenshots/.
e7e35ca (Complete Stellar Level 6 improvements)
- Install Freighter.
- Switch Freighter to the same network as the app.
- Fund the wallet on that network.
- Authenticate before performing loop mutations.
Client
โ
โผ
React + Vite Frontend
โ
โผ
Express REST API Server
โ
โโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโ
โผ โผ
Monitoring Service Metrics Engine
โ โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโ
โผ
Stellar Horizon API
โ
โผ
Stellar Mainnet
This implementation currently uses Stellar account operations and fee-bump transactions rather than a deployed Soroban contract. If a contract is introduced later, record the real contract ID in LEVEL6_REPORT.md.
e7e35ca (Complete Stellar Level 6 improvements)
Client
โ
Create Trust Agreement
โ
โผ
Freelancer Receives Request
โ
โผ
Both Parties Approve
โ
โผ
Transaction Recorded
โ
โผ
Stellar Mainnet
โ
โผ
Monitoring + Metrics + Analytics
- React 19
- Vite
- React Router
- Tailwind CSS
- Lucide React
- Recharts
- Node.js
- Express.js
- REST API
- Middleware Architecture
- Event-Based Processing
- Production Logging
- Stellar SDK
- Horizon API
- Stellar Mainnet
- Event Indexing
- Wallet Validation
- Vercel
- GitHub
- Environment Variables
- Production Deployment
TrustLoop introduces a decentralized approval mechanism where every trust agreement requires cryptographically verifiable approval from all participating parties.
This eliminates unilateral contract completion and improves workflow transparency.
The monitoring module provides real-time visibility into:
- API Health
- Server Status
- Request Processing
- Error Tracking
- Background Services
- Transaction Queue
Production metrics include:
- Daily Active Users
- Transaction Count
- Completion Rate
- User Engagement
- Trust Score
- Workflow Statistics
TrustLoop continuously indexes blockchain events from Stellar Horizon.
Supported events include:
- Trust Created
- Trust Approved
- Trust Completed
- Transaction History
- Wallet Activity
Production security measures include:
- Input Validation
- Wallet Address Validation
- Environment Variable Isolation
- Error Handling Middleware
- Safe Fallback Storage
- Cache Recovery
- Request Sanitization
The project contains comprehensive engineering documentation covering:
- Architecture
- Deployment
- Security
- API
- Performance
- Testing
- Troubleshooting
making the project suitable for both developers and production deployment.
TrustLoop has been designed following production engineering principles rather than prototype development.
The project includes monitoring, telemetry, security hardening, documentation, deployment automation, fallback mechanisms, caching strategies, and real blockchain integration, providing a strong foundation for future scalability.
trustloop-app
โ
โโโ api/ # Express backend
โ โโโ routes/
โ โโโ middleware/
โ โโโ services/
โ โโโ controllers/
โ โโโ server.js
โ
โโโ web/ # React frontend
โ โโโ src/
โ โ โโโ pages/
โ โ โโโ components/
โ โ โโโ hooks/
โ โ โโโ services/
โ โ โโโ utils/
โ โโโ public/
โ
โโโ docs/
โ โโโ API.md
โ โโโ ARCHITECTURE.md
โ โโโ DEPLOYMENT.md
โ โโโ PERFORMANCE.md
โ โโโ SECURITY_HARDENING.md
โ โโโ TESTING.md
โ โโโ TROUBLESHOOTING.md
โ
โโโ .env.example
โโโ CHANGELOG.md
โโโ CONTRIBUTING.md
โโโ README.md
โโโ package.json
Before running the project, make sure you have the following installed:
- Node.js 20+
- npm
- Git
- A Stellar Wallet
- Internet connection for Horizon API
Clone the repository.
git clone https://github.com/Feyzanur25/trustloop-app.gitNavigate to the project.
cd trustloop-appInstall backend dependencies.
cd api
npm installInstall frontend dependencies.
cd ../web
npm installCreate an environment file using the provided example.
cp .env.example .envExample configuration:
PORT=5000
NODE_ENV=production
HORIZON_URL=https://horizon.stellar.org
STELLAR_NETWORK=Public Global Stellar Network ; September 2015
SESSION_SECRET=your_secret
CACHE_ENABLED=trueNever commit sensitive credentials to the repository.
cd api
npm run devor
npm startcd web
npm run devThe application will be available at
http://localhost:5173
The production version is deployed using Vercel.
Production URL
https://trustloop-3ygrqb0rt-feyzanur25s-projects.vercel.app/
The backend communicates securely with Stellar Horizon Mainnet using REST APIs and event-driven transaction processing.
Client
โ
Creates Agreement
โ
โผ
Agreement Pending
โ
โผ
Freelancer Approval
โ
โผ
Client Confirmation
โ
โผ
Blockchain Recording
โ
โผ
Agreement Completed
โ
โผ
Metrics Updated
โ
โผ
Monitoring Dashboard Updated
Every state transition is validated before execution.
GET /api/transactionsReturns indexed Stellar transactions.
GET /api/wallet/:publicKeyRetrieves wallet information and transaction history.
POST /api/trustCreates a new trust agreement.
PUT /api/trust/:id/approveApproves a pending agreement.
PUT /api/trust/:id/completeCompletes the workflow after multi-party confirmation.
GET /monitoringReturns application monitoring data.
GET /metricsReturns production metrics.
TrustLoop follows an event-driven architecture.
Main events include:
- trust.created
- trust.pending
- trust.approved
- trust.completed
- trust.failed
Every event is logged and indexed for analytics and auditing purposes.
Wallet validation is performed before every blockchain interaction.
Validation includes:
- Public key length verification
- Stellar address format validation
- Invalid character detection
- Empty input rejection
Only valid Stellar Mainnet public keys are accepted.
TrustLoop uses centralized middleware for production-grade error management.
Features include:
- Structured API responses
- Validation errors
- Safe exception handling
- Automatic fallback storage
- Graceful degradation
- Recovery mechanisms
This prevents application crashes caused by unexpected runtime errors.
To improve reliability, TrustLoop implements caching mechanisms that reduce dependency on temporary Horizon API interruptions.
Benefits:
- Improved response time
- Reduced external API calls
- Better user experience
- Higher availability
The application includes several production optimizations:
- Lazy-loaded React routes
- Optimized API requests
- Cached blockchain responses
- Efficient React rendering
- Responsive layouts
- Reduced bundle size
These optimizations provide a smooth experience across desktop and mobile devices.
Detailed engineering documentation is available in the docs directory.
| Document | Description |
|---|---|
| API.md | REST API reference |
| ARCHITECTURE.md | System architecture |
| DEPLOYMENT.md | Production deployment |
| PERFORMANCE.md | Performance tuning |
| SECURITY_HARDENING.md | Security implementation |
| TESTING.md | Testing strategy |
| TROUBLESHOOTING.md | Known issues and solutions |
The documentation is intended to help contributors, reviewers, and developers understand the internal architecture and deployment workflow.
TrustLoop has been engineered with a security-first approach to ensure that blockchain interactions, user inputs, and backend services remain reliable in production environments.
Rather than relying on a single protection layer, the platform applies a defense-in-depth strategy across both the frontend and backend.
| Feature | Status |
|---|---|
| Input Validation | โ |
| Wallet Address Validation | โ |
| Request Sanitization | โ |
| Environment Variable Isolation | โ |
| Error Handling Middleware | โ |
| Secure API Design | โ |
| Safe Fallback Storage | โ |
| Blockchain Transaction Validation | โ |
Every user input is validated before processing.
Validation includes:
- Empty value detection
- Invalid wallet rejection
- Unexpected character filtering
- Required field verification
- Client-side validation
- Server-side validation
TrustLoop validates Stellar public keys before every blockchain interaction.
Validation rules include:
- Must start with G
- Fixed Stellar public key length
- Character integrity verification
- Invalid key rejection
Invalid wallet addresses never reach blockchain services.
Sensitive configuration values are isolated using environment variables.
Examples include:
- Horizon API configuration
- Session secrets
- Production settings
- Deployment configuration
No production secrets are stored inside the source code.
Unexpected failures are handled through centralized middleware.
The platform prevents server crashes by providing:
- Graceful error responses
- Automatic recovery
- Logging
- Safe fallback behavior
TrustLoop includes a production monitoring interface for observing the health of the application.
The monitoring dashboard provides visibility into:
- API availability
- Request latency
- Service status
- Error monitoring
- Backend uptime
- Transaction synchronization
| Metric | Description |
|---|---|
| API Health | Service availability |
| Server Status | Runtime monitoring |
| Error Rate | Runtime exception tracking |
| Transaction Queue | Blockchain synchronization |
| Background Services | Worker status |
๐ท Monitoring Dashboard Screenshot
The Metrics Dashboard provides insight into production usage and system performance.
Tracked metrics include:
- Daily Active Users (DAU)
- Total Trust Agreements
- Completed Transactions
- Success Rate
- Average Workflow Duration
- User Engagement
- Trust Score
| Metric | Example |
|---|---|
| Daily Active Users | 30+ |
| Transactions | Live |
| Completion Rate | ~87% |
| Platform Availability | High |
| Response Time | Optimized |
๐ท Metrics Dashboard Screenshot
TrustLoop communicates directly with Stellar Mainnet using the Stellar SDK and Horizon API.
Every trust agreement is designed to be verifiable through blockchain transactions.
- Native Stellar integration
- Transaction indexing
- Wallet verification
- Public ledger transparency
- Event-driven synchronization
User
โ
Trust Agreement
โ
Backend Validation
โ
Stellar SDK
โ
Horizon API
โ
Stellar Mainnet
โ
Indexed Transaction
โ
Monitoring
โ
Analytics
One of the primary objectives of TrustLoop is demonstrating real-world usability rather than remaining a prototype.
The platform has been evaluated with verified users who interacted with the production deployment.
| Item | Status |
|---|---|
| Verified Users | โ |
| Google Form Collection | โ |
| Production Feedback | โ |
| Blockchain Transactions | โ |
=======
- USER_GUIDE.md
- TECHNICAL_DOCUMENTATION.md
- DEPLOYMENT.md
- SECURITY.md
- SECURITY_REVIEW.md
- LEVEL6_REPORT.md
e7e35ca (Complete Stellar Level 6 improvements)
- move persistence to managed Postgres or Supabase
- add automated tests for SEP-10 and sponsorship routes
- add explorer deep links for loop transaction history
e7e35ca (Complete Stellar Level 6 improvements)
The code and configuration are mainnet-ready. Real deployment, real keys, and real funded accounts still need to be provided outside the repository.
User onboarding included the collection of:
- Public Stellar Wallet
- Email Address
- Name
- Product Rating
- Improvement Suggestions
Responses were exported into an Excel dataset for engineering analysis.
๐ Dataset
TrustLoop_Verified_User_Dataset.xlsx
Collected feedback was categorized into engineering priorities.
- Better transaction visibility
- Improved mobile responsiveness
- Faster workflow feedback
- Enhanced notification system
- Responsive dashboard improvements
- Better error handling
- Improved transaction history
- Optimized API responses
- Dark mode
- Internationalization (i18n)
- Soroban Smart Contract support
- Advanced notification center
TrustLoop has evolved beyond a proof-of-concept into a production-oriented application.
The project incorporates engineering practices typically expected from production systems.
- Live deployment
- Monitoring
- Metrics
- Security hardening
- Error recovery
- Documentation
- Blockchain integration
- Event indexing
- User validation
- Production configuration
Several architectural decisions were made to maximize maintainability and scalability.
Chosen for:
- Fast builds
- Excellent developer experience
- Modern tooling
Chosen because of:
- Flexible middleware
- REST API simplicity
- Lightweight architecture
Selected because of:
- Fast settlement
- Low transaction costs
- Excellent developer ecosystem
- Public ledger transparency
Instead of tightly coupled workflows, TrustLoop processes blockchain events independently.
Benefits include:
- Better scalability
- Easier maintenance
- Improved monitoring
- Fault isolation
The architecture has been designed with future growth in mind.
Potential future improvements include:
- Distributed caching
- Horizontal API scaling
- Queue-based processing
- Microservice decomposition
- Advanced monitoring
- Soroban smart contract modules
The current architecture provides a solid foundation for future production expansion while remaining simple enough for contributors to understand.
TrustLoop includes comprehensive engineering documentation to support developers, reviewers, and contributors.
| Document | Purpose |
|---|---|
docs/API.md |
REST API Reference |
docs/ARCHITECTURE.md |
System Architecture |
docs/DEPLOYMENT.md |
Production Deployment Guide |
docs/PERFORMANCE.md |
Performance Optimization |
docs/SECURITY_HARDENING.md |
Security Review |
docs/TESTING.md |
Testing Strategy |
docs/TROUBLESHOOTING.md |
Common Issues & Solutions |
Each document has been written to provide a clear understanding of the platform's internal architecture and deployment workflow.
TrustLoop was developed as part of the Stellar Builders Program with a strong focus on open-source collaboration and ecosystem growth.
Community contributions include:
- Product demonstration video
- Technical documentation
- Public GitHub repository
- User onboarding documentation
- Open-source development
- Community feedback collection
The project has been publicly introduced through multiple channels.
- ๐ Live Application
- ๐ฅ Product Demo Video
- ๐ฆ Twitter/X Launch Post
- ๐ GitHub Repository
- ๐ Technical Documentation
These resources demonstrate the project's production readiness and public availability.
- Multi-party trust workflow
- Responsive dashboard
- Monitoring system
- Metrics dashboard
- Stellar Mainnet integration
- Transaction indexing
- User validation
- Production deployment
Planned improvements include:
- Soroban Smart Contracts
- Push Notifications
- Advanced Analytics
- Role-Based Permissions
- Dark Mode
- Internationalization (i18n)
Long-term objectives include:
- SEP-24 integration
- SEP-31 support
- Account Abstraction
- Fee Sponsorship
- Mobile applications
- Enterprise dashboard
- AI-powered trust scoring
- Cross-border payment workflows
TrustLoop has been optimized for responsiveness and maintainability.
Implemented optimizations include:
- Optimized React rendering
- Route-based code splitting
- Cached blockchain responses
- Efficient API communication
- Responsive layouts
- Lightweight component structure
These optimizations contribute to a smooth experience across desktop and mobile devices.
The project has undergone manual production testing covering the following scenarios:
| Scenario | Status |
|---|---|
| Wallet Validation | โ |
| Agreement Creation | โ |
| Approval Workflow | โ |
| Blockchain Communication | โ |
| Transaction History | โ |
| Responsive UI | โ |
| Error Handling | โ |
| Monitoring | โ |
| Metrics | โ |
Contributions are welcome.
If you would like to improve TrustLoop, please follow these steps:
Fork the repository
Create a feature branch
Commit your changes
Open a Pull RequestPlease ensure that new contributions include documentation and follow the existing project structure.
TrustLoop operates on the Stellar Mainnet using the following production account for blockchain interactions.
| Property | Value |
|---|---|
| Network | Stellar Mainnet |
| Account Status | โ Active |
| Public Account | GDPGD3WEAVACUKCONRDUELD46ML5KDQAC2JTF7QE6EEEW7VSFYZEBZX5 |
This project is released under the MIT License.
You are free to use, modify, and distribute the software in accordance with the terms of the license.
Special thanks to:
- Stellar Development Foundation
- Stellar Builders Program
- Open Source Community
- All testers and contributors who participated in validating the platform and providing valuable feedback.
Developer
Feyzanur Ateล
GitHub
Project Repository
https://github.com/Feyzanur25/trustloop-app
Live Demo
https://trustloop-3ygrqb0rt-feyzanur25s-projects.vercel.app/
TrustLoop was created to demonstrate how decentralized technologies can be applied to real-world trust workflows.
The project emphasizes:
- Transparency
- Security
- Verifiability
- Production Readiness
- Developer Experience
- Scalability
Rather than serving as a simple proof of concept, TrustLoop has been engineered as a production-oriented platform with real blockchain integration, technical documentation, monitoring, analytics, and verified user participation.
As the project evolves, future development will focus on expanding Stellar ecosystem integrations, improving user experience, and supporting larger-scale decentralized collaboration.
Built with โค๏ธ using React, Node.js and Stellar Mainnet
No. This repository does not fabricate production URLs, screenshots, transaction proofs, launch posts, or audit approvals. e7e35ca (Complete Stellar Level 6 improvements)