Hysen Labs
Open-source project
Kaizenode/SafeSwap avatar
Kaizenode

SafeSwap

A safe marketplace for buyers and sellers

25 stars104 forksTypeScriptMIT
DEEP OPEN-SOURCE ANALYSIS

SafeSwap moves USDC between Stellar wallets through escrow smart contracts

A peer-to-peer marketplace that lets users transfer USDC on the Stellar network using escrow secured by the Trustless Work API.

What SafeSwap does

SafeSwap is a peer-to-peer platform for transferring USDC between Stellar wallet addresses through escrow-secured transactions. The README explains that the system is powered by the Stellar Network and integrated with the Trustless Work API, and that every transfer is transparent, trustless, and protected by smart contracts. The flow is intentionally minimal. A user browses a list of people who want to buy or sell USDC, where each listing shows the amount, the direction (buy or sell), and the user's Stellar wallet address. The user picks a counterpart whose offer matches their need, both parties agree on the amount, and an escrow contract is created via the Trustless Work API that locks the USDC on the Stellar blockchain. The sender then funds the escrow, and once both parties confirm, the contract releases the funds to the recipient's Stellar wallet automatically. If something goes wrong, either party can open a dispute that the escrow contract handles. The pitch is that no central authority controls the process, because smart contracts on Stellar manage each step. The README also states the UI is kept intentionally minimal, with no unnecessary steps and no friction, so a transfer can be completed without navigating a complex set of menus. The README points contributors to the contribution and git guidelines before they open a pull request, which keeps the peer-to-peer app's development orderly as more people join the project.

Technology stack and structure

The project is built with a modern web stack. The peer-to-peer app uses Next.js, Tailwind CSS v4, and shadcn/ui. A legacy backend used NestJS, GraphQL through Apollo Server, and Prisma, while the blockchain layer is the Stellar Network and the escrow logic is managed by the Trustless Work API. Data is stored in PostgreSQL via Supabase. The README describes a monorepo layout with an applications table that, at the time of writing, lists a single app called p2p-safe-swap built with Next.js 16 and Tailwind v4. Setup requires Node.js version 20 or higher and npm version 10.9.2 or higher. Environment variables include a Supabase URL and anon credential for the client, and a Trustless Work API credential that stays server-side only. The README provides both npm run dev for development and npm run build for production, and it points contributors to contribution and git guidelines before they open a pull request. The authors listed are Daniel Calderón Díaz and Diego Duarte Fernández, and the landing page describes the project as a safe marketplace for buyers and sellers, with the homepage hosted at safe-swap-landing.vercel.app for anyone who wants to see the live interface. The escrow model is the core safety claim, with funds held in a Stellar contract and released only when both parties confirm the agreed conditions of the trade.

Getting started and project status

To run SafeSwap locally, a developer clones the repository, installs dependencies with npm install, and copies .env.example to .env.local in the relevant app folder before filling in the Supabase and Trustless Work values. The application can then be started with npm run dev from the root or from the p2p-safe-swap directory. The escrow model is the core safety claim: funds sit in a Stellar escrow contract and are released only when both parties fulfill the agreed conditions, with dispute resolution available if terms are not met. The project carries the MIT license, so it can be reused and modified freely. The repository metadata shows 25 stars and a comparatively high fork count of 104, with a last update recorded on 2026-08-24, indicating ongoing activity around the codebase as the team iterates on the peer-to-peer transfer experience. The README notes that the backend described as legacy suggests the team has shifted focus toward the Next.js frontend while keeping the Supabase and Stellar integration intact. For a newcomer the fastest path is to read the p2p-safe-swap README, which documents the app in more detail than the top-level overview provided in the main repository. Environment setup copies a sample env file and fills in Supabase values plus a server-side Trustless Work credential, keeping the API secret off the client bundle.

Editorial conclusion

The project is written in TypeScript, carries the MIT license, and the metadata records 25 stars with a last update of 2026-08-24.

DEEP OPEN-SOURCE ANALYSIS

Official sources

Community notes

Community notes