Replace Avalonia WASM with HTML5/TypeScript implementation#1
Merged
pauldendulk merged 5 commits intomainfrom Jan 7, 2026
Merged
Replace Avalonia WASM with HTML5/TypeScript implementation#1pauldendulk merged 5 commits intomainfrom
pauldendulk merged 5 commits intomainfrom
Conversation
Co-authored-by: pauldendulk <963462+pauldendulk@users.noreply.github.com>
Co-authored-by: pauldendulk <963462+pauldendulk@users.noreply.github.com>
Co-authored-by: pauldendulk <963462+pauldendulk@users.noreply.github.com>
Co-authored-by: pauldendulk <963462+pauldendulk@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Replace Avalonia.NET application with HTML5/TypeScript
Replace Avalonia WASM with HTML5/TypeScript implementation
Jan 7, 2026
pauldendulk
approved these changes
Jan 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the .NET WASM build with a native HTML5/TypeScript application. Reduces bundle size from ~10MB to ~100KB and eliminates .NET runtime dependency.
Changes
New HTML5 Application (
html-app/)AudioPlayer: HTML5 Audio API wrapperTrainingSession: Core training loop with question cycles and countdownsSquareRootTrainerApp: UI controller with validation and localizationUpdated Deployment
Documentation
Preserved
SquareRootTrainer/,Carrots/)AudioGenerator/tool (still needed for WAV generation)UI
Main interface (Dutch):

Validation:

Training active:

Architecture
TypeScript compiled to ES2020 JavaScript. Full type safety with strict mode. No runtime errors, 0 security alerts (CodeQL verified).
Original prompt
Goal
Replace the Avalonia.NET WebAssembly application with a modern HTML5/TypeScript implementation for better performance, smaller bundle size, and better AI/developer familiarity.
Requirements
1. Create New HTML Application
Create a new folder
html-app/at the root with the following structure:2. Technology Stack
3. UI Implementation
Based on the attached screenshot
, recreate the UI with:
4. Core Functionality (from existing C# code)
Implement the same logic as the Avalonia app:
TrainingSession logic (from TrainingSession.cs):
Audio playback (from TrainingAudioPlayer.cs):
audio/{languageCode}/{filename}question_{number}.wav,announcement.wav,answer_{number}.wavLocalization (from Texts.cs):
5. Audio Files
SquareRootTrainer/audio/folder structure tohtml-app/audio/en-US/andnl-NL/6. Update GitHub Pages Deployment
Update
.github/workflows/deploy.yml:html-app/contents to the deployment directory.nojekyllfile creationhtml-app/as the root of the GitHub Pages site7. Update README.md
html-app/index.htmlin a browser or visit https://pauldendulk.github.io/squareroottrainer"SquareRootTrainer/andCarrots/folders for reference8. TypeScript Configuration
Create
tsconfig.jsonwith modern settings:9. Important Notes
10. Expected Behavior
When deployed, the app should:
Acceptance Criteria
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.