JavaScript Dom

Open-source JavaScript projects categorized as Dom

Top 23 JavaScript Dom Projects

  1. Preact

    ⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.

    Project mention: Show HN: TinyJs React like framework in 35 lines of code | news.ycombinator.com | 2025-01-26

    Check out "preact" if you haven't already [0]

    [0] - https://preactjs.com/

  2. CodeRabbit

    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 logo
  3. DOMPurify

    DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:

    Project mention: Your rich text could be a cross-site scripting vulnerability | dev.to | 2024-12-16

    Let's take a look at how we implement sanitization in the secure version of our vulnerable application. Since this application is primarily written using JavaScript, we use the dompurify library for the client side and the isomorphic-dompurify library for server-side sanitization. In the app.js program that acts as our web server, you will find an express endpoint /sanitized with a GET and POST implementation:

  4. marko

    A declarative, HTML-based language that makes building web apps fun

    Project mention: Mdx – Execute Your Markdown Code Blocks, Now in Go | news.ycombinator.com | 2024-10-25
  5. dom-to-image

    Generates an image from a DOM node using HTML5 canvas

  6. cash

    An absurdly small jQuery alternative for modern browsers. (by fabiospampinato)

    Project mention: Cash: A small jQuery alternative for modern browsers | news.ycombinator.com | 2024-11-02

    Back in the days when trying to slim down JS I used https://github.com/filamentgroup/shoestring Main reason was because they had offered a custom build to only add what you really need.

    It looks like cash has that as well, just bit more hidden in the documentation https://github.com/fabiospampinato/cash/blob/master/docs/par... If I'd use it I'd give that a try.

    Somehow I still think going with what the browsers have to offer nowadays is a better option - actually it's really good and jQuery isn't really needed anymore. Especially when even the small jQuery alternative is still 6kB, while Preact, a react like lib, is only half the size.

  7. Choo

    :steam_locomotive::train: - sturdy 4kb frontend framework

  8. imba

    🐤 The friendly full-stack language

    Project mention: Tailwind V4 Is Finally Out | news.ycombinator.com | 2025-01-22

    Personally I'm not interested in using Tailwind but my main criticism is that it didn't go far enough in its approach.

    Instead of using classes (which are extremely limiting) they should have created their own language like Imba did (inspired by TW).

    https://imba.io/

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. jest-dom

    :owl: Custom jest matchers to test the state of the DOM

    Project mention: Unit tests in React with Jest and Testing Library | dev.to | 2024-04-29

    Tests structure Queries Roles User events Matchers Jest Matchers testing-library Mock functions

  11. van

    🍦 VanJS: World's smallest reactive UI framework. Incredibly Powerful, Insanely Small - Everyone can build a useful UI app in an hour.

    Project mention: Vanillajsx.com | news.ycombinator.com | 2024-08-16

    VanJS deserves a mention here! https://vanjs.org/

    Another interesting thing is that other JSX libraries like Solid.JS also return DOM nodes, and I love that this idea is gaining traction

    The closer we get to the platform we're using, the better. Being removed by layers of abstractions CAN be useful, but in practice, I haven't found a use for abstracting away the platform. (yet.)

    Maybe huge projects like Facebook benefit from this tho (which I haven't worked on)

  12. goober

    🥜 goober, a less than 1KB 🎉 css-in-js alternative with a familiar API

  13. canjs

    Build CRUD apps in fewer lines of code.

  14. nipplejs

    :video_game: A virtual joystick for touch capable interfaces.

  15. holmes

    Fast and easy searching inside a page (by Haroenv)

  16. curtainsjs

    curtains.js is a lightweight vanilla WebGL javascript library that turns HTML DOM elements into interactive textured planes.

  17. surreal

    🗿 Mini jQuery alternative. Dependency-free animations. Locality of Behavior. Use one element or arrays transparently. Pairs with htmx. Vanilla querySelector() but better!

  18. element-resize-detector

    Optimized cross-browser resize listener for elements.

  19. jquery-to-javascript-converter

    Automatically finds jQuery methods from existing projects and generates vanilla js alternatives.

    Project mention: Show HN: Auto-generate JavaScript alternatives for jQuery functions | news.ycombinator.com | 2024-05-16
  20. sentineljs

    Detect new DOM nodes using CSS selectors (650 bytes)

    Project mention: Show HN: I made a CLI tool to create web extensions with no build configuration | news.ycombinator.com | 2024-04-30
  21. hyperx

    🏷 - tagged template string virtual dom builder

  22. arrive

    Watch for DOM elements creation and removal

  23. nanohtml

    :dragon: HTML template strings for the Browser with support for Server Side Rendering in Node.

  24. motus

    Animation library that mimics CSS keyframes when scrolling.

  25. snuggsi

    snuggsi ツ - Easy Custom Elements in ~1kB

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

JavaScript Dom discussion

Log in or Post with

JavaScript Dom related posts

  • Tauri (1) — A desktop application development solution more suitable for web developers ✅

    8 projects | dev.to | 25 Jan 2025
  • Your rich text could be a cross-site scripting vulnerability

    3 projects | dev.to | 16 Dec 2024
  • Cash: A small jQuery alternative for modern browsers

    9 projects | news.ycombinator.com | 2 Nov 2024
  • Understanding Cross-Site Scripting (XSS): A Quick Reference

    1 project | dev.to | 28 Oct 2024
  • Preact vs React: Which Framework is Right for Your Next Project?

    3 projects | dev.to | 24 Oct 2024
  • Mitigate XSS exploits when using React's `dangerously SetInnerHTML`

    1 project | dev.to | 12 Sep 2024
  • Vanillajsx.com

    12 projects | news.ycombinator.com | 16 Aug 2024
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 9 Feb 2025
    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. Learn more →

Index

What are some of the best open-source Dom projects in JavaScript? This list will help you:

# Project Stars
1 Preact 37,114
2 DOMPurify 14,527
3 marko 13,492
4 dom-to-image 10,484
5 cash 6,973
6 Choo 6,770
7 imba 6,346
8 jest-dom 4,483
9 van 3,989
10 goober 3,165
11 canjs 1,912
12 nipplejs 1,801
13 holmes 1,703
14 curtainsjs 1,696
15 surreal 1,422
16 element-resize-detector 1,321
17 jquery-to-javascript-converter 1,234
18 sentineljs 1,134
19 hyperx 1,014
20 arrive 878
21 nanohtml 685
22 motus 630
23 snuggsi 397

Sponsored
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

Did you know that JavaScript is
the 3rd most popular programming language
based on number of references?