An Open Source Wordle game. Guess the Wordle in six tries. Each guess must be a valid five-letter word.
Deploy this app to Linode with a free $100 credit!
This is a clone project of the popular word guessing game we all know and love. Made using React, Typescript, and Tailwind.
Clone the repository and perform the following command line actions:
$> cd react-wordle
$> npm install
$> npm run start
$> docker build -t reactle:dev -f docker/Dockerfile .
$> docker run -d -p 3000:3000 --name reactle-dev reactle:dev
Open http://localhost:3000 in browser.
$> docker build --target=prod -t reactle:prod -f docker/Dockerfile .
$> docker run -d -p 80:8080 --name reactle-prod reactle:prod
Open http://localhost in browser. See the entry in the FAQ below about requirements for sharing of results.
The default configuration is for solutions and guesses of length five, but it is flexible enough to handle other lengths, even variable lengths each day.
To configure for a different constant length:
WORDS
array in src/constants/wordlist.ts to include only words of the new length.VALID_GUESSES
array in src/constants/validGuesses.ts to include only words of the new length.To configure for variable lengths:
WORDS
array in src/constants/wordlist.ts to include words of any of the variable lengths desired.VALID_GUESSES
array in src/constants/validGuesses.ts to include words of any of the variable lengths desired.Note that guesses are validated against both the length of the solution, and presence in VALID_GUESSES.
REACT_APP_LOCALE_STRING
to your localedir="rtl"
to the HTML tag\u202E
(the unicode right-to-left override character) to the return statement of the inner function in generateEmojiGrid
in
src/lib/share.tsENABLE_ARCHIVED_GAMES
to true
DATE_LOCALE
to a suitable locale string as defined in date-fns.This repository includes support for Google Analytics or Plausible Analytics, but, by default, this is disabled.
To enable Google Analytics:
G-XXXXXXXXXX
)REACT_APP_GOOGLE_MEASUREMENT_ID=G-XXXXXXXXXX
Keep in mind that your region might have legislation about obtaining a user's consent before enabling trackers. This is up to downstream repos to implement.
To enable Plausible Analytics:
example.app
REACT_APP_PLAUSIBLE_DOMAIN=example.app
For mobile and wearable devices and smart TVs, sharing of results is initially attempted using the Web Share API. For other devices or when sharing to the Web Share API fails, the results are written to the clipboard. Both these methods will succeed only in a secure context, which require you to implement the HTTPS protocol when hosting this repo on a public domain.
Want to add one to the list? Please make a pull request.
Please login to review this project.
No reviews for this project yet.
Minimalist text adventure game for your browser.
Geography multiplayer game.
The forever free, adless and open source chess server power…
Comments (0)
Please login to join the discussion on this project.