Skip to content
Amin-MoniryPublic

About

A bilingual touch-typing tutor for Persian and English, featuring a structured 150-lesson curriculum, speed tests, and progress tracking. Available as a Windows desktop application.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation





"What the caterpillar calls the end of the world, the master calls a butterfly."

◈ Quick Install — Windows

You do not need to install anything developer-related to use Pilla. Just grab the ready-made .exe:

01   Go to the Releases page (or click the DOWNLOAD badge above)

02   Under Assets, download the latest Pilla .exe file

03   Double-click the file to install / launch it, then start typing

⚠️ Heads-up: the .exe is not code-signed, so Windows SmartScreen (or your antivirus) may show a warning the first time. Click More info → Run anyway. This is normal for unsigned open-source apps.

Prefer running from source, or on macOS / Linux? See Run From Source below.


◈ Overview

Pilla (Persian: پیلا) is a bilingual touch-typing tutor that teaches you to type fast without looking at the keyboard — in Persian (ISIRI 9147) and English (US QWERTY).

Your progress is wrapped in a metaphor: you start as an egg, spin a golden cocoon, and finally spread your wings. Every lesson, drill, race and test earns XP that evolves your butterfly avatar — so practice feels like growth, not homework.

Everything runs locally on your machine. No account, no sign-up, no cloud — your progress is saved on your own device.


◈ Screenshots


Pilla — Persian home dashboard

▶ Home dashboard in Persian (فارسی) — right-to-left layout, level, XP and your evolving butterfly



Pilla — English ergonomics guide

▶ Ergonomics & posture guide in English — left-to-right layout


◈ Key Features

▶ Feature Description Status
150-lesson curriculum A full track for Persian and another for English — roughly 30 hours each, organized into 11 stages from posture to master exams ✅
Bilingual interface Switch between English and Persian any time; the whole UI flips between LTR and RTL ✅
Virtual keyboards Persian ISIRI 9147 and US QWERTY, with Dvorak and Colemak layouts also mapped ✅
Hands overlay On-screen finger zones and home-row bump indicators show which finger presses which key ✅
Butterfly metamorphosis XP and levels evolve your avatar from egg → silkworm → cocoon → emerging → butterfly → radiant butterfly ✅
Multi-step lessons Learn → Watch → Guided → No-keyboard drills → Test; the sequence adapts per lesson ✅
Adaptive practice Targeted practice studio with categories and custom practice texts ✅
Races Race against AI bots of different speeds, or against the ghost of your personal best ✅
Speed test Timed tests with a certificate at the end ✅
Stats & insights WPM, CPM, accuracy and consistency tracking, daily streaks, achievements, JSON export of your progress ✅
Persian typing done right Proper ZWNJ (نیم‌فاصله) handling, classical poetry packs and formal writing ✅
Code practice English track includes symbols and code-style snippets ✅
Ergonomics guide Posture, screen setup and gentle-break advice, with home-row guidance ✅
Synthesized sounds Zero-latency Web Audio keyboard sounds (Cherry MX Blue, Thock, Typewriter, Bubble) plus soft background piano ✅
Offline-friendly (PWA) Service worker caching and web manifest included ✅
Real-time multiplayer lobbies WebSocket lobbies to race real people ⏳
Custom sound-pack recorder Record and use your own keystroke sounds ⏳

◈ The Butterfly Journey

graph LR
    A[🥚 Egg] --> B[🐛 Silkworm]
    B --> C[🟡 Golden Cocoon]
    C --> D[✨ Emerging]
    D --> E[🦋 Butterfly]
    E --> F[🌟 Radiant Butterfly]
Loading

Curriculum at a glance

Stage focus What you practice
Posture & anchors Sitting, hand placement, finding the home-row bumps by touch
Home, top & bottom rows Two keys at a time — an intro lesson plus a deep-drill lesson per key
One-hand & alternating hands Left-only, right-only, then smooth hand alternation
Bigrams & trigrams Common letter combinations for flow
Shift, ZWNJ & punctuation Capitals, half-spaces and punctuation marks
Numbers & symbols Digits, symbols and code (English) / diacritics and formal writing (Persian)
Speed building & real texts Longer passages, then three master exams

Lessons unlock one after another. A toggle on the roadmap screen unlocks them all if you want to jump around.


◈ Run From Source

Prerequisites: Node.js 20.19+ (or 22.12+) and npm. No API keys, no .env file, no backend.

01   Clone the repository

git clone https://github.com/Amin-Moniry/Pilla.git
cd Pilla

02   Install dependencies

npm install

03   Start the dev server

npm run dev

Open http://localhost:3000 in your browser — that's it.

04   (Optional) Create a production build

npm run build      # outputs to dist/
npm run preview    # serve the production build locally

Useful commands

Command What it does
npm run dev Start the Vite dev server on port 3000
npm run build Create an optimized production build in dist/
npm run preview Preview the production build locally
npm test Run the typing-engine and storage unit tests
npm run lint TypeScript type check (tsc --noEmit)
npm run clean Remove the dist/ folder
npm run electron:dev Build the site and open it in a desktop (Electron) window
npm run dist:win Build the Windows installer into release/

