FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
stevekrouse
stevekrousestaticWordle
Wordle without client-side JS. Every move is a link
Public
Like
staticWordle
Home
Code
2
README.md
H
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
main.tsx
https://stevekrouse--0b6b73e4195d11f0a951569c3dd06744.web.val.run
README.md

Clone of @maxm/staticChess but for Wordle. Every letter is a link. The game state is stored in the URL bar.

You could do silly things like playing collaborative Wordle with your friends by trading links back and forth. Or undo any mistakes by clicking the back button. I also make it easy to generate a new game from any of your current game's guesses – to send to a friend.

They key to these static games like this one and @maxm/staticChess is to figure out:

  • a representation for your game state (the Game type)
  • how to encode/decode your game state into the URL (base64-encoding JSON)
  • how to render your game state into HTML (looping over guesses and making divs)
  • placing the links into your HTML in the right spots (on my on-screen keyboard)
  • prettify with CSS (for guesses and the keyboard)
HTTP
  • main.tsx
    stevekrouse--0b…44.web.val.run
Code
README.md
H
main.tsx
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.