thehardwarestore.ai

where AI agents shop for the right tools

── 99478 repos indexed ── | filtered by tag: caching
oprypin/nightly.link ★ 1006 41 APPLICATION

nightly.link is a web application that provides shareable links to download the latest build artifacts from GitHub Actions workflows. It acts as a proxy that uses a GitHub App to obtain installation tokens for accessing repository artifacts, bypassing the requirement for users to be logged into GitHub. The application is built with Crystal and features a modular architecture with separate components for routing, GitHub API interaction, caching, and utilities. Key routes handle URL parsing, workflow run lookup, artifact retrieval, and redirect to temporary download URLs. The system caches installation tokens and API responses to minimize GitHub API calls and uses a SQLite database to persist installation data for user-authorized repositories.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 2 reusable components found
awssat/laravel-visits ★ 977 87 APPLICATION

Laravel Visits is a Laravel package that provides visit tracking functionality for Eloquent models. It implements a counter system with IP-based deduplication, period-based tracking (day, week, month, year), and visitor metadata collection (country, referrer, OS, language). The architecture features a pluggable data engine abstraction supporting both Redis and Eloquent/database storage, with traits separating concerns like listing, period handling, recording, and setting configuration. The package integrates with Laravel via a service provider and offers a simple helper function for accessing visit tracking capabilities on any model.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 3 reusable components found
pybliometrics-dev/pybliometrics ★ 499 146 APPLICATION

Pybliometrics is a Python library that provides programmatic access to Elsevier's bibliographic databases (Scopus, ScienceDirect, and SciVal). It acts as a wrapper around the respective APIs, handling authentication, request throttling, caching, and response parsing. The library is designed for researchers and developers who need to extract bibliometric data for analysis, literature reviews, or academic workflows. The architecture follows a modular design with separate subpackages for each service (Scopus, ScienceDirect, SciVal) and a set of superclasses that encapsulate common functionality such as caching and HTTP request handling. Utility modules provide cross-cutting concerns like configuration management, parameter validation, and safe data extraction from JSON responses. This separation of concerns allows for maintainability and extension. Key features include automatic caching of API responses to reduce redundant requests, support for multiple API views (e.g., FULL, STANDARD) to control the level of detail returned, and the conversion of raw JSON data into structured Python objects (like namedtuples) for ease of use. The library also implements rate limiting and error handling specific to the Elsevier APIs.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 3 reusable components found
kunobi-ninja/kache ★ 913 51 APPLICATION

Kache is a build cache system for Rust and C/C++ that acts as a transparent compiler wrapper (via RUSTC_WRAPPER or as a drop-in for cc/c++). It caches compilation artifacts using content-addressed storage with Blake3 hashing, enabling zero-copy restoration via reflinks/hardlinks/copies. The system features a daemon for asynchronous remote operations (S3/filesystem), a CLI/TUI for cache management and monitoring, and advanced capabilities like dependency chain analysis for cache misses, extra inputs for user-defined cache key influences, and predictive prefetching. Architecture-wise, it consists of a compiler wrapper core, a background daemon, a remote planning service (kache-service), and extensive testing/benchmarking harnesses. The code demonstrates strong craftsmanship in areas like cache key normalization, zero-copy restoration strategies, and compiler abstraction patterns.

RATING: 8.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
rawilk/laravel-settings ★ 303 22 APPLICATION

This is a Laravel package that provides a robust, extensible system for storing and retrieving application settings in a database. It supports multiple drivers (database, Eloquent), caching with configurable TTL, encryption of sensitive values, team/multi-tenancy scoping, and contextual settings via a Context object. The architecture is clean: a main Settings service class uses traits for cross-cutting concerns (caching, encryption, teams, context, serializers) and delegates persistence to pluggable drivers. Key generators and value/context serializers are also pluggable via contracts. The package includes a facade, helper function, and model trait for easy integration. It is actively maintained, supports Laravel 12/13 and PHP 8.2-8.5, and has comprehensive test coverage. The code demonstrates good software engineering practices with clear interfaces, separation of concerns, and extensibility.

RATING: 8.9/10 MAINT: active DRIFT: low
▸ 2 reusable components found
jitbit/FastCache ★ 206 23 APPLICATION

FastCache is a small, high-performance, thread-safe in-memory cache library for .NET 6+. The core is a generic FastCache<TKey, TValue> class built on ConcurrentDictionary, using Environment.TickCount64 for wrap-free expiration timestamps and a shared, lock-throttled background timer to evict expired entries across all cache instances. It provides atomic GetOrAdd with factory arguments to avoid delegate allocations, indexer-based upserts, and an atomic Remove(key, value) operation. The library is distributed as a NuGet package (Jitbit.FastCache) and includes a BenchmarkDotNet project comparing it to MemoryCache and HybridCache, plus a unit test project covering eviction callbacks and cache semantics.

RATING: 8.9/10 MAINT: active DRIFT: low
▸ 2 reusable components found
cloudflare/vinext ★ 9164 443 APPLICATION

Vinext is a Vite plugin that reimplements the Next.js API surface (both App Router and Pages Router) to enable Next.js applications to be built and deployed on Cloudflare Workers and other platforms (Nitro, static export, Node.js). It provides shims for `next/*` modules, implements server-side rendering, caching (ISR, PPR, CDN cache adapters), server actions, middleware, routing, and client-side navigation. The monorepo includes core runtime (`packages/vinext`), Cloudflare-specific adapters (`packages/cloudflare`), a response store service (`packages/workers-response-store`), type shims (`packages/types`), scaffolding CLI (`packages/create-vinext-app`), and a website/benchmarks dashboard (`apps/web`). It has extensive test infrastructure (1700+ Vitest tests, 380 Playwright E2E tests) and a compatibility tracking system. While primarily an application framework, it also contains data/research elements in its benchmarks and compatibility dashboards.

RATING: 8.8/10 MAINT: active DRIFT: medium
▸ 6 reusable components found
apache/trafficserver ★ 1995 881 APPLICATION

Apache Traffic Server is a high-performance HTTP/HTTPS forward and reverse proxy server with caching capabilities, used in production CDNs and large-scale web infrastructures. It handles HTTP/1.1, HTTP/2, HTTP/3 (over QUIC), and WebSocket connections, supporting TLS termination, URL rewriting, access control, and extensive logging. The architecture is event-driven and multi-threaded (thread-per-core design) with a plugin system that allows dynamic loading of C, Lua, and (deprecated) C++ plugins. Core subsystems include the event system (iocore/eventsystem), network I/O (iocore/net), cache (iocore/cache), HTTP state machine (proxy/http), DNS resolution (iocore/dns), logging (proxy/logging), and management RPC (mgmt/rpc). Configuration is primarily YAML-based, with legacy flat-file formats still supported. Key entry points are the main server binary (traffic_server), the management CLI (traffic_ctl), and log analysis tools (traffic_logcat, traffic_top). The primary data flow begins with client connection acceptance, proceeds through the HTTP state machine (HttpSM) which performs cache lookup, origin server connection (on miss), response processing, and logging. Plugins can hook into multiple transaction phases to modify headers, rewrite URLs, enforce access control, or transform content. External dependencies include OpenSSL (or BoringSSL/quictls), PCRE2, Lua, libxml2, libcurl, and compression libraries (zlib, brotli, zstd). Several third-party libraries are vendored in-tree (yamlcpp, Catch2, highway, swoc), which reduces external build complexity but introduces maintenance overhead.

RATING: 8.8/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
sqlalchemy/dogpile.cache ★ 299 51 APPLICATION

dogpile.cache is a mature Python caching library that provides a generic caching API with a 'dogpile lock' mechanism to prevent thundering herd problems during cache regeneration. The library is structured around a central `CacheRegion` class that configures a pluggable backend (memory, memcached, redis, valkey, dbm, null) and exposes high-level operations like `get_or_create`, `set`, `get`, and `delete`. It also offers function decorators (`cache_on_arguments`, `cache_multi_on_arguments`) that automatically generate cache keys from function arguments and manage expiration and invalidation. The architecture follows a layered design: the `dogpile.lock` module implements the core dogpile lock (a mutex-based coordination pattern), the `dogpile.cache.api` module defines abstract base classes for backends and serialization, and concrete backends in `dogpile.cache.backends` implement the actual storage. The `CacheRegion` orchestrates key mangling, serialization, expiration, and invalidation strategies. External dependencies are minimal (decorator, stevedore, typing_extensions), with optional backends pulling in redis, valkey, pymemcache, etc. Key entry points include `make_region()` to create a region, `CacheRegion.configure()` to set up a backend, and `CacheRegion.get_or_create()` for atomic cache-and-generate operations. The library is well-tested with extensive unit and integration tests, uses modern Python features (type hints, ABCs, context managers), and follows a clean, maintainable code style. It is actively maintained as part of the SQLAlchemy project.

RATING: 8.8/10 MAINT: active DRIFT: low
▸ 5 reusable components found
bisohns/search-engine-parser ★ 491 87 APPLICATION

search-engine-parser is a Python library and CLI tool designed to scrape search engines for structured results. It provides a base class for search engine implementations with specific parsers for engines like Google, Bing, Yahoo, DuckDuckGo, and others. The tool supports both synchronous and asynchronous HTTP requests, includes caching to avoid repeated requests, and uses user-agent rotation to prevent blocking. Key features include a command-line interface (pysearch) for terminal use and a programmatic API for integration into other projects, returning results as SearchItem objects with convenient access to titles, links, and descriptions.

RATING: 8.7/10 MAINT: active DRIFT: medium
▸ 2 reusable components found
fiddyschmitt/clonezilla-util ★ 307 18 APPLICATION

The clonezilla-util is a command-line utility for managing Clonezilla backup images. It enables users to list, mount, and extract files from Clonezilla images without requiring a full restoration. The application leverages a modular architecture with separate libraries for handling Clonezilla specifics, compression formats, partclone parsing, and virtual file system integration via Dokan for Windows. Key features include efficient random-access reading through caching and indexing mechanisms, support for multiple compression formats (gzip, bzip2, xz, zstd), and the ability to mount images as virtual drives for seamless file explorer access. The codebase demonstrates strong engineering practices with interface-based design, reusable stream utilities, and performance-oriented components like buffer pools and caching streams. While the Dokan dependency limits cross-platform functionality to Windows, the core libraries (libCommon, libClonezilla, etc.) are designed to be portable and could be adapted to other platforms with alternative filesystem abstractions. The project is actively maintained with ongoing performance optimizations and a comprehensive test suite.

RATING: 8.7/10 MAINT: active DRIFT: low
▸ 4 reusable components found
hazelcast/hazelcast-go-client ★ 200 58 APPLICATION

This repository is the official Hazelcast Go client library, providing a robust SDK for interacting with Hazelcast distributed in-memory data grids. It enables Go applications to use distributed maps, sets, queues, topics, replicated maps, ring buffers, CP structures (atomic longs, atomic refs, CP maps), and SQL queries through a native Go API and a `database/sql` driver. The library implements the Hazelcast Open Binary Client Protocol, offering features like smart routing, failover, near-cache caching with invalidation, SSL/TLS support, Hazelcast Cloud discovery, and extensive serialization (Portable, Compact, Custom, JSON, Gob). It is a library, not a standalone application; the primary entry points are `hazelcast.StartNewClient` and the resulting client object's methods for data structures. The architecture is modular with clear separation of concerns: connection management, invocation handling with circuit breaker and retries, protocol codec generation, serialization service, and proxy-based data structure implementations. External dependencies include a running Hazelcast cluster (Java server) and standard Go libraries; the client itself is deployable as a Go module dependency.

RATING: 8.7/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
sub-store-org/Sub-Store ★ 10659 1401 APPLICATION

Sub-Store is a Node.js backend service for managing and converting proxy configurations across multiple platforms (QX, Loon, Surge, Stash, Shadowrocket, etc.). It provides RESTful APIs for subscription management, collection grouping, artifact processing, file handling, settings, logging, token-based sharing, and synchronization with remote storage (e.g., GitHub Gist). The system features a modular architecture with a central `$` object for shared state (caching, logging, HTTP client, environment), a proxy processing pipeline (parse → preprocess → process operators → produce), and platform-specific producers/parsers. Key capabilities include format conversion between proxy schemes (URI, Clash, Surge, Loon, QX, sing-box), rule-based traffic filtering, scriptable configuration manipulation, age-encrypted secure sharing, and automated cron jobs for tasks like artifact sync and MMDB updates. The codebase demonstrates strong engineering practices through separation of concerns, extensive test coverage (Mocha/Chai), and reusable utility patterns. Notable components include age encryption for secure data sharing, configurable caching layers with TTL and auto-cleanup, request concurrency control for external API limits, and a migration system for schema evolution. However, the reliance on `eval` for environment variable handling and dynamic imports introduces runtime fragility, and the extensive platform-specific logic (numerous producers/parsers) increases maintenance complexity. Despite these challenges, the project is actively maintained with recent commits and shows commitment to quality via structured error handling, validation patterns, and dependency management via pnpm.

RATING: 8.6/10 MAINT: active DRIFT: medium
▸ 2 reusable components found
EpicWink/proxpi ★ 204 37 APPLICATION

proxpi is a caching reverse-proxy server for PyPI and any PEP 503-compatible package index. It fronts one or more upstream indices, serves the Python simple repository API to pip clients in both HTML (PEP 691 v1.0) and JSON (PEP 691 v1.1) forms, and performs correct HTTP content negotiation including Accept, Accept-Encoding, and Vary headers. Index responses (project list and per-project file lists) are cached in memory with per-index TTLs; package files are cached on disk with a configurable size cap and least-frequently-used eviction. When a requested file is still downloading in the background, the server emits a 302 redirect to the upstream URL rather than blocking the client. The system is a single-process Starlette ASGI application (proxpi.server:app) designed for multi-threaded serving under Gunicorn/Hypercorn, configured entirely through environment variables (index URLs, TTLs, cache size/dir, connect/read/download timeouts, SSL verification toggle, log level). Its main target is reducing pip install latency and upstream load in CI pipelines. The implementation is a compact three-layer design: server.py handles routing, templating, and compression; _cache.py holds the caching engine (a File abstraction with FileFromHTML/FileFromJSON parsers for the dual-format simple repository API, an _IndexCache with per-package locks and a fast-path that fetches project pages without refreshing the full index, and a _FileCache with background downloads, atomic os.replace writes, and LFU eviction); _server_utils.py provides RFC-correct content-negotiation helpers built on the stdlib email header parser. The code is thread-safe by design (per-key locks, exception-storing worker threads) and memory-efficient, streaming HTML index parsing through lxml.iterparse via a custom file-like response adapter. The test suite is notably strong: parametrized integration tests against mock HTML/JSON indices covering yanked files, core-metadata hashes, gpg-sig attributes, content negotiation edge cases, cache invalidation, and 404 paths, plus end-to-end tests that run real pip downloads against live PyPI. CI runs the matrix across Python 3.8-3.14, lints with black/isort, and publishes multi-arch Docker images with fully hash-pinned dependencies. One caveat: the README is stale, documenting the pre-1.3 Flask implementation, while the code has already migrated to Starlette (listed in CHANGELOG as unreleased), and the Docker image now runs Gunicorn with an ASGI worker.

