Skip to content

Repository files navigation

Dropbrain

Drop anything in, quiz it into memory.

Paste text or a web URL, generate active-recall multiple-choice quizzes, and review what you miss.

Stack

  • Hono API on Cloudflare Workers
  • React SPA + Vite (@cloudflare/vite-plugin)
  • D1, Firecrawl Scrape API, DeepSeek
  • AI rate limits: Workers Rate Limiting bindings + @hono-rate-limiter/cloudflare

Setup

Requires pnpm and a global Wrangler CLI (brew install wrangler or npm i -g wrangler).

pnpm install
cp .dev.vars.example .dev.vars
# Fill DEEPSEEK_API_KEY
# FIRECRAWL_API_KEY is optional for testing, recommended for production.
pnpm run db:migrate:local
pnpm run dev

API

  • POST /api/sources { type: "text"|"url", content|url }
  • POST /api/quizzes { sourceId, count? }
  • GET /api/quizzes/:id
  • POST /api/quizzes/:id/submit { answers: [{ questionId, choice }] }

About

Drop anything in, quiz it into memory.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages