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

Project Overview
Circular fashion e-commerce. Problem: dynamic inventory that can't break past transactions. Solution: Snapshot Pattern to freeze state at purchase time. Stack: Next.js, PostgreSQL, .NET, Clean Architecture. Result: AI semantic search, RBAC with Row-Level Security, immutable transactions in production.
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





