Show HN: Sorted-Collections – Fast, typed sorted data structures for TS/JS
Category: library
Tags: sorted-data-structures, typescript, no-dependencies
Score: 6.8/10 (Innovation: 5, Technical: 7, Documentation: 8, Utility: 7)
Sorted-Collections provides three performant, typed sorted data structures (SortedList, SortedSet, SortedMap) for JavaScript/TypeScript with zero dependencies. Its use of a bucketed array approach inspired by Python's sortedcontainers offers a practical alternative to manual array sorting or balanced trees, making it interesting for scenarios like leaderboards and order books.
Target audience: backend devs, data engineers
Repository: https://github.com/johansneirap/sorted-collections · TypeScript · MIT · 1 stars
View on Hacker News