React Leaflet
React components for Leaflet maps enabling interactive mapping in React applications.
3D and graphics npm Hippocratic-2.1
Used in agent projects
121
1.0% of 12,697 public repos built with AI coding agents
Rank in 3d and graphics
#5 of 19
by use in those projects
Downloads
3.7M
npm, last 7 days, react-leaflet
GitHub stars
5,603
last push Dec 31, 2025
How React Leaflet is used
React Leaflet is a dependency in 121 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (1.0%), #5 of 19 in 3d and graphics. The most used alternative there is React Three Fiber. Projects that use it most often also use Leaflet (93.4%), Lucide React (80.2%), clsx (70.2%).
Often used with React Leaflet
| Leaflet | 93.4% of React Leaflet projects · 74.1× more than average |
|---|---|
| Lucide React | 80.2% of React Leaflet projects · 4.0× more than average |
| clsx | 70.2% of React Leaflet projects · 4.0× more than average |
| Tailwind Merge | 69.4% of React Leaflet projects · 4.1× more than average |
| Class Variance Authority | 65.3% of React Leaflet projects · 4.6× more than average |
| Radix UI | 59.5% of React Leaflet projects · 5.0× more than average |
| Tailwind CSS | 90.1% of React Leaflet projects · 2.6× more than average |
| React | 97.5% of React Leaflet projects · 2.2× more than average |
By coding agent
| Claude Code | 1.1% of projects set up for it |
|---|---|
| Cursor | 1.3% of projects set up for it |
| GitHub Copilot | 0.9% of projects set up for it |
| Devin Desktop | 2.2% of projects set up for it |
| OpenAI Codex | 1.3% of projects set up for it |
Share of public repos configured for each agent that list React Leaflet as a dependency.
Install
| Package | npm install react-leaflet |
|---|---|
| Main stacks | Next.js (62), TypeScript / JavaScript (56), PHP (2), Python (1) |
| Example projects | Poly-Haven/polyhaven.com, thereactfoundation/react.foundation, databayt/hogwarts, 7ttp/Staking-nasdaq |
Alternatives to React 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 |
| Leaflet npm Lightweight JavaScript library for creating mobile-friendly interactive maps. |
160 (1.3%) | 8M | 45.7K | BSD-2-Clause |
| 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 |