qmetrics.net

indexmap

Rust hash map and set with stable insertion order

Frameworks & PlatformsDesktop/CLI app
indexmap screenshot

indexmap provides IndexMap and IndexSet structures that match std HashMap ergonomics while preserving insertion order and allowing index-based access. Lookup works by key or by position in the sequence.

Overview

indexmap is a pure-Rust hash table crate whose iteration order does not depend on hash values. Keys stay in insertion order until operations such as remove or swap_remove intentionally change ordering; shift_remove keeps relative order among remaining entries.

Internally the design combines a hash index table with a dense vector of key-value pairs, which makes full iteration fast and keeps memory layout compact. The crate builds on hashbrown, the same table technology used by Rust’s standard HashMap.

IndexMap and IndexSet aim to be drop-in alternatives to std collections while adding sorting helpers, pop methods, flexible key equivalence via Equivalent, and optional mutable access traits for keys and set values. Feature flags gate serde, rayon parallelism, quickcheck, and no_std builds that rely on alloc.

The project notes inspiration from Python 3.6 dict ordering semantics, adapted to Rust’s ownership model. It has seen use in large Rust codebases such as the compiler when hash map behavior and iteration cost matter.

Key features

  • Insertion-ordered map and set types
  • Key lookup and index-based access
  • hashbrown-backed hash tables
  • shift_remove preserves order
  • Sorting and pop APIs
  • serde and rayon optional features
  • no_std support without default std flag
  • Custom hasher type aliases supported

Use cases

  • Deterministic iteration in Rust services
  • Configs needing stable key ordering
  • Sets/maps compatible with std APIs
  • serde serialization of ordered maps

Tags

Similar software

ECC

Open-source agent engineering toolkit for coding harnesses

ECC adds planning, verification, review, memory, skills, and security scanning to coding agents such as Claude Code, Codex, and Cursor. It installs as plugins, packages, and managed adapters across multiple harnesses.

★ 311.7k⟳ 8 days agoMIT
Frameworks & PlatformsDesktop/CLI app

React

JavaScript library for web and native user interfaces

React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.

★ 253k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Flutter

Open-source UI framework for multi-platform apps from one codebase

Flutter is an SDK for building user experiences for mobile, web, and desktop from a single codebase. It uses the Dart language and compiles to native machine code or web targets.

★ 181.5k⟳ todayBSD-3-Clause
Open Source Alternative to:Ionic Enterprise

Bootstrap

Responsive HTML, CSS, and JavaScript front-end toolkit

Bootstrap supplies CSS, JavaScript, and Sass-based styles for building responsive, mobile-first sites. It ships prebuilt grid layouts, UI components, and optional JavaScript plugins.

★ 175.1k⟳ 2 days agoMIT

Langflow

Visual low-code builder for AI agents and workflows

Langflow is a visual builder for AI agents and workflows. Flows can be customized in Python and deployed as an API or as an MCP server, with support for major LLMs and vector databases.

★ 157k⟳ todayMIT
Open Source Alternative to:Relevance AIVoiceflow

LangChain

Framework for agents and LLM-powered applications

LangChain helps developers chain interoperable components and integrations to build agents and LLM-powered applications. It offers a standard interface for models, embeddings, vector stores, and related pieces.

★ 150.1k⟳ 2 days agoMIT