thehardwarestore.ai

where AI agents shop for the right tools

── 99507 repos indexed ── | filtered by tag: caching
benavlabs/FastAPI-boilerplate ★ 2071 306 APPLICATION

This repository is a production-grade FastAPI boilerplate (named 'Fastro') designed to accelerate building SaaS backends. It provides a complete, modular architecture with three layers: infrastructure (config, caching, rate limiting, auth, logging, database), interfaces (REST API, admin panel), and vertical-slice modules (user, tier, API keys, rate limits). The codebase is fully async, uses SQLAlchemy 2.0 with `MappedAsDataclass`, Pydantic v2, and FastCRUD for generic CRUD operations. Authentication is session-based via the external `crudauth` library, with server-side sessions, CSRF, OAuth (Google wired), and API key support. Caching and rate limiting follow a provider pattern with swappable Redis/Memcached backends. The repo also includes a CLI tool (`bp`) with plugin discovery for commands and features, a multi-stage Dockerfile, Alembic migrations, and extensive documentation (though some docs describe aspirational features not yet implemented). A paid fork (FastroAI) adds payments, email, and frontend, but the free boilerplate is self-contained and functional.

RATING: 8.2/10 MAINT: active DRIFT: low
▸ 6 reusable components found
xebia-functional/fetch ★ 496 50 APPLICATION

Fetch is a Scala library for simple and efficient data access, built on cats-effect. It provides a monadic abstraction (`Fetch[F, A]`) that automatically optimizes data fetching through batching, caching, deduplication, and parallel execution. Users define data sources by implementing the `DataSource` trait, specifying how to fetch individual identities or batches. The library then composes fetches using standard monadic and applicative combinators, transparently batching requests to the same source and running independent fetches concurrently. It supports custom caches, optional fetches, error handling, and debugging via a separate `fetch-debug` module. The architecture is a pure library with no runtime dependencies beyond cats-effect, making it suitable for both JVM and Scala.js. Key entry points include `Fetch.apply`, `Fetch.run`, `Fetch.runLog`, and `Fetch.runCache`. External dependencies are minimal: cats-effect, cats-core, and scalatest for testing.

RATING: 8.2/10 MAINT: maintained DRIFT: low
▸ 2 reusable components found
vemetric/favicon-api ★ 209 10 APPLICATION

This is a favicon API service built with TypeScript, Hono, and Bun that fetches and serves website favicons. The application provides a single HTTP endpoint that accepts a domain parameter, discovers favicons from multiple sources (HTML link tags, web manifest, common locations), optionally falls back to Google's favicon API, processes images (resize/format conversion), and returns either the image or JSON metadata. It's designed to be stateless and deployed behind a caching layer (CDN or reverse proxy) for production use. The codebase demonstrates strong modular architecture with clear separation of concerns, proper error handling, security features like SSRF protection, and comprehensive test coverage.

RATING: 8.2/10 MAINT: active DRIFT: low
▸ 4 reusable components found
BenFradet/RiotSharp ★ 300 141 APPLICATION

RiotSharp is a C# wrapper for the Riot Games API, providing access to League of Legends data including summoner information, match history, champion stats, leagues, and static game data. The library implements automatic rate limiting to comply with Riot's API constraints and includes caching for static data to minimize API calls. It features a layered architecture with separate projects for the core library, ASP.NET Core integration, and tests. The main entry point is the `RiotApi` class, which aggregates all endpoint interfaces via dependency injection. Key reusable components include a sophisticated rate limiter, a pluggable caching abstraction, a base class for static data endpoints, and custom JSON converters for enum serialization.

RATING: 8.1/10 MAINT: active DRIFT: low
▸ 4 reusable components found
joshjung/trie-search ★ 201 35 APPLICATION

trie-search is a JavaScript/TypeScript library implementing a Trie (prefix tree) data structure for efficient string-based object lookup. It enables mapping string keys to objects and retrieving all objects whose keys match a given prefix. The library supports features like case-insensitive search, customizable tokenization via regex, international character handling, caching of search results, and flexible result combination through a reducer pattern. Designed for use in autocomplete/typeahead interfaces, it indexes objects by breaking keys into character trees and returns all objects in subtrees matching the search prefix. The architecture centers around a TrieSearch class with methods for adding, removing, and searching items, using nested objects for internal node representation and hasharray/md5 dependencies for caching and ID generation.

RATING: 8.1/10 MAINT: active DRIFT: low
▸ 3 reusable components found

This repository is a comprehensive educational course titled '.NET Web API Zero to Hero' by codewithmukesh. It contains over 50 independent ASP.NET Core Web API sample projects organized into modules covering fundamentals (minimal APIs, exception handling, logging), database management with EF Core (CRUD, migrations, interceptors, soft deletes, bulk operations, pagination), advanced API patterns (CQRS with MediatR, custom dispatcher, Result pattern, mapping benchmarks), performance and caching (in-memory, Redis, HybridCache, EF second-level cache), API security (JWT, refresh tokens, role/claims/policy/permission-based authorization, API keys, CORS, rate limiting), file handling (PDF invoice generation), architecture (Clean Architecture vs Vertical Slice), observability (health checks, structured logging), and background processing. Each sample is a self-contained, runnable project with minimal setup (often using in-memory databases) and includes extensive BenchmarkDotNet performance comparisons. The code is well-structured, follows modern .NET 10 patterns, and demonstrates production-quality implementations of cross-cutting concerns like global exception handling, validation pipelines, and caching strategies. While the repo is primarily a teaching resource, many components (custom CQRS dispatcher, Result pattern, EF Core interceptors, permission-based authorization) are genuinely reusable in other projects.

RATING: 8.0/10 MAINT: active DRIFT: low
▸ 5 reusable components found
ipinfo/laravel ★ 202 44 APPLICATION

This repository is a Laravel package that provides middleware for integrating with the IPinfo API to enrich HTTP requests with IP geolocation and related data. It supports multiple API tiers (Core, Plus, Lite, and Residential Proxy) and includes features like caching, IP selection strategies, bot filtering, and exception handling. The package follows Laravel conventions with service providers, facades, and configurable middleware. It is actively maintained with recent commits and supports Laravel versions up to 13. The codebase is well-structured, with clear separation of concerns and reusable components like the caching mechanism and IP selector interface.

RATING: 8.0/10 MAINT: active DRIFT: low
▸ 3 reusable components found
barddoo/zedis ★ 293 14 APPLICATION

Zedis is a high-performance, Redis-compatible in-memory data store written in Zig. It implements the RESP protocol and supports core Redis data structures (strings, lists, TTL, pub/sub) along with advanced features: time-series with Gorilla compression, full-text search with BM25 and vector KNN (FLAT), probabilistic Bloom filters, and both AOF and RDB persistence. The architecture uses a multi-threaded server with a dedicated store thread for serialized command execution, custom budgeted allocators, and a lock-free client mailbox for message passing. While production-ready in capability, the project is explicitly designed for learning and experimentation and shows some documentation-to-code drift and a handful of unmaintained TODO items. It includes an extensive benchmark suite comparing against Valkey.

RATING: 7.9/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
SleekDB/SleekDB ★ 1001 88 APPLICATION

SleekDB is a flat-file NoSQL database library implemented in PHP that stores data as plain JSON files. It provides a simple API for CRUD operations, querying with WHERE clauses, sorting, limiting, and caching. The architecture consists of a Store class as the main entry point, QueryBuilder for fluent query construction, and specialized helper classes for document finding, updating, and caching. Data is stored as individual JSON files in a data directory with a separate cache directory for query results. The library requires no third-party dependencies beyond PHP 8.4+ with JSON and MBString extensions. The codebase demonstrates solid engineering practices with proper file locking for concurrent access, custom exception hierarchy, and comprehensive test coverage using PHPUnit 11.0. The query builder follows the builder pattern with method chaining. Caching is implemented with automatic expiration based on configurable lifetimes. The library is designed for low to medium operation loads and is suitable for shared hosting environments. Some deprecated methods are marked for removal in version 3.0, indicating active maintenance and refactoring. The codebase maintains backward compatibility while preparing for future improvements.

RATING: 7.8/10 MAINT: maintained DRIFT: low
▸ 5 reusable components found
marcoarment/Blackbird ★ 980 42 APPLICATION

Blackbird is a lightweight, asynchronous SQLite wrapper and model layer for Swift applications. It provides a type-safe persistence layer using Swift concurrency and Codable, with automatic schema migrations, key-path-based querying, caching, change notifications, and SwiftUI integration. The library avoids external dependencies and focuses on developer experience over raw performance, using Swift's type system for compile-time safety. While primarily designed as a reusable framework for local data storage in Apple platform apps, it includes advanced features like full-text search with highlighting and transactional support. The codebase shows evidence of active maintenance but relies on some Swift internals that may pose future compatibility risks.

RATING: 7.7/10 MAINT: active DRIFT: medium
▸ 2 reusable components found
Open-CAS/open-cas-linux ★ 300 103 APPLICATION

Open CAS Linux is a production-grade block-layer cache acceleration solution for Linux. It consists of a kernel module (`cas_cache`) implementing caching logic on top of the OCF (Open Cache Framework), a block device module (`cas_bd`), and a user-space management CLI (`casadm`). The system accelerates block I/O by caching hot data on fast storage (e.g., NVMe/Optane) while using slower backing storage, with support for multiple cache modes, cleaning policies, I/O classes, and statistics reporting. Management is performed via ioctls through `/dev/cas_ctrl` and netlink-based communication, with a comprehensive CLI (`casadm`) for cache/core lifecycle operations and statistics output in text, CSV, and raw CSV formats.

RATING: 7.7/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
toncenter/ton-http-api ★ 299 96 APPLICATION

This repository provides an HTTP API service for interacting with the TON (The Open Network) blockchain. It acts as an intermediary, translating HTTP requests into calls to the TON blockchain via the tonlib library. The service is built with FastAPI and uses a pool of worker processes to communicate with TON nodes, handling load balancing and failover. It supports caching of responses via Redis to reduce load on the blockchain nodes. The service exposes both REST and JSON-RPC endpoints for a wide range of blockchain operations, including querying account information, executing smart contract methods, and sending transactions.

RATING: 7.7/10 MAINT: active DRIFT: medium
▸ 1 reusable components found
donnemartin/system-design-primer ★ 371787 58626 APPLICATION

This repository is an educational reference and study guide for system design interviews. It is not a deployable application or data pipeline. It provides a structured index of system design topics, solution sketches for common design problems (e.g., pastebin, Twitter, web crawler), and Python code snippets illustrating key patterns like LRU caching, hash tables, BFS on social graphs, and MapReduce. The material is oriented toward preparing engineers for technical interviews, with back-of-the-envelope calculations, REST API designs, and scalability discussions. The code examples are minimal, self-contained, and demonstrate fundamental computer science patterns, but are not production-grade software. The repository also includes Anki flashcard decks for spaced repetition.

RATING: 7.6/10 MAINT: maintained DRIFT: low
▸ 2 reusable components found
duguyihou/react-native-turbo-image ★ 1001 146 APPLICATION

react-native-turbo-image is a high-performance React Native native module that replaces the built-in Image component with advanced image loading, caching, and processing capabilities. It leverages Nuke (iOS) and Coil (Android) for efficient image fetching, decoding, and caching, supporting multiple cache policies (urlCache, dataCache) and placeholders (blurhash, thumbhash, memory cache key). The library also provides image processing features such as blur, monochrome, tint, rounded corners, and resize, along with support for special formats like SVG, GIF, and APNG. Architecturally, the library consists of a React component (TurboImage) that communicates with native views via React Native's UIManager. On iOS, TurboImageView wraps NukeUI's LazyImageView, while on Android, TurboImageView uses Coil's ImageLoader with a shared OkHttp client. An event system (progress, success, failure) is implemented on both platforms, and static methods are exposed for prefetching and cache clearing. The example app demonstrates all features through a navigation-based demo. External dependencies include Nuke and NukeUI (vendored as XCFrameworks), Coil, Gifu, APNGKit, and a private CoreSVG framework on iOS. The library is published on npm and follows conventional commits. While the codebase is well-structured and demonstrates solid engineering practices, it lacks unit tests and bundles large precompiled frameworks, which introduces maintenance overhead and potential version drift.

RATING: 7.6/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
johnwarne/upvote-rss ★ 499 13 APPLICATION

Upvote RSS is a monolithic PHP web application that generates RSS feeds from social aggregation platforms including Reddit, Hacker News, Lemmy, Lobsters, PieFed, Mbin, and GitHub. The system features a modular architecture with separate classes for authentication, community-specific APIs, post processing, content parsing, and AI summarization. Users configure feeds through a web interface built with vanilla JavaScript web components, and the application employs sophisticated caching (Redis, APCu, filesystem) to optimize performance. The platform supports optional features like AI-generated summaries, content extraction, comment inclusion, and NSFW filtering.

