Social Card Generator for NBC Elections

For this project, I updated the structure and implemented the design changes from 2020 to 2022. The app consumes JSON from an AWS file to generate an image at two aspect ratios and accompanying text, which is then posted to a Slack channel as well as various social media accounts via an AWS lambda function, which uploads the image to a bucket and to several SocialFlow accounts. This project involved a lot of reading and updating very old code to reduce reliance on hardcoded values and extend functionality to future years, as well as make future customization much easier.

The app features:

  • Automatic image generation when a json file is added to an AWS S3 bucket
  • Image generation that handles long names and special elections as well as the standard dem/republican
  • Dynamically created headshot information

And was built with:

  • nodeJs
  • canvas API
  • socialflow API
© 2024 A Minor Studio