Coding
PromptBeginner5 minmarkdown
Nano Banana Pro
Agent skill for nano-banana-pro
7
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
NYT Connections Helper - a web service that displays today's puzzle words with definitions.
get_connections.js - local script for testingconnections-helper.anystupididea.com# Local CLI npm start # Run local CLI script # AWS Deployment ./deploy.sh # One-click deployment to AWS # CDK Commands (from cdk/ folder) cd cdk && npm run cdk synth # Synthesize CloudFormation cd cdk && npm run cdk diff # Preview changes cd cdk && npm run cdk deploy # Deploy stack # Manual Lambda Invocation aws lambda invoke --function-name connections-helper-fetch /dev/stdout
EventBridge (12:05 AM ET) → Fetch Lambda → DynamoDB Route 53 → API Gateway → Serve Lambda → DynamoDB → HTML Response S3 Bucket → CloudFront → Static Assets (favicon, og-image, etc.)
Key Components:
lambdas/fetch/ - Node.js Lambda, fetches puzzle via NYT API dailylambdas/serve/ - Returns cached HTML from DynamoDB (references CloudFront for assets)assets/icons/ - Brand assets deployed to S3 via CDKcdk/ - TypeScript CDK infrastructure (us-east-1)connections_helper/ ├── get_connections.js # CLI script (local testing) ├── deploy.sh # One-click AWS deployment ├── assets/ │ ├── logos/ # Source brand images │ └── icons/ # Generated assets (deployed to S3) │ ├── favicon.ico │ ├── og-image.png # Social sharing image (1200x630) │ └── ... ├── cdk/ # CDK infrastructure │ ├── lib/connections-helper-stack.ts # Main stack │ └── bin/app.ts # CDK app entry └── lambdas/ ├── fetch/ # NYT API fetch Lambda │ ├── index.js │ └── cultural-refs.js └── serve/ # HTML serving Lambda └── index.js
Add entries to
lambdas/fetch/cultural-refs.js for words the dictionary API doesn't cover:
module.exports = { 'WORD': 'Cultural meaning; alternate usage', };
Uses existing Route 53 hosted zone
Z6ED78QGBFL6M for anystupididea.com. DNS is automatically configured by CDK.