Skip to content
<matthew />
cd ../work

/* case study */

GoodParty.org Platform Rebuild

End-to-end architectural rebuild of an open-source platform that gives independent political candidates scalable campaign infrastructure.

// impact: Faster delivery, fewer production incidents, continuous deployments

// Context

GoodParty.org equips independent candidates with campaign tooling. The platform had grown on a legacy Sails.js API that was slowing the team down and causing incidents.

// Challenges

  • ›Raw Postgres queries with no data access layer and inconsistent standards
  • ›Weak input validation, limited test coverage, and brittle CI/CD
  • ›Tightly coupled systems that had to keep serving live production traffic throughout the rebuild

// Approach

  • ›Rebuilt the backend on TypeScript + NestJS with SOLID principles and clear module boundaries
  • ›Introduced Prisma ORM as a proper DAL and redesigned core Postgres schemas for correctness and performance
  • ›Enforced strict runtime input/output validation with Zod
  • ›Created a shared core SDK so frontend and backend share API contracts with end-to-end type safety
  • ›Implemented CI/CD with SST (IaC), GitHub Actions, and Playwright integration tests

// Outcomes

  • ›Removed widespread data inconsistencies and improved query performance
  • ›Lower cloud operational overhead
  • ›Faster delivery, fewer production incidents, easier onboarding, and higher release confidence
  • ›Continuous deployment on a scalable foundation

// next case study

Agentic Pull Request Review