Winvote: Muti-tennat DAO

Deepesh Kalura

Winvote: Multi Tennat DAO

The Challenge:

As a freelance backend specialist contracted through BB Smart Services, a Netherlands-based consultancy led by Devon Marties, I was brought in to overhaul the backend architecture for their client, WinVote.io. The initial system was fragmented across three separate repositories, creating a chaotic and unmaintainable development environment. The architecture lacked type safety and was designed for a single DAO, making it impossible to scale into the "DAO-as-a-Service" platform the company envisioned
My Solution: I took ownership of the backend and executed a complete architectural overhaul.
Code Consolidation & Type Safety: My first step was to consolidate the three messy repositories into a single, cohesive monorepo. I then introduced TypeScript across the entire codebase, which immediately improved code quality, eliminated a class of runtime errors, and made the system far easier to maintain.
From Single to Multi-Tenant: I led the architectural shift from a single-DAO model to a true multi-tenant system. I designed and implemented a robust solution using Cloudflare Durable Objects to manage the state for each individual DAO, guaranteeing complete data isolation and security.
Scalable Serverless API: I rebuilt the core API using Hono, a high-performance framework ideal for Cloudflare's edge network. This made the system faster, more efficient, and ready for global scale.
Real-Time Functionality: I leveraged Cloudflare WebSockets to provide the real-time communication necessary for live voting and proposal updates, a critical feature for a successful DAO platform.
The Outcome: I successfully transformed a fragmented and unscalable project into a robust, production-ready backend. The new architecture is now maintainable, secure, and built to handle thousands of concurrent DAOs, directly enabling WinVote's core business model.
Like this project

Posted Aug 21, 2025

Led the transformation of a fragmented, single-instance backend into a scalable, type-safe, multi-tenant serverless architecture on Cloudflare.

Join 50k+ companies and 1M+ independents

Contra Logo

© 2025 Contra.Work Inc