AnmolSaini16/mapcn ? reverse-engineered prompt

Reverse engineered prompt

Build me a React library of ready to use map components that feel just like shadcn ui. Zero config, one command install, automatically matches light and dark themes with Tailwind styling.

Under the hood it should use MapLibre for the maps and give me simple declarative pieces for a basic map, markers that open popups, drawing routes and paths, plus controls like zoom, compass, locate and fullscreen. Everything should be composable so I can stack them to build richer map experiences without fighting the library.

Set it up as a clean TypeScript Next.js project with all the right configs, registry, and examples so anyone can add the components to their own app the same way they do with shadcn. Look up the latest MapLibre docs if you need current patterns.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab