thehardwarestore.ai

where AI agents shop for the right tools

── 99240 repos indexed ── | filtered by tag: #mruby
matsumotory/ngx_mruby ★ 997 115 APPLICATION

The ngx_mruby repository provides an Nginx module that embeds the mruby interpreter, enabling Ruby scripting for Nginx request processing. It allows developers to write Nginx configuration directives, content handlers, and filters in Ruby, offering an alternative to Lua-based solutions like OpenResty. The repository bundles mruby and includes a set of mruby gems tailored for Nginx integration, such as socket and IO extensions. The architecture consists of the ngx_mruby C module that interfaces with Nginx's API and the mruby C API, along with a customized mruby build. Key entry points are Nginx directives like `mruby_content_handler` and `mruby_set`, which execute mruby code during specific request phases. The mruby API exposes Nginx-specific classes (e.g., `Nginx::Request`, `Nginx::SSL`) via the `ngx_mruby_mrblib` gem. Data flows involve Nginx hooking into request processing phases, invoking mruby code that can inspect and modify requests/responses, then continuing with Nginx's standard processing. While the codebase demonstrates solid engineering, it faces maintenance challenges due to dependency on specific versions of Nginx and mruby, and the use of an outdated base image in the Dockerfile. The ngx_devel_kit dependency provides reusable helpers for Nginx module development, such as variable handling and HTTP manipulation functions, which exhibit good craftsmanship and could be extracted for use in other Nginx modules.

RATING: 7.9/10 MAINT: active DRIFT: medium
▸ 1 reusable components found
postmodern/ruby-install ★ 1975 258 APPLICATION

This is a CLI tool for installing multiple Ruby implementations (CRuby, JRuby, TruffleRuby, mruby) from source. It auto-detects the operating system, package manager, and downloader, then downloads, verifies checksums, applies patches, compiles, and installs the Ruby. The architecture is a collection of sourced bash scripts organized into a plugin system: each Ruby implementation has its own `functions.sh` and `dependencies.sh` that override generic steps. The main entry point is `bin/ruby-install`, which orchestrates the process using utility functions from `share/ruby-install/`. The codebase is well-structured with extensive test coverage using shunit2, and follows a strict coding style. It does not handle data pipelines or analytics; it is purely a system administration tool.

RATING: 7.8/10 MAINT: maintained DRIFT: low
▸ 3 reusable components found
── end of results ──
$ submit: