Visit the site here: SwiftType.
SwiftType is a minimalistic typing test site that allows you to test your typing speed and accuracy. It features a simple and minimal interface, with the ability to toggle dark and light theme. Uses Quotable API to fetch random quotes.
Contributions are welcome! Please read CONTRIBUTING.md for more info.
- Blazingly fast
- Custom fonts
- Dark/Light Theme
- Calculates Current WPM, Gross WPM, Net WPM, Raw WPM, accuracy, errors, time taken
- Shortcut for fast restart and repeat
- Input field auto clear
- Result highlighting
- Word highlighting (on | off)
- Smooth caret (on | off)
- Control Backspace delete
To build and test the site locally, follow these steps:
- Clone the repository to your local machine.
- Navigate to the project directory in your terminal.
- (Optional) Run the command
git submodule update --init --recursive
to update the submodule. - (Optional) Run the command
git pull
to pull the latest changes. - Install the necessary dependencies by running
npm install
- Create a new file in the root directory of the project called
.env.local
- Add the necessary environment variables to the file in the format
VARIABLE_NAME=value
- Save the file.
- To build the project, run the command
npm run build
. - To start the development server, run the command
npm run server
ornpm start
to use Create React App Deployment. - Open your web browser and navigate to
http://localhost:3000
to view the site. - To run the tests, open a new terminal window and navigate to the project directory.
- Run the command
npm test
to run the test suite.
Make sure to add the .envlocal
file to your .gitignore
file to prevent it from being tracked by Git.