# mapcn

> Free, customisable map components for React, built on MapLibre GL and styled like shadcn/ui

Source: https://talira.ai/catalog/mapcn-kprn7y3b
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [location / maps / web libraries](https://talira.ai/categories/location/maps/web-libraries)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Anmoldeep Singh](https://talira.ai/orgs/anmolsaini16.md)

mapcn is a set of free, open source map components for React, built on [MapLibre GL](https://talira.ai/catalog/maplibre-gl-js-b8rfna0x.md), styled with Tailwind and following [shadcn/ui](https://talira.ai/catalog/shadcn-ui-c0dhpf6t.md)'s patterns, added to a project with one command. The components are theme-aware (light and dark), composable and give full access to MapLibre underneath: markers with popups, tooltips and labels, routes and paths, and zoom, compass, locate and fullscreen controls. It also publishes an agent skill that teaches coding agents to use it. Its default styles use CARTO basemaps from OpenStreetMap data, and it works with any MapLibre-compatible basemap provider.

## Links

- Website: https://mapcn.dev/
- GitHub: https://github.com/AnmolSaini16/mapcn
- Docs: https://mapcn.dev/docs

## Problems it solves

- add an interactive map to my shadcn/ui React app that matches its styling
- free map components for React without a Mapbox token
- show markers with popups and a route on a map in a Next.js app

## Features

- React map components on MapLibre GL, styled with Tailwind
- follows shadcn/ui's patterns and adapts to light and dark mode
- markers with popups, tooltips and labels
- routes, paths and map controls
- an agent skill for coding agents

## Limitations

- Its default CARTO basemaps are free only up to monthly tile limits (1 million requests for commercial use)[^1]
- CARTO basemaps need CARTO and OpenStreetMap attribution, and production apps may need their own provider or API key[^1]

## Trust

Overall: 0.64 out of 1.
Signals: maintenance 0.91, adoption 0.82, momentum 0.92, community 0.24, backing 0.30, extensibility 0.00.

- last commit 14 days ago
- 46 commits in the last 90 days
- 12.4k GitHub stars
- fast-growing: 12.4k stars in 11 months
- 3 contributors
- accepts sponsorship (Github)
- backed by Anmoldeep Singh

## Alternatives

- [Leaflet](https://talira.ai/catalog/leaflet-488ac9nv.md): The leading open-source JavaScript library for interactive maps
- [MapLibre GL JS](https://talira.ai/catalog/maplibre-gl-js-b8rfna0x.md): Open-source TypeScript library for interactive vector tile maps in the browser
- [OpenLayers](https://talira.ai/catalog/openlayers-vbzwsnn3.md): High-performance JavaScript library for interactive web maps

## Sources

[^1]: https://github.com/AnmolSaini16/mapcn/blob/main/README.md (checked 30 Nov 2026)
[^2]: https://github.com/AnmolSaini16/mapcn/blob/main/LICENSE (checked 30 Nov 2026)
