Transform any text into intelligent flashcards with AI. Study smarter with our AI-powered flashcard generator.
- AI-Powered Generation: Create flashcards instantly using Google's Generative AI
- Smart Collections: Organize your flashcards into unlimited collections
- Firebase Integration: Secure cloud storage for all your study materials
- Authentication: Secure user authentication with Clerk
- Payment Integration: Razorpay payment gateway for subscriptions
- Responsive Design: Beautiful UI that works on all devices
- Dark Mode: Eye-friendly dark theme support
- Advanced Analytics: Track your study progress (Pro plan)
- Export to PDF: Download your flashcards (Pro plan)
- Framework: Next.js 15 with App Router
- Language: TypeScript
- Styling: Tailwind CSS 4
- UI Components: Radix UI + Custom Components
- Authentication: Clerk
- Database: Firebase
- AI: Google Generative AI
- Payments: Razorpay
- Icons: Lucide React + Phosphor Icons
- Analytics: Vercel Analytics
- Animations: Motion (Framer Motion)
- Node.js 20.x or higher
- npm, yarn, or pnpm
- Firebase account
- Clerk account
- Google AI API key
- Razorpay account (for payments)
-
Clone the repository
git clone https://github.com/techbire/AI-Flashcard-Wizard-SAAS.git cd AI-Flashcard-Wizard-SAAS -
Install dependencies
npm install # or yarn install # or pnpm install
-
Set up environment variables
Create a
.env.localfile in the root directory:# Clerk Authentication NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key CLERK_SECRET_KEY=your_clerk_secret_key NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up # Firebase Configuration NEXT_PUBLIC_FIREBASE_API_KEY=your_firebase_api_key NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_firebase_auth_domain NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_firebase_project_id NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your_firebase_storage_bucket NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your_firebase_messaging_sender_id NEXT_PUBLIC_FIREBASE_APP_ID=your_firebase_app_id # Google Generative AI GOOGLE_API_KEY=your_google_ai_api_key # Razorpay NEXT_PUBLIC_RAZORPAY_KEY_ID=your_razorpay_key_id RAZORPAY_KEY_SECRET=your_razorpay_key_secret
-
Run the development server
npm run dev # or yarn dev # or pnpm dev
-
Open your browser
Navigate to http://localhost:3000
AI-Flashcard-Wizard-SAAS/
├── app/ # Next.js App Router
│ ├── api/ # API routes
│ │ ├── checkout-session-basic/
│ │ ├── checkout-session-pro/
│ │ ├── generate/ # AI flashcard generation
│ │ └── verify-payment/
│ ├── flashcard/ # Single flashcard view
│ ├── flashcards/ # Flashcard collection view
│ ├── generate/ # Generate flashcards page
│ ├── result/ # Payment result page
│ ├── sign-in/ # Authentication pages
│ └── sign-up/
├── components/ # React components
│ ├── magicui/ # Magic UI components
│ ├── sections/ # Landing page sections
│ └── ui/ # Reusable UI components
├── constants/ # Configuration constants
├── lib/ # Utility functions
│ ├── firebase.js # Firebase configuration
│ └── firebaseOperations.js
└── public/ # Static assets
- ₹100/month or ₹1000/year (Save 17%)
- 1,000 flashcards
- AI-powered generation
- Basic collections
- Mobile access
- ₹500/month or ₹5000/year (Save 17%)
- 100,000 flashcards
- AI-powered generation
- Unlimited collections
- Mobile & web access
- Priority support
- Advanced analytics
- Export to PDF
# Development
npm run dev # Start development server with Turbopack
# Build
npm run build # Create production build
npm run start # Start production server
# Code Quality
npm run lint # Run ESLint
npm run lint:fix # Fix ESLint issues
npm run format # Format code with Prettier- Powered by Google's Generative AI (Gemini)
- Intelligent question-answer pair generation
- Context-aware flashcard creation
- Secure authentication with Clerk
- User profiles and preferences
- Session management
- Firebase Firestore for flashcard storage
- Real-time synchronization
- Secure data access rules
- Razorpay integration for Indian market
- Subscription management
- Payment verification webhooks
- Environment variables for sensitive data
- Clerk authentication for secure user access
- Firebase security rules
- Payment verification on server-side
The application is fully responsive and works seamlessly on:
- 📱 Mobile devices
- 💻 Tablets
- 🖥️ Desktops
Built-in dark mode support using next-themes for a comfortable studying experience in any lighting condition.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is private and proprietary.
techbire
- GitHub: @techbire
- Next.js team for the amazing framework
- Vercel for hosting and analytics
- Clerk for authentication
- Firebase for database
- Google for Generative AI
- Razorpay for payment processing
Made with ❤️ by techbire