AÉTÉRNUM
High-performance Modular Monolith e-commerce platform built with clean architecture principles.

Project Overview
I designed and developed AÉTÉRNUM, an e-commerce platform following the Modular Monolith pattern, focused on circular fashion. I applied Clean Architecture and Domain-Driven Design (DDD) principles to ensure system scalability. The build includes an AI-powered hybrid semantic search engine, a robust Role-Based Access Control (RBAC) system, and an automated inventory flow using Triggers and RPC functions in PostgreSQL. I also implemented an immutable transaction history using the Snapshot Pattern, guaranteeing the financial integrity of orders regardless of future catalog changes.
Core Modules
Identity Management & Authentication
Secure registration and access flows using Supabase Auth, backed by an interceptor middleware in Next.js. Includes a Role-Based Access Control (RBAC) system that protects critical routes at the server level and restricts operations through Row-Level Security (RLS) in PostgreSQL.
Catalog & Vector Search
An archive piece discovery engine that combines PostgreSQL's native Full-Text Search (FTS) with vector embeddings processed by DeepSeek. Enables precise semantic searches based on stylistic concepts, paired with an optimized pagination system for catalog rendering.
Order Processing & Cart
A persistent selection module (Selection Archive) managed through strict global state with Zustand. Integrated with a database architecture that uses the Snapshot Pattern to record transactions immutably, isolating purchase history from future changes to the base inventory.
Admin Panel & Analytics
A command center for administrators that centralizes real-time financial and performance metrics. Complex calculations (KPIs, totals, variations) are delegated to Remote Procedure Call (RPC) functions directly in the database, ensuring maximum speed and zero client-side overhead.
Inventory Management & Audit
Automated stock control system using PostgreSQL Triggers. Detects product state changes (e.g. to Sold) to automatically generate audit logs, lock exit prices, and allow safe transaction reversibility without compromising the global accounting.
Media File Management (Storage)
Visual asset management system with an interactive drag-and-drop upload interface, connected directly to Cloudflare R2. Ensures distributed storage and delivery of high-resolution images with minimal latency globally.
Commercial Integration & Support
Module designed to accelerate conversions by connecting the catalog with direct customer support channels. Generates dynamic WhatsApp links with pre-configured product context and allows easy item sharing through native modals.
Technologies Implemented
frontend
backend
ai And Storage
tools
System Gallery





