PERSONAL APPLICATION · SOLO DEVELOPMENT · NEXT.JS + SQLITE + TAURI

IELTS
Trainer.

I built IELTS Trainer to combine writing practice, vocabulary review and local study records. The walkthrough shows its draft protection, response validation and review scheduling.

Inside the writing workflow ↓
Actual IELTS Task 2 workspace: a prompt, an empty answer field and guidance beside it.
Actual application · Task 2, before submission. No band score is simulated.

01 / THE WRITING WORKSPACE

Writing practice
and draft protection.

The two writing tasks have different starting points. Task 1 asks for a chart summary; Task 2 begins with an essay prompt. Both use structured feedback after submission.

Actual writing-task chooser.
Choose between chart description and essay writing.
01

Choose the task.

A dedicated chooser distinguishes a data-description exercise from an argumentative essay. The active task remains visible in the writing tabs.

02

Keep feedback tied to its draft.

Editing an answer clears its previous feedback. An in-flight evaluation disables the answer field and blocks duplicate submissions.

03

Confirm a replacement.

A populated draft opens a confirmation dialog before a different prompt replaces it. Cancelling preserves the answer and returns focus to the initiating control.

Actual empty Task 2 answer workspace.
Desktop workspace. The prompt is an authentic built-in prompt.

02 / DATA FLOW

Local storage and
external AI requests.

The browser talks to same-origin API routes. AI-assisted tasks then send their prompts to DeepSeek from the server. SQLite stores study records locally; “local-first” does not mean that AI requests stay on the device.

Answer→Validated request→Local API route→DeepSeek

Validate both boundaries.

The writing route validates incoming data with Zod. The AI helper parses JSON and validates the response against the expected feedback schema before returning it.

Reuse a matching response.

The cache key incorporates the prompt profile, model tier and prompts. Cached data is validated again on read. Invalid cached data is discarded; refresh can bypass the cache.

Implementation: app/api/writing/evaluate/route.ts · lib/ai/json.ts · lib/ai/provider.ts. Diagram is schematic; arrows do not represent measured latency.

03 / VOCABULARY SCHEDULING

A rating changes
the next review.

The vocabulary queue asks for recall before revealing the definition. A rating updates the interval and review count. This example exposes the implemented rule without changing a learner’s records.

ILLUSTRATIVE INPUT

Current interval 6 days
Ease factor 2.5
Completed reviews 2

1day

Again resets the interval to one day. Ease remains 2.5.

Derived example from lib/spaced-repetition.ts. It illustrates the algorithm, not measured learning or retention.

04 / ENGINEERING SCOPE

Implementation
and current limitations.

Application

Next.js 15 and React 19; same-origin API routes; SQLite through Prisma. The Tauri release packages a local server and stores its database in the OS app-data directory.

Implemented coverage

Writing Tasks 1 and 2, reading, listening, speaking, vocabulary, journal, study planning, strategy drills and progress routes are present in source. The visual walkthrough here exercises writing navigation, draft editing and replacement cancellation.

Limits of the evidence

AI-assisted tasks require a configured API key and network access. Feedback has not been validated against official examiner scores or learning outcomes. The walkthrough uses draft editing without submitting an essay.

Draft persistence

The writing draft is in component state. Reloading or leaving the route can lose it. Replacement confirmation protects one workflow; it does not provide durable draft recovery.

Source and production notes

Inspected 15 October 2026: application source, Prisma schema, writing route and AI validation/cache helpers, spaced-repetition algorithm, and desktop packaging documentation. Screenshots were captured from the actual local app. No private study records, credentials or model feedback were published.

This story combines editable Custom compositions with a native Scene. Screenshots use managed assets and the Rust exporter; custom annotation/layout markup is code-edited. The scheduler choices are explanatory examples, not a live connection to the study database.