← Back to Home

Proxy Backend

Since January 2026

A comprehensive, multi-tenant, serverless API gateway providing unified access to Google Gemini AI models with full gamification, quota management, authentication, and analytics capabilities

BackendAPI GatewayAI IntegrationGamificationServerlessAuthentication

Project Details

Project Type

Backend Service

Role

Solo Developer

Tech Stack

Next.js 16.1.4TypeScriptConvexClerkGoogle Gemini AIVercel KVZod

Overview

A comprehensive, multi-tenant, serverless API gateway built with Next.js that provides unified access to Google Gemini AI models with full gamification, quota management, authentication, and analytics capabilities. The backend serves as the core infrastructure for AI-powered applications, featuring comprehensive API documentation, robust error handling, and enterprise-grade security.

Key Features

  • Unified AI interface supporting text generation, image generation, and comparison
  • JWT-based authentication with Clerk integration
  • Per-user quota management with tier-based limits (Free/Pro)
  • Sliding window rate limiting using Vercel KV
  • Comprehensive gamification system with levels, XP, quests, and achievements
  • Multi-type challenges: image, coding, and copywriting tasks
  • Real-time analytics and performance monitoring
  • Learning content management with structured modules and resources
  • Global leaderboard system with rankings
  • Robust error handling with detailed logging
  • Type-safe API contracts with Zod validation
  • Database switching between development and production environments

Why I Built It

  • To serve as the backend infrastructure for PromptPal - an AI-powered prompt engineering learning platform
  • To provide secure and managed access to Google Gemini AI APIs for the PromptPal app
  • To implement comprehensive gamification features that enhance user learning experience

Visit the actual project at:

Visit Proxy Backend