gray-matter VS docsify

Compare gray-matter vs docsify and see what are their differences.

gray-matter

Smarter YAML front matter parser, used by metalsmith, Gatsby, Netlify, Assemble, mapbox-gl, phenomic, vuejs vitepress, TinaCMS, Shopify Polaris, Ant Design, Astro, hashicorp, garden, slidev, saber, sourcegraph, and many others. Simple to use, and battle tested. Parses YAML by default but can also parse JSON Front Matter, Coffee Front Matter, TOML Front Matter, and has support for custom parsers. Please follow gray-matter's author: https://github.com/jonschlinkert (by jonschlinkert)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
gray-matter docsify
17 29
3,775 26,611
- 1.4%
1.2 8.2
12 days ago 2 days ago
JavaScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

gray-matter

Posts with mentions or reviews of gray-matter. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-05.
  • Building a flat-file CMS with Angular
    3 projects | dev.to | 5 Mar 2024
    Writing in markdown is super convenient, and supported by just about any text editor. To convert these .md files to browser-ready HTML, I wrote a simple little Node.js script using two great npm packages called gray-matter and showdown.
  • Eleventy vs. Next.js for static site generation
    4 projects | dev.to | 14 Dec 2023
    Next, install gray-matter to extract metadata from the front matter of markdown files, and marked to convert the markdown files to HTML:
  • Exploring the code behind Docusaurus
    4 projects | dev.to | 30 Oct 2023
    It turns out that Docusaurus uses an open source JavaScript parser called gray-matter to parse the front matter from markdown files! After installing gray-matter using npm and them importing it into the markdownUtils.ts file, all it takes is calling the matter method and passing the markdown file contents to get returned an Object with data and content (the data being the front matter and the content being the rest of the markdown file contents).
  • Create an Interactive Table of Contents for a Next.js Blog with Remark
    5 projects | dev.to | 21 Apr 2023
    Although we are building a custom table of contents, we won't have to write everything from scratch. To separate the Markdown/MDX content from the front matter, we'll use the Gray-matter package. It is optional in case you don't have front matter in your Markdown files. To process the Markdown itself, we'll use the Remark package. We'll also need the unist-util-visit package for traversing node trees and mdast-util-to-string for getting the text content of a node.
  • Create your own blog with MDX and NextJS
    2 projects | dev.to | 5 Dec 2022
    In this article we walk you through the process of creating a simple blog app using the popular React framework NextJS, gray-matter and next-mdx-remote.
  • NextJS 13 Blog Starter
    6 projects | dev.to | 14 Nov 2022
    In order to get post information (such as author, title, date, etc.) from our HTML without having them be apart of our rendered post we need a way to parse YAML front matter, this is where gray-matter comes in hand.
  • Loading local markdown blog posts - part 12
    1 project | dev.to | 18 Oct 2022
    To do this, we use the matter npm package.
  • Create a Markdown Editor with Rust and React
    12 projects | dev.to | 13 Oct 2022
    It’s actually not part of the CommonMark spec, so you’ll often need a 3rd party library to parse it out on top of your Markdown parser. In JavaScript we use gray-matter which converts frontmatter into a JS object we can more easily use.
  • Turn a Markdown blog to a simple SSG
    4 projects | dev.to | 30 Jul 2022
    Over the past few weeks, I mostly wrote on how to template a Node.js application with EJS using Express. Then, I wrote an article showing how to create a Markdown blog in Node.js using EJS, Express, gray-matter and markdown-it. Today, I'll combine those tutorials to turn the Markdown blog, from the last tutorial, into a simple SSG.
  • Markdown blog with EJS
    3 projects | dev.to | 25 Jul 2022
    gray-matter, to parse the front matter from the Markdown files

docsify

Posts with mentions or reviews of docsify. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-04.
  • Alternatives to Docusaurus for product documentation
    7 projects | dev.to | 4 Apr 2024
    Docsify is frequently updated; the latest release was on June 24, 2023, and the most recent update was on December 17, 2023. It is MIT-licensed and has an active Discord community.
  • Cookbook for SH-Beginners. Any interest? (building one)
    2 projects | /r/selfhosted | 10 Jul 2023
    okay new plan, does anyone know how to do this docsify on github? i obviously am a noob on github and recently on reddit. I'd like to help where i can but my knowlegde seems to be my handycap. i could provide you a trash-mail, if you need one, but i need a PO (product owner) to manage the git... i have no clue about this yet (pages and functions and stuff)
  • Ask HN: Any Sugestions for Proceures Documentation?
    1 project | news.ycombinator.com | 15 Feb 2023
    The tools to author it aren't that important, frankly. Ask your audience what they're most comfortable using and try to meet them there.

    If the stakeholders are technical, you have more options. If they aren't, I hope you like Google Docs or Word, because if you give them anything other than that or a PDF, they'll probably complain. At worst, yeah, write it in a long Markdown text file and use tools like pandoc to transform that into other formats as needed.

    If you do need a website and you're not generating enterprise-scale amounts of content (and it sounds like you're not) try things that let you avoid needing build steps and infrastructure if at all possible, so you can iterate and deploy changes with as little friction as you can.

    Tools like Docsify[1] can take a pile of Markdown files and serve a site out of them, client- or server-side, without a static build step. Depending on the org, you can get away with GitHub's default rendering of Markdown in a repo. Most static site builds for stuff your scale are overengineered instances of premature optimization.

    Past those initial hurdles, the format and tools challenges are all in maintenance. How can you:

    - most easily keep the content up to date

    - delegate updates as the staff grows or changes

    - proactively distribute updates ASAP to the people who'd most benefit from receiving them

    That's going to depend a lot more on who'll contribute updates, what their technical proficiency's like, and how they prefer to communicate. It might be a shared git repo and RSS or Slack notifications if they're comfortable with those things, and it might be a Google Doc and email if they're like most non-technical stakeholders.

    1: https://docsify.js.org

  • Docsify.js single-page apps are indexable on Google!
    2 projects | dev.to | 28 Jan 2023
  • Library / CMS / framework for documentation?
    2 projects | /r/webdev | 24 Jan 2023
  • How to Build a Personal Webpage from Scratch (In 2022)
    13 projects | news.ycombinator.com | 29 Sep 2022
    Big fan of https://docsify.js.org since theres no need to compile your static site. A small amount of js just renders markdown.
  • Example of Support Guide for End Users
    2 projects | /r/jellyfin | 21 Sep 2022
    If you are searching for examples of an arbitrary Jellyfin support site, visit https://travisflix.com/help/#/support (or help.travisflix.com which redirects to the /help/ URI of the TLD) to take a look at what I have done with docsify on Github Pages.
  • Show HN: Markdown as Web Page/Site
    9 projects | news.ycombinator.com | 11 Aug 2022
  • Phabricator replacement? | Or OpenProject alternative? | issue tracking/code
    53 projects | /r/selfhosted | 2 Aug 2022
    *Leantime - Competitor to OP? Updated recently, uses Docsify, no demo :(
  • I'm a co-founder of an IT agency, and I need help with new ideas.
    2 projects | /r/EntrepreneurRideAlong | 20 Jul 2022
    There are a lot of open-source projects that can help businesses to save time and money. For example, we created a Free Admin panel a few months ago https://github.com/altence/lightence-admin That's an example of free documentation generator https://github.com/docsifyjs/docsify There are a lot more examples. And I want to find an idea of some similar generic solutions that can help various types of businesses

What are some alternatives?

When comparing gray-matter and docsify you can also consider the following projects:

front-matter - Extract YAML front matter from strings

Docusaurus - Easy to maintain open source documentation websites.

react-markdown - Markdown component for React

VuePress - 📝 Minimalistic Vue-powered static site generator

remark - markdown processor powered by plugins part of the @unifiedjs collective

TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

MkDocs - Project documentation with Markdown.

next-markdown-blog - A lightly opinionated, full-featured Next.js blog managed through Git Workflows with markdown files.

BookStack - A platform to create documentation/wiki content built with PHP & Laravel

next-markdown-blog

typedoc - Documentation generator for TypeScript projects.