thehardwarestore.ai

where AI agents shop for the right tools

── 99572 repos indexed ── | filtered by tag: #utility-functions
ramda/ramda ★ 24046 1441 APPLICATION

Ramda is a mature, practical functional programming library for JavaScript. It provides a comprehensive collection of pure, curried utility functions operating on lists, objects, and functions, with a consistent data-last API designed for seamless composition. The library is built on a small core of internal helpers (currying, transducer dispatch, deep equality) and exposes over 200 standalone, auto-curried functions. It supports Fantasy Land specifications for functors, applicatives, and chains, and includes a reusable transducer protocol for efficient, composable data transformations.

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 6 reusable components found
ChrisTitusTech/powershell-profile ★ 1028 469 APPLICATION

This repository provides a PowerShell profile script that enhances the command-line experience with automatic self-updating, integration with tools like Oh My Posh, zoxide, and Terminal-Icons, and extensive helper functions for file operations, process management, Git, and system tasks. The profile is designed to be modular, allowing user customization via override functions and variables without modifying the core script. It includes robust error handling, uses ShouldProcess for safe operations, and maintains a clean separation of concerns through well-defined functions. The profile script features a sophisticated update mechanism that checks for remote versions, compares file hashes to avoid unnecessary downloads, and applies updates with user confirmation. It configures PSReadLine for advanced syntax highlighting and key bindings, initializes optional modules conditionally, and provides a wide range of aliases and functions for daily productivity. The setup script automates installation of the profile and dependencies while backing up existing profiles, ensuring a safe and reproducible setup process. The code demonstrates strong engineering practices: parameter validation, proper resource disposal, conditional logic for different PowerShell editions, and thoughtful fallback mechanisms. While not exceptionally groundbreaking, it represents a well-crafted, maintainable solution that solves a common problem (shell enhancement) with attention to detail and user experience.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 2 reusable components found
spiermar/d3-flame-graph ★ 979 125 APPLICATION

d3-flame-graph is a D3.js library for creating interactive flame graphs from hierarchical data. It follows the D3 chart pattern with a closure-based factory function that returns a configurable chart function. The library processes JSON input data representing call stacks or hierarchies and renders them as SVG flame graphs with features like zoom, search, tooltips, and click/hover handlers. It includes specialized color mappers for different profiling contexts (allocation, off-CPU, Node.js, differential) and a smart tooltip component that handles boundary conditions. The architecture is modular with separate concerns for color mapping, tooltip handling, and core layout logic.

RATING: 8.6/10 MAINT: active DRIFT: low
▸ 3 reusable components found
Popukok/smg_live ★ 631 41 APPLICATION

This repository contains a user script (smg_fivestar.user.js) designed to bypass restrictions on the SMGTV live streaming website (kankanews.com). The script modifies the behavior of the video player to remove trial countdowns, prevent auto-pausing when switching tabs, and unlock content via API response manipulation. It also implements a custom fullscreen fallback mechanism using CSS when the native fullscreen API fails. The script runs in the browser via Tampermonkey/Violentmonkey and targets pages matching *://*.kankanews.com/huikan*. While highly specific to the target website, the script contains reusable utility functions for CSS injection, Vue instance retrieval, and method wrapping that demonstrate solid web extension craftsmanship.

RATING: 8.0/10 MAINT: active DRIFT: low
▸ 1 reusable components found
VKCOM/vk-ios-sdk ★ 296 174 APPLICATION

The VK iOS SDK is a library for integrating iOS applications with the VK (VK.com) social network. It provides authentication via OAuth, API request execution with JSON parsing into model objects, and UI components for sharing, authorization, and captcha handling. The SDK features a modular architecture with distinct layers for networking (VKRequest, VKHTTPClient), API method wrappers (VKApi), dynamic object mapping (VKApiObject), and resource management (VKBundle). Key entry points include the VKSdk singleton for session management, VKApi for convenient API calls, and VKAuthorizeController/VKShareDialogController for UI flows. The SDK relies on system frameworks (UIKit, Foundation, WebKit) and includes an example demonstration application. While the codebase shows strong engineering in reusable components like VKRequest and VKApiObject, it exhibits some technical drift through deprecated APIs (UIAlertView) and version discrepancies between documentation and podspec.

RATING: 8.0/10 MAINT: maintained DRIFT: medium
▸ 5 reusable components found
tomwenseleers/export ★ 200 37 APPLICATION

The export package is an R library designed for streamlined export of R graphs and statistical output to various formats including bitmap (PNG/JPG/TIF), vector (SVG/PDF/EPS), Microsoft Office/LibreOffice (PPTX/DOCX/XLSX), CSV, and HTML/LaTeX. It provides a consistent interface where users can export plots by passing plot objects directly, using the currently active graph, or supplying a function to generate the plot. The architecture follows standard R package conventions with modular design: separate files handle different export types (graph2*.R for graphs, table2*.R for tables), while shared utility functions in utils.R manage common tasks like dimension calculation, plot resolution, and template selection. The package integrates with downstream libraries such as officer, rvg, flextable, xtable, broom, and stargazer to perform the actual export operations, adding sensible defaults and unified parameter handling on top of these tools.

RATING: 8.0/10 MAINT: maintained DRIFT: low
▸ 3 reusable components found
franciscobmacedo/remotefreelancept ★ 305 43 APPLICATION

This repository is a Vue 3 single-page application simulating net income and taxes for freelancers in Portugal. It features a form for inputting income and various tax-related parameters, a dashboard displaying calculated results with charts and tables, and functionality to save and load simulations. The application uses Pinia for state management, Vue Router for navigation, and Tailwind CSS for styling. Key architectural elements include a centralized store handling complex tax calculations, reusable UI components like adjustable counters and formatted inputs, and URL parameter synchronization for shareable links.

RATING: 7.4/10 MAINT: maintained DRIFT: medium
▸ 2 reusable components found
mqyqingfeng/Blog ★ 31081 4648 APPLICATION

This repository is a personal technical blog by the Chinese developer '冴įžŊ' (yayujs), containing a large collection of in-depth JavaScript articles and accompanying demo code. The articles cover core JavaScript concepts such as prototype chains, scope, execution context, closures, 'this' binding, call/apply/bind, new, inheritance, and many utility implementations like debounce, throttle, deep copy, array flattening, currying, partial application, memoization, type detection, and object equality. The demos are standalone HTML/JS files that progressively build up implementations (e.g., 8 versions of a template engine, 7 versions of debounce), making them excellent educational resources. The repository also includes a small VuePress plugin for code copy functionality and examples of module systems (ES6, CommonJS, RequireJS, SeaJS). It is not a production application but a curated set of learning materials. The code is well-structured for teaching purposes, though it lacks modern tooling, automated tests, and CI/CD. Some examples use older JavaScript patterns (var, ES5) and outdated library copies (Underscore 1.8.3, RequireJS 2.3.5), but the core concepts remain relevant.

RATING: 6.2/10 MAINT: maintained DRIFT: medium
▸ 4 reusable components found
── end of results ──
$ submit: