https://github.com/louisbrunner/wurdle
State-less Wordle API in Rust
https://github.com/louisbrunner/wurdle
Last synced: 18 days ago
JSON representation
State-less Wordle API in Rust
- Host: GitHub
- URL: https://github.com/louisbrunner/wurdle
- Owner: LouisBrunner
- License: mpl-2.0
- Created: 2022-04-20T15:33:22.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-25T14:32:18.000Z (almost 4 years ago)
- Last Synced: 2025-11-14T12:06:10.894Z (8 months ago)
- Language: Rust
- Size: 34.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wurdle
State-less Wordle API in Rust, see `wurlde-server/api/openapi.yaml` for API details
## Building
```bash
make # only required when changing `wurlde-server/api/openapi.yaml`
cargo build
```
## Usage
```bash
SESSION_TOKEN="" cargo run
```
You can generate a `SESSION_TOKEN` using `openssl rand -base64 42` or any base64 encoded string. As long as you use the same `SESSION_TOKEN`, all sessions will be usable across reboots/multiple servers (just like JWT).
## TODO
* Better HTTP error handling
* Better internal error handling
* Abstract the session management into a trait
* Move "game" logic out of HTTP