No description
Find a file
Aidan Dona b2f8e879ab Add puzzle hints and per-word descriptions with sources
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>
2026-10-13 16:44:07 -05:00
.agents/skills/design-taste-frontend Add Connections-style word game with puzzle editor 2026-10-08 16:56:34 -05:00
.claude/skills/design-taste-frontend Add Connections-style word game with puzzle editor 2026-10-08 16:56:34 -05:00
public Add puzzle hints and per-word descriptions with sources 2026-10-13 16:44:07 -05:00
.gitignore Add Connections-style word game with puzzle editor 2026-10-08 16:56:34 -05:00
build.md Add puzzle hints and per-word descriptions with sources 2026-10-13 16:44:07 -05:00
lib.js Add puzzle hints and per-word descriptions with sources 2026-10-13 16:44:07 -05:00
LICENSE Initial commit 2026-10-08 22:39:44 +01:00
package-lock.json Add Connections-style word game with puzzle editor 2026-10-08 16:56:34 -05:00
package.json Add Connections-style word game with puzzle editor 2026-10-08 16:56:34 -05:00
README.md Add Connections-style word game with puzzle editor 2026-10-08 16:56:34 -05:00
server.js Add puzzle hints and per-word descriptions with sources 2026-10-13 16:44:07 -05:00
skills-lock.json Add Connections-style word game with puzzle editor 2026-10-08 16:56:34 -05:00
test.js Add puzzle hints and per-word descriptions with sources 2026-10-13 16:44:07 -05:00

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.