frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: I rewrote an outdated React Native map clustering library

https://github.com/suwi-lanji/rn-maps-clustering
28•hadat•14h ago
Hey Hacker News,

I'm a long-time lurker and wanted to share a project I just finished building.

Like many React Native developers, I needed to add marker clustering to a map in my app. The most popular library for this, react-native-maps-clustering, was fantastic in its day but has become outdated and no longer works with modern versions of Expo, React Native, and their dependencies.

After hitting a wall of compatibility issues, I decided to take on the challenge of rewriting it from the ground up, focusing on a modern toolchain and a better developer experience.

The journey was a lot more challenging than I anticipated. It turned into a deep dive into solving dependency hell with different versions of @types/react, wrestling with build tool configurations for pnpm, bob, and ESLint, and ensuring everything was strictly typed with TypeScript. It felt like a classic case of yak shaving, but I was determined to create a solution that "just works" for developers today.

The result is RN Super Cluster, a performant, fully-typed, and easy-to-use clustering library for react-native-maps.

What it does: It provides a <ClusteredMapView /> component that you can use as a drop-in replacement for the standard <MapView />. Any <Marker /> components you place inside will be automatically clustered.

Key Features:

    Modern & Maintained: Built with a modern toolchain and designed to be actively maintained.

    Fully-Typed: Written entirely in TypeScript to prevent common errors and improve autocompletion.

    High-Performance: Uses supercluster under the hood for extremely fast geospatial clustering.

    Spiderfier: At the maximum zoom level, overlapping markers automatically "spiderfy" (spread out on a spiral) so they can be individually tapped.

    Customizable: You can provide your own custom components for rendering clusters, and callbacks for handling press events.
This was a passion project born out of necessity, and I hope it can save other React Native developers the headaches I went through.

I would love to get your feedback, and contributions are more than welcome!

GitHub: https://github.com/suwi-lanji/rn-maps-clustering NPM: https://www.npmjs.com/package/rn-maps-clustering

Thanks for checking it out!

Comments

belchiorb•12h ago
Looks nice! As a suggestion, it would be easier to understand what this is about by adding a small video/GIF of the library in action.

Took me some time to understand what it was about.

hadat•11h ago
Will do so, thank you
DanielHB•11h ago
I actually did a project doing clustering like that around 2018 using react native, we quickly realized we had to drop down to native for the maps. It was a huge pain in the ass because of the vastly different implementations of google/apple maps and dealing with bridging between native and react parts of the code.

Your project would have solved about 2-3 months of work and ongoing maintenance of 2 devs we had back then. The project is not around anymore but I will keep it in mind if I ever do something similar again.

hadat•11h ago
Thank you very much for considering using it
kevg123•10h ago
Cool stuff, especially spiderfier. What's your opinion of expo-maps? https://expo.dev/blog/introducing-expo-maps-a-modern-maps-ap...
belchiorb•9h ago
Good point. Is this something that expo maps can’t do?
hadat•8h ago
Haven't used it yet, our team is fully integrated with react-native-maps, and I'm just hearing about it now

Show HN: FlopperZiro – A DIY open-source Flipper Zero clone

https://github.com/lraton/FlopperZiro
113•iraton•3h ago•28 comments

Show HN: OffChess – Offline chess puzzles app

https://offchess.com
347•avadhesh18•1d ago•156 comments

Show HN: KCast

https://github.com/Agundur-KDE/KCast
2•Agundur•3h ago•0 comments

Show HN: I rewrote an outdated React Native map clustering library

https://github.com/suwi-lanji/rn-maps-clustering
28•hadat•14h ago•7 comments

Show HN: Todo2 – AI Project Manager Inside Cursor

https://todo2.pro
3•adam-pavlat•3h ago•0 comments

Show HN: RecomPal – A no-code AI chatbot to increase Shopify sales

https://recompal.com
2•logicalangel•4h ago•0 comments

Show HN: Pyhoff – Connect Python ML Models to Beckhoff/WAGO IO Hardware

https://github.com/Nonannet/pyhoff
7•Saloc•9h ago•0 comments

Show HN: A rain Pomodoro with brown noise, ASMR, and Middle Eastern music

https://forgetoolz.com/rain-pomodoro
96•ShadowUnknown•1d ago•48 comments

Show HN: Jukebox – Free, Open Source Group Playlist with Fair Queueing

https://www.jukeboxhq.com/
115•skeptrune•1d ago•42 comments

Show HN: Nordstars shows a team's missing skills for different business goals

https://nordstars.ai/
2•doraby•6h ago•0 comments

Show HN: Stravu – Editable, multi-player AI notebooks with text, tables, diagram

5•wek•6h ago•0 comments

Show HN: NYC Subway Simulator and Route Designer

https://buildmytransit.nyc
195•HeavenFox•2d ago•31 comments

Show HN: Snub – A fast, lightweight file search CLI for Windows (written in C)

https://github.com/seeyebe/snub
5•seeyebe•9h ago•7 comments

Show HN: I wrote a "web OS" based on the Apple Lisa's UI, with 1-bit graphics

https://alpha.lisagui.com/
508•ayaros•3d ago•141 comments

Show HN: An obsidian plugin inspired by the 'I deleted my second brain' article

https://versen.substack.com/p/to-learn-you-need-to-forget
2•boars_tiffs•11h ago•0 comments

Show HN: From Photos to Positions: Prototyping VLM-Based Indoor Maps

https://arjo129.github.io/blog/5-7-2025-From-Photos-To-Positions-Prototyping.html
55•accurrent•3d ago•2 comments

Show HN: I built a tool to solve window management

https://aboveaverageuser.com/smartswitcher
51•atommachinist•1d ago•66 comments

Show HN: Sumble – knowledge graph for GTM data – query tech stack, key projects

https://sumble.com
89•antgoldbloom•1d ago•47 comments

Show HN: Ossia score – A sequencer for audio-visual artists

https://github.com/ossia/score
93•jcelerier•2d ago•14 comments

Show HN: Multi-session Claude Code manager with async workflow

https://github.com/ObservedObserver/async-code
3•loa_observer•13h ago•0 comments

Show HN: Modernized file manager and program manager from Windows 3.x

https://github.com/brianluft/heirloom
72•electroly•2d ago•17 comments

Show HN: Unlearning Comparator, a visual tool to compare machine unlearning

https://gnueaj.github.io/Machine-Unlearning-Comparator/
40•jaeunglee•2d ago•2 comments

Show HN: Piano Trainer – Learn piano scales, chords and more using MIDI

https://github.com/ZaneH/piano-trainer
200•FinalDestiny•5d ago•58 comments

Show HN: Cool Symbols

https://copysymbol.cc/
4•artiomyak•4h ago•0 comments

Show HN: Piplo helps you stay in touch with the people who matter

https://apps.apple.com/us/app/piplo/id6748089184
3•airpaulg•17h ago•0 comments

Show HN: A Truth Table Generator Written in Common Lisp

https://logic.manoel.dev/
16•lerax•17h ago•0 comments

Show HN: A Language Server Implementation for SystemD Unit Files

https://github.com/JFryy/systemd-lsp
76•arandomhuman•2d ago•21 comments

Show HN: I built "Schnippi", my dream screenshot Chrome extension

https://chromewebstore.google.com/detail/schnippi-screenshot-tool/bnihkhiedonaoadigfljpjojncpnkeln
3•sagering•8h ago•0 comments

Show HN: a community for collaborating on sideprojects

https://relentlessly.no/
47•0dKD•1w ago•27 comments

Show HN: AirBending – Hand gesture based macOS app MIDI controller

https://www.nanassound.com/products/software/airbending
92•bepitulaz•5d ago•24 comments