marked VS PEG.js

Compare marked vs PEG.js and see what are their differences.


A markdown parser and compiler. Built for speed. (by markedjs)


PEG.js: Parser generator for JavaScript (by pegjs)
Our great sponsors
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • OPS - Build and Run Open Source Unikernels
  • Scout APM - Less time debugging, more time building
marked PEG.js
24 3
26,743 4,205
1.2% 1.1%
9.3 0.0
6 days ago 3 months ago
JavaScript JavaScript
GNU General Public License v3.0 or later 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.


Posts with mentions or reviews of marked. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-12-12.


Posts with mentions or reviews of PEG.js. We have used some of these posts to build our list of alternatives and similar projects.
  • PEG Parsers: sometimes more appropriate than Regex
    1 project | | 22 Aug 2021
    In past blog posts, where I've written about PEG, I've used Parsimonious in Python, such as three of my solutions to the 2020 Advent Of Code challenges (here, (here)[], and (here)[]). This time, because the rest of the website is javascript, I will be using PEG.js instead to avoid adding an extra programming language to the codebase.
  • Formal Logic Rules for a computer-assisted RPG
    1 project | | 6 Jun 2021
    Update: I started writing a grammar for this language in PEG using PEG.js. This was super fun, I'll take a stab at an interpreter next, that should be much harder.
  • I'd like to ask you guys a question, how or in what way is a Programming Language made?
    1 project | | 4 Apr 2021
    I was going to post the same thing. This really helped me understand the concepts better back in the day. They also have examples for some popular languages on their github:

What are some alternatives?

When comparing marked and PEG.js you can also consider the following projects:

nearley - 📜🔜🌲 Simple, fast, powerful parser toolkit for JavaScript.

markdown-it - Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed

remark - remark is a popular tool that transforms markdown with plugins. These plugins can inspect and change your markup. You can use remark on the server, the client, CLIs, deno, etc.

Jison - Bison in JavaScript.

js-yaml - JavaScript YAML parser and dumper. Very fast.

Chevrotain - Parser Building Toolkit for JavaScript

peggy - Peggy: Parser generator for JavaScript

csv-parser - Streaming csv parser inspired by binary-csv that aims to be faster than everyone else

parse-json - Parse JSON with more helpful errors

Jinja2 - A very fast and expressive template engine.