Skip to content

Just launched Gangnam Style a modern AI chat app powered by Google Gemini Hybrid credit system + Stripe integration + sleek Next.js UI

Notifications You must be signed in to change notification settings

Clay990/gangnam-style

Repository files navigation

🕺 Gangnam Style

Welcome to Gangnam Style, a modern, responsive web application demonstrating a hybrid monetization model for accessing powerful AI chat capabilities. Users can interact with different AI models based on a flexible credit system.


🌐 Overview

Gangnam Style provides a sleek chat interface allowing users to leverage AI for various tasks.
It integrates Google's Gemini models (Flash and Pro) and employs a credit-based system to manage access to premium features, funded through Stripe payments.


✨ Key Features (Implemented)

💬 Responsive Chat UI

  • Modern, dark-themed interface optimized for desktop and mobile.
  • Includes an Aurora background effect.

🧠 Hybrid AI Model Access

  • Flash Tier (Free): Access to Google's efficient Gemini Flash model.
  • Pro Tier (Credit-Based): Access to the more powerful Gemini Pro model, consuming AI Boost Credits.

⚡ AI Boost Credits System

  • Users receive 100 starter credits upon signing up.
  • Real-time credit balance displayed in the UI.
  • Pro model usage automatically deducts credits.

🔐 Secure Authentication

  • Seamless sign-in/sign-up using Google One Tap.
  • Fallback “Sign in with Google” button for manual login.
  • Managed securely via Firebase Authentication.

💳 Credit Purchases via Stripe

  • Integrated Stripe Checkout for purchasing credit packs (currently 100 credits).
  • Secure webhook endpoint verifies payments and updates user credits in Firestore.
  • Real-time credit updates reflected in the UI.

🗃️ Real-time Database

  • User credits managed in Firestore and updated live.

🧾 Markdown Rendering

  • AI responses formatted using react-markdown.

⏳ Loading States

  • Includes an initial “AI is future” typing animation.
  • Loading indicators for chat responses and credit transactions.

🛠️ Tech Stack

Category Technology
Framework Next.js 14+ (App Router)
Language TypeScript
Styling Tailwind CSS (custom scrollbar)
Authentication Firebase Authentication (Google Provider)
Database Firestore
Backend Next.js API Routes, Firebase Admin SDK
AI Google Gemini API (1.5 Flash, 1.5 Pro)
Payments Stripe (Checkout & Webhooks)
UI Components react-markdown, Custom ShinyText, Aurora

💰 Monetization Model

Gangnam Style operates on a freemium hybrid model:

  • Free Access:
    Users chat with Gemini Flash (low-cost model).
    (Future: supported by display ads)

  • Premium Access:
    Uses Gemini Pro, requiring AI Boost Credits.

🪙 Earning / Buying Credits

  • New users get 100 free credits.
  • Additional credits purchasable via Stripe.
  • (Future): Users can earn credits by watching ads.

This model aims to cover API costs for premium AI while maintaining a valuable free tier.


🚀 Getting Started

1. Clone the Repository

git clone https://your-repo-url/gangnam-style.git
cd gangnam-style

About

Just launched Gangnam Style a modern AI chat app powered by Google Gemini Hybrid credit system + Stripe integration + sleek Next.js UI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published