lit VS Vue.js

Compare lit vs Vue.js and see what are their differences.

lit

Lit is a simple library for building fast, lightweight web components. (by lit)

Vue.js

This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core (by vuejs)
SurveyJS: Build JSON-Driven Surveys and Forms with Full Data Control
Add the SurveyJS UI components to your JS app (React/Angular/Vue3). Securely collect and analyze data without sending it to 3rd-party servers. Fully customizable, works with any backend, and ideal for data-heavy apps. Learn more.
surveyjs.io
featured
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.
www.influxdata.com
featured
lit Vue.js
189 386
20,928 209,543
1.5% 0.0%
8.6 6.0
6 days ago about 1 year ago
TypeScript TypeScript
BSD 3-clause "New" or "Revised" 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.

lit

Posts with mentions or reviews of lit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-10-19.
  • πŸ“» I built an infinite 90s boombox with Gemini + Lyria (and it has an AI DJ!)
    1 project | dev.to | 17 Nov 2025
    Framework: Lit (Web Components) + Vite
  • When to emit events for stateful components
    2 projects | dev.to | 19 Oct 2025
    This decision is a bit tricky to explain, so Iβ€˜ll show some code (in Lit because thatβ€˜s what I like and use daily.
  • How does one build large front end apps without using a framework like React?
    12 projects | news.ycombinator.com | 17 Oct 2025
    https://developer.mozilla.org/docs/Web/API/Web_components

    If that's not enough, Lit enhances it a bit such that either LitElement and/or litHtml can accommodate whichever style you want: https://lit.dev/

  • Ask HN: What Are You Working On? (October 2025)
    123 projects | news.ycombinator.com | 12 Oct 2025
    I could talk for days on all the peculiar bugs to resolve. Once the alpha stabilizes I have drafts to publish on several topics.

    You actually nailed the major pain points. Particularly window focus and state management. I've spent months solving this problem alone.

    - Applications data list: Getting the list is easy! Finding out which apps in that list are "real" apps isn't. Getting icons isn't. Reliably getting information on app state isn't. Finding out why something doesn't work right is as painful as can be. Doing all this in a performant way is a nightmare.

    - Applications menu renderer: Rendering the list for the menu is easy enough after the macOS app sends the data over via socket. The frontend is just web sockets and web components under the hood (https://lit.dev). The difficult part was converting app icons to PNG, which is awfully slow. So a cache-warmup stage on startup finds all apps, converts their icons to png, and caches them to the app directory for read.

    - Window state: again, by far the worst and it isn't even close. Bugs galore. The biggest issue was overriding macOS core behavior on what a window is, when it's focused, and how to communicate its events reliably to the app. Although I did include a couple private APIs to achieve this, you can get pretty far by overriding Window class types in ways that I don't think were intended (lol). There is definitely trickery required here for it to work correctly.

    One bug that still makes me chuckle today.. anything can be a window in macOS. I'm writing this on Firefox now, and if I hover over a tab and a tooltip pops up - that's a window. So a fair amount of time has gone into determining _what_ these apps are doing and why. Then accounting for that to clean up a finalized list of windows that should show up in the taskbar. The "Accessibility Inspector" app comes standard on macOS and was helpful for debugging this, but it was a pain regardless.

  • Lit: a library for building fast, lightweight web components
    12 projects | news.ycombinator.com | 2 Sep 2025
    Elements are kept stable as long as the template containing them is rendered.

    The template docs try to get this across by saying that Lit "re-render only the parts of template that have changed." Maybe that needs more detail.

    There are details here: https://github.com/lit/lit/blob/main/dev-docs/design/how-lit...

  • Show HN: Lit-Toaster – Notifications for Lit Web Components
    1 project | news.ycombinator.com | 15 Aug 2025
    Here’s a library for creating toast notifications in Lit Web Components.

    Feel free to contribute, leave a like, or share your feedback.

    If unfamiliar with Lit, here's link to docs: https://lit.dev/

  • The time is right for a DOM templating API
    10 projects | news.ycombinator.com | 26 Jun 2025
    The author was a core contributor of Google's Lit project: https://github.com/lit/lit
  • A novel approach to reusable web components
    11 projects | news.ycombinator.com | 16 Jun 2025
    Angular has nothing to do with web components. It isn't even a way to write web components.

    If anything is the "Google blessed" way of writing web components (Google doesn't really work that way), it's Lit: https://lit.dev/

  • library ECV-COMPONENT
    2 projects | dev.to | 29 May 2025
    It is a set of Web Componentes created using the Lit Element library, aiming to reuse, speed up, and standardize project development for the sector.
  • Plain Vanilla Web – Guide for de-frameworking yourself
    13 projects | news.ycombinator.com | 11 May 2025
    some people cheat by using web components but with Lit Elements. https://lit.dev/

Vue.js

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

What are some alternatives?

When comparing lit and Vue.js you can also consider the following projects:

Svelte - web development for the rest of us

React - The library for web and native user interfaces.

Preact - βš›οΈ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.

Angular - Deliver web apps with confidence πŸš€

Backbone.js - Give your JS App some Backbone with Models, Views, Collections, and Events

SurveyJS: Build JSON-Driven Surveys and Forms with Full Data Control
Add the SurveyJS UI components to your JS app (React/Angular/Vue3). Securely collect and analyze data without sending it to 3rd-party servers. Fully customizable, works with any backend, and ideal for data-heavy apps. Learn more.
surveyjs.io
featured
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.
www.influxdata.com
featured

Did you know that TypeScript is
the 1st most popular programming language
based on number of references?