For a lightweight library for DOM manipulation, the first results are madrobby/zepto (Zepto is a minimalist, jQuery-compatible JavaScript library that covers DOM manipulation, event handling including mobile touches, AJAX, and animations with a chainable API and lightweight footprint, exactly matching the intent), kenwheeler/cash (Cash is a lightweight, chainable DOM manipulation library that directly mirrors jQuery's core API for traversal, event handling, and AJAX while being only ~5KB, making it the ideal minimal replacement a visitor seeking a jQuery alternative without framework overhead would want) and fabiospampinato/cash (cash is a lightweight JavaScript library purpose-built as a jQuery alternative for DOM manipulation, event handling, and HTML element wrapping, fitting the core request despite its modular build and lack of explicit AJAX or built-in animation features). bendc/sprint and phuocng/html-dom round out the shortlist. Compare the match explanations and check the project documentation against your requirements.
Find the best lightweight JavaScript DOM libraries. Compare top jQuery alternatives ranked by size, performance, and activity to find the best fit.
Zepto is a minimalist JavaScript toolkit providing an API for DOM manipulation, event handling, and asynchronous HTTP requests. It functions as a jQuery-compatible library, allowing developers to select, modify, and animate HTML elements using a concise and chainable syntax. The library includes an asynchronous HTTP client for exchanging data with remote servers without triggering page reloads and a browser-based event handler that supports standard mouse events and mobile touch gestures. Its capability surface covers CSS selector-based querying, element transition animations, and the serial
Zepto is a minimalist, jQuery-compatible JavaScript library that covers DOM manipulation, event handling (including mobile touches), AJAX, and animations with a chainable API and lightweight footprint, exactly matching the intent.
Cash is a lightweight JavaScript library for selecting and modifying HTML elements in modern browsers. It functions as a chainable element wrapper and DOM manipulation utility, providing a minimal alternative for managing browser DOM operations. The library uses a collection-based wrapper for DOM nodes, allowing multiple modifications and style updates to be performed in a single sequence. It is designed to provide a similar API for event handling and element management while maintaining a small footprint. The project covers a wide range of DOM manipulation capabilities, including element se
Cash is a lightweight, chainable DOM manipulation library that directly mirrors jQuery's core API for traversal, event handling, and AJAX while being only ~5KB, making it the ideal minimal replacement a visitor seeking a jQuery alternative without framework overhead would want.
Cash is a lightweight DOM manipulation library and HTML element wrapper designed as an alternative to jQuery for selecting and modifying elements in modern browsers. It functions as a modular DOM framework and JavaScript utility library, providing a system to wrap DOM nodes into actionable collections for batch processing. The project is built with a modular design that supports tree-shaking, allowing build tools to exclude unused methods to minimize the final bundle size. It provides mechanisms for extending the core functionality and collection prototypes to implement reusable plugins and c
cash is a lightweight JavaScript library purpose-built as a jQuery alternative for DOM manipulation, event handling, and HTML element wrapping, fitting the core request despite its modular build and lack of explicit AJAX or built-in animation features.
Sprint is a lightweight DOM manipulation and event handling library. It provides a minimal set of utilities for selecting, modifying, and traversing elements within the browser document object model. The library utilizes a selector engine to isolate specific document nodes using CSS-like patterns and positional indices. It encapsulates raw DOM elements within a wrapper object to provide a consistent API for updating element attributes, styles, and content. The toolset covers browser event management for attaching and detaching interaction handlers, as well as document tree navigation to loca
Sprint is a lightweight JavaScript library for DOM traversal, manipulation, and event handling, which directly replaces jQuery's core functionality — it fits the category, though it lacks built-in AJAX and animation features.
This is a vanilla JavaScript DOM manipulation library that provides a collection of native methods for selecting, creating, and modifying HTML DOM elements without any framework dependencies. It operates directly on the live DOM tree using imperative JavaScript calls, wrapping standard browser DOM APIs into reusable utility functions. The library covers the full spectrum of DOM operations including element selection, creation, removal, content and attribute management, event handling, style and class manipulation, and DOM traversal. It includes approaches for cross-browser DOM compatibility,
This vanilla JavaScript DOM manipulation library covers the core DOM operations, event handling, and cross-browser compatibility you'd expect from a jQuery replacement, but it lacks the built-in AJAX and animation utilities that are part of jQuery's full feature set, making it a lighter, more focused alternative.
This library is a browser interaction simulator designed for automated testing of web applications. It functions as a utility for dispatching synthetic events to document elements, allowing developers to verify how components respond to user behavior within a test suite. The project distinguishes itself by orchestrating complex sequences of low-level events to replicate the specific patterns of human interaction. It maintains internal tracking of focus, selection, and input state, ensuring that simulated actions align with the logic of a browser engine. Before dispatching, an input validation
This is a testing utility that simulates user interactions in the DOM, not a general-purpose jQuery-like library for DOM manipulation, AJAX, or animation — it covers event handling in a testing context but lacks the core AJAX, DOM traversal, and animation features requested.
A sizzlin' hot selector engine.
Sizzle is jQuery's standalone CSS selector engine, which handles DOM traversal and selection but is a focused building block rather than a full jQuery replacement—it lacks event handling, AJAX, and animation features by itself.
D3 is a modular library providing low-level primitives for creating data-driven visualizations. It functions as a flexible framework that allows for direct control over visual presentation by mapping abstract data dimensions to graphical properties, such as position, color, and size, without imposing predefined chart abstractions. The library distinguishes itself by offering specialized tools for complex data representation, including algorithmic layouts for hierarchical structures and geographic projection utilities for mapping spherical coordinates. It also includes a comprehensive suite fo
D3 is a data visualization library that manipulates SVG elements and includes some interaction and animation features, but its core purpose is data-driven visualizations, not the general-purpose DOM traversal, event delegation, and Ajax utilities that a jQuery replacement would provide.
This project is a Virtual DOM renderer, an engine that transforms virtual node trees into real DOM elements and updates them efficiently when the tree changes. Its core identity is focused on the rendering and reconciliation of virtual nodes, providing the foundational mechanism for building user interfaces. The renderer implements a patch-based DOM update system that applies targeted operations based on computed differences between virtual node trees. It supports fragment rendering for components with multiple root children, uses keyed child reconciliation to reuse and reorder elements durin
This is a Virtual DOM renderer from the Vue ecosystem, focused on efficient DOM patching and reconciliation — not a general-purpose jQuery-style DOM manipulation library with AJAX, animation, or a chainable API.
This project is a jQuery plugin that provides HTML5 placeholder emulation for input and textarea fields. It functions as a compatibility library to ensure consistent placeholder behavior across different web browsers, specifically those that do not natively support the HTML5 placeholder attribute. The utility extends the functionality of DOM input fields by modifying how form elements display hint text before a user provides input. It integrates as a browser compatibility layer to provide legacy browser support for modern HTML5 form features. The implementation covers browser feature detecti
This is a jQuery plugin for cross-browser placeholder emulation, not a general-purpose library that replaces jQuery's core DOM manipulation, event handling, and AJAX capabilities as requested.
winjs is a browser UI toolkit and JavaScript component library designed for building web applications. It provides a set of high-performance components and utilities with native support for touch, keyboard, and accessibility. The project features a cross-browser event normalizer that creates synthetic pointer and focus events to ensure consistent input behavior across different browsers. It also includes a web localization framework for managing multi-language translations and regional formats using key-value resource files. The toolkit covers a broad range of capabilities, including a front
WinJS is a full-featured UI component toolkit with cross-browser event normalization and localization, not a lightweight, focused jQuery replacement for basic DOM manipulation, AJAX, and animation.
htmlparser2 is a collection of tools for high-performance markup parsing, DOM manipulation, and incremental stream processing. It functions as an HTML and XML parser that converts markup strings into structured object trees, alongside a streaming markup parser designed for memory-efficient processing of large documents. The project includes a DOM manipulation library for querying, modifying, and serializing document object model trees. It also provides a web feed parser to extract structured metadata and entries from RSS, RDF, and Atom feeds. The library covers broad capabilities in data par
htmlparser2 is a parsing-focused library that includes DOM manipulation capabilities, but it does not provide event handling, AJAX, or animation functionality, so it is not a direct jQuery replacement for client-side scripting.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| madrobby/zepto | 15.1K | HTML | NOASSERTION | |
| kenwheeler/cash | 7K | JavaScript | MIT | |
| fabiospampinato/cash |
| 7K |
| JavaScript |
| MIT |
| bendc/sprint | 4.2K | JavaScript | MIT |
| phuocng/html-dom | 6.5K | MDX | MIT |
| testing-library/user-event | 2.3K | TypeScript | MIT |
| jquery/sizzle | 6.3K | JavaScript | NOASSERTION |
| d3/d3 | 113.1K | Shell | ISC |
| hcysunyang/vue-design | 6K | JavaScript | — |
| mathiasbynens/jquery-placeholder | 3.9K | JavaScript | MIT |