Under the Hood of Trunk2Twig
We migrated from a Next.js/Payload CMS/FastAPI stack that consumed 6-10GB of memory to Rails 8.1.1, which runs comfortably under 1GB. This shift dramatically reduced infrastructure costs while maintaining full feature parity.
Current Status: This is a bare-bones Rails application serving as the foundation for our migration. The full multi-tenant, markdown-focused site will be complete before Christmas 2025.
Roadmap: Adding markdown-based content management with AST filtering, multi-tenant division support, and maintaining the lightweight footprint that makes Rails 8 special.
Rails Container
Ruby 3.4.7 + Rails 8.1.1
161.64 MB
Total Container Memory
Rails Process
Ruby VM + Application Code
161.7 MB
Container Overhead
Gems, File Cache, Shared Libraries, Node.js
-0.06 MB
PostgreSQL 17
Database Server
128.0 MB
Total Stack Memory
All Dev Container Services
289.64 MB
≈ 0.28 GB
Running in Docker Dev Container • Memory refreshes on each page load
3.4.7
Fast, elegant, object-oriented language powering our backend.
8.1.1
The latest Rails with Hotwire, Solid Queue, and modern conventions.
17
Rock-solid relational database with excellent JSON support.
4.x
Utility-first CSS framework for rapid UI development.
Dev Containers
Consistent development environment across all machines.
AST Filtering
Content management with abstract syntax tree filtering for safety.