MangaSokağı: High-Performance Next.js & PostgreSQL E-Commerce Platform
A decoupled e-commerce architecture combining strict PostgreSQL data integrity constraints with a highly reactive Next.js frontend driven by Zustand state management.
Performance & metrics
- API request throughput on search inputs is strictly debounced (400ms), eliminating unnecessary I/O and network bandwidth consumption
- Memory footprint allocation is minimized at the schema level by utilizing
SMALLSERIALandSMALLINTfor constrained relational tables - Client-side state mutations in components like the Cart are deferred post-paint using
requestAnimationFrame, strictly preventing main-thread locking
Why I built it
Mainstream e-commerce architectures (e.g., WooCommerce) enforce bloated DOM structures and inflexible database schemas. I engineered MangaSokağı from scratch to establish a decoupled architecture that enforces data integrity natively at the database level while delivering a fully customized, type-safe shopping experience on the frontend.
Architecture & decisions
The persistence layer runs on PostgreSQL. Data integrity is enforced natively via explicit CHECK constraints (bypassing the lack of synthetic UNSIGNED types), custom ENUM types (manga_badge), and TRIGGER functions automating updated_at lifecycles. The frontend is built on the Next.js App Router, leveraging Zustand for decoupled client-side state management. The network boundary strictly implements the Adapter pattern (mapVolumeToManga, mapSeriesToMangaDetail) to translate raw backend DTOs into sanitized UI interfaces.
Key features
- Strict Adapter pattern integration to isolate the frontend from backend API contract mutations
- Hardware-accelerated, hotkey-driven (⌘K), and debounced asynchronous search engine (SearchModal)
- Conditional PostgreSQL indexing (Partial Indexing) on
is_new_arrivalandis_best_sellerflags to heavily optimize queries for specific catalogs - Active mitigation of React Hydration mismatches via a
requestAnimationFrame-based render deferral algorithm - Accessible (a11y), DOM-portal-based asynchronous cart module (CartSlideOver) utilizing Headless UI
Technical review
This project demonstrates how strict data consistency should be enforced at the database engine level (PostgreSQL) rather than relying on application-layer logic. On the frontend, connections between state (Zustand) and UI components execute with high performance. The implemented Adapter pattern acts as a critical isolation layer, ensuring that schema changes in the backend do not fracture the React component tree.
Related projects

InkStudio: Premium Next.js Experience Powered by Framer Motion
A modern web application tailored for high-end art studios, featuring hardware-accelerated animations via Framer Motion, URL-based state management, and a high-performance media rendering architecture.
- TypeScript
- HTML
- CSS
- +7
Fahrettin's Dynamic Portfolio & CMS
A highly dynamic, multilingual personal portfolio and CMS built from scratch, featuring custom animations, SEO-optimized layouts, and state-driven project filtering.
- TypeScript
- JavaScript
- Next.js
- +4
Web & Full Stack
Marmora: High-Performance B2B Marble Catalog & Lookbook
A statically generated, multi-lingual B2B catalog platform for the natural stone industry. Engineered to replace bloated WordPress legacy systems with a heavily optimized Next.js architecture, featuring dynamic i18n routing, on-demand catalog generation, and hardware-accelerated interactions.
- TypeScript
- CSS
- Next.js 15
- +6
Need something similar?
I can build a system like this for you, too.
Describe your project in a few sentences, and we'll work out the right approach and an estimated scope together.