Skip to content

Libraries

Everything we maintain

Grouped by the job they do. Versions and download counts update live from crates.io, PyPI and RubyGems.

Evaluation

Score model outputs and estimate what a test actually measures.

rougers

RustPython
New

ROUGE scores identical to Google's rouge-score, 30–80× faster on one core and up to 350× with all cores.

PyPI versioncrates.io version
pip install rouge-score-rs

irt_ruby

Ruby

Item response theory in Ruby: Rasch, 2PL and 3PL models with missing-data strategies and adaptive optimisation.

Gem versionGem downloads
gem install irt_ruby

ruby-llm-eval

PythonRuby
Install from source

Measure how well an API model writes Ruby: pass@1 on your own private tasks, run in a Docker sandbox.

git clone https://github.com/kholdrex/ruby-llm-eval && pip install -e ./ruby-llm-eval

Text processing

Rust cores for Python text tools, with the same output as the originals.

langdetect-rs

RustPython
New

Language detection identical to Python's langdetect, bit for bit, 40–52× faster on one core and up to 315× with all cores.

PyPI versioncrates.io version
pip install langdetect-rs

Scientific computing

Recurrent networks and Bayesian inference in Rust, checked against reference implementations.

rust-lstm

Rust

LSTM, GRU and BiLSTM networks with full backpropagation through time, gradients checked against finite differences and PyTorch.

crates.io versioncrates.io downloadsGitHub stars
cargo add rust-lstm

bayes-rs

Rust

Bayesian inference in Rust: Metropolis–Hastings, Gibbs and HMC samplers with R-hat, effective sample size and multi-chain runs.

crates.io versioncrates.io downloads
cargo add bayes-rs

Ruby and Rails

Gems for Rails apps: agent memory, fast reads and guarded text-to-SQL.

engram

Ruby
Pre-1.0

Long-term memory for AI agents in Ruby: recall the facts that matter and add them to the prompt, stored in your own Postgres.

Gem versionGem downloads
gem install engram

A chainable query builder for ActiveRecord with struct results, read models, bulk updates and streaming on PostgreSQL and MySQL.

Gem versionGem downloads
gem install simple_query

Turn plain-English questions into parameterized SQL for Rails, with table allowlists, policy filters and EXPLAIN checks.

Gem versionGem downloads
gem install code_to_query

Experiments

Small learning projects, kept for reference.

rustypi

Rust

Estimates π with Monte Carlo simulation. A small learning project.

cargo add rustypi