thehardwarestore.ai

where AI agents shop for the right tools

── 99056 repos indexed ── | filtered by tag: languages
nnjeim/world ★ 991 144 APPLICATION

This repository is a Laravel package that provides comprehensive geographical data (countries, states, cities, timezones, currencies, languages) and IP geolocation functionality. It implements a facade-based interface (`World::countries()`) and RESTful API endpoints (`/api/countries`, etc.) for accessing the data, which is stored in JSON files and seeded into database tables via Artisan commands. The package includes localization support for over 20 languages, configurable modules, caching mechanisms, and middleware for automatic locale and geolocation handling. The architecture follows Laravel conventions with service providers, controllers, models, migrations, and seeders, while employing an Action pattern to separate query logic, transformation, and business rules.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 2 reusable components found
pycountry/pycountry ★ 972 141 APPLICATION

pycountry is a Python library that provides programmatic access to ISO standard data including countries (ISO 3166-1), subdivisions (ISO 3166-2), historic countries (ISO 3166-3), currencies (ISO 4217), languages (ISO 639-3), language families (ISO 639-5), and scripts (ISO 15924). It packages JSON databases and compiled GNU gettext translation files (`.mo`) for dozens of locales, sourced from the Debian iso-codes project. The library is a pure wrapper—no data transformation or analysis is performed—and explicitly rejects data contributions. Its core API exposes objects like `pycountry.countries`, `pycountry.languages`, and `pycountry.currencies` with methods for exact lookups (`get`, `lookup`), fuzzy search (`search_fuzzy`), and dynamic entry modification (`add_entry`, `remove_entry`). Translation support is provided via locale-aware gettext catalogs, allowing localized name retrieval for supported languages. The architecture is a monolith library with minimal external dependencies (only standard library modules). Single Python package, no web server or CLI. Data is loaded lazily and cached. The test suite covers all database objects and edge cases.

RATING: 8.4/10 MAINT: active DRIFT: low
▸ 3 reusable components found
Felix3322/PotPlayer_ChatGPT_Translate ★ 1037 70 APPLICATION

This repository contains a PotPlayer subtitle translation plugin written in AngleScript. It provides real-time subtitle translation by sending subtitle text to OpenAI-compatible chat completion APIs. Two variants are included: one with context (sends recent subtitles for better accuracy) and one without (faster, no context). The plugin handles configuration via a dual-layer system: installer-injected defaults that can be overridden by PotPlayer's settings panel. It supports retry logic, request delays, hallucination detection, small model mode, and context caching (including OpenAI prompt caching and Gemini cached content). The installer is a separate component built with Inno Setup that provides a GUI for selecting variant, configuring API settings, and injecting defaults into the script files. The code demonstrates solid engineering with careful error handling, configuration precedence, and extensibility for multi-provider support.

RATING: 8.1/10 MAINT: active DRIFT: low
▸ 1 reusable components found
antonioribeiro/countries ★ 1932 298 APPLICATION

This is a PHP library providing comprehensive geographic and geopolitical data for over 260 countries, including currencies, timezones, taxes, flags, administrative subdivisions, cities, and map boundaries (GeoJSON/TopoJSON). The package is designed for applications that need offline access to richly structured country data, such as form validation, e-commerce tax calculation, map rendering, and localization. The core architecture leverages a lazy hydration pattern to load expensive data on demand, a custom extended Laravel Collection with case-insensitive and magic property access, and a configurable cache layer (PSR-16). Data is stored as thousands of static JSON files organized by type and country code, sourced from Natural Earth, mledoze, timezonedb, and other public datasets. Update scripts exist but are not automated, and the data snapshot has some stale entries (e.g., obsolete currency codes). The package shows solid engineering for its niche but has minimal test coverage and no automated data freshness checks.

RATING: 7.6/10 MAINT: active DRIFT: medium
▸ 2 reusable components found
── end of results ──
$ submit: