chokidar VS parcel

Compare chokidar vs parcel and see what are their differences.

chokidar

Minimal and efficient cross-platform file watching library (by paulmillr)

parcel

The zero configuration build tool for the web. 📦🚀 (by parcel-bundler)
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
chokidar parcel
23 168
10,542 43,115
- 0.2%
5.0 9.4
about 1 month ago 3 days ago
JavaScript JavaScript
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.

chokidar

Posts with mentions or reviews of chokidar. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-18.
  • The best testing setup for frontends, with Playwright and NextJS
    5 projects | dev.to | 18 Apr 2024
    For this, we'll use chokidar - more specifically the chokidar-cli package. chokidar is probably the most useful file watching library for the nodejs ecosystem and it will serve us well.
  • Why Does 'Is-Number' Package Have 59M Weekly Downloads?
    2 projects | news.ycombinator.com | 4 Mar 2024
    tailwindcss -> chokidar -> braces -> fill-range -> to-regex-range -> is-number

    is-number was first published 9 years ago, when these kind of micro-packages were in vogue. braces was added as a dependency to chokidar over 6 years ago [1]. And if it ain't broke, don't fix it. I don't think the average JS dev today is going out and pulling in these deps.

    [1] https://github.com/paulmillr/chokidar/commit/cbdf25563cfff7f...

  • How nodemon works?
    1 project | /r/node | 19 Aug 2023
    The watching magic is really in the https://www.npmjs.com/package/chokidar library
  • Dart 3.1 and a retrospective on functional style programming in Dart
    7 projects | news.ycombinator.com | 17 Aug 2023
    > It’s typical to listen to this stream of events and use chained if-else statements to determine an action based on the type of the events that occur.

    You'd think something like directory watching would have a clear set of events that would make nice objects with consistent meanings, but in my experience file watching gets crazy complicated, and can have all sorts of edge cases.

    Just take a looked here for all the various edge cases that crop up: https://github.com/paulmillr/chokidar/issues

    Then you have linux, windows, macos, and maybe you want to abstract over some underlying implementation like chokidar vs fb/watchman vs webpack/watchpack. Every new OS release could also cause things to change.

    So usually its going to be a bunch of if-else statements hacked together to get around edge cases, and have to be revisited later on.

    Any attempt to abstract this into objects, just obfuscates things. And OO forces you to name things, when in fact they might be un-nameable. `FileSystemModifyEventExceptWhenXAndYAndSometimesZ`.

    The behavior might rely on a series of events together, so the object hierarchy must be re-worked.

    OO has this rosy idea that we just have to come up with the perfect hierarchy, but things change in unexpected ways, and everything must have a descriptive noun.

  • Is there anyway to auto reload the browser page when using express?
    2 projects | /r/learnjavascript | 13 Jun 2023
    Next, you can use a library like chokidar to listen for changes in your source directory. Create a ws server, and whenever a file changes, send a message.
  • How does nodemon works under the hood?
    4 projects | /r/node | 14 Mar 2023
    As another has mentioned, nodemon uses chokidar under the hood for the actual file watching part.
  • Turbowatch – Extremely fast alternative to Nodemon
    7 projects | /r/javascript | 13 Mar 2023
    At the end of the day, ironically, Nodemon does not even implement file watching functionality. It is a thin wrapper around chokidar (see source code), and the way it is being used is neither efficient (CPU and your battery usage) or performant. So it is not a false argument, just perhaps not the most appealing.
  • dúvida provavelmente idiota
    1 project | /r/brdev | 23 Jan 2023
  • How is React's Hot Module Reloading implemented (at a medium-high level of detail)?
    3 projects | /r/reactjs | 15 Nov 2022
    for file watching, it might use something similar to https://www.npmjs.com/package/chokidar
  • Setup TailwindCSS, postcss and esbuild on Rails 7
    12 projects | dev.to | 12 Oct 2022
    First, we need to install chokidar to enable watching and automatically refreshing our files.

parcel

