ARCHIVE // ROUTING01 // ARCHITECTURAL WIREFRAME
LOADING ARCHIVE
01 / 05
CONSTELLATIONVISIT SITE ↗

Rayyan Sofa Works Full-Stack Luxury Furniture E-Commerce & Merchant Admin Engine

Full-Stack Luxury Furniture E-Commerce & Merchant Admin Engine

CLIENTRayyan Sofa Works
ROLEFull-Stack Architect & Product Designer
YEAR2024 - 2025
STATUSPRODUCTION
Rayyan Sofa Works — Feature Visual

01. ARCHITECTURE & BRIEF

Overview

Rayyan Sofa Works is a full-scale luxury bespoke furniture e-commerce platform and comprehensive merchant admin ecosystem. Engineered on a cutting-edge modern JavaScript stack—powered by Hono on the Bun runtime, PostgreSQL, and Better Auth—the platform pairs high-end visual craftsmanship with rapid product catalog management, Cloudinary-optimized media pipelines, and seamless customer checkout flows.

THE CHALLENGE

Building an end-to-end e-commerce infrastructure with rapid backend response times, secure multi-role authentication for customers and admins, and high-resolution furniture asset management without causing slow image load times or heavy server overhead.

THE SOLUTION

Engineered a lightweight, ultra-low latency API layer with Hono running on the Bun runtime connected to PostgreSQL. Integrated Better Auth for seamless, type-safe session security and role-based admin access, alongside Cloudinary for automated image compression, WebP transformations, and instant CDN asset delivery.

Rayyan Sofa Works Gallery Detail 1
Rayyan Sofa Works Gallery Detail 2

02. ENGINEERING LOGS

01. HONO ON BUN & POSTGRESQL ARCHITECTURE

Ultra-Fast Micro-Framework API & Relational Data Layer

Rather than relying on bloated server frameworks, I chose Hono running natively on the Bun JavaScript runtime. This delivers near-instant cold starts, minimal memory footprints, and sub-millisecond API response times for product queries and order processing backed by a structured PostgreSQL schema.

  • Leveraged Bun's high-speed package execution and native TypeScript execution
  • Architected type-safe REST API endpoints in Hono with strict request validation
  • Designed normalized PostgreSQL tables for catalog inventory, custom specifications, and orders
02. SECURE AUTH WITH BETTER AUTH

Modern Type-Safe Multi-Role Authentication

Implemented Better Auth to handle user and administrator authentication. It provided a robust, low-friction setup with ironclad session management, CSRF protection, and role-based access control separating customer accounts from the merchant admin dashboard.

  • Configured seamless multi-role access control for customer accounts and store managers
  • Implemented secure, cookie-based session tokens with automatic rotation
  • Eliminated auth configuration bloat while maintaining enterprise-grade security standards
03. CLOUDINARY MEDIA PIPELINE & ADMIN PANEL

Automated Image Transformations & Merchant Controls

High-ticket bespoke furniture demands flawless visual fidelity. Integrated Cloudinary's API directly into the merchant admin panel so store owners can effortlessly upload raw product photography, which is automatically converted to optimized WebP/AVIF formats and delivered globally over CDN.

  • Built a custom admin dashboard for product creation, stock updates, and order tracking
  • Automated dynamic image resizing, cropping, and compression via Cloudinary hooks
  • Achieved 90%+ image payload reduction with zero loss in visual fabric detail

03. DELIVERABLES & STACK

KEY DELIVERABLES

  • E-Commerce Catalog & Custom Sofa Configurator
  • Comprehensive Merchant Admin Panel
  • High-Performance Hono Backend on Bun Runtime
  • Type-Safe Better Auth Authentication Layer
  • Cloudinary Dynamic Media Storage Pipeline
  • Relational PostgreSQL Database Architecture