Given a URL, fetch the raw HTML. Then, using Readability and JSDOM, strip out all of the webjunk. Then, using the power of CSS stylesheets and pandoc, convert the file into an ePub or PDF.
node main.js run move_fast.epub https://launchdarkly.com/blog/the-fallacy-of-move-fast-and-break-things/