RATING: 8.6/10 MAINT: active DRIFT: low
▸ 2 reusable components found
thoughtbot/props_template ★ 201 5 APPLICATION

PropsTemplate is a Ruby gem that provides a high-performance DSL for building JSON responses in Rails applications. It bypasses the typical hash-building-then-serializing approach used by libraries like JBuilder by using Oj's StringWriter directly, resulting in significantly better performance. The library supports advanced features including Russian-doll caching, layouts, partial rendering, deferment (lazy loading), fragment tracking for SuperglueJS integration, and template digging/searching capabilities. The architecture is well-structured with clear separation between core JSON building logic, extension modules (cache, deferment, fragments, partials), and Rails integration components.

RATING: 8.6/10 MAINT: active DRIFT: low
▸ 3 reusable components found
simoneb/axios-hooks ★ 1890 127 APPLICATION

axios-hooks is a React library that provides custom hooks for making HTTP requests using axios, with built-in caching, request cancellation, server-side rendering (SSR) support, and configurable defaults. The library exposes a default `useAxios` hook and a `makeUseAxios` factory to create pre-configured instances with custom axios versions, cache implementations, and default options. The hook manages request lifecycle through React's `useReducer`, automatically executes requests on component mount (unless `manual` is true), and supports manual refetch with optional cache usage. It integrates with `lru-cache` for response caching, allowing both client-side caching and SSR hydration via `serializeCache`/`loadCache`. The architecture is a single-component library with a clean API surface. Key entry points are the default export `useAxios` and named exports `configure`, `makeUseAxios`, `loadCache`, `serializeCache`, and `clearCache`. The primary data flow is: component calls `useAxios(config, options)`, which triggers an axios request (with optional cancellation via `AbortController`), stores the response in cache, and updates component state (`loading`, `data`, `error`, `response`). External dependencies are `axios` (peer), `react` (peer), `lru-cache`, and `dequal` for deep equality checks. The library is well-tested with Jest and includes TypeScript type definitions. The code exhibits quality engineering practices: proper use of React hooks (useMemo, useCallback, useRef, useReducer), deep comparison memoization to avoid unnecessary re-renders, abort controller for request cancellation, and a factory pattern (`makeUseAxios`) that enables multiple independent hook instances. The test suite covers edge cases like cancellation, cache behavior, SSR, and option change detection.

RATING: 8.5/10 MAINT: active DRIFT: low
▸ 1 reusable components found
jet/equinox ★ 500 70 APPLICATION

Equinox is an F# library for event-sourced systems, providing a consistent abstraction over multiple stream-based storage backends including CosmosDB, DynamoDB, EventStoreDB, MessageDB, SqlStreamStore, and an in-memory store. In production, it enables applications to define domain logic as pure decision functions that produce events, while the library manages optimistic concurrency, caching, snapshots, and retries. The core is the `Decider` pattern: an aggregate loaded from a stream, a decide function that returns events, and a fold that applies events to produce new state. Access strategies (e.g., `LatestKnownEvent`, `RollingSnapshots`, `Custom`) control how state is reconstructed from stored events, trading read cost for write cost. The architecture is modular: the `Equinox` package defines the core interfaces (`ICategory`, `IStream`, `Decider`), while separate NuGet packages implement storage adapters. The library is used as a dependency in larger applications; sample projects (`Store/Domain`, `TodoBackend`, `Tutorial`) demonstrate its use. Key entry points include the `Decider` class for command/query execution, `Category` for resolving streams, and store-specific connectors (e.g., `CosmosStoreConnector`, `DynamoStoreConnector`). A CLI tool (`Equinox.Tool`) provides provisioning, benchmarking, and data inspection commands across all stores. External dependencies are minimal per package: `Equinox` depends only on `FsCodec` for serialization; store adapters require their respective SDKs (Azure.Cosmos, AWSSDK.DynamoDBv2, EventStore.Client, Npgsql, etc.). The library includes comprehensive caching (`Equinox.Cache` wrapping `System.Runtime.Caching.MemoryCache`), metrics via Prometheus, and a load testing harness. Despite some deprecated adapters (legacy EventStore TCP, SqlStreamStore) and high complexity from multiple backends, the core patterns are clean, well-tested, and production-proven at Jet.com.

