Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Story of doggomemes.xyz: Building a meme genera...

Story of doggomemes.xyz: Building a meme generator using Headless Chrome

[Presented at GDG Mumbai DevFest 2017]

Chrome recently launched cross platform support for Headless mode from Chrome 59 onwards. There has already been a lot of buzz regarding the variety of use cases that can be achieved with it like automated testing, screenshot/pdf generation, access to all of devtools features using the devtools protocol including audits, performance, coverage, etc. Having previously built an image generation service using phantomjs, I wanted to see how complex it was to do something similar using headless chrome. The talk involves building a minimal meme generator using: React(for meme preview), Node & Hapi(for API server) and Headless Chrome (for image generation)

Avatar for Karan Thakkar

Karan Thakkar

October 28, 2017
Tweet

More Decks by Karan Thakkar

Other Decks in Technology

Transcript

  1. Why? - ❌ Phantom v1 to v2 migration - Easy

    to debug - Use newer JS/CSS syntax Find an alternative to phantomjs
  2. - Type some text - Choose different background images -

    Preview the output - Send data to server Client / Webapp
  3. Headless Chrome - Launch Chrome and communicate with it -

    Load simple page which takes image and text - Take page screenshot and save it
  4. - Handle concurrent requests - See demo of other headless

    chrome features - Add a feature you like to doggomemes.xyz to kickstart your hacktoberfest OSS contribution Catch me later