How we fixed database size limits, automated blog publishing, improved search engine optimization (SEO), and created a simple one-click system to translate the entire website into multiple languages.

About this project
HeyGen is a leading platform for AI video generation and digital avatars. While redesigning their website, the team added many new design features. However, this caused the website's database (Sanity CMS) to slow down and hit its maximum size limits. This blocked the developers from launching new updates, putting the project on hold.

Database Cleanup
The Challenge
While building the new website, we added so many features, custom blocks, and pages that the website's database (Sanity CMS) hit its maximum size limit. Because the database was full, developers could not publish new code or launch updates, stalling the entire project. Additionally, translating the website manually was slow and prone to errors.
The Solution
We cleaned up the database structure and built new automation tools. We converted raw text files into structured web content and automated the publishing process. We also built an automatic SEO generator and a one-click translation engine that lets the team translate pages into 20+ languages simultaneously.

Automatic Article Importer
Database Cleanup
Merged duplicate fields and cleaned up old structures to bring the database well under size limits.
Automatic Article Importer
Built a tool that automatically imports raw text articles and converts them into formatted blog posts.
One-Click Page Creator
Built a button that lets editors type in a short text prompt to generate landing page drafts instantly.

One-Click Page Creator
AI Intelligence
The platform integrates an AI templates layout generator that automatically maps natural-language prompts to design sections and generates draft copy. It also uses translation API logic to synchronize page templates and route links across 20+ languages.
System Architecture
Cleaned up and compressed schema architecture that downsized database configuration payloads, restoring instant and reliable schema deployments to Sanity Content Lake.
Database & Caching
Sanity Content Lake handles transactional page schemas, and Redis caches localized routing indices.
Messaging
Transactional webhook pipelines trigger automated multi-language sync workers on content publication.
Frontend
Backend
Deployment
Next.js frontend hosted on Vercel, with page builds compiled statically for sub-second global page loads.


English → Japanese: Side-by-side page translation
“Unifying our content structure and automating translations reclaimed 80% of our editorial time and unblocked our developers completely.”
HeyGen Content Operations Team