The official original Wordle and the official New York Times version both check a valid word list client-side. If you check the source of the web version, you can find a JavaScript file with the complete.
Mar 8, 2022 · I ran every word my dictionary against a subset of 200 random wordle targets to save computing time, then computed how many words I had left based on the pattern of squares I got after.