artysan/exam-simulatorConfidential

Language exam simulator

Generates and grades original language exam papers across all four skills, speaking included, and records the cost of every model call. In production.

The problem
Preparing for a language exam takes many realistic papers, and writing them by hand is slow and expensive.
What I built
A platform that generates original papers, checks them, runs them under a timer and grades them with feedback, speaking included.

38releases to production in a month, approved by me

TypeScriptReactSupabasePostgresDenoLLM
Start

01 / 07The problem

Preparing takes a lot of papers, and they have to feel real.

A language exam has four skills, each with its own parts and timings. Writing new, credible papers by hand is slow and expensive. This platform generates them, runs them under a timer and grades them, all four.

  1. 01

    Reading: texts and closed questions.

  2. 02

    Writing: a text to write, with a word count.

  3. 03

    Listening: tracks read by synthetic voices.

  4. 04

    Speaking: a voice session with a virtual examiner.

02 / 07Before the library

Every generated paper goes through the same checks.

Papers are generated from an admin area, where the model is chosen. Before they enter the library they all go through the same three checks.

  1. 01

    Structure. automatic checks: every part must have the shape the exam requires.

  2. 02

    Plagiarism. a comparison with the reference material, which stays out of the repository.

  3. 03

    Review. a second model looks for questions with more than one defensible answer, and a person goes through its notes.

A part that fails the checks goes back to the model, which rewrites it. If the error is still there after a few attempts, the paper is not saved.

03 / 07During the paper

The clock and the right answers stay on the server.

The timer on the page is only a guide. The database sets the deadline when the paper starts: it rejects an answer that arrives later, and from then on not even the paper's text gets through. Closing the laptop or tampering with the page gives no extra time and no answers.

On the server
  • The deadline. is set by the database at the start, and nobody can move it.

  • The answer keys. sit in a table no client can read.

Sample paper: I don't show the question text

04 / 07After handing in

Reading and listening against the keys, writing and speaking with feedback.

Closed questions are marked against the keys, on the server. A model grades writing and speaking and leaves tutor-style feedback: what works, what to fix and how.

05 / 07The costs

Every call to a model ends up in a ledger.

Generation, voices, grading: every call to a model or a voice service leaves a line, failed attempts included. That way the cost of a paper is known before anyone sets its price.

To keep spending down

  • Prompt caching
  • Batch processing, where possible

Cost ledger

Sample lines, amounts not shown

ItemQuantityCost
Generation · readinglanguage modelcachebatch18,400tokensamount not shown
Rewriting a partlanguage model2,950tokensamount not shown
Listening tracksspeech synthesis4,200charactersamount not shown
Images for a paperimage model3imagesamount not shown
Voice session · speakingreal-time voice41,300audio tokensamount not shown
Grading · writinglanguage model3,100tokensamount not shown
Tutor feedbacklanguage model2,700tokensamount not shown
Paper totalamount not shown

06 / 07Permissions

Six roles, and the permissions have their own tests.

Three roles for those who run the platform, three for those who use it. Permissions live in the database, with a policy for each role, and a suite of SQL tests checks them in CI.

roles, each with its own policies
6
SQL test files on database permissions, in CI
82
versioned migrations
183

Source: the project repository, 10 November 2026

07 / 07How I work here

38 releases in a month, and each one goes through me.

I am the technical lead in a small team: I develop, review the others' work and ship releases to production. Since 2 October the only way into production is a pull request with green CI, and I approve the release.

38

releases to productionfrom 12 October to 10 November 2026

Each square is a release, each column two days.

Source: release pull requests to the production branch

Two days up toReleases
Oct 133
Oct 155
Oct 171
Oct 192
Oct 210
Oct 231
Oct 252
Oct 272
Oct 290
Oct 315
Nov 26
Nov 45
Nov 65
Nov 80
Nov 101
  1. I join the team, first on interface performance.

  2. Reading, writing, listening and speaking in production.

  3. Release rules: pull request and green CI.

  4. First release through a pull request: from here on they all go through me.

The end

The rest is in the details.

Below is the project README. For questions, or to work on something together, get in touch.

Details

README.md

Anonymized case study: client, data and code are confidential. I don't say which exam it prepares for or who uses the platform, and I give no usage numbers.

Technical choices

Permissions live in the database, with policies per role, and have a suite of SQL tests that runs in CI. The answer keys sit where no client can reach them, so not even a badly written policy in the future could expose them.

Every call to a model or a voice service lands in a cost ledger. To keep spending down, generation uses prompt caching and, where possible, batch processing.

The structure follows a real exam, but the interface, images and content are original. Official material stays out of the repository: it is only a reference for the structure and for the plagiarism check.

How I work here

I am the technical lead: I develop, review the others' work and ship releases to production.

What I learned

With language models, the cost of a feature changes with every choice of model and prompt. Logging every call means the cost of a paper is known before anyone sets its price.

Now

It is in production with all four modules and is getting ready for its first field test.

Artysan.

Custom software, automation and integrations. From Rome.

© 2026 Samuel Tagliacozzo · Artysan