Skip to content

Mana-Store #26

Open
MD-AMAN-123 wants to merge 1 commit into
opensource-for-valkey:mainfrom
MD-AMAN-123:main
Open

Mana-Store #26
MD-AMAN-123 wants to merge 1 commit into
opensource-for-valkey:mainfrom
MD-AMAN-123:main

Conversation

@MD-AMAN-123

Copy link
Copy Markdown

Attendee/Team Details

Name: Muhammad Aman
GitHub Username: MD-AMAN-123
LinkedIn Profile: https://www.linkedin.com/in/muhammadaman-
GitHub Project Repository: https://github.com/MD-AMAN-123/Mana-Store


Problem Statement Selected

Build Beyond Limits: E-Commerce Platform powered by Valkey


Project Description

ValkeyStore is a next-generation e-commerce storefront designed to offer a breathtaking, interactive shopping experience without compromising on backend speed.

  • What is it? A highly animated, premium e-commerce platform that replaces traditional relational databases with Valkey's blazing-fast in-memory data structures.
  • Who is it for? Premium lifestyle brands, tech retailers, and modern shoppers who expect a fluid, App-like experience on the web.
  • What problem does it solve? It solves the issue of boring, static online storefronts while simultaneously solving backend database bottlenecks (like slow inventory checks and sluggish authentication) by utilizing Valkey's JSON and Key-Value capabilities.
  • How does it help? Users get an incredibly fast, immersive visual experience, and developers get a robust, scalable backend that responds in sub-milliseconds.

Approach

Our approach was split between focusing on a "WOW" factor frontend and a robust, scalable backend.

  • Understanding the Problem: E-commerce needs to be fast and reliable. We decided to use Valkey not just as a cache, but as our primary Document Database.
  • User Flow: Instead of a generic grid of products, we designed a "Story Page" landing experience. Users are greeted with kinetic text, a 3D parallax floating shoe animation, and an interactive 3D circular gallery they can drag to explore categories.
  • AI Integration: We integrated an AI Voice Assistant using Vapi, giving it a strict system prompt regarding our product inventory and pricing, allowing it to act as a virtual store clerk.
  • What Makes it Unique: The combination of "awwwards-level" frontend aesthetics (GSAP, Lenis Smooth Scroll) combined with the extreme performance of Valkey's backend processing.

Tech Stack and Tools Used

Frontend: React 18, React Router, GSAP, Framer Motion, Lenis Smooth Scroll, Bootstrap 5
Backend: Node.js, Express.js
Database: Valkey (valkey-bundle:9-alpine using JSON & Key-Value structures)
AI Tools/API: Vapi (Voice AI Agent)
Cloud/Deployment: [Your Deployment Platform, e.g., Vercel / Render / Docker]
Other Tools: GitHub, Postman, Docker, 21st.dev Components


Key Features

  1. Premium Animated Frontend: Butter-smooth scrolling, 3D Circular Galleries, and GSAP-powered parallax element reveals (like the Nike 3D floating shoe effect).
  2. Valkey JSON Data Store: Products, categories, and user profiles are stored directly in Valkey as JSON documents for ultra-low latency fetching.
  3. Advanced Rate Limiting & Auth: Utilizing Valkey's INCR and TTL (expire) commands to track failed login attempts, prevent brute-forcing, and manage active user sessions globally.
  4. AI Voice Clerk: Integrated Vapi voice agent that understands the current inventory and can converse with the user naturally.

What is Working?

  • The Story Page (Landing Page): Full GSAP animations, Lenis smooth scrolling, and the 3D Circular component are fully functioning.
  • Valkey Authentication: User registration, password hashing (bcrypt), login rate limiting, and session management using Valkey Key-Values and Sets.
  • Catalog API: Fetching products and calculating basic search queries.
  • AI Voice Agent: The Vapi system prompt is completely mapped out with our product dataset.

What is Still in Progress?

  • Replacing our manual Node.js search algorithms with Valkey Search (FT.SEARCH) and Vector Similarity Search for semantic AI querying.
  • The Shopping Cart and Checkout pipelines with coupon support.
  • Prometheus Analytics and OpenSearch Observability.


Challenges Faced

One of the biggest challenges was integrating advanced scroll-jacking and 3D rendering (using OGL and GSAP) within the React lifecycle without causing performance drops or breaking the global Lenis smooth scrolling.

On the backend, mapping traditional SQL-like data models (users, categories, products) directly into Valkey JSON required a mindset shift, particularly for things like ensuring email uniqueness (which we solved using an email_index Key-Value mapping).


Learnings

  • How incredibly fast Valkey is compared to standard relational databases, especially for rapid auth and rate-limiting.
  • How to properly synchronize Framer Motion, GSAP ScrollTriggers, and Lenis in a modern React application.
  • The structure and architecture required to integrate a real-time conversational Voice AI into a commercial storefront.

Future Improvements

If we had more time, the immediate next step would be implementing FT.SEARCH. We would generate vector embeddings for all of our product descriptions using an LLM, store them in Valkey, and allow users to search semantically (e.g., "I need a laptop for heavy video editing").


Final Note

We set out to prove that open-source infrastructure (Valkey) can power the absolute highest-tier of modern, design-heavy web applications without a single hiccup in performance. We believe ValkeyStore achieved exactly that.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant