Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

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 Leaflet70.6% of Leaflet projects · 74.1× more than average
Lucide React66.9% of Leaflet projects · 3.4× more than average
Tailwind CSS85.6% of Leaflet projects · 2.5× more than average
Tailwind Merge58.1% of Leaflet projects · 3.5× more than average
clsx59.4% of Leaflet projects · 3.3× more than average
Class Variance Authority51.9% of Leaflet projects · 3.7× more than average
Radix UI45.6% of Leaflet projects · 3.8× more than average
Recharts41.2% of Leaflet projects · 5.1× more than average

By coding agent

Claude Code1.8% of projects set up for it
Cursor1.9% of projects set up for it
GitHub Copilot1.5% of projects set up for it
OpenAI Codex2.2% of projects set up for it
OpenCode2.2% of projects set up for it
Gemini CLI1.6% of projects set up for it
Devin Desktop2.2% of projects set up for it

Share of public repos configured for each agent that list Leaflet as a dependency.

Install

Packagenpm install leaflet
Main stacksNext.js (75), TypeScript / JavaScript (73), PHP (7), Rust (3)
Example projectshzrd149/nostrudel, cablelabs/os-provisioning, Poly-Haven/polyhaven.com, patrickmonteiro/quasar-dashboard-pro, thereactfoundation/react.foundation

Alternatives to Leaflet

All 3d and graphics

Tool Used in agent projectsDownloads / wk GitHub starsLicense
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
Is Leaflet right for your project? Ask AgentGid →