Mercury is now Open Source! Check Out The Code

Make any web page make sense.

Mercury takes any web article and returns only the relevant content — headline, author, body text, relevant images and more — free from any clutter. It’s reliable, easy-to-use and free.

Mercury Web Parser
yarn add @postlight/mercury-parser
#    or
npm install @postlight/mercury-parser
To use Mercury Parser, just import the package and then run Mercury.parse.
Code Sample
import Mercury from "@postlight/mercury-parser";

const url="";
Mercury.parse(url).then(result => console.log(result));
The result looks like this:
  author: "Jeremy Mack",
  content: "<div class="body__content"> <p><a href="">Awesome CMS</a> is…an awesome list of awesome content management systems, grouped by language and ordered by popularity. It’s on GitHub, so anyone can add to it via a pull request.</p>↵<p>Check it out:</p>↵<blockquote class="embedly-card"> <p>📚 A collection of open and closed source Content Management Systems (CMS) for your perusal. – postlight/awesome-cms</p>↵</blockquote> <p>Here are some notes on how and why Awesome CMS came to be.</p>↵<h3>Compilation</h3>↵<p>GitHub has a <a href="">set of powerful commands</a> for narrowing search results. In seeking out modern content management tools, I used queries like this:</p>↵<p><a href=";q=cms+OR+%22content+management%22+OR+admin+pushed%3A%3E2016-01-01+stars%3A%3E50&amp;ref=searchresults&amp;s=stars&amp;type=Repositories&amp;utf8=%E2%9C%93">cms OR “content management” OR admin pushed:&gt;2016–01–01 stars:&gt;50</a></p>↵<p>Sorting by stars, I worked my way backwards. I was able to quickly spot relevant CMS projects. I also started to notice some trends.</p>↵<ul>↵<li>Modern and popular content management systems are written in PHP, JavaScript, Python, and Ruby. There are also a few content management systems written in&nbsp;.NET (C#), but they are much less popular on GitHub.</li>↵<li>Headless content management systems are gaining popularity. Simply presenting the UI for users to edit content, and relying on the end user to create the user-facing site by ingesting the API. <a href="">Directus</a> and <a href="">Cloud CMS</a> are headless CMS options.</li>↵<li>Static content management systems don’t host pages for you. Instead they help generate your CMS, using static files. <a href="">Netlify CMS</a>, <a href="">Respond CMS</a>, and <a href="">Lektor</a> are a few of the options in the static CMS space.</li>↵</ul>↵<h3>Tooling</h3>↵<p>I knew the list of all popular content management systems would be huge. I didn’t want to put that data into Markdown directly, as it would be difficult to maintain and to augment with extra data (stars on GitHub, last push date, tags, etc).</p>↵<p>Instead, I opted to store the data in <a href="">TOML</a>, a human-friendly configuration file language. You can view all of the data that powers Awesome CMS in the <a href="">data folder</a>. Here’s WordPress’ entry in that file:</p>↵<pre>[[cms]]↵name = "WordPress"↵description = "WordPress is a free and open-source content management system (CMS) based on PHP and MySQL."↵url = ""↵github_repo = "WordPress/WordPress"↵awesome_repo = "miziomon/awesome-wordpress"↵language = "php"</pre>↵<p>I process this file using JavaScript in <a href="">generateReadme.js</a>. It handles processing the TOML, fetching information from GitHub, and generating the final file using the <a href="">Handlebars template</a>. I’m scraping GitHub for star counts because GitHub’s API only allows for 60 requests an hour for authenticated users. We want to make it as easy as possible for anyone to contribute. Requiring users to generate a GitHub authentication token to generate the README wasn’t an option.</p>↵<div id="attachment_2200" class="wp-caption alignnone"><img class="wp-image-2200 size-full" src="" width="360"><p class="wp-caption-text">I heard you like content management systems</p></div>↵<p>By storing the data in TOML at generating the using JavaScript, I’ve essentially created an incredibly light-weight, GitHub-backed, static CMS – to power Awesome CMS.</p>↵<p><em><a href="">Jeremy Mack</a> is a Director of Engineering at Postlight. Need a better CMS? Get in touch: <a href=""><span class="__cf_email__">[email&nbsp;protected]</span></a>.</em></p> </div>",
  date_published: "2016-10-03T16:48:58.000Z",
  dek: null,
  direction: "ltr",
  domain: "",
  excerpt: "Awesome CMS is…an awesome list of awesome content management systems, grouped by language and ordered by popularity. It’s on GitHub, so anyone can add to ...",
  lead_image_url: "",
  next_page_url: null,
  rendered_pages: 1,
  title: "Building Awesome CMS — Postlight — Digital product studio",
  total_pages: 1,
  url: "",
  word_count: 465,
A Labs project from your friends at
Copyright 2020, Postlight Labs LLC