Lexiverse
Lexiverse - AI contextual reading engine for English learners. Your next article is your next review.
翻译准备中
Free K53 learner's licence test practice for South Africa: questions and answers, every road sign explained, timed mock exams and driver's test prep for Code 8, Code 10, Code 14 and motorcycles — with
翻译准备中
教育TypeScript · PLpgSQLGitHub @utayannaidoo在线运营者未确认
试用过了吗? 点一下就好,无需登录。
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证An AI-powered study platform for the South African K53 learner's and driver's licence tests. It diagnoses a learner's weak spots, builds a personalised spaced-repetition plan, and coaches them with an AI tutor not just another question bank.
翻译准备中
正在加载完整 README。
查看完整 README ↗An AI-powered study platform for the South African K53 learner's and driver's licence tests. It diagnoses a learner's weak spots, builds a personalised spaced-repetition plan, and coaches them with an AI tutor — not just another question bank.
Built with Next.js 15 (App Router) · TypeScript · Tailwind CSS · Supabase · Anthropic/OpenAI AI cascade · Paystack billing.
Not affiliated with or endorsed by the RTMC. Content is aligned to the structure of the official K53 manual; it is not government-issued material.
Again / Hard / Good / Easy and per-category mastery.npm install
npm run dev
# open http://localhost:3000
It runs out of the box with zero configuration. In this local demo mode:
src/lib/content/*localStorageTry the core journey: Landing → Start free assessment → onboarding → diagnostic → results → create account → dashboard → study.
Copy .env.example to .env.local and fill in what you need — each integration activates
independently.
NEXT_PUBLIC_SUPABASE_URL=...
NEXT_PUBLIC_SUPABASE_ANON_KEY=...
SUPABASE_SERVICE_ROLE_KEY=...
Run the migrations in supabase/migrations (via the Supabase SQL editor or supabase db push).
The schema (0001_init.sql) creates every table with Row Level Security so users only ever
touch their own rows, plus a trigger that bootstraps a profile, streak and free subscription on
sign-up. 0002_seed.sql seeds categories, licence modules and representative content.
DEEPSEEK_API_KEY=... # default provider — ~9x cheaper per message
ANTHROPIC_API_KEY=... # fallback, and the only path for images
OPENAI_API_KEY=... # optional second fallback
TUTOR_PROVIDER= # force one: deepseek|anthropic|openai|local
The tutor route (src/app/api/tutor/route.ts) cascades DeepSeek → Anthropic → OpenAI → the
built-in rule-based explainer, tiers fast/smart models for cost control, and falls back
gracefully on any error. DeepSeek leads because its rates are what make the daily tutor
allowances in src/lib/billing/plans.ts affordable — see docs/ops/ai-cost-model.md.
Images are the exception. DeepSeek's API is text-only, so the sign scanner and any photo
attached to a tutor message skip it and go to Anthropic or OpenAI. With neither key set, those
features honestly report themselves unavailable rather than answering blind. See .env.example
for model overrides and token caps.
PAYSTACK_SECRET_KEY=...
# plus eight plan codes (tier × cycle × track) — see .env.example
src/app/api/checkout/route.ts creates a hosted Paystack checkout when configured; the
webhook (/api/paystack/webhook) is the only writer of paid tier. Without Paystack env the
client unlocks the tier locally for demoing.
src/
app/ # routes (App Router)
(marketing) # /, /pricing
login, signup, reset-password
onboarding # multi-step wizard
diagnostic, diagnostic/results
dashboard, dashboard/progress
study/{flashcards,questions,scenarios,mock-exam}
tutor # AI chat
licence-prep/[moduleId]
account, account/billing
api/{tutor,checkout}
components/
ui/ # design-system primitives (button, card, score-ring…)
landing/ app/ auth/ onboarding/ diagnostic/ dashboard/ study/ tutor/ driver/ shared/
lib/
content/ # seeded K53 content (source of truth for MVP)
srs/sm2.ts # spaced-repetition engine
diagnostic/ # scoring + readiness model + sampling
billing/plans.ts # tiers + feature gating
store/ # localStorage-backed persistence
supabase/ ai/ # production integrations
hooks/ # use-study-store (central state), use-data-saver
types/ # domain model
supabase/migrations/ # SQL schema + seed
useStudyStore (src/hooks/use-study-store.tsx) is the single source of truth on the
client. It persists UserState to localStorage and exposes every study action. Swapping to
Supabase is a matter of replacing the persistence layer — the table shapes already match.src/lib/diagnostic/scoring.ts blends category accuracy with flashcard
mastery (weighted toward signs & rules) so the score moves after every session.src/lib/billing/plans.ts defines tiers, daily caps and feature flags;
the UI enforces them with hasFeature() / usageFor().Optimised for Vercel + a managed Postgres (Supabase/Neon). Push the repo, set the env vars, deploy.
Private project / portfolio sample.