MarginData Labs • Live Demo

MargInQuiz

AI training quiz platform with media transcription, automatic generation and driver assignment tracking

› Screenshots

3 planned
Dynamic processing dashboard showing transcription progress and quiz output format.

Dynamic processing dashboard showing transcription progress and quiz output format.

PREVIEW
#01

Admin quiz generation/upload flow.

· coming soon ·
#02

Driver assigned quiz screen.

· coming soon ·

› Technical Stack

Whisper Llama LangChain.js Media Storage

› Architecture Pipeline

Video/Audio Upload →MP3 Extraction →Whisper →Llama 3B →Llama 70B →Quiz Output

› The Problem

Training content often exists as video/audio, but organizations also need a way to assign quizzes, track results and keep demo/API usage under control.

› What I Built

I built MargInQuiz as a quiz platform with Astro frontend and Cloudflare Worker API: media upload, audio extraction, Whisper transcription, LLM quiz generation, admin/driver authentication, assignments and result tracking.

› Core Capabilities

  • Video/audio upload with local or browser-side extraction.
  • Whisper transcription and LLM quiz generation.
  • Admin dashboard for quizzes, users/drivers, assignments and results.
  • Driver/user area for pending quizzes and personal history.
  • Cloudflare Worker API with D1 database, KV cache, JWT auth and provider-switchable AI secrets.
  • Cooldowns and quota controls for public/demo reliability.

› Technical Decisions

01

Split frontend and Worker API to keep UI, auth and AI processing modular.

02

Use D1 for quizzes, users, assignments and results, with KV for cache where useful.

03

Keep AI providers configurable through environment/secrets instead of code changes.

04

Expose progress and limits because transcription/generation can be slow and costly.

05

Protect admin and driver flows with JWT rather than simple client-side state.

› What This Demonstrates

End-to-end AI product implementation: media processing, transcription, LLM generation, Cloudflare Workers/D1/KV, auth, role-specific dashboards and operational usage controls.

› Limitations & Next Steps

  • Add multilingual quiz output.
  • Support SCORM/LMS export and richer reporting.

› Demo Access

username: demo

password: demo

Demo limited to protect API quota.

› Project Links