Leaflet
Lightweight JavaScript library for creating mobile-friendly interactive maps.
3D and graphics npm BSD-2-Clause
Used in agent projects
160
1.3% of 12,697 public repos built with AI coding agents
Rank in 3d and graphics
#4 of 19
by use in those projects
Downloads
8M
npm, last 7 days, leaflet
GitHub stars
45.7K
last push Oct 5, 2026
How Leaflet is used
Leaflet is a dependency in 160 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (1.3%), #4 of 19 in 3d and graphics. The most used alternative there is React Three Fiber. Projects that use it most often also use React Leaflet (70.6%), Lucide React (66.9%), Tailwind CSS (85.6%).
Often used with Leaflet
| React Leaflet | 70.6% of Leaflet projects · 74.1× more than average |
|---|---|
| Lucide React | 66.9% of Leaflet projects · 3.4× more than average |
| Tailwind CSS | 85.6% of Leaflet projects · 2.5× more than average |
| Tailwind Merge | 58.1% of Leaflet projects · 3.5× more than average |
| clsx | 59.4% of Leaflet projects · 3.3× more than average |
| Class Variance Authority | 51.9% of Leaflet projects · 3.7× more than average |
| Radix UI | 45.6% of Leaflet projects · 3.8× more than average |
| Recharts | 41.2% of Leaflet projects · 5.1× more than average |
By coding agent
| Claude Code | 1.8% of projects set up for it |
|---|---|
| Cursor | 1.9% of projects set up for it |
| GitHub Copilot | 1.5% of projects set up for it |
| OpenAI Codex | 2.2% of projects set up for it |
| OpenCode | 2.2% of projects set up for it |
| Gemini CLI | 1.6% of projects set up for it |
| Devin Desktop | 2.2% of projects set up for it |
Share of public repos configured for each agent that list Leaflet as a dependency.
Install
| Package | npm install leaflet |
|---|---|
| Main stacks | Next.js (75), TypeScript / JavaScript (73), PHP (7), Rust (3) |
| Example projects | hzrd149/nostrudel, cablelabs/os-provisioning, Poly-Haven/polyhaven.com, patrickmonteiro/quasar-dashboard-pro, thereactfoundation/react.foundation |
Alternatives to Leaflet
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| React Three Fiber npm React renderer for Three.js enabling 3D graphics with component patterns. |
2,360 (18.6%) | 6M | 32.8K | MIT |
| Three.js npm JavaScript 3D library for creating interactive 3D graphics in browsers. |
2,329 (18.3%) | 20.1M | 116K | MIT |
| maath npm Math utilities library for 3D graphics and animations in Three.js and React Three Fiber. |
176 (1.4%) | 4.6M | — | MIT |
| React Leaflet npm React components for Leaflet maps enabling interactive mapping in React applications. |
121 (1.0%) | 3.7M | 5,603 | Hippocratic-2.1 |
| Postprocessing npm Post-processing effects library for Three.js rendering advanced visual effects. |
109 (0.9%) | 977K | 2,874 | Zlib |
| r3f-perf npm Performance monitoring tool for React Three Fiber applications. |
78 (0.6%) | 31.1K | 781 | MIT |
| three-stdlib npm Stand-alone collection of Three.js examples and utilities. |
78 (0.6%) | 4.3M | 861 | MIT |
| OGL npm Lightweight WebGL library for 3D graphics rendering with minimal overhead. |
66 (0.5%) | 658K | 4,668 | Unlicense |