Skip to content
Back to posts

Building a Trust-First Services Marketplace in Colombia: A Cerkya Case Study

Fredy Acuna8 min read

Building a Trust-First Services Marketplace in Colombia: A Cerkya Case Study

Hire Someone You Can Trust

Cerkya is a marketplace for everyday services in Colombia. You post what you need, you get offers from verified people nearby, you pay with protection, and you rate the job at the end. It has been live on the App Store and Google Play since October 2026.

I am the founder and the engineer. I designed it, wrote it and I run it. This post is the case study: the problem, the constraints I worked under, the decisions I made and what each one cost me. If you are a founder or run a small business and you are wondering what it takes to build something like this, this is the honest version.

The full technical breakdown lives on the Cerkya project page. Here I focus on the why.

Try one job from start to finish. The names and amounts are sample data.

Try it: one job, start to finish

Pick a category and post the request.

New requestWhat do you need?
Kitchen sink is leaking under the counter.
Bogotá · near me
Sample names and amounts. Not the app's real UI.

What the platform did

  1. apiRequest checked by zod and stored through the Hono API.
  2. geoNearby = a k-ring of H3 cells, an indexed lookup in plain Postgres.
  3. idVerified = document plus selfie. That is what the badge on an offer means.
  4. payWompi confirmed by webhook; the checksum is verified before anything moves.
  5. jobMeeting PIN matched, so the job actually started.
  6. doneDouble-blind reviews saved and the money released.

The Problem: Trust Is the Product

Hiring someone for a leaking sink or a broken socket should be simple. In practice it is a gamble. You do not know who is coming, you do not know the price until the job is half done, and you have to decide whether to pay before or after.

Both sides carry risk:

  • The person hiring worries about who they let into their home and whether the work will be done.
  • The provider worries about being paid for the work they did.

A marketplace that only connects people does not solve either worry. So I treated trust as the product, not as a feature added later. Everything below follows from that.

Constraints

Being honest about constraints is what makes the decisions make sense.

  • One engineer. Every piece of complexity is something I have to build, test and operate myself.
  • Two stores, one team. iOS and Android had to launch together without doubling the work.
  • Local rules. Payments and invoicing in Colombia follow local providers and tax rules, so generic tools only go so far.
  • Money is involved. A bug in a payment flow is not an annoyance. It is someone's money.

Decisions and Tradeoffs

Verified providers, and a flow built around them

Every provider verifies their identity with a document and a selfie before they can take jobs. The request flow is short: a person posts a need, gets offers from verified providers nearby, picks one and pays. The idea is to take the guesswork out of the first interaction.

Escrow instead of pay-and-hope

Payment goes through Wompi and is held in escrow. The API creates a payment intent, and a webhook with a verified checksum confirms it. The money is released only when the job is completed.

The tradeoff: escrow adds states and edge cases to the payment flow, and it is more work than a simple charge. I accepted that because it is the one mechanism that protects both sides at once.

Where the money is, step by step

H3 hexagons in PostgreSQL, not a geo database

"Nearby" is the core of matching. I store H3 hexagon cells as plain columns in PostgreSQL, and a radius search becomes a k-ring of cells: an indexed lookup in a single database.

What I gave up is the flexibility of a full geospatial engine. What I got is no PostGIS, no parallel geo store to keep in sync, and no need to switch cities on one by one.

Drag the radius to see which cells one search covers.

Nearby is a ring of hexagons
k = 2: 19 cells to look up, 4 providers inside. Illustration, not real providers.

A real PWA next to the Flutter app

The app is one Flutter codebase for iOS and Android. For people who just received a shared link, I built a separate React PWA instead of using Flutter Web. Flutter's canvas rendering hurts bundle size, SEO and accessibility, and a shared link has to load fast, be indexable and work with a screen reader.

The tradeoff is a second client to maintain. The fix is a single typed contract: every client talks to the same API.

AI moderation that can fail safely

A worker in FastAPI handles moderation, classification and ranking, plus a self-hosted vision worker. Each provider has its own kill switch, with OpenAI as fallback, so one bad day for a provider does not take moderation down.

Invoicing built in-house

Colombian electronic invoicing (DIAN) means UBL 2.1, CUFE/CUDE, XAdES and SOAP. I built that as its own package. It reads no environment: the app passes in everything it needs, which makes it easy to test.

The Stack

This is the level the project page already discloses.

  • App: Flutter, React PWA, React with Vite for the admin panel, Astro with MDX for the site
  • API: Hono, better-auth, Drizzle, PostgreSQL, zod, OpenAPI, Redis
  • AI: FastAPI, Workers AI, Cerebras, Bedrock Nova Micro, OpenAI
  • Money and operations: Wompi, DIAN UBL 2.1, Dokploy, Cloudflare R2 and Pages, Beszel, GlitchTip

The API and the web clients live in one pnpm TypeScript monorepo, and the Flutter app lives in its own repository. Backups go to R2 every 12 hours, and I have tested the restores.

I also run the business from Claude through an MCP admin server with accounting tools. A separate public, read-only MCP server powers the Convocatorias finder and holds no database or admin credentials.

Tap a part of the platform

Highlighted wires show what it talks to.

Clients

Core

Services

Flutter app

One codebase for iOS and Android, in the cerkya-app repo.

Why: Both stores from one app, live since October 2026.

Requester PWA

React web app for people who need something done.

Why: Not Flutter Web: its canvas rendering hurts bundle size, SEO and accessibility, and a shared link must load fast, be indexable and work with a screen reader.

Admin panel

React with Vite.

Why: Same pnpm monorepo as the API.

MCP servers

An admin server with accounting tools, and a public read-only one for the Convocatorias finder.

Why: Run the business from Claude; the public one holds no database or admin credentials.

Hono API

better-auth and Drizzle; zod on every input and output; OpenAPI docs; Redis alongside.

Why: One typed contract for every client.

PostgreSQL + H3

Hexagon cells as plain columns; a radius search is a k-ring of cells.

Why: An indexed lookup in one database: no PostGIS, no parallel geo store to keep in sync, no city switched on one by one.

Wompi escrow

Payment intent, then a webhook whose checksum is verified.

Why: Money is released only when the job is completed.

AI worker

FastAPI moderation, classification and ranking, plus a self-hosted vision worker.

Why: Each provider has its own kill switch, with OpenAI as fallback, so one bad day doesn't take moderation down.

DIAN package

UBL 2.1, CUFE/CUDE, XAdES and SOAP, built in-house.

Why: It reads no environment; the app passes in everything it needs, so it is easy to test.

What Shipped

  • The Flutter app, live on the App Store and Google Play since October 2026
  • A requester PWA, an admin panel and a landing site, all in production
  • Escrow payments with Wompi
  • H3 matching, AI moderation and DIAN e-invoicing

Lessons

  1. Pick the one risk your users fear and design around it. For Cerkya that was trust and payment, so identity checks and escrow came before anything else.
  2. Boring data choices beat clever ones. H3 cells in the database I already had meant one less system to run alone.
  3. Give every external dependency an off switch. Per-provider kill switches for AI make failures a non-event.
  4. Keep risky code testable. The invoicing package takes its inputs instead of reading the environment, so I can test it without setting anything up.
  5. One contract, many clients. A typed API with zod and OpenAPI keeps the app, the PWA and the admin panel honest.

Work With Me

If you are planning a marketplace, an app or a payments flow and want one person who can design and ship it end to end, you can see the details on the Cerkya project page and get in touch from the contact page.