Posts with mentions or reviews of parcel. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-20.
  • Getting started with TiniJS framework
    7 projects | dev.to | 20 Apr 2024
    Homepage: https://parceljs.org/
  • React Server Components Example with Next.js
    9 projects | dev.to | 16 Apr 2024
    In the Changelog Podcast episode referenced above, Dan Abramov alluded to Parcel working on RSC support as well. I couldn’t find much to back up that claim aside from a GitHub issue discussing directives and a social media post by Devon Govett (creator of Parcel), so I can’t say for sure if Parcel is currently a viable option for developing with RSCs.
  • JS Toolbox 2024: Bundlers and Test Frameworks
    10 projects | dev.to | 3 Mar 2024
    Parcel 2 emphasizes a zero-configuration approach to bundling web applications. It's a powerful tool that offers a hassle-free developer experience, focusing on simplicity and speed.
  • Build a Vite 5 backend integration with Flask
    11 projects | dev.to | 25 Feb 2024
    Once you build a simple Vite backend integration, try not to complicate Vite's configuration unless you absolutely must. Vite has become one of the most popular bundlers in the frontend space, but it wasn't the first and it certainly won't be the last. In my 7 years of building for the web, I've used Grunt, Gulp, Webpack, esbuild, and Parcel. Snowpack and Rome came-and-went before I ever had a chance to try them. Bun is vying for the spot of The New Hotness in bundling, Rome has been forked into Biome, and Vercel is building a Rust-based Webpack alternative.
  • What is JSDoc and why you may not need typescript for your next project?
    8 projects | dev.to | 22 Jan 2024
    Parcel
  • Building Node.js applications without dependencies
    6 projects | news.ycombinator.com | 13 Dec 2023
    I’ve tried something similar on the frontend side: I decided to build a UI for Ollama.ai using only HTML, CSS, and JS (Single-Page Application). The goal is to learn something new and have zero runtime dependencies on other projects and NPM modules. Only Node and Parcel.js (https://parceljs.org/) are needed during development for serving files, bundling, etc. The only runtime dependency is a modern browser.

    Here's what I have found so far:

    - JavaScript (vanilla) is a viable alternative to React.js

  • 11 Ways to Optimize Your Website
    12 projects | dev.to | 12 Nov 2023
    Besides Webpack, there are many other popular web bundlers available, such as Parcel, Esbuild, Rollup, and more. They all have their own unique features and strengths, and you should make your decision based on the needs and requirements of your specific project. Please refer to their official websites for details.
  • Bun vs Node.js: Everything you need to know
    7 projects | dev.to | 21 Sep 2023
    In the Node.js ecosystem, bundling is typically handled by third-party tools rather than Node.js itself. Some of the most popular bundlers in the Node.js world include Webpack, Rollup, and Parcel, offering features like code splitting, tree shaking, and hot module replacement.
  • JavaScript Gom Jabbar
    12 projects | news.ycombinator.com | 2 Jul 2023
    There are projects attempting to do more things. I've really enjoyed Parcel (https://parceljs.org). But it won't handle things like linting or unit testing, which you may or may not want. Vite is also pretty popular (https://vitejs.dev/), and it has a test runner.

    Thing is, most of the problems described in the post aren't related to low-JS front-end libraries like HTMX or alpine. You can write React without a linter, bundler, build tool, unit testing, or linting. But with any of these projects at scale, you start wanting more:

    - If you want to write unit tests in JS, you need to choose a test runner (probably Jest or Vitest -- until the built-in node testing module becomes more common).

    - If you want linting, you need a linter (probably Eslint). If you want type safety, you need a type checker (probably Typescript).

    - If you want to create smaller JS files to ship to production and to automatically handle assets, you need a bundler.

    - If you want to use new language features while supporting old browsers, you need polyfills.

    - If you want to use all these things together, you need something to bring it together (like Webpack).

    So it really depends what you need! You may not need any. But as you can imagine, in many professional projects with multiple developers it's very nice to have unit tests, linting, and type checking :) (And you start caring about end-user performance a lot more, in which case optimizing the shipped bundle is important.)

    Take all that, and then compare to a language like Rust, which has most of the "ecosystem stuff" built-in. In Rust, you get the test runner, the linter, dependency manager, type checker, and documentation tool all included. Easy! Thankfully, Rust doesn't have to care about whether users support modern language features (because it compiles down to lower code ahead of time), or whether the binary shipped to the client is optimally organized for downloading immediately over the internet.

    It's a problem in JS because A) you have to care about more problems than many other languages since JS needs to load instantly over the wire in a web browser, and B) there is a huge amount of choice and not a lot of standardization in web tools. (And what standardization there is (Node, npm), there are still competitors trying to even further reduce the pain points.)

    I think that in ten more years, we'll be in a better place, because there is push back (like this post!) against these problems, which will encourage more tools trying to solve the explosion of tools. Which seems counterintuitive, but these tools were created to solve very real problems. So I see it as a pendulum which has swung too far, but will likely swing back to a more balanced place. And you see that with tools like Vite gaining popularity.

  • Whatever It Takes
    1 project | dev.to | 24 Jun 2023
    My first challenge here was the migration from vanilla JS to utilizing tools like Parcel and React. React, I was a bit familiar with; however, I had never heard of Parcel.js in my life. Several days were spent troubleshooting why my build process was not working on Netlify before I finally found out that I had to set up my Netlify Build Settings specifically for using a bundler like Parcel.js

What are some alternatives?

When comparing chokidar and parcel you can also consider the following projects:

Filehound - Flexible and fluent interface for searching the file system

vite - Next generation frontend tooling. It's fast!

Nodemon.io - Monitor for any changes in your node.js application and automatically restart the server - perfect for development

gulp - A toolkit to automate & enhance your workflow

fs-extra - Node.js: extra methods for the fs object like copy(), remove(), mkdirs()

esbuild - An extremely fast bundler for the web

Watch-fn

Next.js - The React Framework

filenamify - Convert a string to a valid safe filename

webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

globby - User-friendly glob matching

Rollup - Next-generation ES module bundler