Choose the task.
A dedicated chooser distinguishes a data-description exercise from an argumentative essay. The active task remains visible in the writing tabs.
PERSONAL APPLICATION · SOLO DEVELOPMENT · NEXT.JS + SQLITE + TAURI
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 ↓01 / THE WRITING WORKSPACE
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.
A dedicated chooser distinguishes a data-description exercise from an argumentative essay. The active task remains visible in the writing tabs.
Editing an answer clears its previous feedback. An in-flight evaluation disables the answer field and blocks duplicate submissions.
A populated draft opens a confirmation dialog before a different prompt replaces it. Cancelling preserves the answer and returns focus to the initiating control.
02 / DATA FLOW
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.
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.
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
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.
Current interval 6 days
Ease factor 2.5
Completed reviews 2
Again resets the interval to one day. Ease remains 2.5.
Hard also resets this implementation to one day. Ease remains 2.5.
On the third review, round(6 × 2.5) gives 15 days. The updated ease factor is 2.36.
The next interval is also 15 days; the updated ease factor is 2.60. That difference affects later reviews.
Derived example from lib/spaced-repetition.ts. It illustrates the algorithm, not measured learning or retention.
04 / ENGINEERING SCOPE
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.
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.
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.
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.
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.