This repository is the backend for the Satellite Sonnet application. It uses the public NASA API to fetch the daily astronomy image provided. The image is then encoded and sent to Anthropic's Claude to generate a Shakespearean sonnet.
The sonnet is cached into DynamoDB upon generation, along with metadata about the astronomy image. An AWS Lambda function returns the poem, the image's metadata, and the number of requests to the function for that day upon request, in a JSON format.