https://github.com/ninest/typer
⌨️ The 10-second typing game
https://github.com/ninest/typer
arcade-game deno firebase javascript parcel retro typing typing-game
Last synced: about 1 month ago
JSON representation
⌨️ The 10-second typing game
- Host: GitHub
- URL: https://github.com/ninest/typer
- Owner: ninest
- License: mit
- Created: 2020-05-18T10:51:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-03T07:30:37.000Z (almost 3 years ago)
- Last Synced: 2025-04-24T09:41:18.097Z (7 months ago)
- Topics: arcade-game, deno, firebase, javascript, parcel, retro, typing, typing-game
- Language: JavaScript
- Homepage: https://typer.now.sh/
- Size: 2.24 MB
- Stars: 66
- Watchers: 3
- Forks: 8
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
⌨️ Typer
The 10-second typing game
## 🎮 How to play
1. Visit [https://typerapp.now.sh/](https://typerapp.now.sh/)
2. To start a game, type "start"
You now have **10 seconds** to type out all the words displayed. For every word you type correctly, your score increases, and you also get **1 extra second**. Can you beat my highscore of 35? (you probably can)
## 🚀 Features
- 10 seconds to type
- Get an extra second for each word typed (small change of getting 2 seconds)
- Randomly get a password field to spice the game up (1/6 chance)
- Save your highscore locally
## 🛠 Build setup
Clone or fork the repository, then run the commands to start the development server:
```
npm i
npm run dev
```
To build the app, run
```
npm run build
```
### Encryption
In `src/scripts/`, create `keys.js` with the following:
```js
export const key = 'a secret key';
```
Here's one way to generate a random string:
```python
# python
from base64 import b64encode
from os import urandom
random_bytes = urandom(32)
secret = b64encode(random_bytes).decode('utf-8')
print(secret)
```
Note that the encryption is done client-side!
### Hosting
The game is hosted with Vercel. To host a debug version of the app, run
```
vc
```
To host the production version of the app, run
```
vc --prod
```
### ~~Firebase~~
Firebase and leaderboards have been removed. Please check the ["firebase" branch](https://github.com/ninest/typer/tree/firebase) for more details.
## ♥️ Support
If you liked this project, consider supporting by
- ⭐️ Starring the repository
- 🎒 Checking out my other [projects](https://github.com/ninest)
- ☕️ Buying me [coffee](https://www.buymeacoffee.com/ninest)
## 📜 License
MIT