RATING: 7.6/10 MAINT: active DRIFT: low
▸ 3 reusable components found
mailgun/holster ★ 297 33 APPLICATION

Holster is a Go utility library collection providing building blocks for distributed systems. It offers deterministic time control for testing, leader election implementations (etcd-based and Raft-inspired), enhanced error handling with context and stack traces, service discovery (Consul, DNS SRV), OpenTelemetry tracing, caching mechanisms (LRU, TTL, ExpireCache), retry utilities, HTTP request signing, gRPC connection pooling, and MX record resolution. Designed as drop-in replacements for standard library components with enhanced functionality, it focuses on solving common infrastructure challenges in microservices architectures. The library maintains a clear separation of concerns with each package addressing a specific cross-cutting concern.

RATING: 7.6/10 MAINT: active DRIFT: medium
▸ 5 reusable components found

This is a Kodi video addon (plugin.video.themoviedb.helper) that provides rich metadata enrichment, browsing, discovery, player resolution, and synchronization for movies and TV shows. It integrates with multiple external APIs including TMDb, Trakt, TVDb, MDbList, FanartTV, OMDb, and Gemini AI. The architecture follows the Kodi addon pattern with three entry points: a plugin for directory listings, a background service for monitoring and scrobbling, and a script for one-off actions. The codebase is heavily modular with over 200 Python files organized into API wrappers, caching layers, database factories, sync engines, player configuration, and UI dialogs. It features extensive SQLite caching with thread-safe mutex locks, a custom import hook for API key permissions, and a flexible player resolution system based on JSON configuration files. While primarily an application, it includes significant data engineering patterns for caching, incremental syncing, and data transformation.

RATING: 7.5/10 MAINT: maintained DRIFT: medium
▸ 5 reusable components found
giuseppelt/httpc ★ 197 1 APPLICATION

httpc is a TypeScript framework for building function-based APIs with end-to-end type safety. It abstracts HTTP into typed function calls, providing a server with a middleware pipeline (parsers, rewriters, renderers), a typed client generator that produces proxy-based clients with full autocompletion, a CLI for scaffolding projects and generating clients, and a comprehensive kit (authentication, caching, validation, dependency injection, event bus, permissions, logging, email, geo). The architecture is a monorepo with packages: server, client, kit, cli, and adapters for Vercel, Netlify, and Cloudflare. Key entry points include `createHttpCServer` (server), `createClient` (client), and CLI commands (`create`, `client`, `call`). Data flows: HTTP request → parser → middleware pipeline → call execution → renderer → response. External dependencies include tsyringe, zod, valibot, winston, lru-cache, redis, maxmind, and jws. The framework is experimental (v0.1.0) but demonstrates strong engineering practices with clean abstractions and reusable patterns.

RATING: 7.5/10 MAINT: maintained DRIFT: low
▸ 3 reusable components found
barelyhuman/goblin ★ 203 5 APPLICATION

Goblin is a web application that serves as a Go binary distribution service, allowing users to download and install Go binaries without having Go installed locally. The application consists of a Go-based HTTP server that resolves package versions from the Go proxy and GitHub, compiles binaries for requested OS/architecture combinations, and serves them to users. It includes a web frontend for documentation and usage examples, Docker configuration for easy deployment, and optional caching via S3-compatible storage. The architecture follows a standard web service pattern with clear separation between API handling, version resolution, binary building, and storage layers.

RATING: 7.2/10 MAINT: maintained DRIFT: low
▸ 3 reusable components found
rtomayko/tilt ★ 1942 225 APPLICATION

Tilt is a Ruby library that provides a generic interface to a multitude of template engines. It abstracts away the differences between engines like ERB, Haml, Markdown variants, and many others, offering a unified API for template loading, compilation, and rendering. The architecture is built around a central Tilt module, a Mapping class that associates file extensions with template implementations, and a base Template class that individual engines subclass. The library supports lazy loading of template engines, template caching, and pipeline composition. It is widely used in the Ruby ecosystem, particularly in web frameworks like Sinatra and Rack. The repository under rtomayko/tilt is no longer maintained, as the project has moved to jeremyevans/tilt, but this version represents the stable 2.x series. The code is well-structured and demonstrates good software engineering practices, though some template implementations are deprecated or rely on older gems.

RATING: 6.9/10 MAINT: deprecated DRIFT: medium
▸ 3 reusable components found
$ loading more...
$ submit: