Inspiration

As developers and tech folks, we learn from websites such as Medium, Reddit, Hacker news, and Dev.to. Over time, we realized that we are spending a significant amount of time on these websites and also getting distracted from articles that are irrelevant to us. When exploring Postman collections and its automated features it hit upon us that we could just add all of our favorite websites(APIs/RSS feeds) in a collection and set up a monitor to mail an aggregated feed. It was a simple idea but its something that would save quite some time for a lot of us in the tech community.

What it does

MAID sends you a feed of all your favorite websites. Just add your favorite website(APIs/RSS) feeds and use the Util functions provided to create your personalized feed.

How we built it

We built our app logic entirely using JS in postman.

  1. Collection: We added feed sources(HackerNews, Medium topics, dev.to tags, subreddits etc.,) as requests under one Collection.

  2. Collection Variables: The filters for feed sources are added as collection variables. For example, the variable MEDIUM_Topics is used for sending medium requests to get data for a particular medium topic.

  3. Pre-request Scripts: We provided util functions for parsing RSS feeds, standardizing feeds, and sending next requests. All of the util functions are documented in detail. By adding util functions in the pre-request script of collection, we were able to reuse them in all requests.

  4. Test Scripts: We added tests to verify if the requests are run as expected. We also call the util functions to process the response, customize it and then decide the direction of monitor/runner workflow.

  5. Response Visualizer: We also added visualizer for viewing the mail directly in postman. Users can visualize their mails without actually sending them.

  6. Mock Server and Examples: We added examples for all the requests and created a mock server so that one can try out and understand the requests without actually adding the required credentials/keys.

  7. Monitor: You can setup a monitor to run MaiD periodically. We recommend it running daily at the time you are most comfortable reading.

  8. Environments: We are using one environment to set temporary variables needed for requests. We persist a variable in the environment which allow us to prevent duplicate feeds when the monitor is run next on that environment.

External Technologies/APIs:

  1. Amazon S3 for uploading feed.
  2. MailJet Apis to send mail.
  3. Davinci Resolve for video editing.
  4. Inkscape for creating graphic assets.

Challenges we ran into

  1. Running requests in order: Initially we couldn't figure out how to run them in order. But thanks to Postman's extensive documentation, we figured we could use pm.setNextRequest()

  2. UI: Being two backend developers figuring out how to build a great UI with just HTML and CSS was challenging. But we are proud of the final UI we were able to build.

  3. Mail: Given that email clients are very restrictive in the rendering the CSS in email, we were not able to bring the complete UI in the mail. We worked around this problem by uploading the HTML to AWS S3 bucket and sharing the feed link in the mail.

  4. Writing maintainable and reusable code: Given how postman sandboxes request for obvious reasons, writing code with DRY principles was a challenge. but with a little bit of fiddling around community forums and documentation, we were able to hack our way through it. This meant for us personally, the time required to add a new feed is exponentially lower than the first feed. and for the users, adding a new feed would take around 5-10 mins if not less.

  5. Video Editing/Graphic Design: Given the amount of love we've poured into the product from the initiation of idea to building a working product, we didn't want to do any less in the presentation. So we spent countless hours in designing a final video that's worth pairing up with a software we love.

Accomplishments that we're proud of

  1. All the complexities related to the parsing and delivering of feeds have been abstracted out which means we ended up with a product that is not only useful for developers but also other functional area folks such as product managers.

  2. We are very proud that we end building a product that helps not just us but a lot of others. We are very hopeful that anyone facing similar problems as us and stumbles on MaiD will love with it and most likely end up using it. Given that the current-gen tech is all about web APIs in one or the other form We believe the possibilities of customizing MaiD are limitless.

What we learned

We learned that in-order to build a fully functional backend you don't have to have a crazy big infra setup or pay to one of those expensive IaaS/PaaS services. We were able to build the entire backend logic on Postman. Think about it, without postman, to build an app like this, we would need to

  1. Write the logic in a backend,
  2. Deploy it on cloud
  3. Setup schedulers to send mails.
  4. Build frontend UI for users to customize their feeds
  5. Build rest services to connect front-end with the backend.

With postman and it's public collections, we were able to build an entirely open backend and give users the ability to customize their feeds. We never thought that was possible before we did it. 🤯

What's next for Maid - Mail your personal feed.

  1. Discover and follow feeds based on topics. make it easy for non-tech people to use maid. For example adding APIs specifically to stocks or cryptos and other niche areas.
  2. Adding Summary of articles in feed. For now, we only have the titles in the feed. In the future, we plan to add a summary and images of the article directly in the feed.
  3. Adding social media feed we already added Reddit, we plan to add Instagram/Twitter later.

Built With

Share this project:

Updates