← Back to Home

Current Tech Stack V2

Under the Hood of Trunk2Twig

Why Rails?

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.

📊 Memory Usage

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

Technology Stack

💎

Ruby

3.4.7

Fast, elegant, object-oriented language powering our backend.

🛤️

Rails

8.1.1

The latest Rails with Hotwire, Solid Queue, and modern conventions.

🐘

PostgreSQL

17

Rock-solid relational database with excellent JSON support.

🎨

Tailwind CSS

4.x

Utility-first CSS framework for rapid UI development.

🐳

Docker

Dev Containers

Consistent development environment across all machines.

📝

Markdown

AST Filtering

Content management with abstract syntax tree filtering for safety.

🚀 Coming Soon

  • Multi-tenant division support (digital-tech, FAAR, after-school)
  • Markdown-based content management with AST filtering
  • Kamal 2 deployment to production VPS
  • Custom domain with SSL (trunk2twig.com)