flatpickr
lightweight, powerful javascript datetimepicker with no dependencies
No-build verifiedStable0 dependenciesESM + script tagTypes bundledMIT
Facts
| Size | 49.5 KB minified, 14.1 KB gzipped (dist/flatpickr.js) |
|---|---|
| Licence | MIT |
| Dependencies | none |
| Last release | v4.6.13, April 2022 |
| Last activity | 2024-08-02 (Stable) |
| Stars | 16,462 on GitHub |
| Formats | ES module; classic script (global flatpickr); TypeScript types in the package |
| CDN hits | 1,339.1 million a month on jsDelivr |
| npm downloads | 7.1 million a month |
| Gates | G1 passed (no runtime dependencies); G2 passed (loads in a browser as it is); G3 passed (no compile-only entry points); G4 passed (open-source licence); G5 passed (not archived or deprecated). Smoke test on v4.6.13 in headless Chromium, 2026-10-30 |
Load it
Pin the version. The hash is computed from the file jsDelivr serves, so a changed file fails to load instead of running.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/flatpickr.js"
integrity="sha384-sWZVghjWvu7FLPv6FOuk8kWJYnlZApKfPfxhdPgM1gcwvD0ys/iFrhE3Xr76HJV3" crossorigin="anonymous"></script>import flatpickr from "https://cdn.jsdelivr.net/npm/[email protected]/dist/esm/index.js";Advertisement
Related libraries
- Notus – Web Notifications Widget Yet another JavaScript pop-up notification library for the web.
- Speckle.js A JavaScript plugin that adds responsive, stylized speckles to any element; with no dependencies.
- Roar A zero-dependency, vanilla JavaScript alert/confirm replacement.
Entry 112 in the directory. Facts refreshed monthly; last run 2026-10-30.