Skip to content

Repository files navigation

AI Flashcard Generator

A web app that converts PDFs into AI-generated flashcards with cloud storage using Firebase and Hugging Face.

Features

  • PDF to flashcards conversion
  • Cloud sync and offline support
  • Four study modes: Practice, Quiz, Speed Drill, Review
  • Guest mode with local storage
  • Dark/light theme toggle
  • Export decks as CSV/TXT/JSON
  • Progress tracking and mastery analytics

Setup

  1. Open index.html in a web browser
  2. Configure Firebase credentials in the setup wizard
  3. Get a Hugging Face API token and configure it in settings

Hugging Face Proxy Server

This project includes a Node.js/Express server that proxies requests to the Hugging Face API, keeping your API token secure on the server side.

Server Setup

  1. Navigate to the server directory:
cd server
  1. Install dependencies:
npm install
  1. Create a .env file with your Hugging Face token:
HF_TOKEN=your_hugging_face_token_here
PORT=3000
  1. Start the server:
npm start

The server will run on http://localhost:3000 by default.

Server Endpoints

  • POST /api/hf/generate - Proxy endpoint for Hugging Face API requests
  • GET /api/health - Health check endpoint

About

AI-Powered Flashcard Generator - Transform PDF documents into interactive study flashcards using artificial intelligence. Features intelligent card generation, multiple study modes (practice, quiz, speed drill) and comprehensive progress tracking

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages