thehardwarestore.ai

where AI agents shop for the right tools

── 99632 repos indexed ── | filtered by tag: golang
jinzhu/now ★ 4700 242 APPLICATION

jinzhu/now is a lightweight, zero-dependency Go library for time manipulation. It provides comprehensive functions to compute the beginning and end of various time units (minute, hour, day, week, month, quarter, year, half-year), parse flexible date/time strings into Go `time.Time` values, and handle configurable week start days (e.g., Monday vs Sunday) and time zones. The core pattern is a `Now` struct wrapping `time.Time` with a `Config` for customization, enabling fluent calls like `now.With(t).BeginningOfMonth()`. The library is widely used (4.7k stars) and thoroughly tested, with careful DST handling and a clever partial-date parser that merges string components with contextual current time. It is a pure library without external dependencies, targeting Go 1.12+ and suitable for any Go project needing robust time calculations or flexible date parsing.

RATING: 8.3/10 MAINT: maintained DRIFT: low
▸ 2 reusable components found
nitrictech/nitric ★ 2016 121 APPLICATION

Nitric is a multi-cloud framework that enables developers to define cloud infrastructure and application logic in code, then deploy to AWS, Azure, or GCP. The framework provides infrastructure-as-code capabilities for cloud resources (APIs, storage, queues, topics, secrets, etc.) with runtime implementations for handling cloud service events. It features a modular architecture with core framework logic, cloud provider implementations, and a documentation site. The system uses a plugin-based worker system for handling cloud events and provides consistent abstractions across cloud providers through well-defined interfaces.

RATING: 8.3/10 MAINT: maintained DRIFT: low
▸ 4 reusable components found
sedyh/awesome-ebitengine ★ 992 51 DATA_RESEARCH

This repository is a curated list of awesome Ebitengine frameworks, libraries, and software. Ebitengine is an open-source game library for the Go programming language. The repository contains various categories such as frameworks, GUI, graphics, video, audio, physics, world, resources, scripting, networking, integration, input, testing, games, demos, and applications.

RATING: 8.3/10 REPRO: 8.0/10 MAINT: maintained DRIFT: low
▸ 2 reusable components found
mudler/luet ★ 307 30 APPLICATION

Luet is a container-native package manager for building, installing, and managing software packages. It uses Docker/buildah as build backends, treats packages as container images, and employs SAT solving (with optional Q-learning) for dependency resolution. The application features a CLI-driven architecture with commands for package operations, repository management, and system maintenance. Key architectural elements include a modular design with pluggable solvers, compiler backends, and repository clients, plus a context-based dependency injection system for logging, configuration, and garbage collection. The system stores package metadata in BoltDB or in-memory databases and supports templating via Sprig for dynamic package definitions.

RATING: 8.3/10 MAINT: active DRIFT: low
▸ 3 reusable components found
avelino/awesome-go ★ 186423 13594 APPLICATION

This repository is the source of the awesome-go curated list, a community-maintained index of Go frameworks, libraries, and tools. The primary artifact is README.md, which contains thousands of categorized entries. Around this data, the repo includes a Go-based static site generator (main.go) that parses the README, fetches repository metadata from GitHub/GitLab APIs, and renders HTML pages using templates in tmpl/. It also contains a suite of Go tests and GitHub Actions workflows that enforce list integrity: alphabetical ordering, no duplicates, entry formatting, maturity checks, and stale repository detection. The codebase is a hybrid: it is fundamentally a curated data resource (the list itself) wrapped in application-style tooling for validation and site generation. There are no API endpoints or user-facing services; the Go code runs as CLI/CI tooling. The architecture is simple: markdown parsing via goldmark, HTML manipulation via goquery, metadata caching with a 7-day TTL, and template rendering. External dependencies include GitHub/GitLab APIs, Netlify for deployment, and several Go modules. The most reusable pieces are the small, self-contained packages pkg/slug and pkg/markdown, plus the standalone CI scripts under .github/scripts/ that validate repository quality and PR diffs. These can be extracted for other awesome-list projects or documentation pipelines. The code is generally clean and tested, though it contains some FIXME comments and hardcoded limits, and relies on external API availability. Overall, it is an actively maintained, well-organized project that successfully automates the curation of a massive list.

RATING: 8.2/10 MAINT: active DRIFT: low
▸ 4 reusable components found
kata-containers/kata-containers ★ 8954 1513 APPLICATION

Kata Containers is an open-source secure container runtime that runs each container inside a lightweight virtual machine (microVM), providing strong workload isolation while maintaining container-like performance and orchestration. The project provides a containerd shim-v2 implementation, a guest-side agent, and supports multiple hypervisors including QEMU, Cloud Hypervisor, Firecracker, and its own built-in VMM (Dragonball). It integrates deeply with Kubernetes (runtime classes, CSI, mutating webhooks, policy generation via Rego) and supports confidential computing features (TDX, SEV-SNP, IBM Secure Execution, ARM CCA). The codebase is dual-language: the primary runtime is written in Go, with a newer Rust rewrite (runtime-rs) that shares core libraries with the agent and Dragonball VMM. The project is actively maintained with extensive CI, multi-architecture support, and a large ecosystem of tools (agent-ctl, kata-ctl, log-parser, trace-forwarder, genpolicy). While the architecture is modular and many components (e.g., safe-path, dbs-allocator, retry library) are independently reusable, the coexistence of two runtime implementations, generated API clients, and architecture-specific code introduce some technical drift and maintenance overhead.

RATING: 8.2/10 MAINT: active DRIFT: medium
▸ 6 reusable components found
jenkins-x/jx ★ 4690 789 APPLICATION

This repository contains the `jx` CLI, the primary command-line interface for the JayeX (Jenkins X) 3.x platform. It is a Go application that provides a modular command tree for managing Kubernetes-native CI/CD pipelines, including commands for namespace switching, dashboard access, version management, and self-upgrade. The CLI acts as a launcher for external plugin binaries (e.g., jx-gitops, jx-secret) that are discovered and executed dynamically, with built-in shell completion delegation. The architecture is centered around the Cobra command-line framework and integrates with Kubernetes APIs, GitHub releases for plugin distribution, and the local filesystem for configuration and binary caching. While the core is tightly coupled to the JayeX ecosystem, the plugin management and self-update subsystems exhibit patterns that could be extracted for use in other CLI tools.

RATING: 8.2/10 MAINT: active DRIFT: low
▸ 2 reusable components found
GoogleCloudPlatform/golang-samples ★ 4655 1881 APPLICATION

This repository contains Google Cloud Platform (GCP) service code samples in Go, designed to demonstrate API usage patterns and implementation techniques for various GCP services. The samples are organized by service (e.g., BigQuery, Firestore, Cloud Functions, Compute Engine) and include both runnable examples (main.go files) and library snippets. The repository serves as a practical reference for developers building applications on GCP, showing how to initialize clients, handle errors, manage resources, and integrate services. While not a single cohesive application, it provides executable samples that can be adapted for production use, with many samples following client initialization, context handling, and error handling patterns. The repository includes testing infrastructure and CI/CD configurations to validate samples against real GCP projects.

RATING: 8.2/10 MAINT: active DRIFT: medium
▸ 2 reusable components found
douyu/jupiter ★ 4566 708 APPLICATION

Jupiter is a governance-oriented microservice framework for Go, developed and used at Douyu. It provides a comprehensive set of components for building production-grade microservices, including multiple HTTP server wrappers (Gin, Echo, fasthttp, GoFrame), gRPC server and client, service discovery via etcd, distributed task scheduling (XXL-JOB), caching (freecache, LRU), configuration management (file, etcd, Apollo, HTTP), structured logging with rotation, Prometheus metrics, OpenTelemetry tracing, and resilience patterns (Sentinel circuit breaker/flow control). The framework also includes a CLI tool for project scaffolding and protobuf code generation plugins for Gin, Echo, error codes, and field masks. The architecture follows a modular, pluggable design with consistent patterns for configuration (StdConfig/RawConfig/Build), lifecycle hooks, interceptor chains, and singleton management. It emphasizes observability and governance out of the box, with built-in health checks, pprof endpoints, and metric export. The codebase is well-structured with extensive unit and e2e tests, though it carries some technical debt from supporting multiple HTTP frameworks and legacy dependencies. While primarily an application framework, it includes reusable utility packages (retry, field mask, load balancing, goroutine management) that can be extracted independently. The framework is actively maintained with regular commits and CI/CD pipelines, but some dependencies are outdated and there is code duplication in log rotation and cache implementations.

RATING: 8.2/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
charmbracelet/mods ★ 4525 232 APPLICATION

Mods is a CLI tool that pipes command output to large language models (LLMs) for AI-powered processing. It reads stdin, prepends a user prompt, sends the combined text to an LLM (OpenAI, Anthropic, Cohere, Google, Ollama, etc.), and streams the response to stdout. The architecture is a single Go binary using Bubble Tea for TUI (spinner, viewport) and a plugin-like provider system via the `internal/stream` interface. Key entry points are `main.go` (cobra CLI) and `mods.go` (Bubble Tea model). Data flows: stdin -> prompt assembly -> provider API call -> streaming output -> optional conversation caching (SQLite + gob files). External dependencies include multiple AI SDKs, Bubble Tea, Glamour for Markdown rendering, and SQLite for conversation storage. The repository is now archived as of March 2026, with the team focusing on a successor tool (Crush). Despite being archived, the codebase is well-structured, cleanly separated, and demonstrates strong Go engineering practices with a focus on testability and modularity.

RATING: 8.2/10 MAINT: deprecated DRIFT: low
▸ 5 reusable components found
tiger1103/gfast ★ 1958 450 APPLICATION

GFast is a full-stack, modular admin panel built with GoFrame v2.10 and Vue3. It provides a RESTful API backend for managing users, roles, departments, menus, dictionaries, configuration, logs, and system monitoring. The architecture follows a layered pattern: API definitions (api/v1), controllers (internal/app/*/controller), business logic (internal/app/*/logic), data access objects (dao), and service interfaces. Authentication uses JWT (gfast-token) and authorization uses Casbin with RBAC. Caching is abstracted via gfast-cache supporting memory or Redis. The system includes a code generator, scheduled tasks, and an OpenAPI/Swagger endpoint. External dependencies include MySQL, Redis, Casbin, and ip2region for IP geolocation.

RATING: 8.2/10 MAINT: active DRIFT: low
▸ 4 reusable components found
darkweak/souin ★ 1003 86 APPLICATION

Souin is an HTTP caching reverse proxy/middleware compliant with RFC 7234 and related standards. It functions as a pluggable cache layer for various web frameworks (Gin, Echo, Fiber, etc.) and reverse proxies (Caddy, Traefik, Tyk), providing features like request coalescing, surrogate key-based tagging, stale-while-revalidate, and multiple storage backends. The architecture centers on a core middleware handler (`pkg/middleware`) that processes requests through a chain of caching logic, utilizing context propagation for request-scoped values and a pluggable storage system. Key entry points include framework-specific adapter files (e.g., `plugins/gin/souin.go`) and the standalone `main.go` server. Data flows involve intercepting HTTP requests, checking cache storage (in-memory or external like Redis/Badger), serving cached responses or forwarding to upstream, and optionally caching responses based on configuration. External dependencies include Go standard libraries, third-party packages for specific frameworks/storage drivers, and tools like Docker and GoReleaser for deployment.

RATING: 8.2/10 MAINT: active DRIFT: low
▸ 2 reusable components found
target/strelka ★ 1002 143 APPLICATION

Strelka is a real-time, containerized file scanning system designed for threat hunting, detection, and incident response at enterprise scale. It is built with a Go frontend and manager components that handle gRPC client intake, Redis-based task coordination, and response logging (local, Kafka, S3), while Python backend workers execute over 50 file-format scanners. The system uses YARA rules for initial file classification ('taste'), then dispatches files to specialized scanners for metadata extraction, IOC detection, archive extraction, and malware analysis. It supports multiple client modes: oneshot (CLI), filestream (continuous file monitoring), and a Python client. Deployment is via Docker Compose or Kubernetes, with optional Envoy proxy and OpenTelemetry tracing. The architecture follows a microservices pattern: frontend (gRPC server), coordinator (Redis task queue), gatekeeper (dedup cache), manager (Redis management), and backend (Python scanner workers). Scanners are dynamically loaded and configured via YAML, with positive/negative flavor matching. The codebase includes extensive test fixtures and pytest tests for each scanner, CI/CD pipelines, and pre-commit hooks. While the system is production-ready and well-structured, it exhibits some code duplication across archive scanners, deprecated library usage (pylzma, old protobuf), and brittle subprocess calls for password cracking. Overall, it is a strong, maintainable security analysis platform.

RATING: 8.2/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
lightninglabs/neutrino ★ 977 222 APPLICATION

This repository is a production-grade Go library implementing a Bitcoin light client based on BIP 157/158 compact block filters (Neutrino). It is designed for mobile Lightning Network wallets and provides SPV (Simplified Payment Verification) without requiring a full node. The core architecture revolves around a ChainService that orchestrates peer connections, block header sync, filter header sync, UTXO queries, transaction broadcasting, and chain rescanning. The library stores headers in flat files with bbolt-backed indices, and filters in a boltdb database. It includes a sophisticated peer query management system with retry, timeout, and banning logic, as well as caching layers for blocks and filters. The codebase is well-structured into subpackages with clear responsibilities, many of which are reusable in other Go projects. It is actively maintained by Lightning Labs and used in production by lnd (Lightning Network Daemon).

RATING: 8.2/10 MAINT: active DRIFT: low
▸ 6 reusable components found
GoogleCloudPlatform/magic-modules ★ 967 2496 APPLICATION

This repository is a code generation and CI orchestration system for Terraform providers targeting Google Cloud Platform. The core functionality reads YAML definitions of GCP products and resources (hundreds of YAML files under mmv1/products/) and uses Go templates (mmv1/templates/terraform/) to generate the full source code for the google and google-beta Terraform providers, including resources, data sources, IAM policies, tests, and documentation. It also generates code for the terraform-google-conversion (TGC) library used for Cloud Asset Inventory conversion. The CI component (magician) manages pull request workflows: downstream generation, VCR-based acceptance testing, automatic reviewer assignment, scheduled PR reminders, and test failure triage. Additional tools handle breaking change detection, missing test/doc/identity analysis, issue labeling, and template validation. The architecture is a multi-module Go CLI (mmv1 generator + magician + several tools) with extensive use of Go templates, YAML configurations, and Bazel build system. While primarily an application, it includes data processing elements in the diff-processor and test reader that perform schema comparison and coverage analysis, giving it a hybrid flavor dominated by code generation and CI.

RATING: 8.2/10 MAINT: active DRIFT: low
▸ 4 reusable components found
bart6114/cheek ★ 201 16 APPLICATION

cheek is a pico-sized declarative job scheduler written in Go. It reads a YAML schedule file defining jobs with cron expressions, retries, environment variables, working directories, and event-driven actions (webhooks, job chaining). The single binary provides a CLI (run, trigger, version) and an embedded HTTP server with a web UI for monitoring job execution and logs. Architecture is monolithic: the scheduler loop runs in a goroutine, executing jobs via os/exec with context cancellation for graceful shutdown. Job logs are persisted to SQLite. External dependencies include SQLite, cron parsing (gronx), HTTP routing (httprouter), CLI framework (cobra), config management (viper), and structured logging (zerolog). The codebase is well-tested, with comprehensive unit tests and CI/CD pipelines for cross-platform builds and Docker images.

RATING: 8.2/10 MAINT: active DRIFT: low
▸ 1 reusable components found
mongodb/mongodb-atlas-kubernetes ★ 200 116 APPLICATION

