npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vanillajs-datatable

v1.0.10

Published

A lightweight, dependency-free, and theme-friendly DataTable alternative to jQuery DataTables built with modern JavaScript — works great with Tailwind CSS, DaisyUI, and Bootstrap.

Readme

vanillajs-datatable

A lightweight, dependency-free, and theme-friendly DataTable alternative to jQuery DataTables built with modern JavaScript — works great with Tailwind CSS, DaisyUI, and Bootstrap.

npm version bundle size

vanillajs-datatable

Features

✅ No dependencies – works without jQuery or any heavy libraries
✅ Modern UI – works out of the box with Tailwind CSS, DaisyUI, and Bootstrap
✅ Smart search – global + column-wise filters with match highlighting
✅ Sortable columns – sort any column client-side
✅ Column grouping – group related fields under headers (e.g., "Personal")
✅ Custom renderers – use JS to render rich content in cells
✅ Responsive pagination – detailed or simple, with per-page selector
✅ Export options – export to CSV, Excel, PDF, or Print
✅ Custom export settings – filename, chunk size, orientation, custom elements (images, text)
✅ Infinite scroll – load more records while scrolling, optional
✅ Range filtering – filter by min/max for dates or numbers (e.g., age, created_at)
✅ Selection support – single or multiple row selection with class toggling
✅ Loading state control – customize spinner element and delay
✅ Keyboard navigation – move between rows using arrow keys
✅ Toggle column visibility – hide/show columns with UI button or programmatically
✅ Custom themes – override any class via theme config
✅ Save state (optional) – persist filters/pagination in memory
✅ Tiny footprint – only ~26 kB Gzipped, fast and CDN-friendly ✅ Inline editing - edit any cell client-side without page refresh ✅ Export progress tracking – real-time progress indicators with cancel option ✅ Event handlers – row click, cell click, and hover callbacks ✅ Sticky headers – keep table headers visible while scrolling ✅ Advanced filters – multi-column filtering with range support ✅ JSON export – export data as JSON format

💡 vanillajs-datatable is built for modern projects using Tailwind, DaisyUI, or Bootstrap without bloat.

Installation

Using NPM

npm install vanillajs-datatable
import DataTable from "vanillajs-datatable";

const table = new DataTable({
  // config options
});

Using CDN

<script src="https://unpkg.com/[email protected]/dist/index.min.js"></script>
<script>
  const table = new DataTable({
    // config options
  });
</script>

Documentation

Full guides, config options, and code examples available at:

Full Docs

Export Options

Export your table data effortlessly: | Format | Library Used | Features | | ------ | ---------------------------------------------------------------------------------------------------------- | -------- | | CSV | Native JS | Progress tracking, chunked export | | Excel | exceljs | Progress tracking, custom styling, chunked export | | PDF | jspdf, jspdf-autotable | Custom elements (images, text), progress tracking, chunked export | | Print | Clean print preview | Custom elements, chunked export | | JSON | Native JS | Export selected or all data |

Bundle Size

| File | Brotli | Gzip | | -------------- | -------- | -------- | | index.min.js | 22.28 kB | 26.18 kB | | index.esm.js | 38.50 kB | 46.42 kB | | index.cjs.js | 38.53 kB | 46.41 kB |

Built with rollup and compressed using terser, brotli, and gzip. Fast to load, even on slow networks.

Theme Support

| Package | Purpose | | ----------------------------------------- | ----------------------------------------------- | | tailwindcss | Native Tailwind CSS v4+ support | | bootstrap | Bootstrap styling compatibility (optional) | | daisyui | Theme support for DaisyUI components (optional) |

Thanks

Built with ❤️ by Usama.
Contributions are welcome — feel free to open an issue or submit a PR!

GitHub issues GitHub stars GitHub forks

If you find this useful, please star the repo and share it!

License

vanillajs-datatable is open-sourced software licensed under the MIT license.