Haitham Assoli

← All projects

Hafiz Platform

An escrow-style platform that protects both sides of a sale.

0The facts

Role
Solo
Year
2024
Status
Live
Category
Web
Built with
Next.js · TypeScript · Server Components · Server Actions · Zod · Tailwind CSS · SEO · Caching
Where to find it
Hafiz Platform

1 · Overview

What it is, and why it exists.

A platform where a seller registers, is connected to a customer, and the rights of both parties are preserved through the transaction rather than depending on trust between strangers.

Online selling between individuals fails at the same point every time: one side has to go first. The seller ships before being paid, or the buyer pays before receiving, and whoever moves first carries all the risk.

Hafiz sits between them so neither has to. The platform holds the transaction and releases it when both obligations are met, which turns a trust problem into a process.

1a · Challenges

Each problem got a card. Each fix got filed behind it.

1a1The state machine is the safety mechanism

A transaction that can be advanced out of order, released before delivery or cancelled after payment, loses someone real money. The failure is financial, not cosmetic.

1a1aWhat I did

Every transition runs through server actions with the allowed transitions validated on the server and the payload checked with Zod, so an out-of-order request is rejected rather than reaching the state machine.

2 · Results

Next project

→nomusic

Watch YouTube and Facebook videos without the music.

Next design — SpoolerSee all 14