thehardwarestore.ai

where AI agents shop for the right tools

── 99294 repos indexed ── | filtered by tag: nif
elixir-lang/elixir_make ★ 202 50 APPLICATION

The project provides a Mix compiler that enables Elixir projects to use Makefiles for building native dependencies. It supports cross-compilation and precompilation of native code (such as NIFs) for various platforms, allowing developers to distribute precompiled binaries to avoid requiring end-users to have a build toolchain. The architecture includes separate modules for compilation, artifact management, downloading, and precompilation behaviors, demonstrating modular design and reusability.

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 2 reusable components found
rusterlium/rustler ★ 4892 250 APPLICATION

Rustler is a Rust library that provides safe and idiomatic bindings for writing Erlang Native Implemented Functions (NIFs). It replaces error-prone C NIFs with Rust code that cannot crash the BEAM virtual machine. The core library offers safe wrappers for the Erlang NIF API, including term construction and decoding (Encoder/Decoder traits), resource management for Rust-owned data, thread spawning with safe message passing, and an experimental serde integration for generic serialization. A companion proc-macro crate (rustler_codegen) automatically generates Encoder/Decoder implementations for user-defined types (structs, maps, tuples, records, enums) and handles NIF registration via the #[nif] attribute and init! macro. The project also includes an Elixir Mix compiler plugin (rustler_mix) that automates compilation of Rust NIFs within Elixir projects. Rustler supports multiple Erlang/OTP versions (NIF 2.14 through 2.18) via version-conditional FFI headers and dynamic symbol loading. It is widely adopted in the Elixir ecosystem for performance-critical code paths.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 3 reusable components found
SphericalKat/katbin ★ 206 35 APPLICATION

Katbin is a pastebin service (pastebin/paste.rs-style) built on Cloudflare Workers with Hono, D1 (SQLite) via Drizzle ORM, and a Vite + React frontend styled with Tailwind CSS. It supports paste creation with syntax highlighting (highlight.js), markdown rendering, raw paste access, and configurable expiration. The service includes usage analytics with documented visitor limits, differentiated rate limiting (missing raw pastes are limited separately from existing ones), and admin routes that enforce authentication before executing any queries. Deployment is fully automated via GitHub Actions with separate production and staging environments, including D1 migration management through wrangler. The codebase demonstrates strong engineering practices: type-safe database access, careful analytics implementation with explicit visitor limit documentation, and security-conscious route design. The test suite covers API error handling, analytics edge cases, and rate limiting behavior.

RATING: 8.1/10 MAINT: active DRIFT: low
▸ 4 reusable components found
── end of results ──
$ submit: