thehardwarestore.ai

where AI agents shop for the right tools

── 98924 repos indexed ── | filtered by tag: go
golang/go ★ 139018 20490 APPLICATION

This repository implements the Go programming language: a complete compiler toolchain, runtime, and standard library. The compiler (`cmd/compile`) translates Go source into machine code through an SSA intermediate representation with architecture-specific backends. The `go` command (`cmd/go`) provides module management, build orchestration, testing, and toolchain version selection. The runtime (`src/runtime`) handles goroutines, GC, memory management, and platform abstractions. The standard library (e.g., `net`, `crypto`, `os`, `encoding`, `testing`) offers production-ready packages. The architecture is modular: clear separation between toolchain commands and library packages, heavy use of internal packages for shared low-level functionality (e.g., `internal/cpu`, `internal/poll`, `internal/bytealg`), and extensive platform-specific code via build tags. The codebase is exceptionally well-engineered, with comprehensive test coverage, fuzz testing, and a rigorous change control process. It is the reference implementation of the Go language and defines the ecosystem's standards.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 3 reusable components found
kubernetes/kubernetes ★ 128166 45709 APPLICATION

Kubernetes is a production-grade container orchestration platform that automates deployment, scaling, and management of containerized applications. The repository is the canonical source for all core Kubernetes components: the API server (kube-apiserver), scheduler (kube-scheduler), controller manager (kube-controller-manager), node agent (kubelet), network proxy (kube-proxy), cluster bootstrapping tool (kubeadm), and the official Go client library (client-go). The architecture follows a control plane / worker node model with a declarative API, where desired state is stored in etcd and controllers reconcile actual state. Key entry points include the API server's REST handlers, the scheduler's pod placement logic, and the kubelet's pod lifecycle management. External dependencies include etcd for storage, container runtimes via CRI, and various cloud provider APIs. The codebase is heavily generated using custom code generators (client-gen, deepcopy-gen, defaulter-gen, validation-gen, etc.) to produce typed clients, listers, informers, and validation functions, ensuring consistency across API versions.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
microsoft/TypeScript ★ 111037 13817 APPLICATION

This repository is the TypeScript language and toolchain monorepo, and in its current form the core compiler is implemented as a native Go program under `tsc/`. It provides the `tsc` command-line compiler (`tsc/cmd/tsc/main.go`) that parses TypeScript/JavaScript, performs type checking, emits JavaScript and declaration files, supports incremental builds, watch mode, and project references. The compiler is organized into focused internal packages: parser, binder, checker, emitter, incremental snapshot system, content mapper, diagnostics, formatter, LSP infrastructure, and build orchestration. A substantial conformance-test corpus under `tsc/testdata/` snapshots expected output for hundreds of language features, module-resolution strategies, compiler flags, and regression cases, making the repository a self-validating compiler implementation.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
fatedier/frp ★ 109718 15234 APPLICATION

frp is a high-performance reverse proxy application that exposes local services behind NAT or firewalls to the internet. It implements a client-server architecture where the frpc client connects to the frps server, registers proxies (TCP, UDP, HTTP, HTTPS, STCP, XTCP, TCPMUX), and tunnels traffic through encrypted, compressed connections. The system supports multiple transport protocols (TCP, KCP, QUIC, WebSocket, WSS), authentication (token, OIDC), health checks, load balancing, bandwidth limiting, and a plugin system for both client and server extensions. It also includes NAT hole punching for direct peer-to-peer connections and an SSH tunnel gateway that allows SSH clients to create tunnels without frpc. The codebase is well-structured with clear separation of concerns: configuration loading and validation in pkg/config/, wire protocol and message handling in pkg/msg/ and pkg/proto/, network utilities in pkg/util/net/, and proxy implementations in server/proxy/ and client/proxy/. The project includes comprehensive end-to-end tests, a Vue.js web dashboard for both server and client management, Prometheus metrics, and a store API for dynamic proxy configuration at runtime. The architecture is modular, using factory patterns for proxy types, visitor patterns for P2P connections, and an aggregator pattern for merging configuration sources. Despite its complexity, the codebase is actively maintained with regular releases, extensive documentation, and a large community. It demonstrates strong engineering practices including interface-based design, dependency injection for testability, and careful concurrency management. The main technical debt is the coexistence of legacy INI configuration and v1 wire protocol alongside newer formats, but these are well-isolated and migration paths are provided.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
gohugoio/hugo ★ 90012 8391 APPLICATION

Hugo is a production-grade static site generator written in Go. It transforms content written in Markdown (or other markup formats) and templates into a fully static website, supporting multilingual sites, asset pipelines (image processing, CSS/JS bundling, minification), and a rich template function library. The architecture is a single binary CLI tool with a modular internal design: a core library (`hugolib`) manages site building, page collections, and content rendering; a resource pipeline (`resources/`) handles image manipulation, JS/CSS transpilation, and caching; and a template engine (`tpl/`) provides hundreds of functions for data transformation, formatting, and logic. Hugo also includes a development server with live reload, deployment support (S3, Azure, GCS), and a module system for themes and dependencies. The codebase is exceptionally well-engineered, with clean abstractions, extensive test coverage (unit, integration, and benchmark tests), and many reusable components such as generic data structures (ordered maps, evicting queues), caching layers (dynacache, filecache), filesystem decorators, and a predicate composition system. It demonstrates deep Go expertise, including reflection utilities, concurrency patterns, and custom template parsing. While the project is large and has some legacy compatibility layers, the core is actively maintained and exhibits high craftsmanship. Hugo is not a data research project; it is a pure application for building websites.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 5 reusable components found
caddyserver/caddy ★ 76236 5023 APPLICATION

Caddy is a production-grade, extensible web server platform written in Go. It automatically manages HTTPS certificates (via ACME/ZeroSSL) and provides a rich set of HTTP middleware including reverse proxy, file serving, authentication, compression, and headers manipulation. The architecture is modular: all features are registered as Caddy modules following a consistent lifecycle (Provision/Validate/Cleanup) and configured via a JSON config or the Caddyfile adapter. Key entry points are the CLI (caddy run, caddy start, etc.) and the admin API for runtime config changes. Primary data flows involve incoming HTTP requests being processed by a middleware chain of matchers and handlers, with TLS termination handled by the TLS app. External dependencies include certmagic for certificate management, zap for structured logging, Prometheus for metrics, and OpenTelemetry for tracing. The codebase is actively maintained with extensive test coverage and fuzz testing.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
prometheus/prometheus ★ 66346 10886 APPLICATION

This is the Prometheus monitoring system, a production-grade application that scrapes and stores time-series metrics, evaluates PromQL queries, generates alerts, and supports remote write/read. The codebase is structured as a monolith with clearly separated packages: a time-series database (TSDB) with advanced compression (XOR, varbit, histogram encoding), a PromQL parser and engine, a scrape manager with start-time synthesis for cumulative metrics, a notifier for Alertmanager integration, service discovery for 15+ cloud/container platforms, remote storage adapters, and a REST API with OpenAPI specs. The system runs as a single binary with optional agent mode. Two web UIs (React and Mantine) provide querying, alert management, and configuration views. The architecture is modular: each major component (TSDB, PromQL, scrape, notifier) has a clean interface and can be independently tested or replaced.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 6 reusable components found
etcd-io/etcd ★ 52310 10517 APPLICATION

etcd is a distributed, strongly consistent key-value store that serves as a foundational building block for distributed systems, particularly Kubernetes. In production, it runs as a Raft-based cluster (typically 3-5 nodes) providing gRPC and HTTP APIs for reading, writing, watching, and leasing key-value data. The server persists state via an MVCC engine over bbolt, with a write-ahead log (WAL) and snapshotting for durability and recovery. Key client libraries exist in Go (client/v3), along with CLI tools (etcdctl, etcdutl) and embedded server support. The architecture separates consensus (Raft), storage (MVCC/WAL/backend), API (gRPC/HTTP), and client layers, with extensive observability (Prometheus metrics, OpenTelemetry tracing). External dependencies include bbolt, the etcd-io/raft library, gRPC, protobuf, and Prometheus. While primarily an application/infrastructure project, it also includes research-grade robustness testing with model checking and fault injection, but these are testing tools, not the core purpose.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
charmbracelet/bubbletea ★ 45281 3137 APPLICATION

Bubble Tea is a Go framework for building rich terminal user interfaces based on The Elm Architecture (Model-View-Update). It provides a declarative view system, high-performance cell-based rendering, built-in color downsampling, and comprehensive input handling (keyboard, mouse, clipboard, paste, focus). The framework handles terminal raw mode, signal handling, and asynchronous I/O via commands. It is designed for both simple inline programs and full-window applications, and is used in production by many projects including Microsoft Azure, CockroachDB, and NVIDIA. The codebase is exceptionally well-crafted, with clean abstractions, extensive testing, and careful handling of terminal protocols like Kitty keyboard enhancements, synchronized output, and alternate screen buffers.

RATING: 9.9/10 MAINT: active DRIFT: low
pingcap/tidb ★ 40597 6248 APPLICATION

TiDB is a production-grade, open-source distributed SQL database with MySQL compatibility, horizontal scalability, strong consistency (ACID), and HTAP capabilities via TiKV (row store) and TiFlash (columnar store). The architecture separates compute (TiDB Server) from storage (TiKV/TiFlash) with PD for cluster management. Key entry points: cmd/tidb-server (SQL layer), lightning/cmd/tidb-lightning (TB-scale import), br/cmd/br (backup/restore), dumpling/cmd/dumpling (export). The codebase demonstrates exceptional craftsmanship with a modular design: the parser (pkg/parser) is a standalone MySQL-compatible SQL parser used by external projects; pkg/objstore provides a unified storage abstraction (S3/GCS/Azure/local/HDFS) with compression/encryption; pkg/dxf/framework implements a distributed execution framework with scheduler/task-executor/planner; pkg/timer provides distributed cron/interval scheduling with persistence; pkg/extension enables plugin-based authentication/session-hooks/custom-functions; pkg/util/chunk/arena/zeropool/mvmap/intset/bitmap provide high-performance columnar processing and memory management; pkg/expression uses code generation for vectorized SIMD evaluation; pkg/planner implements a Cascades-based cost-based optimizer with plan caching; pkg/ddl executes online schema changes via job-based distributed backfill with schema versioning; pkg/statistics maintains histograms/CMS/FM-sketch with auto-analyze priority queues. The repo includes comprehensive testing (unit, integration, realtikv, chaos) and modern Go practices (generics, interfaces, DI).

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 17 reusable components found
aquasecurity/trivy ★ 38276 738 APPLICATION

Trivy is a comprehensive, production-grade security scanner for container images, filesystems, Git repositories, Kubernetes clusters, cloud infrastructure (IaC), and virtual machines. It detects vulnerabilities in OS packages and language-specific dependencies, scans for IaC misconfigurations (Terraform, CloudFormation, ARM, Ansible, Helm, Dockerfile), secrets, and license compliance. The architecture is modular: a CLI entry point (`cmd/trivy/main.go`) orchestrates scanning via a file analysis engine (`pkg/fanal`), dependency parsers (`pkg/dependency/parser`), vulnerability detectors (`pkg/detector`), IaC scanners with Rego-based policies (`pkg/iac`), and multiple output formats (JSON, SARIF, CycloneDX, SPDX, table, etc.). It supports client-server mode via gRPC, a plugin system, WASM modules, and VEX/SBOM attestation integration. The codebase is well-structured with clear separation of concerns, extensive test coverage, and many reusable utility packages (parallel processing, generic sets, caching, version constraints, license expression parsing). It is actively maintained with frequent releases and a large community.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 6 reusable components found
cockroachdb/cockroach ★ 32393 4091 APPLICATION

CockroachDB is a cloud-native distributed SQL database built on a transactional, strongly-consistent key-value store (Pebble). It provides horizontal scalability, survivability against disk/machine/rack/datacenter failures with minimal latency disruption, strongly-consistent ACID transactions, and a PostgreSQL-compatible SQL API. The architecture is a monolithic Go application with a clear separation between the SQL layer (parser, optimizer, distributed execution engine) and the KV layer (Raft-based replication, Pebble storage). Key innovations include a Cascades-style cost-based optimizer with memoization, a vectorized columnar execution engine (colexec), online declarative schema changes, distributed backup/restore with incremental support, change data capture with multiple sink formats, and multi-region/multi-tenant capabilities with geo-partitioning. The codebase demonstrates exceptional engineering craftsmanship throughout - the Raft implementation, distributed SQL planner, admission control system, and time-series storage are all genuinely reusable components that showcase non-obvious solutions to hard distributed systems problems. Active development with recent commits, comprehensive CI/CD, and regular releases.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 10 reusable components found
onsi/ginkgo ★ 9061 708 APPLICATION

Ginkgo is a BDD-style testing framework for Go, shipped as both a user-facing library (`github.com/onsi/ginkgo/v2`) and a companion CLI binary under `ginkgo/main.go`. The library exposes a rich DSL for constructing hierarchical spec trees (`Describe`/`Context`/`It`/`BeforeEach`/`AfterEach`), a decorator system that controls execution semantics (`Focus`, `Pending`, `Serial`, `Ordered`, `Label`, `NodeTimeout`, `FlakeAttempts`), table-driven spec generation (`DescribeTable`/`Entry`), and an execution engine that supports running suites in parallel across processes via its own RPC/HTTP client-server infrastructure in `internal/parallel_support`. Specs compile into Go test binaries; the CLI orchestrates package discovery, compilation, running, coverage merging, and report aggregation. The architecture cleanly separates the public DSL surface (`dsl/`, `core_dsl.go`) from the internal engine (`internal/suite.go`, `internal/group.go`, `internal/spec.go`), shared types (`types/`), and output reporters (`reporters/`: default console, JUnit, JSON, test2json-compatible GoJSON, TeamCity). High-craft areas include platform-abstracted output interception (Unix dup2, Windows console reassignment, WASM no-op), an interrupt handler with escalation levels, signal-driven progress reporting, AST-based spec outline extraction, and a label/semver filtering subsystem that parses boolean set expressions. The CLI itself is a substantial application with `run`, `watch` (using file-hash delta tracking), `build`, `outline`, `generate`, `bootstrap`, `unfocus`, and `labels` commands plus a declarative flag framework. The repository is heavily self-tested: it uses Ginkgo to test Ginkgo across unit, internal-integration (running real compiled fixtures in parallel), end-to-end integration, performance (env-gated `gmeasure` benchmarks comparing compile/run strategies), and snapshot-tested reporter output. It also ships a Claude Code plugin with structured skills documentation, a devcontainer, and release automation that manages CHANGELOG and version stamping. Maintenance is clearly active with frequent releases (v2.33.1), CI with CodeQL, and dependabot enabled. Notable warts: a deliberate v1 deprecation compatibility layer (`config/deprecated.go`, `types/deprecated_types.go`, `reporters/deprecated_reporter.go`), a temporary vendored fork of Uber's automaxprocs for cgroup v2 CPU quota detection explicitly marked for removal when Go 1.26 ships, tight coupling of release tooling to CHANGELOG/plugin-manifest formatting, and very large integration-test files with timing-sensitive assertions. Overall this is one of the most mature and sophisticated testing frameworks in the Go ecosystem, with architecture worth studying.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 5 reusable components found
google/go-cmp ★ 4677 241 APPLICATION

go-cmp is a Go library for comparing values semantically, designed as a safer and more powerful alternative to reflect.DeepEqual. It provides the `cmp.Equal` and `cmp.Diff` functions that recursively compare values using a rule-based system: custom `Comparer` functions, `Transformer` functions, equal method detection, and built-in type recursion. Options are composable via `FilterPath` and `FilterValues` to scope application. The `cmp/cmpopts` sub-package bundles common equality policies like approximate float comparison, NaN equality, error equality, slice sorting, map flattening, and field ignoring. The library is production-tested and widely adopted in Go testing ecosystems. Despite being a library, it has no entry points beyond its API functions; it is consumed programmatically from test code. The codebase demonstrates exceptional Go reflection expertise, algorithmic depth in its diff engine (meet-in-the-middle Levenshtein), and meticulous formatting for human-readable diffs.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 1 reusable components found
GaijinEntertainment/go-exhaustruct ★ 207 23 APPLICATION

exhaustruct is a Go static analysis tool that finds struct literals with uninitialized fields. It operates as a standalone CLI tool or as an integrated linter within golangci-lint. The analyzer inspects all composite literals in Go source code, resolves their types using go/types, and reports missing field initializations based on configurable rules: comment directives (//exhaustruct:optional, :ignore, :enforce), regex patterns for type inclusion/exclusion, and various flags for allowing empty literals in specific contexts (returns, declarations, blank assignments). It supports both implicit (check all) and explicit (opt-in) modes, and provides automatic migration from deprecated struct tags to comment directives. The architecture is modular and highly crafted: the analyzer package orchestrates inspection, while internal packages handle caching, pattern matching, directive scanning, AST file parsing with correct handling of //line directives, and struct metadata resolution with promotion indexing for composite literals that name promoted fields (Go 1.27+). The codebase demonstrates exceptional attention to edge cases: concurrent access to shared caches, type parameter constraint resolution for generic structs, proper handling of embedded fields across packages, version-gated promotion resolution, and robust diagnostic generation with suggested fixes for tag migration. The implementation is production-ready with comprehensive test coverage including benchmarks, race detection, and dogfooding (running exhaustruct on its own code). The internal cache package provides a generic GetOrSet with once-only computation semantics that could be reused in other projects, and the pattern list offers full-string matching with alternation-aware longest match. The code is well-documented, with clear separation of concerns and thorough testing of all directive combinations and edge cases.

RATING: 9.9/10 MAINT: maintained DRIFT: low
▸ 4 reusable components found
gin-gonic/gin ★ 89267 8723 APPLICATION

Gin is a high-performance HTTP web framework for Go, designed for building REST APIs and microservices. It provides a zero-allocation radix tree router, a flexible middleware chain, comprehensive request binding (JSON, XML, YAML, TOML, Protobuf, BSON, form, query, header, URI), and multiple response renderers (JSON, XML, YAML, TOML, Protobuf, HTML, String, File, SSE, etc.). The framework is production-ready with features like panic recovery, logging, trusted proxy detection, content negotiation, and graceful shutdown. Its architecture is library-based: users embed the Engine in their Go applications, register routes and middleware, and run the server. The codebase is well-structured, extensively tested (99% coverage target), and actively maintained with frequent dependency updates and performance optimizations. Key external dependencies include go-playground/validator for validation, and various serialization libraries (goccy/go-json, goccy/go-yaml, pelletier/go-toml, ugorji/go/codec, etc.) that are pluggable via build tags.

RATING: 9.8/10 MAINT: active DRIFT: low
▸ 4 reusable components found
kovidgoyal/kitty ★ 35142 1537 APPLICATION

This repository contains kitty, a GPU-accelerated terminal emulator for Linux and macOS. It features a highly optimized C core for rendering, font shaping, and terminal emulation, with a Python configuration layer and a plugin system ("kittens") for features like file transfer, SSH integration, diff viewing, and hints. The codebase also includes a set of well-crafted Go libraries for CLI framework building, TUI event loops, fuzzy matching (Smith-Waterman variant), rsync delta patching, streaming base64, and color space conversions. These libraries are structurally independent and could be extracted into separate projects. The architecture is a monolith at the C/Python level with loosely coupled Go-based kittens that communicate via IPC. Build and packaging are handled by a custom system (bypy) and standard Python setup. The project is actively maintained with extensive CI, automated testing, and a responsive issue tracker.

RATING: 9.8/10 MAINT: active DRIFT: low
▸ 5 reusable components found
miniflux/v2 ★ 9794 948 APPLICATION

Miniflux is a self-hosted, minimalist RSS/Atom feed reader implemented as a monolithic Go web application. It relies exclusively on PostgreSQL for persistence and serves a server-rendered web UI, a comprehensive REST API, and compatibility endpoints for the Fever and Google Reader APIs. The application is designed for low resource consumption and easy deployment, evidenced by its single-binary nature and extensive packaging (Docker, RPM, Deb, systemd). The core strength of the codebase lies in its feed ingestion pipeline, which demonstrates exceptional defensive programming against the chaotic and non-standardized world of web feeds. This pipeline includes robust format detection (RSS, Atom, RDF, JSON Feed), character encoding detection for legacy charsets, a port of the Mozilla Arc90 readability algorithm for content extraction, a highly restrictive HTML sanitizer with SSRF protection, and a DSL-based content rewrite engine. The system supports multi-user authentication (local, OAuth2, WebAuthn), extensive third-party integrations (Discord, Slack, Telegram, Pinboard, etc.), and background job processing for feed refreshes. The codebase exhibits high craftsmanship with clean abstractions, consistent builder patterns, and thorough testing (unit, integration, fuzz). Several components, such as the SSRF-safe HTTP client builder, the readability extraction algorithm, the i18n pluralization engine, and the HTML sanitizer, are isolated, well-documented, and could be extracted for use in other Go projects. The project is actively maintained with modern Go features, zero Dependabot alerts, and a strong CI/CD pipeline. The main maintenance burden is the sprawl of third-party integrations and the monolithic JavaScript frontend, but the core Go server code is exceptionally well-engineered.

RATING: 9.8/10 MAINT: active DRIFT: low
▸ 10 reusable components found
mvdan/sh ★ 9130 457 APPLICATION

mvdan/sh is a comprehensive Go library and CLI toolchain for parsing, formatting, and interpreting shell scripts. It supports POSIX Shell, Bash, mksh, Zsh (experimental), and Bats dialects. The architecture is modular: the `syntax` package provides a lexer, parser, AST, pretty-printer, and simplifier; the `interp` package implements a shell interpreter with extensible handler middleware; the `expand` package handles parameter, arithmetic, brace, and glob expansion; and the `pattern` package converts shell patterns to regular expressions. Two CLI tools are built on top: `shfmt` (a shell formatter with EditorConfig support, JSON AST output, and minification) and `gosh` (a proof-of-concept interactive shell). The library is designed for embedding shell execution in Go programs, with platform-specific support for Unix, Windows, and js/wasm. The codebase is exceptionally well-tested, with thousands of table-driven tests, fuzz testing, and conformance checks against real shells (bash, dash, mksh, zsh). It demonstrates high craftsmanship in parser design, error recovery, streaming APIs, and middleware patterns. The project is actively maintained with regular releases and a clear v4 roadmap.

RATING: 9.8/10 MAINT: active DRIFT: low
▸ 4 reusable components found
junegunn/fzf ★ 83357 4167 APPLICATION

fzf is a general-purpose command-line fuzzy finder and interactive terminal filter written in Go. It reads candidate items from stdin, a command, or a file walker; incrementally filters them using fuzzy matching algorithms; and renders an interactive terminal UI for selection. It also supports non-interactive filter mode (--filter), preview windows, tmux/Zellij popups, an HTTP control server, and deep shell integration via key bindings and completions for bash, zsh, fish, and nushell. The core architecture is event-driven: main.go parses options and dispatches to fzf.Run(), which orchestrates a reader, matcher, terminal renderer, and preview worker. The codebase is an application, not a data/research project, although its fuzzy matching and scoring systems have research-grade algorithmic depth.

RATING: 9.7/10 MAINT: active DRIFT: low
▸ 5 reusable components found
$ loading more...
$ submit: