# Leaflet: 7.6 out of 10

A strong pick. 5th of 8 in [Map libraries](https://elestia.ai/opensource/maps/index.md).

Leaflet is the most widely used library for simple, lightweight interactive maps built on raster tiles, with a huge plugin ecosystem. It is still a strong, easy pick for plain marker and polygon maps. Its stable 1.9.4 is from May 2023, though, and 2.0 is still in beta (beta 4, Nov 2026). For vector tiles, 3D or heavy data, MapLibre GL JS is the better choice.

**Best for:** Teams that need a small, simple raster-tile map with markers, popups and shapes, and want the largest plugin ecosystem.

## Scores

- **Overall: 7.6** (likely 6.6 to 8.6)
  - Claude Opus 5.5 (7.0): Leaflet is a strong pick for simple raster-tile maps, where its size, simplicity and plugins are unmatched. MapLibre GL JS does more for most new map-heavy apps, with vector tiles, WebGL and 3D. Leaflet's stale stable line and pending breaking 2.0 hold it back. A new project should either start on 1.9.4 and plan a migration, or start on the 2.0 beta and accept the risk.
  - GPT-6.2 Sol (8.2): Leaflet 1.9.4 is a strong pick for a new 2D map with markers and modest overlays because setup is short, the API is well documented, and the ecosystem is proven. MapLibre GL JS is a better fit for styled vector basemaps, and OpenLayers is stronger for dense overlays and advanced GIS editing. The long gap between stable releases and the 2.0 plugin transition keep the recommendation below a category-wide default.
- **Needed by many: 4.9** (likely 3.8 to 6.1)
  - Claude Opus 5.5 (6.0): Many web apps need a map to show places, such as store finders, dashboards and listings. Leaflet works with any framework and fits the most common simple case. Most JS developers still never need a map library, so it serves a large group but not the majority.
  - GPT-6.2 Sol (3.8): Interactive maps are a recurring need in directories, dashboards, and GIS products, and Leaflet works across frontend frameworks. Its core serves browser-based 2D display and simple geometry. Website scans show where it appears, while developer surveys leave the share of JavaScript and TypeScript developers who need this kind of map uncertain.
- **Helps a lot: 7.3** (likely 6.3 to 8.3)
  - Claude Opus 5.5 (6.5): For raster maps with markers and shapes, Leaflet is simple, reliable and well documented, and AI agents write correct code for it easily. It has no vector tiles, WebGL or 3D, and slows down with very large datasets, where GL libraries do better. The stable 1.x line is old, ships no bundled types and still targets old browsers. The 2.0 betas fix much of that, but they are not stable yet.
  - GPT-6.2 Sol (8.0): Stable 1.9.4 makes raster tiles, markers, popups, GeoJSON, and basic distances easy to work with. Its versioned examples give developers and coding agents a concrete API to follow, and TypeScript users add community declarations. An independent benchmark found fast rendering on modest overlays and less fluid zooming on dense data. The range reflects how much the result depends on the data volume and the plugins needed for vector tiles or editing.
- **Holds up over time: 6.9** (likely 5.5 to 8.1)
  - Claude Opus 5.5 (6.5): The repo is active, with 564 commits and 5 pre-releases in the last year, a Maintained score of 10 and over 1,000 contributors. But no stable release has shipped for 3.5 years. 2.0 missed its 2025 target and will break 1.x code and plugins. Some of the ecosystem, including openstreetmap.org's own discussions, is looking at MapLibre for vector maps.
  - GPT-6.2 Sol (7.2): Leaflet logged 564 commits in a year, and the fifth 2.0 beta fixes both long-standing issues and recent regressions. A core team and public sponsorship support the project. Stable npm has stayed at 1.9.4 since May 2023, while MapLibre GL JS and OpenLayers shipped stable updates in 2026. The timing of stable 2.0 and the migration work for plugins leave the two-year outlook uncertain.
- **Used widely: 8.1** (likely 7.1 to 8.9)
  - Claude Opus 5.5 (8.5): Leaflet has 45.8M downloads in 4 weeks and 50k dependent repos, the most in the category, plus 46k stars. Its year-over-year ratio of about 5.9 beats the 4.1 median, so it still gains ground. MapLibre (about 10.6x) is growing faster.
  - GPT-6.2 Sol (7.7): Leaflet leads the bundle with 50,451 tracked dependent repos, and BuiltWith detects it on roughly 470,000 live sites. Four-week npm downloads rose 5.95× year over year, ahead of the 4.1× baseline and behind MapLibre GL JS at 10.58×. Repeated installs and wrappers inflate npm counts, while CDN deployments add use that npm misses. Those signals point to broad and growing use, with room for error in how many projects choose Leaflet directly.
- **Vouched for: 8.0** (likely 7.0 to 9.0)
  - Claude Opus 5.5 (7.5): Leaflet has long run in production on major sites, including openstreetmap.org, and many frameworks have wrappers such as react-leaflet. Independent benchmarks and comparisons treat it as a reference library. Recent write-ups increasingly recommend MapLibre for new richer projects, which lowers this a little.
  - GPT-6.2 Sol (8.5): Wikipedia and Wikivoyage use Leaflet through Kartographer, OpenStreetMap lists it in its website dependencies, and Esri builds an ArcGIS integration on it. An independent benchmark supports its performance on modest overlays, and GIS practitioners report that it works well for years in production. Those practitioners also point to OpenLayers for advanced editing, and broad developer surveys give no Leaflet-specific satisfaction or retention measure.
- **Safe: 7.8** (likely 6.7 to 8.8)
  - Claude Opus 5.5 (8.0): Leaflet has zero dependencies, no known advisories and a permissive BSD-2-Clause licence. Its Scorecard is 6.5, with weak checks for pinned dependencies, signed releases, SAST and fuzzing. As a client-side rendering library it has a small attack surface.
  - GPT-6.2 Sol (7.6): Stable Leaflet has zero runtime dependencies and a permissive BSD-2-Clause license. The registry records a maintainer account publishing 1.9.4, and the current release process stages packages in CI for approval with two-factor authentication. OSV returned no advisories, but an unreviewed, disputed CVE flags popup strings that render as HTML and require care with untrusted content. Weak workflow dependency pinning and a zero on the Scorecard signed-release check lower confidence.

## Good

- Small core of about 42 KB gzipped, with no dependencies and a simple API that takes minutes to learn.
- The largest plugin ecosystem of any web map library, covering clustering, drawing, routing and heatmaps.
- By far the most dependent repositories in its category, so examples, answers and AI-written code are plentiful.
- Active 2.0 work moves it to ES modules, classes and Pointer events, with a migration guide.

## Bad

- No stable release since v1.9.4 in May 2023; 2.0 is still in beta after missing its November 2025 target.
- No built-in vector tiles, WebGL rendering, 3D or data-driven styling, so MapLibre and OpenLayers do more.
- Types are not bundled; TypeScript users rely on the separate @types/leaflet package.
- 2.0 breaks the 1.x API and the plugin ecosystem must catch up, so upgrades will take work.

## The numbers

- Downloads, 4 weeks: 46M
- In a year: ×5.9
- GitHub stars: 46k
- Commits, 12 months: 564
- Last npm release: May 2023
- Advisories, 24 months: 0
- Licence: BSD-2-Clause
- GitHub: https://github.com/Leaflet/Leaflet
- npm: https://www.npmjs.com/package/leaflet

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
