flatpickr

A lightweight, dependency-free JavaScript datetime picker with themes, locales, and plugins

Library
npm
v4.6.13
16,477stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
55/100Fair
Development Activity0
Maintenance44
Community76
Maturity60
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
76/100Good
Architecture76
Code Quality74
Innovation70
Learning Curve85

flatpickr is a JavaScript datetime picker built to replace inconsistent native browser date inputs and heavier alternatives that pull in jQuery, Bootstrap, or moment.js. It runs with zero runtime dependencies, works down to IE9, and covers single dates, date ranges, multiple-date selection, and time-only picking through one configurable API.

The library ships with 51 locales, eight built-in themes (including dark and material variants), and a plugin system (bundled plugins include month-select, week-select, label, and confirm-date) for extending default behavior. Community-maintained wrapper components make it usable directly inside React, Vue, Angular, Ember, Svelte, and Stimulus.js applications without re-implementing the underlying picker logic.

What You Get

  • A dependency-free datetime picker that attaches to any input and works from IE9 through modern browsers
  • Single date, date-range, multiple-date, and time-only picker modes from one configuration object
  • 51 bundled locales for internationalized date/time display
  • Eight built-in themes, including dark and material variants, selectable via a single CSS import
  • A plugin system with bundled plugins for month selection, week selection, labels, and confirm-date behavior
  • Community-maintained framework wrapper components for React, Vue, Angular, Ember, Svelte, and Stimulus.js

Common Use Cases

  • Replacing native <input type="date"> with a consistent, styled picker across all supported browsers
  • Adding date-range selection to booking, filtering, or reporting UIs without a heavy calendar dependency
  • Building multi-locale applications that need date pickers to render in the user’s own language and format
  • Adding a lightweight time-only picker to forms that don’t need full calendar UI
  • Integrating a themed date picker into a React/Vue/Angular/Ember app via a community wrapper component

Under The Hood

Architecture: The entire picker is implemented in a single ~3,000-line src/index.ts factory function that builds and manages the calendar DOM, event bindings, and internal date state per input instance, with supporting concerns split into src/utils/ (DOM helpers, date formatting, polyfills), src/l10n/ (locale definitions), and src/style/ (Stylus-based themes compiled to CSS); the bundled plugin system (src/plugins/monthSelect, weekSelect, labelPlugin, confirmDate) hooks into the same instance lifecycle rather than requiring a separate extension API. Tech Stack: TypeScript compiled via a custom build.ts script into multiple output targets (CommonJS, ESM, and UMD-style browser bundles) plus separate type declaration builds, with Stylus for theme source styling compiled down to plain CSS for distribution — no runtime framework or utility-library dependency at all. Code Quality: The core test suite is comparatively thin for a widely-used library — two top-level spec directories covering the main index.ts behavior, the range plugin, and the month-select plugin, run via Jest with TypeScript type-checking (test:typecheck) as a separate CI step; the project has had no commits since mid-2024, so quality is best assessed against its last stable release rather than ongoing activity. API Design: A single flatpickr(selector, options) call configures everything — mode, locale, theme CSS import, and plugins — which keeps integration to a few lines, and the plugin interface lets consumers add calendar behaviors (like month-only or week-only pickers) without forking the core rendering logic.

Used by 8 apps in this directory

Other

Akaunting

Invoicing Finance

10,070

Open-source online accounting for small businesses and freelancers — invoices, expenses, and reporting without monthly fees or vendor lock-in.

View details
98
Repo Health
73
Technical
63
Dependency
Updated yesterday
PHP
72%
MIT

Bagisto

Analytics · Ecommerce

27,983

Open-source Laravel eCommerce platform for building multi-vendor marketplaces, B2B stores, headless commerce, and AI-powered storefronts.

View details
93
Repo Health
75
Technical
69
Dependency
Built with
PHP72%
Blade22%
Updated today
PHP
51%
MIT

Krayin CRM

Ecommerce · CRM

23,694

Free, open-source Laravel & Vue.js CRM for SMEs and enterprises to manage the complete customer lifecycle.

View details
88
Repo Health
68
Technical
70
Dependency
Built with
PHP51%
Blade46%
Updated yesterday
Scala
63%
AGPL 3.0

lila (Lichess)

Community

18,642

The forever-free, ad-free, open-source chess server powering millions of real-time games, AI analysis, puzzles, and tournaments worldwide.

View details
89
Repo Health
80
Technical
78
Dependency
Built with
Scala63%
TypeScript26%
Updated today
Svelte
32%
GPL 3.0

Mathesar

Databases

5,096

Spreadsheet-like interface for your PostgreSQL database — self-hosted, no SQL required, native Postgres access control.

View details
87
Repo Health
80
Technical
72
Dependency
Built with
Svelte32%
TypeScript27%
Python21%
Updated yesterday
Ruby
79%
GPL 3.0

OpenProject

Project Management · Productivity · Collaboration

15,881

The open source project management platform that unifies Gantt charts, agile boards, time tracking, and team collaboration under full self-hosted control.

View details
96
Repo Health
79
Technical
70
Dependency
Built with
Ruby79%
TypeScript13%
Updated today
Go
74%
AGPL 3.0

Vikunja

Project Management

5,098

Self-hosted task management with natural-language quick-add, multiple views, and a fully documented REST API — your tasks, your infrastructure, zero lock-in.

View details
86
Repo Health
81
Technical
76
Dependency
Built with
Go74%
TypeScript13%
Vue12%
Updated today
Python
57%
Apache 2.0

Zulip

Team Chat

25,729

Topic-based team chat that brings the structure of email threads to real-time messaging, so distributed teams never lose context across hundreds of concurrent conversations.

View details
96
Repo Health
86
Technical
68
Dependency
Built with
Python57%
TypeScript19%
JavaScript10%
Updated today

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search