Upload any PDF, Word doc, or text file. CardForge reads it, understands it, and generates study-ready flashcards — powered by Anthropic Claude or your local Ollama model.
What is the time complexity of searching in a balanced binary search tree?
O(log n) — a balanced BST halves the search space at each step. This holds for AVL trees and Red-Black trees. Worst case degrades to O(n) for unbalanced trees.
No setup required beyond an API key. Drop your files and let the AI do the reading.
Drag and drop one or more files — PDF, DOCX, or TXT. Multiple documents are combined and analysed together, so cross-document questions are possible.
Choose your difficulty level, how many cards you want (up to 30), and whether to extend the scope with Ollama's local reasoning for deeper questions.
Review all generated cards in grid or list view, filter Core vs Extended, then jump into fullscreen Study Mode with spaced-repetition scoring.
Connects to Claude claude-opus-4-5 for high-quality, nuanced question generation. Understands context, tone, and terminology from your specific documents.
Run llama3, mistral, phi3, or any Ollama-compatible model entirely on your machine. No data leaves your device. Status indicator confirms detection.
When Local AI is on, Ollama generates inference, "what-if", application, and critical-thinking questions that go beyond the raw document text.
Every card flips with a smooth CSS perspective animation. Browse all generated cards in a responsive grid or list view.
One card at a time, fullscreen, distraction-free. Mark each card as "Got It" or "Review Again" and get a scored summary at the end.
Filter cards by type to focus on document-based core questions or Ollama-generated extended reasoning questions independently.
Choose how deep the AI goes. Each level changes how questions are framed — from surface recall all the way to synthesis and evaluation.
Foundational questions that test basic recognition of facts, terms, and concepts from the document.
Questions that require comprehension, explanation, and understanding how concepts relate to each other.
Deep questions that push you to analyse, evaluate, compare edge cases, and apply knowledge to new scenarios.
# 1. Clone and enter git clone https://github.com/likhith1542/cardforge cd cardforge/backend # 2. Install Python deps pip install -r requirements.txt # 3. Set your API key export ANTHROPIC_API_KEY=sk-ant-... # 4. Start backend + frontend uvicorn main:app --reload --port 8000 # (new terminal) cd ../frontend && npm install && npm start
# 1. Install Ollama # → https://ollama.ai # 2. Pull a model ollama pull llama3 # or: mistral, phi3, gemma # 3. Start Ollama server ollama serve # 4. Toggle "Local AI" in the UI # Enter your model name # Green dot = detected ✓
Open source, self-hostable, privacy-first when you want it. Clone the repo and have your first flashcards in under five minutes.