ref VS lightningcss

Compare ref vs lightningcss and see what are their differences.

ref

Turn Buffer instances into "pointers" (by TooTallNate)

lightningcss

An extremely fast CSS parser, transformer, bundler, and minifier written in Rust. (by parcel-bundler)
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
ref lightningcss
1 12
458 6,886
0.9% 2.4%
2.7 8.7
over 1 year ago 9 days ago
JavaScript Rust
MIT License Mozilla Public License 2.0
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.

ref

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

lightningcss

Posts with mentions or reviews of lightningcss. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-09-15.
  • CSSnano
    4 projects | news.ycombinator.com | 15 Sep 2024
    We tried LightningCSS and it gave buggy output for us because it doesn't keep track of property ordering. I wouldn't use it until that's fixed.

    https://github.com/parcel-bundler/lightningcss/issues/547

    https://github.com/parcel-bundler/lightningcss/issues/572

  • 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.

  • LightningCSS Benchmark
    1 project | news.ycombinator.com | 28 Aug 2023
  • We're building a browser when it's supposed to be impossible
    13 projects | news.ycombinator.com | 11 Apr 2023
    Libraries for a lot of this stuff exist (albeit in many cases not very mature yet):

    - https://github.com/pop-os/cosmic-text does text layout (which Taffy explicitly considers out of scope)

    - https://github.com/AccessKit/accesskit does accessibility

    - https://github.com/servo/rust-cssparser does value-agnostic CSS parsing (it will parse the general syntax but leaves value parsing up to the user, meaning you can easily add support for whatever properties you what). Libraries like https://github.com/parcel-bundler/lightningcss implement parsing for the standard css properties.

    - There are crates like https://github.com/BurntSushi/bstr and https://docs.rs/wtf8/latest/wtf8/ for working with non-unicode text

    We are planning to add a C API to Taffy, but tbh I feel like C is not very good for this kind of modularised approach. You really want to be able to expose complex APIs with enforced type safety and this isn't possible with C.

  • Help with "returns a value referencing data owned by the current function"
    1 project | /r/learnrust | 14 Mar 2023
    Background: I encountered this problem using lightningcss.
  • On Using Rust in Parcel and Vitest
    2 projects | /r/rust | 28 Feb 2023
    You can do it - that's actually exactly what my project is doing. I have a single repository with a Rust project, that builds the .wasm file (+ .d.ts + .js) using wasm-pack, and a Node.js project, that uses this .wasm file. There's no problem in packing that and exposing as a npm package. See parcel-bundler/lightningcss for a full blown example (it's not using wasm-pack but builds the Rust project directly).
  • An fast CSS parser, transformer, bundler, and minifier written in Rust
    1 project | news.ycombinator.com | 13 Feb 2023
  • Parcel-Css - A CSS parser, transformer, and minifier written in Rust.
    1 project | /r/github_trends | 17 Apr 2022
  • ParcelCSS – A CSS parser, transformer, and minifier written in Rust
    1 project | /r/CKsTechNews | 18 Jan 2022
    1 project | news.ycombinator.com | 18 Jan 2022

What are some alternatives?

When comparing ref and lightningcss you can also consider the following projects:

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

PostCSS - Transforming styles with JS plugins

URI.js - Javascript URL mutation library

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

json-query - Retrieves values from JSON objects for data binding [GET https://api.github.com/repos/auditassistant/json-query: 404 - Not Found // See: https://docs.github.com/rest/repos/repos#get-a-repository]

swc - Rust-based platform for the Web

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured