This is a containerized FastAPI service that generates .eml email files from a supplied URL. It captures a screenshot, summarizes the content, and returns a downloadable email with the information embedded.
- Accept any public URL
- Extract and summarize links (top 10)
- Capture full-page screenshot
- Embed summary and screenshot into an
.emlfile - Download, check status, and delete generated files
- Queue-based background processing
Request an email to be generated.
Body:
{
"url": "https://www.drudgereport.com"
}Returns:
{
"job_id": "uuid",
"status_url": "/status/uuid",
"download_url": "/download/uuid"
}Check job status (queued, processing, complete, or error).
Download the generated .eml file.
Delete the .eml file and job entry.
- Subject:
YYYY-MM-DD HH:MM UTC: email digest for domain.com - Body: Summary of top links + timestamp + closing line
- Attachment: Screenshot of the URL
emails.txt: List of potentialFrom:andTo:addresses (one per line)
docker build -t email-digest-api .
docker run -p 8000:8000 email-digest-api