html5ever VS serenity

Compare html5ever vs serenity and see what are their differences.

html5ever

High-performance browser-grade HTML5 parser (by servo)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
html5ever serenity
5 240
1,987 28,823
1.3% 1.7%
7.6 10.0
10 days ago about 20 hours ago
Rust C++
GNU General Public License v3.0 or later BSD 2-clause "Simplified" 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.

html5ever

Posts with mentions or reviews of html5ever. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-22.
  • I'm fed up with it, so I'm writing a browser
    12 projects | news.ycombinator.com | 22 Sep 2023
    Would you consider using some libraries in your project? There are lots of good ones in the Rust ecosystem, and many of them are not part of any existing browsers.

    For example:

    - https://github.com/servo/html5ever (HTML parsing - note: this is used in Servo)

    - https://github.com/parcel-bundler/lightningcss (CSS parsing)

    - https://github.com/DioxusLabs/taffy (web layout)

    - https://github.com/pop-os/cosmic-text (text layout and rendering)

    Obviously you should be free to work on whatever you like, but just as a benchmark on the scope of your project: I spent ~6 months implementing just the CSS Grid algorithm in Taffy last year. An entire browser from literal scratch is probably a 10 year project for one person.

  • Ask HN: A fast, Rust HTML parser that works?
    4 projects | news.ycombinator.com | 23 Feb 2023
    So I'm doing some web scraping in Rust, and so I will need to parse HTML. [scraper](https://docs.rs/scraper/latest/scraper/) (which uses [html5ever](https://github.com/servo/html5ever)) is doing fine except that it's the bottleneck of my application.

    So I need a faster parser. I've tried [tl](https://docs.rs/tl/latest/tl/) which would've been perfect except that it doesn't actually work on the HTML I have. When I try to `query_selector` the elements I need, it returns nothing.

    [Kuchiki](https://docs.rs/kuchiki/latest/kuchiki/) is abandonded.

    I couldn't figure out how to get [lol-html](https://github.com/cloudflare/lol-html) to work for me (it's designed for re-writing HTML, whatever that means). It doesn't seem to have an API to extract the inner text of an element.

    [html5gum](https://github.com/untitaker/html5gum) seems to be just an HTML tokenizer, or otherwise just too low-level. I have not yet tried [quick-xml](https://github.com/tafia/quick-xml/) but judging from the README, it's pretty low-level too. I mean, if these are the only options left then I will try them. Otherwise, I would love to use a parser that's faster but as ergonomic as `scraper` or `tl`.

    At this point, I would be happy with an Lxml bridge/port of some sort. I don't need to mutate HTML, just parse and read data from it.

  • Any HTML parsing resources without going straight to W3C?
    1 project | /r/rust | 31 Aug 2022
  • Iā€™m developing rust module like google pagespeed nginx module, which will rewrite html for each request it received for dynamic optimisation. what library is fastest to do this? Iā€™m using this now
    1 project | /r/rust | 30 Aug 2021
  • What is the best way to parse HTML tags?
    1 project | /r/rust | 15 Jul 2021
    See https://github.com/servo/html5ever/tree/master/rcdom for an example implementation to imitate.

serenity

Posts with mentions or reviews of serenity. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-09.
  • Why does part of the Windows 98 Setup program look older than the rest?
    5 projects | news.ycombinator.com | 9 Apr 2024
    SerenityOS replicates that look and feel. It is also implemented in a dialect of C++ that adheres to some of the good parts of C++98: https://serenityos.org
  • SerenityOS
    1 project | news.ycombinator.com | 3 Apr 2024
  • XZ: A Microcosm of the interactions in Open Source projects
    7 projects | news.ycombinator.com | 30 Mar 2024
    One example of a useful technique

    https://serenityos.org/ apparently only makes source code available. There are no binary images of the OS to install

    I think Andreas said this functions like a little test -- if you're not willing to build it from source, then you probably wouldn't be a good contributor anyway.

    ---

    Likewise, my shell project provides source tarballs only, right now - https://www.oilshell.org/release/0.21.0/

    It is packaged in a number of places, which I appreciate. That means some other people are willing to do some work.

    And they provide good feedback.

    I would like it to be more widely available, but yeah I definitely see that you need to "gate" peanut gallery feedback a bit, because it takes up a lot of time.

    Of course, it's a tricky balance, because you also want feedback from casual users, to make the project better.

  • Fuzzing Ladybird with tools from Google Project Zero
    2 projects | news.ycombinator.com | 16 Mar 2024
    Indeed, given the existence of `JS::NonnullGCPtr`, `JS::GcPtr` intentionally corresponds to a nullable pointer, so it seems dangerous to convert one to a reference without a null-check.

    That said, a naive code search finds what *may* be more cases of this pattern:

    https://github.com/search?q=repo%3ASerenityOS%2Fserenity+%2F...

    Eg: https://github.com/SerenityOS/serenity/blob/a68b134e6dea5065... -> https://github.com/SerenityOS/serenity/blob/a68b134e6dea5065...

    In some of those search results, it is fine because there is a preceding null-check, and obviously I know nothing about this code other than this naive search result, but perhaps it would be prudent to vet all of them.

  • The Ladybird Browser Project
    8 projects | news.ycombinator.com | 6 Feb 2024
    It is a SerenityOS project. You can find the answer to that question in their primary project's FAQ[1].

    1. https://github.com/SerenityOS/serenity/blob/master/Documenta...

  • Sane C++ Libraries
    7 projects | news.ycombinator.com | 27 Jan 2024
    https://github.com/SerenityOS/serenity

    The best way to write proper exception free C++ is not to use the C++ Standard Library.

  • Serenum: OS from scratch to save computers [video]
    1 project | news.ycombinator.com | 16 Jan 2024
    I initially confused it with Serenity OS prior to watching the video: https://github.com/SerenityOS/serenity
  • Ask HN: What side projects landed you a job?
    62 projects | news.ycombinator.com | 3 Dec 2023
    My contributions to SerenityOS[0] helped me get my current job. My team lead (who was also my interviewer) was interested in what I did since I listed some of it in my CV, and I showed him some PRs I made and explained what went into each of them. It was really exciting because I didn't have professional experience with low-level development, and basically got the job due to hobby programming.

    [0]: https://github.com/SerenityOS/serenity/pulls?q=is%3Apr+autho...

  • SerenityOS ā€“ a love letter to '90s user interfaces with a custom Unix-like core
    1 project | news.ycombinator.com | 30 Nov 2023
  • Bring garbage collected programming languages efficiently to WebAssembly
    16 projects | news.ycombinator.com | 3 Nov 2023
    Definitely not "literally impossible", just a great deal of work. https://github.com/SerenityOS/serenity/tree/master/Ladybird

What are some alternatives?

When comparing html5ever and serenity you can also consider the following projects:

rust-htmlescape - A HTML entity encoding library for Rust

Chicago95 - A rendition of everyone's favorite 1995 Microsoft operating system for Linux.

serde - Serialization framework for Rust

rust-raspberrypi-OS-tutorials - :books: Learn to write an embedded OS in Rust :crab:

byteorder - Rust library for reading/writing numbers in big-endian and little-endian.

haiku - The Haiku operating system. (Pull requests will be ignored; patches may be sent to https://review.haiku-os.org).

retrokit - :joystick: Bring back the old Web(Kit) and make it secure

linux - Linux kernel source tree

bincode - A binary encoder / decoder implementation in Rust.

reactos - A free Windows-compatible Operating System

tersenet - A new type of JavaScript-free light-weight fast browser built on rst and web assembly. Does not actually exist.

redox - Mirror of https://gitlab.redox-os.org/redox-os/redox