How leoweitz/flashya works
Project type and purpose
• This is a single–page, client-focused full-stack web application built with Next.js (App Router) and Tailwind CSS.
• Purpose: Let users upload a PDF, extract key concepts via the OpenAI API, then generate interactive flashcards and offer a smart review mode—all hosted on Vercel.
File structure
• Top-level “web” directory contains the Next.js application.
• web/src/app: the App Router layout and routes (landing, create, view, practice, test, ready).
• web/src/components: reusable UI pieces (buttons, cards, nav bar, logo).
• web/src/actions: “openaiActions.ts” encapsulates calls to the OpenAI API.
• web/src/utils & web/src/lib: helper functions (localStorage management, utility routines).
• No dedicated database layer—state and flashcard data are managed in the browser (localStorage).
• Configuration files: next.config.js, tailwind.config.js, eslint.config.mjs.
README
• Confirms use of Next.js, Tailwind, and OpenAI API.
• No mention of backend databases; environment variable required is OPENAI_API_KEY.
• Workflow: user uploads PDF → AI extracts concepts → flashcards generated → review mode.