Skip to content
JS
Package category

DOM and browser utilities

Query, observe, scroll, drag, clipboard and other browser helpers.

983 packages17 comparisons

Packages compared

983 packages
PackageWeekly downloads12-month change52 weeksGzipLast releaseModuleTypesCategories
@xmachines/json-render-dom
Framework-free DOM renderer for json-render — pure Spec to DOM, no virtual DOM, no framework runtime
1.3k---1 day ago
0.21.0-xm.1
ESM + CommonJSBundledDOM and browser utilities
om-perfect-scrollbar
Minimalistic but perfect custom scrollbar plugin
1.3k-23%-3 years ago
2.0.1
ESM + CommonJSBundledDOM and browser utilities
vue-use-active-scroll
Accurate TOC/sidebar links without compromises for Vue 3.
1.3k-19%-2 years ago
1.1.3
ESM + CommonJSBundledVue, DOM and browser utilities
deku
Render interfaces using pure functions and virtual DOM
1.3k+6%-10 years ago
2.0.0-rc16
CommonJSNoneDOM and browser utilities, State management
@foblex/flow-dagre-layout
Dagre layout engine adapter for Foblex Flow.
1.3k---4 days ago
19.2.0
ESM + CommonJSBundledAngular, TypeScript tooling
vue3-draggable-next
draggable component for vue
1.3k+284%-3 years ago
4.1.4
ESM + CommonJSBundledDOM and browser utilities, Vue
zip-text-nodes
Merge the DOM of 2 elements with the same textContent
1.3k+311%-7 years ago
1.0.0
-NoneDOM and browser utilities
skaler
A 329B client-side image resizer.
1.3k+1195%-6 years ago
1.0.7
ESM + CommonJSNoneDOM and browser utilities, Forms
@svelte-put/dragscroll
Svelte action for drag-to-scroll behavior
1.2k---1 year ago
4.0.0
ESM onlyBundledSvelte, DOM and browser utilities
sveltekit-embed
A collection of embed components for SvelteKit. Easily embed content from YouTube, Spotify, Vimeo, CodePen, and many more with performant, lazy-loaded components.
1.2k+16%-1 year ago
0.0.22
ESM onlyBundledDOM and browser utilities, Svelte
ngx-sortable
An angular 4 and above component for sorting list supporting drag and drop sort.
1.2k-28%-4 years ago
2.1.0
ESM + CommonJSBundledDOM and browser utilities, Angular
dom-element-to-component-source
A library to retrieve the source location of DOM elements in React applications
1.2k+3772%-7 months ago
0.5.0
ESM + CommonJSBundledReact, Static site generators and meta-frameworks
tag-soup
The fastest pure JS SAX/DOM XML/HTML parser.
1.2k+20%-5 months ago
3.2.0
ESM onlyBundledParsers and serialisers, DOM and browser utilities
filetomarkdown
Convert various file types to markdown format with browser and Node.js support
1.2k+608%-1 year ago
0.6.9
ESM + CommonJSBundledPDF and documents, Parsers and serialisers
@depay/react-shadow-dom
A library to easily render react compatible shadow DOMs for web components with individual styling for inside and outside.
1.2k---3 years ago
5.0.5
ESM + CommonJSNoneReact, DOM and browser utilities
textarea
DOM enhancements for the textarea element, including tabs and auto-expansion
1.2k-4%-10 years ago
0.3.0
-NoneDOM and browser utilities
metal-drag-drop
Metal's drag and drop component.
1.2k+206%-7 years ago
3.3.1
CommonJSNoneDOM and browser utilities
@azure-rest/maps-route
A client library for Azure Maps maps-route
1.1k---1 year ago
1.0.0-beta.5
ESM + CommonJSBundledCloud SDKs, TypeScript tooling
svelte-lazy-image
Svelte component to lazy load images using Intersection Observer
1.1k-24%-4 years ago
0.5.1
ESM onlyNoneDOM and browser utilities, Svelte
amuchina
A work-in-progress HTML sanitizer that strives for: performance like window.Sanitizer, readiness like DOMPurify, and ability to run in a WebWorker like neither of those.
1.1k+101%-2 years ago
1.0.12
ESM onlyBundledDOM and browser utilities
dom-resize
Polyfill to make it easy to listen for element resize events
1.1k-20%-9 years ago
1.0.3
CommonJSNoneDOM and browser utilities
smooth-scrollbar-react
A wrapper for smooth-scrollbar to React Component
1.1k-14%-3 years ago
2.4.1
CommonJSBundledReact, DOM and browser utilities
@react-email-dnd/renderer
Rendering utilities for react-email-dnd documents.
1.1k---9 months ago
0.3.3
ESM + CommonJSBundledEmail, React
@holz/logger
A preconfigured, general-purpose logger
1.1k---14 days ago
0.9.1
ESM + CommonJSBundledLogging, DOM and browser utilities
@zerodevx/svelte-img
High-performance responsive/progressive images for SvelteKit
1.1k---1 year ago
2.1.2
ESM onlyBundledSvelte, DOM and browser utilities
@eleung/react-grid-layout
A draggable and resizable grid layout with responsive breakpoints, for React. Includes Flexbox layout support and cross-layout drag and drop.
1.1k---8 months ago
1.8.3
CommonJSNoneReact, DOM and browser utilities
react-scroll-up-button
React component Scroll up button, fixed button to scrolll up to desired position
1.1k-23%-7 years ago
1.6.4
CommonJSNoneReact, UI component libraries
@brianmcallister/highlight-text
Hightlight `words` in `text`
1.1k---5 years ago
2.0.4
CommonJSNoneDOM and browser utilities
happy-opfs
A browser-compatible file system module based on OPFS, inspired by Deno fs APIs. Supports async/sync operations, streaming zip/unzip, and Result-based error handling.
1.1k+70%-9 days ago
2.3.1
ESM + CommonJSBundledFiles and file systems, Promises and async control flow
svelte-overflow-fade
A Svelte action to add overflow fade effects to scrollable containers
1.1k+440%-2 months ago
1.2.1
ESM onlyBundledSvelte, DOM and browser utilities
typifier
The javascript library to get or check the type of a given variable.
1.1k+47%-1 year ago
0.2.1
CommonJSBundledTypeScript tooling, DOM and browser utilities
@shelamkoff/infinite-scroll
Small framework-agnostic infinite scroll controller built on IntersectionObserver with loading guards, error handling, and absolute-layout support
1.1k---2 months ago
1.0.1
ESM onlyBundledDOM and browser utilities, TypeScript tooling
@gajae-code/natives
Native Rust bindings for grep, clipboard, image processing, syntax highlighting, PTY, and shell operations via N-API
1.1k---1 day ago
0.17.6
ESM onlyBundledImage processing, DOM and browser utilities
react-viewport-height
A utility for React to set 100vh equal to the actual browser inner window height.
1.1k-2%-3 years ago
1.2.2
CommonJSBundledDOM and browser utilities, React
reactstrap-scrollspy
Scrollspy library for Reactstrap to create an automatically update navigation easily and flexibly.
1k+4%-7 years ago
0.1.1
CommonJSNoneDOM and browser utilities, React
react-use-scroll-position
A react hook to use scroll position
1k-10%-7 years ago
2.0.0
CommonJSBundledDOM and browser utilities, React
angular-popper
Popover component for Angular 2+ based on Popper.js library.
1k-25%-7 years ago
2.0.1
ESM + CommonJSBundledAngular, DOM and browser utilities
domtastic
Small, fast, and modular DOM and event library for modern browsers.
1k+46%-7 years ago
0.15.12
ESM + CommonJSNoneDOM and browser utilities
ssr-scroll-to
Smooth window scroll to position with requestAnimationFrame
1k-7%-9 years ago
0.0.2
CommonJSNoneDOM and browser utilities, Animation
dom-to-image-improved
Generates an image from a DOM node using HTML5 canvas and SVG
1k+90%-6 years ago
2.8.0
CommonJSNoneDOM and browser utilities, Image processing
jsondom
A DOM-like interface for querying Javascript Objects
1k+1%-12 years ago
0.4.1
CommonJSNoneDOM and browser utilities
undoredo.js
A powerful and simple Javascript library provides a history for undo/redo functionality. Just like a time machine! 🕐
1k+128%-5 years ago
1.2.0
CommonJSNoneDOM and browser utilities
@tempfix/lenis
How smooth scroll should be
1k---8 months ago
1.3.20
ESM onlyBundledDOM and browser utilities, React
img
Convert any dom tree to an image element
1k-4%-10 years ago
3.0.3
CommonJSNoneDOM and browser utilities
react-scroll-to-element
Scroll to any element of your React application
1k+423%-8 years ago
0.2.0
CommonJSNoneDOM and browser utilities, React
@windmill-labs/svelte-dnd-action
*An awesome drag and drop library for Svelte 3 and 4 (not using the browser's built-in dnd, thanks god): Rich animations, nested containers, touch support and more *
1k---2 years ago
0.9.48
ESM + CommonJSBundledSvelte, DOM and browser utilities
jquery-waypoints
A jQuery plugin that makes it easy to execute a function whenever you scroll to an element.
962----
2.0.5
-NoneDOM and browser utilities
flickity-bg-lazyload
Flickity lazyload background images
913----
2.0.0
CommonJSNoneDOM and browser utilities
jquery-unveil
A very lightweight plugin to lazy load images for jQuery or Zepto.js
902----
1.3.2
CommonJSNoneDOM and browser utilities
vue-virtual-sortable
A virtual scrolling list component that can be sorted by dragging
901---1 month ago
2.2.0
ESM + CommonJSNoneDOM and browser utilities, Vue

12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package, as measured by Bundlephobia. "-" means the value has not been fetched.

  • @xmachines/json-render-domFramework-free DOM renderer for json-render — pure Spec to DOM, no virtual DOM, no framework runtime
  • om-perfect-scrollbarMinimalistic but perfect custom scrollbar plugin
  • vue-use-active-scrollAccurate TOC/sidebar links without compromises for Vue 3.
  • dekuRender interfaces using pure functions and virtual DOM
  • @foblex/flow-dagre-layoutDagre layout engine adapter for Foblex Flow.
  • vue3-draggable-nextdraggable component for vue
  • zip-text-nodesMerge the DOM of 2 elements with the same textContent
  • skalerA 329B client-side image resizer.
  • @svelte-put/dragscrollSvelte action for drag-to-scroll behavior
  • sveltekit-embedA collection of embed components for SvelteKit. Easily embed content from YouTube, Spotify, Vimeo, CodePen, and many more with performant, lazy-loaded components.
  • ngx-sortableAn angular 4 and above component for sorting list supporting drag and drop sort.
  • dom-element-to-component-sourceA library to retrieve the source location of DOM elements in React applications
  • tag-soupThe fastest pure JS SAX/DOM XML/HTML parser.
  • filetomarkdownConvert various file types to markdown format with browser and Node.js support
  • @depay/react-shadow-domA library to easily render react compatible shadow DOMs for web components with individual styling for inside and outside.
  • textareaDOM enhancements for the textarea element, including tabs and auto-expansion
  • metal-drag-dropMetal's drag and drop component.
  • @azure-rest/maps-routeA client library for Azure Maps maps-route
  • svelte-lazy-imageSvelte component to lazy load images using Intersection Observer
  • amuchinaA work-in-progress HTML sanitizer that strives for: performance like window.Sanitizer, readiness like DOMPurify, and ability to run in a WebWorker like neither of those.
  • dom-resizePolyfill to make it easy to listen for element resize events
  • smooth-scrollbar-reactA wrapper for smooth-scrollbar to React Component
  • @react-email-dnd/rendererRendering utilities for react-email-dnd documents.
  • @holz/loggerA preconfigured, general-purpose logger
  • @zerodevx/svelte-imgHigh-performance responsive/progressive images for SvelteKit
  • @eleung/react-grid-layoutA draggable and resizable grid layout with responsive breakpoints, for React. Includes Flexbox layout support and cross-layout drag and drop.
  • react-scroll-up-buttonReact component Scroll up button, fixed button to scrolll up to desired position
  • @brianmcallister/highlight-textHightlight `words` in `text`
  • happy-opfsA browser-compatible file system module based on OPFS, inspired by Deno fs APIs. Supports async/sync operations, streaming zip/unzip, and Result-based error handling.
  • svelte-overflow-fadeA Svelte action to add overflow fade effects to scrollable containers
  • typifierThe javascript library to get or check the type of a given variable.
  • @shelamkoff/infinite-scrollSmall framework-agnostic infinite scroll controller built on IntersectionObserver with loading guards, error handling, and absolute-layout support
  • @gajae-code/nativesNative Rust bindings for grep, clipboard, image processing, syntax highlighting, PTY, and shell operations via N-API
  • react-viewport-heightA utility for React to set 100vh equal to the actual browser inner window height.
  • reactstrap-scrollspyScrollspy library for Reactstrap to create an automatically update navigation easily and flexibly.
  • react-use-scroll-positionA react hook to use scroll position
  • angular-popperPopover component for Angular 2+ based on Popper.js library.
  • domtasticSmall, fast, and modular DOM and event library for modern browsers.
  • ssr-scroll-toSmooth window scroll to position with requestAnimationFrame
  • dom-to-image-improvedGenerates an image from a DOM node using HTML5 canvas and SVG
  • jsondomA DOM-like interface for querying Javascript Objects
  • undoredo.jsA powerful and simple Javascript library provides a history for undo/redo functionality. Just like a time machine! 🕐
  • @tempfix/lenisHow smooth scroll should be
  • imgConvert any dom tree to an image element
  • react-scroll-to-elementScroll to any element of your React application
  • @windmill-labs/svelte-dnd-action*An awesome drag and drop library for Svelte 3 and 4 (not using the browser's built-in dnd, thanks god): Rich animations, nested containers, touch support and more *
  • jquery-waypointsA jQuery plugin that makes it easy to execute a function whenever you scroll to an element.
  • flickity-bg-lazyloadFlickity lazyload background images
  • jquery-unveilA very lightweight plugin to lazy load images for jQuery or Zepto.js
  • vue-virtual-sortableA virtual scrolling list component that can be sorted by dragging