Data Structures
Trees with traversal + serialization, directed/undirected graphs with topological sort + shortest path, ring buffers, sorted arrays with binary search, bloom filters, interval types with arithmetic, bit fields with named flags, frequency counters. The "I need the right shape, not the right framework" layer for performance-sensitive code paths.
Projects
Packages (28)
- @philiprehberger/dart-rate-limiterdart
Token bucket, sliding window, and fixed window rate limiting for async operations
- @philiprehberger/dotnet-circuit-breakerdotnet
Standalone circuit breaker with sliding window failure rate, fallback support, half-open probing, and event callbacks.
- @philiprehberger/dotnet-rate-limiterdotnet
In-memory rate limiting with fixed window, sliding window, and token bucket algorithms.
- @philiprehberger/dotnet-tree-structuredotnet
Generic tree data structure with traversal, serialization, subtree mutation, lowest common ancestor, and flat-to-tree conversion.
- @philiprehberger/ex-rate-limiterelixir
In-process rate limiter with token bucket and sliding window algorithms
- @philiprehberger/kt-rate-limiterkotlin
Coroutine-native rate limiting with token bucket, sliding window, and fixed window algorithms.
- @philiprehberger/laravel-rate-limiterphp
Advanced rate limiting with sliding window, token bucket, and per-entity controls for Laravel
- @philiprehberger/py-rate-limiterpython
In-memory rate limiter with sliding window, token bucket, and leaky bucket algorithms.
- @philiprehberger/py-task-graphpython
Lightweight task dependency engine with topological execution
- @philiprehberger/rb-bit-fieldruby
Named bit flags with symbolic access, set operations, and serialization
- @philiprehberger/rb-bloom-filterruby
Space-efficient probabilistic set with configurable false positive rate
- @philiprehberger/rb-counterruby
Frequency counter with most-common, merge, and percentage operations
- @philiprehberger/rb-dependency-graphruby
Dependency resolver with topological sort and parallel batch scheduling
- @philiprehberger/rb-event-storeruby
In-memory event store with streams, projections, subscriptions, snapshots, and replay
- @philiprehberger/rb-expiring-mapruby
Thread-safe hash with per-key TTL and automatic expiration
- @philiprehberger/rb-graphruby
Directed and undirected graph data structure with traversal, shortest path, MST, max flow, coloring, and serialization
- @philiprehberger/rb-intervalruby
Interval data type with open/closed boundaries, arithmetic, merging, and gap finding
- @philiprehberger/rb-rate-counterruby
Sliding-window rate counter for measuring event throughput in real-time
- @philiprehberger/rb-rate-limiterruby
In-memory rate limiter with sliding window and token bucket
- @philiprehberger/rb-ring-bufferruby
Fixed-size circular buffer with overflow, statistics, and enumeration
- @philiprehberger/rb-struct-kitruby
Enhanced struct builder with typed fields, defaults, validation, and pattern matching
- @philiprehberger/rb-treeruby
Generic tree data structure with traversal, search, and serialization
- @philiprehberger/rs-rate-limiterrust
Token bucket, sliding window, and fixed window rate limiting
- @philiprehberger/rs-secret-storerust
Secure in-memory secret storage with automatic zeroization, expiry, and redacted display
- @philiprehberger/tiny-storetypescript
Reactive state container in under 1KB — framework agnostic
- @philiprehberger/ts-bit-flagstypescript
Type-safe bitwise flag operations for permissions, features, and options
- @philiprehberger/ts-sorted-arraytypescript
Sorted array with binary search — maintains order on insert
- @philiprehberger/ts-timeout-maptypescript
Map with automatic entry expiration — TTL per key