Edu SDKEdu SDK
Getting Started

Quick Start

Generate a quiz and render it with React.

Generate questions with edu-sdk, then pass them to <Quiz />.

Generate

import { createQuiz } from "edu-sdk";

const quiz = await createQuiz({
  model: "google/gemini-3.6-flash",
  content,
  count: 10,
  difficulty: "medium"
});

createQuiz returns Promise<QuizQuestion[]>. Each question looks like:

{
  question: string;
  options: string[];
  correctAnswer: number; // zero-indexed
}

Render

import { Quiz } from "@edu-sdk/react";
import "@edu-sdk/react/styles.css";

<Quiz questions={quiz} />

Import styles.css once in your app, not on every page.

See Core and React for the rest of the APIs.

On this page