Verace Primer
A browser-based study application with generated curricula for algorithms, competitive programming, system design and engineering tracks.
- Single-page front end: Renders homepage, roadmap, theory and quiz views
- Question generators: Produce multiple-choice questions for the quiz view
- Track generator scripts: Build each curriculum track as JSON data
- Formatting repair scripts: Clean formulas and diagrams in generated content
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%
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
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.
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.
Content expansion scripts
Scripts such as
expand_all_subtopic_deep_dives.pyandbuild_authentic_full_expanded_subtopics.pythat enlarge the subtopics of each track into longer explanations.Question generators
Scripts such as
generate_all_mcqs_system_design.pythat produce multiple-choice questions for the quiz view.Formatting repair scripts
Scripts including
fix_scientific_notation.pyandfix_svg_rendering.pythat correct mathematical notation and diagrams in the generated content.Single-page front end
The
app.jsapplication, which renders the homepage, roadmap, theory and quiz views, handles track and mode switching, search and progress saving.Text layout engine
The
pretext-engine.jsmodule, initialised byinitPretext(), 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.