Cube of Life's stack and architecture showcase modern web technologies. By leveraging a cutting-edge technological stack, the project achieves seamless 3D rendering and ultra-fast build times at near zero cost, without sacrificing developer experience,
We have been developing Cube of Life n Antigravity with a focus on AI-First development utilizing Gemini 2.5 / 3.0 Flash, 3.1 Flash Lite, and 2.5/3.0 Pro, and the Claude Opus and Sonnet models. We will discsuss this experience extensively in the blog.
Bun serves as the foundation, acting as a lightning-fast JavaScript runtime, package manager, and bundler. It significantly reduces installation and build times compared to traditional tools like Node.js or Webpack. Bun also handles the development server and hot reloading for a smooth iteration cycle. Bun Documentation
The user interface is built with React, the industry-standard library for creating declarative and component-based web applications. React enables efficient state management and high-quality UI responsiveness through its virtual DOM. It allows us to manage complex simulation controls with a modular architecture. React Official Site
3D rendering is handled by Three.js, bridged into the React ecosystem via React Three Fiber (R3F). This combination allows the simulation to render thousands of dynamic cubes with hardware-accelerated performance. R3F simplifies the management of 3D scenes by treating cameras, lights, and meshes as standard React components. React Three Fiber Documentation
TypeScript provides the project with a robust layer of static typing, ensuring code reliability and better maintainability. By catching potential errors during development rather than at runtime, it streamlines the creation of complex biological simulation logic. TypeScript's advanced IDE support also enhances developer productivity across the codebase. TypeScript Language Guide
Biome is used for linting and formatting, replacing the traditional combination of ESLint and Prettier. It is designed for extreme speed and provides a unified toolchain that maintains consistent code style across the entire project. This ensures the codebase remains clean and professional with minimal configuration overhead. Biome Project Site
Testing is powered by Vitest, a fast Vite-native unit testing framework with excellent React support. It allows the automated verification of core Game of Life rules and UI component behavior with high execution speed. Vitest's integrated UI also provides an intuitive way to monitor test coverage and health during development. Vitest Documentation
Docker provides containerization, allowing the entire environment to be packaged into a single immutable image. This ensures "it works on my machine" consistency from local development to production deployment. By isolating the application and its dependencies, Docker simplifies scaling and reduces configuration drift across different servers. Docker Documentation
Google Cloud Run is a fully managed serverless platform that automatically scales containerized applications based on traffic. It provides a highly available, robust infrastructure for hosting Cube of Life without requiring manual server maintenance. Since it charges only for resources used during request handling, it offers a cost-effective and efficient hosting solution, in fact — it's all for free at present scale. Google Cloud Run Overview
Powers the comments on this site, through our private deployment. Remark42 Home Page