Build the Windows installer yourself

npm install
npm run dist:win

The installer is created in release/ as Pilla-Setup-<version>.exe (installer wizard with install-folder choice, desktop and Start Menu shortcuts). Building on Windows works out of the box; on Linux/macOS you additionally need Wine.


◈ How Speed Is Measured

Pilla uses the international 5-character word standard for both Persian and English, so speeds are comparable across languages (spaces, ZWNJ and punctuation all count as keystrokes):

Gross WPM = (Total Keystrokes / 5) / Minutes
Net WPM   = max(0, Gross WPM − Uncorrected Errors / Minutes)

◈ Tech Stack

Layer Technology
Language TypeScript
UI framework React 19
Build tool Vite
Desktop shell Electron + electron-builder (NSIS installer)
Styling Tailwind CSS 4
Animation Motion
Icons Lucide
Effects canvas-confetti
Audio Native Web Audio API (synthesized)
Persistence Browser localStorage
Tests Node test runner via tsx

◈ System Requirements

Component Windows .exe Run from source
OS Windows 10 / 11 (64-bit) Windows, macOS or Linux
Node.js / npm Not required Node.js 20.19+ or 22.12+
Internet Optional — only used to load web fonts Needed once for npm install

◈ Project Structure

Pilla/
├── index.html
├── package.json
├── vite.config.ts
├── tsconfig.json
├── electron/                 # Desktop app entry (main process)
├── build/                    # App icon + installer artwork
├── screenshots/              # Images used in this README
├── public/
│   ├── audio/                # Background piano + attribution
│   ├── images/               # Ergonomics photos + credits
│   ├── manifest.json         # PWA manifest
│   └── sw.js                 # Service worker
└── src/
    ├── App.tsx               # App shell, tabs, language switching
    ├── index.css             # Theme and component styles
    ├── components/           # Dashboard, Learn, Practice, Races, Test,
    │                         # Stats, Posture, Keyboard, TypingArena, Settings
    ├── data/curriculum/      # 150-lesson specs, word & text banks (Fa / En)
    ├── types/                # Typing & curriculum schemas
    └── utils/                # Typing engine, finger mapping, sound,
                              # storage, achievements, metamorphosis

Want to add or tweak a lesson? Edit the spec lists in src/data/curriculum/specsEn.ts or specsFa.ts. Each track must contain exactly 150 lessons — the builder throws an error otherwise.


◈ Troubleshooting

Windows shows a "protected your PC" warning

Click "More info" → "Run anyway". The .exe is not code-signed.

npm install or npm run dev fails

node -v            # must be 20.19+ (or 22.12+)
rm -rf node_modules package-lock.json && npm install

Port 3000 is already in use

npm run dev -- --port=3001

Fonts look different when offline

Pilla loads Vazirmatn, Plus Jakarta Sans and JetBrains Mono from Google Fonts.
Offline, the system falls back to default fonts — everything still works.

My progress disappeared

Progress lives in the app's local storage on this device. Clearing browser
data (or moving to a new browser/machine) resets it. Use the JSON export in
the Insights tab to back it up.

◈ FAQ

Question Answer
Do I need an account? No. Everything is local — no sign-up, no cloud.
Is my data uploaded anywhere? No. Progress and settings stay in your device's local storage.
Which languages can I learn? Persian (ISIRI 9147) and English (US QWERTY).
Can I switch language later? Yes — use the language button in the top bar at any time.
Does it sync between devices? Not automatically. Export your progress as JSON to move it.
Can I race other people online? Not yet — real-time lobbies are on the roadmap. Today you race AI bots and your own ghost.

◈ Roadmap

  • Core typing engine with unit tests
  • Persian ISIRI 9147 & QWERTY virtual keyboards
  • Hands overlay with finger zones & home-bump indicators
  • Butterfly metamorphosis avatar & XP system
  • Multi-step lessons (Learn → Watch → Guided → Free → Test)
  • Classical Persian poetry & code practice packs
  • AI bot races & personal-best ghost racing
  • PWA offline caching & manifest
  • Windows .exe release
  • WebSocket real-time multiplayer lobbies
  • Custom user sound-pack recorder

◈ Contributing

  1. Fork the repo
  2. Create a branch: git checkout -b feature/your-idea
  3. Commit: git commit -m 'feat: description'
  4. Push: git push origin feature/your-idea
  5. Open a Pull Request

◈ Credits

  • Ergonomics workstation photo: “Woman Working on a Computer in an Office” by Mizuno K, Pexels
  • Home-row typing photo: “Close-up of Hands Typing on a Keyboard” by Vitaly Gariev, Pexels
  • Background music: see public/audio/ATTRIBUTION.md

◈ Creator



⭐ If Pilla helps you type faster, drop a star!



About

A bilingual touch-typing tutor for Persian and English, featuring a structured 150-lesson curriculum, speed tests, and progress tracking. Available as a Windows desktop application.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages