Quizical

GPT-4 generated quizzes experiment
A website with the title: "Are you feeling Quizzical?". Below there is an input with the placeholder: "Please enter quiz topic", after that there is a button with the label "Generate".

The homepage of quizical.org designed to invite the user to type anything

Key Information

Language Typescript
Technologies Sveltekit, Cloudflare Workers, Cloudflare D1, tRPC
Demo quizical.org

Quizical is a website I built in the beginning of 2024, to experiment with creating LLM generated quizzes using gpt-4.

You can enter any topic, and a quiz with 12 questions will be generated. You can start the quiz as soon as the first question is generated. The response from OpenAI is streamed and parsed and added to the database in real time. Neat, but also prone to a bit of flakiness.

It also generates different messages for the result screen, depending on how well you did. It also generates easter egg messages, e.g. if you get all but the last question right.

It was important to me to not just generate AI crap and publish it on the internet, so it's based on user input only. This allows some pretty crazy and niche quizzes.

The website is deployed on Cloudflare Workers, and uses queues and D1 SQL behind the scenes. So it is scalable (even though that's not really necessary), but it also incurs very little cost when there are no visitors.

This is definitely a project I'd like to pick up again and polish a bit. There are also more capable models than gpt-4 now, how time flies!