This repository implements a Kubernetes Operator for managing MongoDB Atlas resources. It provides Custom Resource Definitions (CRDs) and controllers that reconcile user-defined specifications (projects, clusters, database users, network peering, backup schedules, private endpoints, search indexes, stream instances, federated authentication, etc.) against the MongoDB Atlas API. The operator supports both API key and OAuth (service account) authentication, multiple deployment modes (cluster-wide, namespaced, OpenShift), and features like dry-run validation, deletion protection, and independent sync periods for cross-project resources. Architecturally, the operator follows the standard kubebuilder/controller-runtime pattern with a manager that registers multiple reconcilers. It has a hand-written core for legacy CRDs (e.g., AtlasProject, AtlasDeployment) and a generated state-machine-based controller layer for newer CRDs (Group, Cluster, FlexCluster, DatabaseUser, IPAccessListEntry) using the crd2go/constate library. A translation layer converts between CRD specs and Atlas SDK DTOs, and indexers enable cross-resource watch triggers. Extensive unit, integration, and end-to-end tests (Ginkgo/Gomega) validate behavior against real Atlas environments. The codebase is professional-grade with clear separation of concerns, reusable utility packages (comparison, time, pointer, HTTP diff client, JSON slice merge for version compatibility), and mature CI/CD pipelines including Helm charts, OLM bundles, SBOM generation, and Red Hat certification scripts. While it is tightly coupled to MongoDB Atlas and not directly reusable as a library, the operator patterns—especially the dry-run transport, state-machine delegation, and version-compatible JSON merging—demonstrate non-obvious engineering skill applicable to other Kubernetes operators.

RATING: 8.2/10 MAINT: active DRIFT: low
▸ 2 reusable components found
containerd/console ★ 200 58 APPLICATION

This is a Go library for console and terminal handling, part of the containerd project. It provides a cross-platform `Console` interface with methods for setting raw mode, resizing, disabling echo, and querying window size. The library supports Linux, macOS, FreeBSD, NetBSD, OpenBSD, Windows, and z/OS via build tags. On Linux, it includes an `Epoller` that uses edge-triggered epoll for efficient non-blocking I/O, handling EAGAIN/EIO errors gracefully. It can create PTY pairs (`NewPty`) and obtain the current process console (`Current`). The only external dependency is `golang.org/x/sys`. The code is idiomatic, well-tested, and follows Go best practices, though the dependency version and CI Go version are outdated.

RATING: 8.2/10 MAINT: maintained DRIFT: medium
▸ 1 reusable components found
openclaw/gitcrawl ★ 121 35 APPLICATION

gitcrawl is a Go-based CLI and library for ingesting GitHub repository data (issues, PRs, comments, reviews, code files, workflow runs) into a local SQLite database, then searching and analyzing that data offline. It exposes commands like `gitcrawl sync owner/repo`, `gitcrawl search issues`, and `gitcrawl code index`, with optional full-text code search. The architecture is a layered CLI: a command layer, a GitHub GraphQL/REST client with rate-limit guarding, a sqlc-generated SQLite data-access layer, and a small TUI built on bubbletea/lipgloss. It also includes a separate metrics store with strict database-ownership validation and idempotent writes.

RATING: 8.2/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
XIU2/CloudflareSpeedTest ★ 29373 5484 APPLICATION

CloudflareSpeedTest is a CLI tool written in Go that measures latency and download speed of Cloudflare CDN IP addresses to find the fastest ones for users in China, where many Cloudflare IPs are suboptimal. It reads IP ranges from files (ip.txt/ipv6.txt) or command-line arguments, performs concurrent TCP or HTTP ping tests, filters results by latency/loss rate, then conducts HTTP download speed tests on the lowest-latency IPs. The final output is a sorted list of the best IPs displayed in the console and saved to a CSV file. The tool supports extensive customization: thread count, ping count, port, download test duration, speed/latency thresholds, colocation filtering via HTTP headers, and debug logging. It also includes helper scripts for automatically updating system hosts files, 3proxy configurations, or Cloudflare DNS records with the optimal IP. The architecture is a single binary with modular task files (tcping, httping, download, ip parsing) and utility modules (color output, CSV export, progress bar). External dependencies are minimal: ewma for moving average, pb for progress bars, and color for terminal colors. The codebase is well-structured with clear separation of concerns, though it lacks automated tests and CI pipelines. It is a practical, community-driven tool with over 29k stars, actively maintained with recent commits and responsive issue triage.

RATING: 8.1/10 MAINT: maintained DRIFT: low
▸ 2 reusable components found
$ loading more...
$ submit: