plainJS

Libraries / UI

flatpickr

lightweight, powerful javascript datetimepicker with no dependencies

No-build verifiedStable0 dependenciesESM + script tagTypes bundledMIT

Facts

Facts fetched 2026-10-30 by the directory sync (GitHub, npm, jsDelivr, deps.dev). Nothing here is typed by hand.
Size49.5 KB minified, 14.1 KB gzipped (dist/flatpickr.js)
LicenceMIT
Dependenciesnone
Last releasev4.6.13, April 2022
Last activity2024-08-02 (Stable)
Stars16,462 on GitHub
FormatsES module; classic script (global flatpickr); TypeScript types in the package
CDN hits1,339.1 million a month on jsDelivr
npm downloads7.1 million a month
GatesG1 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.

htmlscript tag, with SRI
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/flatpickr.js"
        integrity="sha384-sWZVghjWvu7FLPv6FOuk8kWJYnlZApKfPfxhdPgM1gcwvD0ys/iFrhE3Xr76HJV3" crossorigin="anonymous"></script>
jsES module import
import flatpickr from "https://cdn.jsdelivr.net/npm/[email protected]/dist/esm/index.js";
Advertisement

Entry 112 in the directory. Facts refreshed monthly; last run 2026-10-30.