Vectrune Next Step
Building blocks for learner quizzes: serve questions, check answers, choose the next step and score the result. It stores nothing.
CLI
From your app project, use Vectrune 0.3.15 or later.
vectrune deps add next-stepRune import
Set your own limits and quiz items in @Values.
import "pkg:next-step/next-step.rune"@Valuesnext_step_max_attempts = 4@Appname = My Quiztype = RESTport = 3000
Endpoints
GET /next-step/config- Shows the limits in use.
GET /next-step/items- Lists quiz items without their answers.
GET /next-step/items/ID- Returns one item without its answer.
POST /next-step/check- Checks a response and returns correct, points and the next step.
POST /next-step- Returns advance, hint or remediate.
POST /next-step/grade- Grades a whole quiz from the raw responses.
POST /next-step/score- Scores results against the whole quiz. Skipped questions earn 0, and each question counts once.
Configuration
next_step_max_attempts- Default 3.
next_step_max_hints- Default 2.
next_step_pass_percent- Default 70.
next_step_allow_overrides- Default false. Lets a request set its own limits.
next_step_quiz- Your quiz items. The README shows the format.
Sections and builtins
Adds @Values, the routes above and schemas that start with NextStep. Uses the core verify, summarize, is-set and respond builtins. Adds no builtins or CLI subcommands.
Not for secure exams. Call check, grade and score from your own server, and never trust results the browser sends. Put these routes behind authentication before you expose the app.