No description
Hint is revealed on demand below the board while playing. After the game ends, each word's description and source link are listed below the puzzle, and hovering a solved word highlights its entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .agents/skills/design-taste-frontend | ||
| .claude/skills/design-taste-frontend | ||
| public | ||
| .gitignore | ||
| build.md | ||
| lib.js | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| server.js | ||
| skills-lock.json | ||
| test.js | ||
NT-Connections
A NYT Connections style word game with an admin page for creating puzzles.
Run locally
Needs Node 22.13+ (uses the built-in node:sqlite).
npm install
ADMIN_PASSWORD=choose-one npm start # PowerShell: $env:ADMIN_PASSWORD="choose-one"; npm start
npm test
Open http://localhost:3000. Create puzzles at /admin.
| Path | What |
|---|---|
/ |
Today's puzzle (latest puzzle dated today or earlier) |
/puzzles |
Every puzzle whose date has arrived, plus undated ones |
/play/:id |
A specific puzzle |
/admin |
Log in, then create, edit and delete puzzles |
Environment
| Var | Default | Notes |
|---|---|---|
ADMIN_PASSWORD |
required | Changing it logs out existing sessions |
PORT |
3000 |
Server listens on 127.0.0.1 only |
DB_PATH |
./data/games.db |
Back this file up |
TZ |
system | Decides what "today" is for the daily puzzle |
Deploy (VPS + nginx)
systemd unit, /etc/systemd/system/nt-connections.service:
[Service]
WorkingDirectory=/srv/nt-connections
ExecStart=/usr/bin/node server.js
Environment=ADMIN_PASSWORD=change-me
Environment=DB_PATH=/var/lib/nt-connections/games.db
Environment=TZ=America/New_York
Restart=always
User=www-data
[Install]
WantedBy=multi-user.target
nginx server block:
location / {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
}
Use HTTPS (e.g. certbot). The admin cookie is marked Secure behind HTTPS, and the "Share results" copy button needs HTTPS to reach the clipboard.