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.