Files
FancyWordle/README.md
T

23 lines
1016 B
Markdown

# Fancy Wordle
A Wordle-style game with one shared word for every UTC hour.
## Supabase setup
The app can enforce the shared hourly word with Supabase/Postgres. Run `supabase/schema.sql` in your Supabase SQL editor, enable anonymous sign-ins in Supabase Auth, then fill in `supabase-config.js`:
```js
window.FANCY_WORDLE_SUPABASE = {
url: "https://your-project.supabase.co",
anonKey: "your-public-anon-key"
}
```
The database chooses the word from `public.wordle_words` based on the current UTC hour, so everyone who plays during the same hour gets the same answer.
`supabase/schema.sql` seeds the first 120 target words. Add more rows to `public.wordle_words` if you want a longer no-repeat cycle.
If Supabase is not configured, the app falls back to a browser-only hourly lock using the same deterministic hourly word calculation from `targetWords.json`.
Anonymous auth enforces the limit per browser session. For stronger per-person enforcement, replace anonymous sign-in with email or OAuth sign-in.