目録へ戻るAll projects

ウェブ

Hafiz Platform

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

2024公開中LiveWeb

Cover screen from Hafiz Platform

Summary

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.

Overview概要

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.

Challenges課題

The state machine is the safety mechanism

The problem

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.

What 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.

Results成果

  • Server-validated transaction states protecting both parties.

Colophon奥付

役割Role
Solo
年Year
2024
状態Status
Live
分野Category
Web
道具Built with
Next.jsTypeScriptServer ComponentsServer ActionsZodTailwind CSSSEOCaching
所在Where to find it
Next design — Liquid GlassSee all 14