2.15.5 • Published 27 days ago

scrabble-solver v2.15.5

Weekly downloads
94
License
CC-BY-NC-ND-4.0
Repository
github
Last release
27 days ago

scrabble-solver

Table of contents

  1. Dictionaries
  2. Run
  3. Uninstall
  4. Develop
    1. Setup
    2. Run app dev server
    3. Rebuild the entire project
    4. Rebuild a single package
    5. Add a new language
  5. Tech stack
  6. Related projects
  7. Media

Dictionaries

LanguageWord listWord definitionsHighest-scoring word
🇬🇧 English💾 SOWPODSMerriam-Websteroxyphenbutazone (1458)
🇺🇸 English💾 TWL06Merriam-Websteroxyphenbutazone (1458)
🇫🇷 French💾 ODS8CNRTLschizothymiques (1566)
🇩🇪 German💾 hippler/german-wordlistDWDSpolytoxikomanem (1512)
🇮🇷 Persian💾 MansourM/persian-to-persian-dictionaryواژه یاب‏(756) اگزیستانسیالیست
🇵🇱 Polish💾 SJP.PLSJP.PLwspółposiądźmyż (1512)
🇷🇴 Romanian💾 LOC 5dexonlineluxemburghezele (1944)
🇪🇸 Spanish💾 FILE 2017Diccionarios.comflexibilizabais (1323)
🇹🇷 Turkish💾 TurkishTürk Dil Kurumu Sözlükleridövüşmeyeceğime (1593)

Run

You can run Scrabble Solver on your machine - all you need is Node.js 20 or later.

npx scrabble-solver@latest

Give it a while to install and download dictionaries. When it's done it will automatically open http://localhost:3333/ in your browser.

Hit Ctrl + C in your terminal to exit the app and shut down the server.

Uninstall

Dictionaries and logs are stored in $HOME/.scrabble-solver. $HOME location is acquired using os.homedir().

rm -rf $HOME/.scrabble-solver

Develop

These steps are required only if you want to make changes to the source code.

Setup

One-time project setup.

git clone https://github.com/kamilmielnik/scrabble-solver.git
cd scrabble-solver
npm install
npm run build

Run app dev server

The following command will serve the app at http://localhost:3000/.

npm run dev

Note: hot code reload works only for the scrabble-solver package. If you make changes to any other package, you will need to rebuild it (see below).

Rebuild the entire project

npm run build

Rebuild a single package

For convenience, here's a list of commands to rebuild every package individually.

npm run build -w @scrabble-solver/configs
npm run build -w @scrabble-solver/constants
npm run build -w @scrabble-solver/dictionaries
npm run build -w @scrabble-solver/logger
npm run build -w @scrabble-solver/scrabble-solver
npm run build -w @scrabble-solver/solver
npm run build -w @scrabble-solver/types
npm run build -w @scrabble-solver/word-definitions
npm run build -w @scrabble-solver/word-lists

Add a new language

  1. Find and download a flag representing the locale in an SVG format
  2. Rename the file to FlagXX.svg and put it in packages/scrabble-solver/src/icons
  3. Export the SVG file in packages/scrabble-solver/src/icons/index.ts
  4. Add IETF language tag for the new locale in packages/types/src/Locale.ts
  5. Rebuild the types package
    npm run build -w @scrabble-solver/types
  6. Add locale configuration in packages/scrabble-solver/src/i18n/constants.ts
  7. Update locale-detecting code in packages/scrabble-solver/src/lib/detectLocale.ts
  8. Add game configs for the new locale in packages/configs/src/languages
  9. Add an export for these locale configs in packages/configs/src/languages/index.ts
  10. Add a translation file in packages/scrabble-solver/src/i18n/languages and fill it with translations
    • Copy any existing file, e.g. english.json and modify it
  11. Add an entry for the translations in packages/scrabble-solver/src/i18n/i18n.ts
  12. Add a function to fetch the list of words in the new locale in packages/word-lists/src/getWordList.ts
  13. Add a function to fetch the word definition in the new locale in packages/word-definitions/src/crawl.ts
  14. Add a function to parse the word definition crawled in the previous step in packages/word-definitions/src/parse.ts

Tech stack

Related projects

Lexatious

The user interface and source code for the web front end of Lexatious is based on Scrabble Solver.

Media

2.15.5

27 days ago

2.15.4

1 month ago

2.15.2

2 months ago

2.15.3

1 month ago

2.15.1

2 months ago

2.13.13

4 months ago

2.13.12

5 months ago

2.13.11

5 months ago

2.13.10

5 months ago

2.15.0

3 months ago

2.14.0

4 months ago

2.13.8

5 months ago

2.13.9

5 months ago

2.13.6

6 months ago

2.13.7

6 months ago

2.13.5

6 months ago

2.13.5-alpha.6

6 months ago

2.13.5-alpha.4

6 months ago

2.13.5-alpha.5

6 months ago

2.13.5-alpha.2

6 months ago

2.13.5-alpha.3

6 months ago

2.13.5-alpha.1

6 months ago

2.13.5-alpha.0

10 months ago

2.13.4

10 months ago

2.13.3

10 months ago

2.13.2

1 year ago

2.13.0

1 year ago

2.13.1

1 year ago

2.12.5

1 year ago

2.12.4

1 year ago

2.11.0

2 years ago

2.11.1

2 years ago

2.11.8

2 years ago

2.11.9

2 years ago

2.11.6

2 years ago

2.11.7

2 years ago

2.11.4

2 years ago

2.11.5

2 years ago

2.11.2

2 years ago

2.11.3

2 years ago

2.10.1

2 years ago

2.10.2

2 years ago

2.10.10

2 years ago

2.10.11

2 years ago

2.10.0

2 years ago

2.10.9

2 years ago

2.10.7

2 years ago

2.10.8

2 years ago

2.10.5

2 years ago

2.10.6

2 years ago

2.10.3

2 years ago

2.10.4

2 years ago

2.12.0

2 years ago

2.12.3

2 years ago

2.12.1

2 years ago

2.12.2

2 years ago

2.9.2

2 years ago

2.9.1

2 years ago

2.9.3

2 years ago

2.9.0

2 years ago

2.8.11

2 years ago

2.8.10

2 years ago

2.8.7

2 years ago

2.8.6

2 years ago

2.8.9

2 years ago

2.8.8

2 years ago

2.8.1

2 years ago

2.8.0

2 years ago

2.8.3

2 years ago

2.8.2

2 years ago

2.8.5

2 years ago

2.8.4

2 years ago

2.7.2

2 years ago

2.7.0

3 years ago

2.7.1

3 years ago

2.6.1

3 years ago

2.6.0

3 years ago

2.5.0

3 years ago

2.4.10

3 years ago

2.4.9

4 years ago

2.4.8

4 years ago

2.4.7

4 years ago

2.4.6

4 years ago

2.4.5

4 years ago

2.4.4

4 years ago

2.4.3

4 years ago

2.4.2

4 years ago

2.4.1

4 years ago

2.4.0

4 years ago

2.3.3

4 years ago

2.3.2

4 years ago

2.3.1

4 years ago

2.3.0

4 years ago

2.2.2

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

2.0.0-rc.21

4 years ago

2.0.0-rc.20

4 years ago

2.0.0-rc.19

4 years ago

2.0.0-rc.18

4 years ago

2.0.0-rc.16

4 years ago

2.0.0-rc.15

4 years ago

2.0.0-rc.14

4 years ago

2.0.0-rc.13

4 years ago

2.0.0-rc.12

4 years ago

2.0.0-rc.11

4 years ago

2.0.0-rc.10

4 years ago

2.0.0-rc.9

4 years ago

2.0.0-alpha.6

5 years ago

2.0.0-alpha.5

5 years ago

2.0.0-alpha.4

5 years ago

2.0.0-alpha.3

5 years ago

2.0.0-alpha.2

5 years ago

2.0.0-alpha.1

5 years ago

1.4.0

5 years ago

1.3.1

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

1.0.0-rc.2

7 years ago

1.0.0-beta.4

7 years ago

1.0.0-beta.3

7 years ago