PEG.js VS deno

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

deno

A modern runtime for JavaScript and TypeScript. (by denoland)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
PEG.js deno
8 448
4,726 92,907
0.0% 0.5%
0.0 9.9
over 2 years ago 1 day ago
JavaScript Rust
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.

PEG.js

Posts with mentions or reviews of PEG.js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-31.
  • Peg.js: Parser Generator for JavaScript
    1 project | news.ycombinator.com | 24 Nov 2023
  • How do you start your own programming language?
    3 projects | /r/learnprogramming | 31 Oct 2022
    Here's a javascript library that lets you generate your own language that compiles to Javascript. https://pegjs.org/ It's a compiler generator. You can either use the command line tool and feed it your grammar (You have to write that) and use the generated parser.js which can then run your program, or use peg.js as a dependency and generate your parser at run time before feeding it your program.
  • My first Vue app - Subtitle offset editor
    1 project | /r/vuejs | 3 Sep 2022
  • Deno in 2022
    3 projects | /r/node | 9 Jul 2022
    The library they're having trouble with is the most common parser generator in javascript, peg.js, which has about 80% of the market
  • UX mockups with TEXT (markdown)
    1 project | /r/SideProject | 31 Mar 2022
    Currently, I have only POC the grammar and language and parser are created using https://pegjs.org/
  • PEG Parsers: sometimes more appropriate than Regex
    1 project | dev.to | 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)[https://dev.to/meseta/advent-of-code-day-18-finally-using-peg-grammar-in-python-in-the-way-it-s-supposed-to-3253], and (here)[https://dev.to/meseta/advent-of-code-day-19-abusing-peg-grammar-in-python-the-way-it-s-not-supposed-to-2beg]). 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 | /r/rpg | 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 | /r/AskProgramming | 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: https://github.com/pegjs/pegjs/tree/master/examples

deno

Posts with mentions or reviews of deno. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-02.
  • Bun - The One Tool for All Your JavaScript/Typescript Project's Needs?
    4 projects | dev.to | 2 Apr 2024
    NodeJS is the dominant Javascript server runtime environment for Javascript and Typescript (sort of) projects. But over the years, we have seen several attempts to build alternative runtime environments such as Deno and Bun, today’s subject, among others.
  • Bun 1.1
    17 projects | news.ycombinator.com | 1 Apr 2024
    https://github.com/denoland/deno/issues is the ideal place -- we try to triage all incoming issues, the more specific the repro the easier it is to address but we will take a look at everything that comes in.
  • I have created a small anti-depression script
    4 projects | dev.to | 5 Mar 2024
    Install Node.js (or Bun, or Deno, or whatever JS runtime you prefer) if it's not there
  • How QUIC is displacing TCP for speed
    1 project | news.ycombinator.com | 9 Feb 2024
    QUIC is very exciting, after seeing what it can do for performance in Cloudflare network and Cloudflare workers, I can't wait to finally see it in Deno[0] 1.41.

    [0] https://github.com/denoland/deno/pull/21942#issuecomment-192...

  • Unison Cloud
    7 projects | news.ycombinator.com | 7 Feb 2024
    So as an end user it's kind of like https://deno.com/ where you buy into a runtime + comes prepacked with DBs (k/v stores), scheduling, and deploy stuff?

    > by storing Unison code in a database, keyed by the hash of that code, we gain a perfect incremental compilation cache which is shared among all developers of a project. This is an absolutely WILD feature, but it's fantastic and hard to go back once you've experienced it. I am basically never waiting around for my code to compile - once code has been parsed and typechecked once, by anyone, it's not touched again until it's changed.

    Interesting. Whats it like upgrading and managing dependencies in that code? I'd assume it gets more complex when it's not just the Union system but 3rd party plugins (stuff interacting with the OS or other libs).

  • Deno in 2023
    8 projects | news.ycombinator.com | 5 Feb 2024
    ~90MB+ at this stage and do now allow compression without erroring out. Deploying ala Golang is not feasible at that level but could well be down the line if this dev branch is picked up again!

    The exe output grew from from ~50MB to plus ~90MB from 2021 to 2024: https://github.com/denoland/deno/discussions/9811 which mean Deno is worse than Node.js's pkg solution by a decent margin.

  • Mini site for recommending songs using Svelte & Deno
    2 projects | dev.to | 3 Feb 2024
    Behind the scenes is a simple Sveltekit-powered server function to fetch a Spotify client token then find a user's recommendation playlist and its track information. A Deno edge function to performs this data fetch and renders server-side Svelte.
  • Supercharge your app with user extensions using Deno JavaScript runtime
    4 projects | dev.to | 24 Jan 2024
    If your application is written in JavaScript, integrating it with JavaScript extensions is a no-brainer. However, Secutils.dev is entirely written in Rust. How would I even begin? Fortunately, I recently came across an excellent blog post series explaining how to implement your JavaScript runtime in a Rust application with Deno:
  • Deno, the next-generation JavaScript runtime
    1 project | news.ycombinator.com | 11 Jan 2024
  • Oxlint – written in Rust – 50-100 Times Faster than ESLint
    13 projects | news.ycombinator.com | 15 Dec 2023

What are some alternatives?

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

nearley - πŸ“œπŸ”œπŸŒ² Simple, fast, powerful parser toolkit for JavaScript.

ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.

peggy - Peggy: Parser generator for JavaScript

typescript-language-server - TypeScript & JavaScript Language Server

Jison - Bison in JavaScript.

pnpm - Fast, disk space efficient package manager

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

esbuild - An extremely fast bundler for the web

Chevrotain - Parser Building Toolkit for JavaScript

bun - Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

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

Koa - Expressive middleware for node.js using ES2017 async functions