What The Hex is a wordle-like game where you try to guess hex colors
- You have 6 attempts to guess the hex color
- After each attempt, you will get feedback on how close you are to the correct hex color
- ⏫: Value is higher by 3 or more
- ⏬: Value is lower by 3 or more
- ⬆️: Value is higher by 1 or 2
- ⬇️: Value is lower by 1 or 2
- ✅: Value is correct
- Framework: SvelteKit
- Database: Postgres
- ORM: Drizzle
- Hosting & Cron: Vercel
- i18n: ParaglideJS
Variable | Description |
---|---|
POSTGRES_URL |
Postgres connection URL to my database |
CRON_SECRET |
Secret key for the cron job |
Copy the .env.example
file to .env
and fill in the values
cp .env.example .env
- Create a new database
- Push the schema to the database
# Npm
npm run db:push
# Yarn
yarn db:push
# Pnpm
pnpm db:push
# Bun
bunx run db:push
# Npm
npm run dev
# Yarn
yarn dev
# Pnpm
pnpm dev
# Bun
bun dev
I'm using ParaglideJS for i18n.
As of now, the following languages are supported:
If you want to see the game in another language, feel free to contribute by adding a new language in the inlang project
This project is licensed under the GPL-3.0 License - see the LICENSE file for details