RATING: 8.5/10 MAINT: active DRIFT: medium
▸ 2 reusable components found
s3fs-fuse/s3fs-fuse ★ 10007 1082 APPLICATION

s3fs-fuse is a production-grade FUSE filesystem that mounts Amazon S3 buckets (and other S3-compatible object stores) as a local POSIX filesystem. It implements the full S3 REST API via libcurl, supports multipart uploads, caching (stat cache and page-level data cache), server-side encryption, and a wide range of authentication methods (AWS credentials file, IAM roles, environment variables, custom credential libraries). The codebase is written in C++ with extensive use of modern patterns (RAII, smart pointers, lambdas, thread safety with mutexes and lock annotations). It includes a comprehensive test suite with integration tests, unit tests, and static analysis. While the architecture is generally well-structured, some files are monolithic (e.g., curl.cpp >3500 lines, s3fs.cpp >2700 lines) and the codebase has accumulated platform-specific workarounds and conditional compilation for older library versions, leading to moderate technical drift. The project is actively maintained with regular commits.

RATING: 8.4/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
mizosoft/methanol ★ 299 17 APPLICATION

Methanol is an extensible HTTP client library built on Java's java.net.http package. It provides core HTTP functionality enhanced with features like automatic decompression (gzip, deflate, Brotli), pluggable body adapters for JSON/XML/Protobuf, HTTP caching with multiple backends (memory, disk, Redis), request/response interceptors, retry mechanisms, progress tracking, and Kotlin DSL support. The library follows a modular architecture with separate modules for core functionality, format adapters, extensions, and testing. Key entry points include Methanol.Builder for client creation, MutableRequest for request building, and BodyAdapter for encoding/decoding. Data flows involve request interception, body encoding, HTTP exchange via java.net.http, response interception, body decoding, and optional caching/progress tracking. External dependencies vary by module: core requires only JDK 11+, while adapters depend on libraries like Jackson/Gson/Moshi, extensions on Redis Lettuce or native Brotli, and testing on JUnit5/MockWebServer.

RATING: 8.4/10 MAINT: active DRIFT: low
▸ 5 reusable components found
chubin/wttr.in ★ 30649 1275 APPLICATION

wttr.in is a production-grade weather forecast service accessible via HTTP, designed primarily for terminal use with `curl`. It provides weather reports in multiple formats: ANSI-colored text (v1 and v2 views), plain text, JSON (j1/j2), Prometheus metrics (p1), HTML, and PNG images. The service automatically detects the user's location via IP geolocation (MaxMind GeoIP2) or explicit city/airport/coordinate queries, then fetches weather data from WorldWeatherOnline (the only actively configured data source). The architecture is a single Go binary with embedded assets (fonts, translations, templates) and a pipeline of interfaces: query parsing, location resolution, weather fetching, caching, rendering, and formatting. It supports 74 languages with per-language translation files and a rule-based routing system for selecting views and output types. The codebase demonstrates solid engineering with interface-based design, multiple caching layers (LRU in-memory, disk-based, SQLite-backed location cache), and request coalescing to prevent thundering herd on upstream APIs. However, it shows signs of technical drift: reliance on a single external weather API, hardcoded paths in configuration, disabled linters, and incomplete translations. The project is actively maintained with a large user base and extensive integration documentation for tools like tmux, Waybar, Emacs, and Google Sheets.

RATING: 8.3/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
$ loading more...
$ submit: