Appearance

Visual style

Mode
Theme
Accent
Advanced
Text sizeScales the whole site
16 px
Reduce motionReduce animations or match your system
Separate light and darkChoose a theme, accent and font for each
50

Case study · Platform engineering

Ekonavi: Regeneration Ecosystem & Platform

Ekonavi verifies regenerative farming in Brazil and turns it into funding, and won the G20 TechSprint 2024. I help build its platform: Next.js, Hono and Hasura on Cloudflare Workers.

New to Ekonavi? Start with the two-minute introduction: what it is, the problem it tackles and its G20 win →
Company
Ekonavi
Type
Platform engineering
Role
Full-stack developer & DevOps engineer · Team contributor
Status
In production
Year
2024–present

Live on the client's own domain.

Ekonavi ecological regeneration platform
Ekonavi ecological regeneration platform. Screenshot of the deployed build.

What Ekonavi is

Ekonavi is a Brazilian network for ecological regeneration. Farmers and producers practising agroforestry and regenerative agriculture record their work on it; independent people verify that work on the ground; and the verified result becomes something buyers, supporters and investors can fund. The short version, with diagrams, is on the Ekonavi introduction page.

It grew out of O Elo Perdido, a 2019 documentary about agroforestry by Breno Veiga and Simão Luling, and launched as a platform in December 2020. It is based in Belo Horizonte, Minas Gerais, and maps producers across all six Brazilian biomes.

Why it exists

Regenerating land takes years, and the people doing it are usually small producers. Three things work against them:

  • Their work is invisible. There is rarely a public record of what was planted, where, and how it is doing.
  • Impact is expensive to prove. Conventional audits of biomass and soil cost more than a small farm can pay, so restored land is valued like degraded land.
  • Money for nature rarely reaches the land. Funding passes through intermediaries, and supporters can’t trace where it went.

Ekonavi’s answer is to make the record public, make the verification independent, and make the result fundable.

The ecosystem

The marketplace is one part of a larger system. Each part works on the same verified data:

PartWhat it does
Community mapA social network that puts producers, projects and planting days (mutirões) on a map
Field diary and pointsProducers log activities and earn rewards for documenting and promoting them
CertificationThe workflow that turns a producer’s claim into a certificate
Marketplace (Mercado)Products from regenerative producers, with PIX payments; written up separately
Public dashboardESG metrics and aggregates anyone can inspect
API and docsA documented REST API so other platforms can integrate

Certification runs through separate roles, so nobody signs off their own work:

  1. Producers register projects and report field activity.
  2. Verifiers inspect on the ground and confirm the practices.
  3. Valuators calculate the environmental and financial impact.
  4. Certifiers issue the certificate.

Roles are granted by administrators and recorded as on-chain tokens. Reports and certificates are ERC-1155 tokens, with hashes of the underlying data stored on IPFS, so a certificate can be checked and can’t be quietly edited later. Source: Ekonavi ecosystem documentation.

Recognition

  • Winner, G20 TechSprint 2024. Ekonavi won the nature-based solutions challenge of the G20 global hackathon, run by the BIS Innovation Hub and Banco Central do Brasil under Brazil’s G20 presidency. The competition drew a record 110 proposals; the winning solution tokenises data from verified ecological restoration projects into investable assets aligned with international ESG standards. (BIS announcement)
  • Finalist, federal government Web3 hackathon on tokenising Brazil’s National Treasury (Tesouro Nacional), December 2023.
  • Finalist, Mercado Bitcoin “Tokenize sua Ideia”, 2023.
  • Featured in MIT Technology Review, May 2023.
  • Partnerships with Regen Network and IXO, cited as one of the first cases of blockchain financing for agroforestry, with regenerative pilots in Bahia, Minas Gerais and Colombia.

Sources for the last four: Wikipedia (pt) and the references it cites.

Where it’s heading

The direction is to make restored land worth more than cleared land. That means digital measurement, reporting and verification (dMRV) for biomass on terms that favour the farmer, verified restoration data that can back assets investors buy, and a model that already runs beyond Brazil, in Colombia.

My role on the team

I’ve been on the Ekonavi team since 2024 as a full-stack developer and DevOps engineer, working across the stack: marketplace features in the Next.js frontends, Hono API Workers, the Hasura GraphQL backend, shared packages, and the delivery pipeline. The rest of this page covers that engineering.

The engineering challenge

A platform with this many surfaces has a specific failure mode: apps drift apart. Each one re-implements authentication, headers, forms and styling slightly differently; a change to a shared contract breaks an app nobody tested; and deploying one app safely requires knowing how all the others behave.

The approach

One monorepo, shared packages. The applications and shared packages live in a single pnpm + Turborepo workspace. Cross-cutting concerns (auth, header, footer, uploader, forms, theme) are packages consumed by every app, so a fix lands everywhere at once and type errors show every affected consumer.

A shared design-token package. The shared theme package defines brand colours and forest and earthy themes, each with light and dark modes, integrated with Tailwind 4’s @theme. It deliberately ships no compiled CSS: each app runs its own Tailwind build against it, avoiding class collisions between apps.

Independently deployed shared UI. The footer is a Module Federation micro-frontend, deployed on its own and loaded by the apps, so content changes there don’t require redeploying every app. A cross-domain widget uses iframe isolation and postMessage for embedding across domains.

Edge-first architecture. Frontends and APIs run on Cloudflare Workers. Data access goes through Hasura GraphQL with role-based permissions; workflows with side effects (payments, uploads, certification) are Hono services.

The delivery pipeline

I maintain the CI/CD pipelines: a GitHub Actions matrix builds and deploys each app to staging and promotes to production. I also set up the Playwright end-to-end suite that covers critical flows across the ecosystem, because the bugs that matter most on a platform like this cross app boundaries.

Engineering decisions and trade-offs

DecisionBenefitCost
Monorepo with shared packagesOne change, every app; refactors are type-checked across the platformTooling and CI complexity; build caching becomes essential
Tokens package without compiled CSSNo style collisions; each app ships only the CSS it usesEvery app must configure Tailwind to scan the package
Module Federation footerIndependent deploys for shared chromeRuntime integration to monitor; versioning discipline
Workers for frontends and APIsOne platform, global deployment, per-environment bindingsRuntime constraints vs full Node.js; adapter for Next.js

What I learned

Most of the work on a platform like this is about contracts: between packages and apps, between frontends and APIs, between staging and production. The investment that paid off most was making those contracts explicit (types, shared packages, staged deploys and cross-service tests) so that changing one part of the system stops being a guess about the others.

The marketplace part of the platform is written up separately: Ekonavi Marketplace.

Highlights

Key implementation details

  • 9 production apps and 7 shared packages in one pnpm + Turborepo monorepo, deployed on Cloudflare Workers.
  • Shared packages consumed across apps: auth, header, footer, uploader, forms and theme.
  • @ekonavi/theme: a published npm package of design tokens and light/dark themes for Tailwind 4, shipping no compiled CSS.
  • A Module Federation footer micro-frontend deployed independently of the apps that use it.
  • Resumable uploads via a TUS-protocol uploader package.
  • GitHub Actions matrix pipeline with automated staging → production promotion, and a cross-service Playwright E2E suite.

Results

Documented outcomes

  • Ekonavi won the G20 TechSprint 2024 in the nature-based solutions category, chosen from a record 110 proposals by the BIS Innovation Hub and Banco Central do Brasil.
  • The platform serves Ekonavi's community, certification, marketplace and admin workflows from 9 production apps on Cloudflare Workers.

Planning something similar?

Tell me about your project and what you want it to achieve. I'll reply with a suggested approach, scope and timeline.