JavaScript Parser

Open-source JavaScript projects categorized as Parser

Top 23 JavaScript Parser Projects

  1. marked

    A markdown parser and compiler. Built for speed.

    Project mention: How to convert Markdown to PDF | dev.to | 2025-02-23

    Another option is to go with a purpose-built tool, like SlickPDF. I built slickpdf.com for the very purpose of going from Markdown to PDF. Give it a try!. It uses marked.js under the hood, and presents a live preview rendered on a Letter-size (8.5 in. x 11 in.) page.

  2. Civic Auth

    Auth in Less Than 5 Minutes. Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today.

    Civic Auth logo
  3. terser

    🗜 JavaScript parser, mangler and compressor toolkit for ES6+

    Project mention: How to Optimize Website Performance on a Budget | dev.to | 2025-03-05

    Use free tools like Terser for JavaScript and CSSNano for CSS:

  4. astexplorer

    A web tool to explore the ASTs generated by various parsers.

    Project mention: Getting Started with Tree-sitter: Syntax Trees and Express API Parsing | dev.to | 2025-04-14

    For an interactive experience with ASTs, you can explore AST Explorer, a tool that lets you experiment with different parsers and explore the abstract syntax trees of various code samples in real-time.

  5. remarkable

    Markdown parser, done right. Commonmark support, extensions, syntax plugins, high speed - all in one. Gulp and metalsmith plugins available. Used by Facebook, Docusaurus and many others! Use https://github.com/breakdance/breakdance for HTML-to-markdown conversion. Use https://github.com/jonschlinkert/markdown-toc to generate a table of contents.

  6. parser

    📜 Extract meaningful content from the chaos of a web page

  7. body-parser

    Node.js body parsing middleware

    Project mention: The "@ts-stack/body-parser" package passes the parsing results via a Promise | dev.to | 2024-07-22

    The package @ts-stack/body-parser is a fork of body-parser - the native ExpressJS package. It is written in TypeScript in ESM format, without support for older versions of Node.js < v20.6.0. To install it, run the following command:

  8. ohm

    A library and language for building parsers, interpreters, compilers, etc.

  9. SurveyJS

    JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor. Add the SurveyJS white-label form builder to your JavaScript app (React/Angular/Vue3). Build complex JSON forms without coding. Fully customizable, works with any backend, perfect for data-heavy apps. Learn more.

    SurveyJS logo
  10. globalize

    A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data

  11. nearley

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

  12. posthtml

    PostHTML is a tool to transform HTML/XML with JS plugins

  13. fast-xml-parser

    Validate XML, Parse XML and Build XML rapidly without C/C++ based libraries and no callback.

    Project mention: Fast-XML-Parser: Validate XML, Parse XML and Build XML Rapidly | news.ycombinator.com | 2024-09-11
  14. snarkdown

    :smirk_cat: A snarky 1kb Markdown parser written in JavaScript

  15. csstree

    A tool set for CSS including fast detailed parser, walker, generator and lexer based on W3C specs and browser implementations

  16. google-libphonenumber

    The up-to-date and reliable Google's libphonenumber package for node.js.

  17. xml-js

    Converter utility between XML text and Javascript object / JSON text.

  18. arg

    Simple argument parsing

  19. expr-eval

    Mathematical expression evaluator in JavaScript

  20. swagger-parser

    Swagger 2.0 and OpenAPI 3.0 parser/validator

  21. exifr

    📷 The fastest and most versatile JS EXIF reading library.

    Project mention: Show HN: Snap Scope – Visualize Lens Focal Length Distribution from EXIF Data | news.ycombinator.com | 2025-01-24

    Thank you for such insightful feedback! I should clarify that this tool was designed as a web-based solution to avoid the traditional installation or server upload requirements, aiming for maximum accessibility. While I hadn't considered a CLI approach initially, you make an excellent point about its efficiency. However, I'm still weighing the trade-off between performance and accessibility.

    I completely understand your concerns about the drag-and-drop stability with thousands of files. The issue you're experiencing with Vivaldi might be related to this. Would you mind trying the file picker button instead? I've been unable to reproduce the issue on my Apple M1 MacBook with the same browser, which makes it challenging to provide an immediate fix. I apologize for the inconvenience.

    Regarding EXIF extraction, we're using the 'exifr' npm library, which actually works exactly as you suggested - it only reads the beginning portion of the file to extract EXIF data, even in the browser. You can learn more about it here: https://www.npmjs.com/package/exifr

  22. peggy

    Peggy: Parser generator for JavaScript

    Project mention: Ohm: A user-friendly parsing toolkit for JavaScript and TypeScript | news.ycombinator.com | 2025-02-11

    I am jealous of kids these days learning the theory of parsing. There are so many great resources out there! Ohm in particular looks great, attention to detail, care for the theory. Makes me wish I had a project to try it out.

    I am a big fan of PEG parsers. They do come with their set issues and difficulties but I always found them great to work with. My to go tool (also a PEG parser similar to Ohm) used to be pegjs now https://peggyjs.org/

    When I needed speed, or a more classical take, I would use jison. But I think today I would have to find a good reason not to build a hand made parser.

  23. himalaya

    JavaScript HTML to JSON Parser (by andrejewski)

  24. Kuiper

    Digital Forensics Investigation Platform

  25. webassemblyjs

    Toolchain for WebAssembly

  26. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

JavaScript Parser discussion

Log in or Post with

JavaScript Parser related posts

  • Binary Formats Are Better Than JSON in Browsers

    1 project | news.ycombinator.com | 14 May 2025
  • Tree-Sitter: From Code to Syntax-Tree

    1 project | dev.to | 11 May 2025
  • Getting Started with Tree-sitter: Syntax Trees and Express API Parsing

    1 project | dev.to | 14 Apr 2025
  • Ohm: A user-friendly parsing toolkit for JavaScript and TypeScript

    4 projects | news.ycombinator.com | 11 Feb 2025
  • Swc4j: SWC for Java

    4 projects | news.ycombinator.com | 3 Jan 2025
  • Types are the basic tool of software design

    5 projects | news.ycombinator.com | 3 Jan 2025
  • Building a Stripe-like Search Language from Scratch

    1 project | dev.to | 19 Dec 2024
  • A note from our sponsor - SurveyJS
    surveyjs.io | 14 May 2025
    Add the SurveyJS white-label form builder to your JavaScript app (React/Angular/Vue3). Build complex JSON forms without coding. Fully customizable, works with any backend, perfect for data-heavy apps. Learn more. Learn more →

Index

What are some of the best open-source Parser projects in JavaScript? This list will help you:

# Project Stars
1 marked 34,574
2 terser 8,955
3 astexplorer 6,346
4 remarkable 5,800
5 parser 5,613
6 body-parser 5,494
7 ohm 5,293
8 globalize 4,804
9 nearley 3,681
10 posthtml 2,945
11 fast-xml-parser 2,761
12 snarkdown 2,315
13 csstree 1,993
14 google-libphonenumber 1,440
15 xml-js 1,319
16 arg 1,278
17 expr-eval 1,245
18 swagger-parser 1,136
19 exifr 1,113
20 peggy 1,057
21 himalaya 928
22 Kuiper 819
23 webassemblyjs 802

Sponsored
Auth in Less Than 5 Minutes
Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today.
www.civic.com

Did you know that JavaScript is
the 3rd most popular programming language
based on number of references?