Skip to content
Applied engineeringPrototype

Verace Primer

A browser-based study application with generated curricula for algorithms, competitive programming, system design and engineering tracks.

Verace Research·August 17 to August 18, 2026
  1. Single-page front end: Renders homepage, roadmap, theory and quiz views
  2. Question generators: Produce multiple-choice questions for the quiz view
  3. Track generator scripts: Build each curriculum track as JSON data
  4. Formatting repair scripts: Clean formulas and diagrams in generated content
Figure 1. Front end and its content generators in Verace Primer. Schematic: generator scripts build each curriculum track as JSON data, and the single-page front end renders it as a roadmap, theory pages and quizzes. This is a prototype with no recorded evaluation.
Open the simulator on its own pageA loop that checks before it commits: an interactive toy model of the principle. You can also try it below

Overview

Verace Primer is a self-study web application for technical subjects. It addresses one question: how to organise a large body of algorithms and competitive programming knowledge so that a learner can read theory, follow a roadmap and test themselves in one place. Its central text is the lab's Complete Master DSA and CP Handbook v3, which covers data structures and algorithms from arrays up to advanced competitive programming topics such as FFT, link-cut trees, network flows and dynamic programming optimisations.

The system has two layers. The first is a set of Python generator scripts that build the curriculum as JSON data. Each script produces one track: data structures and algorithms, system design, SQL, C++, Java and Spring, backend development, vector databases, and AI engineering. Further scripts expand subtopics into deeper explanations, generate multiple-choice questions and repair text formatting. The second layer is a single-page JavaScript front end that loads this data and presents it as a homepage, a roadmap, theory pages and quizzes, with search and saved progress.

The front end draws each view from the loaded curriculum data through one central rendering routine. A learner switches between tracks and between modes, moving from the homepage to a track's roadmap, its theory pages and its quizzes, where each chosen answer is checked against the correct option. A search box returns matching results, and the learner's progress is saved so study can resume later. Mathematical notation is rendered in the browser, and Python scripts such as fix_scientific_notation.py and fix_svg_rendering.py clean formulas and diagrams in the generated content. A separate module, pretext-engine.js, handles text layout, including fitting titles to their space.

The application code and the content generators are implemented. The commit history covers two days, 2026-08-17 to 2026-08-18. The handbook exists as a document. No evaluation of the system is recorded: there are no measurements of content accuracy, question quality or learner outcomes, and no test suite is described. Verace Primer is a study tool and does not present a research result.

Status

Prototype. The web application and its content generation scripts are implemented; no evaluation or test records exist.

Simulator

An agent runs sixty tasks whose steps sometimes fail. Choose whether each step is checked, how often a step fails and how long the tasks are.

  • pale: worked first time · colour: caught and repeated · white: failed unnoticed · crossed: given up
Tasks finished correctly
60 of 60
Finished with a hidden error
0
Given up after three tries
0
Extra work spent on retries
14%
After each step

Turn the check off: the same failures now finish unnoticed. Lengthen the tasks and see how fast unchecked errors add up.

This simulator is an illustration of the principle, with made-up numbers. It does not run the lab's code or show the lab's data, and nothing in it is a measurement.

Architecture

  1. Algorithms handbook

    The Complete Master DSA and CP Handbook v3, a pattern taxonomy of data structures and algorithms from arrays to advanced topics such as FFT, link-cut trees, flows and dynamic programming optimisations.

  2. Track generator scripts

    Python scripts that build each curriculum as JSON data, one per track, covering algorithms, system design, SQL, C++, Java and Spring, backend development, vector databases and AI engineering.

  3. Content expansion scripts

    Scripts such as expand_all_subtopic_deep_dives.py and build_authentic_full_expanded_subtopics.py that enlarge the subtopics of each track into longer explanations.

  4. Question generators

    Scripts such as generate_all_mcqs_system_design.py that produce multiple-choice questions for the quiz view.

  5. Formatting repair scripts

    Scripts including fix_scientific_notation.py and fix_svg_rendering.py that correct mathematical notation and diagrams in the generated content.

  6. Single-page front end

    The app.js application, which renders the homepage, roadmap, theory and quiz views, handles track and mode switching, search and progress saving.

  7. Text layout engine

    The pretext-engine.js module, initialised by initPretext(), which handles text layout such as fitting title text to its space.

Concepts

Pattern taxonomy
An organisation of algorithmic problems by the technique that solves them rather than by topic name, which is how the handbook structures its material.
Competitive programming
Timed algorithmic problem solving, as in contests, which demands both a broad catalogue of techniques and fast implementation.
Learning tracks
Separate curricula within the application, each with its own modules, roadmap and questions, selected with setTrack().
Roadmap view
A view that lays out the modules of a track in study order, rendered by renderRoadmapView().
Theory and quiz modes
The two main ways of working through a module: reading explanations in the theory view, or answering multiple-choice questions checked by isOptionCorrect().
Generated curriculum data
Course content produced by scripts and stored as JSON, so the front end only displays data and the content can be rebuilt or extended by rerunning generators.
Progress persistence
The application records which material a learner has completed through saveProgress(), so study can resume across sessions.
Link-cut trees
A data structure for maintaining a forest under edge insertions and deletions with fast path queries, one of the advanced topics the handbook covers.

About this page

Written from the lab's own documents and source code. Figures and results are the lab's measurements as it recorded them at the time, and have not been independently replicated.

Published under the PolyForm Noncommercial License 1.0.0: free for noncommercial use.