A web app that converts PDFs into AI-generated flashcards with cloud storage using Firebase and Hugging Face.
- 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
- Open
index.htmlin a web browser - Configure Firebase credentials in the setup wizard
- Get a Hugging Face API token and configure it in settings
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.
- Navigate to the server directory:
cd server- Install dependencies:
npm install- Create a
.envfile with your Hugging Face token:
HF_TOKEN=your_hugging_face_token_here
PORT=3000- Start the server:
npm startThe server will run on http://localhost:3000 by default.
POST /api/hf/generate- Proxy endpoint for Hugging Face API requestsGET /api/health- Health check endpoint