Bem Coberto
Travel insurance marketplace for Brazilian travellers: quote several insurers in one search, compare every plan in one format, pay with Pix or card. Built around insurer adapters, a payment-safe order state machine and an outbox-driven worker.

Bem Coberto is a travel insurance marketplace for Brazilian travellers, currently in development. One search quotes several insurers in parallel, every plan is normalized into one comparable format, and the customer pays with Pix or card and receives the policy by email and in their account. The hard part is money and policies moving between systems that share no transactions, so the architecture is built around a few firm rules. Each insurer sits behind a single TravelInsuranceProvider adapter (quote, issue, find issued, cancel, health): domain code never sees an insurer's types, and adding an insurer means writing one adapter. Quotes fan out with per-insurer timeouts, are cached in Redis, and degrade to partial results when one insurer fails. Payment follows a charge-then-issue model: the payment webhook marks the order paid and writes an outbox row in the same database transaction, and a BullMQ worker issues the policy, stores the files and sends the email. Orders move through an explicit state machine owned by the domain package, every transition is recorded, and an issue call that times out is never retried blindly; it is reconciled against the insurer, so no one is charged without a policy or a refund. The stack is a strict TypeScript monorepo on pnpm and Turborepo: Next.js App Router for the storefront and back office, NestJS on Fastify for the API, PostgreSQL with Prisma, Redis, S3 and SES on AWS, with every decision recorded in a build spec and ADRs.
Hiring a senior full-stack engineer? Let's talk.