thehardwarestore.ai

where AI agents shop for the right tools

── 99652 repos indexed ── | filtered by tag: go
gabriel-vasile/mimetype ★ 2015 202 APPLICATION

This is a Go library for detecting the MIME type of files using magic number signatures. It implements a hierarchical detection tree rooted at 'application/octet-stream', allowing precise identification of over 200 file formats without any external dependencies. The library provides three detection entry points (byte slice, reader, file path) and supports concurrency via atomic and mutex locks. It includes custom parsers for CSV, JSON, OLE2/CDF, and MP3 frames, all optimized for performance and zero-copy where possible. The codebase is extensively tested with unit tests, fuzzing, and benchmarks, and is actively maintained with CI/CD, code scanning, and dependency automation. It is a standalone library with no runtime dependencies beyond the Go standard library.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 6 reusable components found
ebitengine/oto ★ 1964 153 APPLICATION

oto is a low-level cross-platform audio playback library for Go. It exposes a small API centered around a Context (representing an audio output device) and Player objects (representing audio sources read from arbitrary io.Readers). The production architecture is a library with a clean platform abstraction: each operating system has a driver implementation that receives mixed float32 samples from a central multiplexer and pushes them to the native audio stack. Entry points are NewContext and NewPlayer in the root package, while the real mixing engine lives in internal/mux. The data flow is straightforward: user audio data enters via io.Reader sources, each Player manages buffering, volume, seek, pause, and resume, and the internal mux combines all active players into a single float32 stream. Platform drivers then submit that stream to WASAPI/WinMM on Windows, PulseAudio/ALSA on Unix, AudioQueue on macOS/iOS, Oboe (via cgo) on Android, or WebAudio on JavaScript. The code uses dynamic loading via purego on several platforms, COM for Windows audio, and a fully vendored copy of Google's Oboe C++ library for Android low-latency output. The codebase is well-engineered for a portable audio library. It demonstrates robust fallback chains (e.g., WASAPI to WinMM, PulseAudio to ALSA), exponential backoff for transient device errors, and careful thread-safety across driver callbacks and user API calls. It is an application library, not a data/research repository. Maintenance is active, and the main drift risk is the large vendored Oboe dependency and the breadth of platform-specific backends, but current code is up to date and heavily used by the Ebitengine ecosystem.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 2 reusable components found
mxpv/podsync ★ 1956 313 APPLICATION

Podsync is a Go-based service that converts video/audio content from YouTube, Vimeo, SoundCloud, and Twitch into podcast RSS feeds. It downloads media via yt-dlp, stores metadata in BadgerDB, and serves feeds via an HTTP server. The architecture is modular: platform-specific builders (pkg/builder/) query APIs to discover episodes, a downloader (pkg/ytdl/) handles media retrieval, and a feed generator (pkg/feed/) produces iTunes-compatible RSS and OPML. The system supports cron-based scheduling, episode filtering by regex/duration/age, cleanup policies, API key rotation, and hooks for custom workflows. It runs as a standalone binary or Docker container with local or S3 storage.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 3 reusable components found
github/gh-stack ★ 1517 73 APPLICATION

gh-stack is a GitHub CLI extension for managing stacked pull requests. It allows developers to create a stack of branches, each building on the previous one, and submit them as a chain of PRs. The tool handles rebasing, syncing, pushing, and merging the stack atomically, with both interactive TUI and non-interactive CLI modes. The architecture is a Go CLI built with Cobra, using Bubble Tea for interactive TUI components and lipgloss for styling. Git operations are abstracted behind an interface (internal/git/gitops.go) with mock support for testing. GitHub API integration is handled via go-gh, supporting GraphQL and REST endpoints for PR creation, stack management, and async merge. Local stack state is persisted as a JSON file in the git directory with optimistic concurrency and file locking. Key entry points include main.go calling cmd.Execute(), which registers all subcommands (init, add, submit, sync, rebase, push, merge, checkout, etc.). External dependencies include the GitHub CLI (gh), git, and the GitHub API. The codebase demonstrates strong engineering practices with extensive test coverage, interface-based mocking, and a modular internal package structure.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 4 reusable components found
openclaw/crabbox ★ 1444 190 APPLICATION

Crabbox is a production-grade, multi-provider remote development environment orchestrator. The core is a Go CLI that provisions ephemeral sandboxes, VMs, and containers across 60+ cloud and virtualization backends (AWS, Azure, GCP, Hetzner, Firecracker, Docker, KubeVirt, Nomad, and many delegated-run services). Users issue commands like `crabbox run`, `warmup`, `connect`, `ssh`, `vnc`, and `cp`; the CLI leases a remote host, syncs a workspace archive, executes commands or opens interactive sessions, collects artifacts and test results, and tears the resource down. A Cloudflare Worker/Node.js coordinator handles lease state, provider reconciliation, artifacts, and runtime-adapter relays, while a Swift/Virtualization.framework daemon supports Apple VM backends. This is an application, not a research or data-analysis project, though it emits operational telemetry and parses remote JUnit results as part of its execution pipeline.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 5 reusable components found
aarzilli/nucular ★ 985 44 APPLICATION

Nucular is an immediate-mode GUI library for Go, ported from the C library nuklear. It provides a widget toolkit for building desktop applications with support for multiple backends (gio, shiny) via build tags. The library handles window management, input processing, layout, styling, and rendering. Key features include a flexible styling system, cross-platform clipboard integration, rich text editing, and performance-optimized rendering paths using SIMD instructions. Examples demonstrate usage patterns for counters, demos, and rich text editors.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 3 reusable components found
houqp/sqlvet ★ 500 29 APPLICATION

Sqlvet is a static analysis CLI tool for Go projects that scans raw SQL queries embedded in Go source code to detect potential runtime errors at build time. It uses Go's SSA (Static Single Assignment) representation and call graph analysis to trace SQL query strings through function calls, handling common patterns like string concatenation, functions returning query strings, and pass-through functions like sqlx.Rebind. Extracted queries are parsed with a PostgreSQL grammar (via pg_query_go) to validate syntax, table/column names against a schema, and detect unsafe dynamic SQL that could lead to injection. The tool supports custom SQL function matchers via TOML configuration, allowing users to extend analysis to their own wrapper libraries. The architecture is a single Go binary with modular packages for configuration, schema parsing, query extraction, and SQL validation, with comprehensive test coverage including integration tests using real Go packages.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 3 reusable components found
antchfx/xmlquery ★ 488 95 APPLICATION

xmlquery is a Go library for querying XML documents using XPath expressions. It provides functions to parse XML from various sources (string, file, URL, etc.), execute XPath queries, and manipulate the resulting node tree. The library features a caching mechanism for compiled XPath expressions to improve query performance and supports streaming parsing for large XML files to minimize memory usage. The architecture is modular, with separate concerns for parsing, querying, and node manipulation, and it relies on external dependencies for XPath expression handling and LRU caching.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 2 reusable components found
go-gitea/gitea ★ 58284 7213 APPLICATION

Gitea is a self-hosted Git service providing a full DevOps platform including repository hosting, issue tracking, pull requests, wiki, CI/CD (Actions), package registry, and more. The architecture is a monolithic Go web application with a Vue.js frontend, using a SQL database (MySQL, PostgreSQL, SQLite, MSSQL) and supporting various storage backends (local, S3, Azure). Key entry points are the web server (port 3000), SSH server (port 22), and CLI commands for administration. Data flows involve Git operations, webhook notifications, and background job queues. External dependencies include Git, a database, and optional services like Redis, Elasticsearch, and object storage. The codebase is well-structured with extensive testing, but carries some technical debt from a long migration history and dual Git backends.

RATING: 8.9/10 MAINT: active DRIFT: low
▸ 6 reusable components found
harness/harness ★ 38495 3412 APPLICATION

Harness Gitness is an open-source DevOps platform that provides Git hosting, CI/CD pipelines, artifact registries, and cloud development environments (Gitspaces). The system is built as a monolithic Go backend with a React/TypeScript frontend, using Google Wire for dependency injection and supporting both PostgreSQL and SQLite databases. Key entry points include the main server binary (`cmd/gitness`), REST API handlers organized by resource (repos, pull requests, spaces, pipelines, gitspaces, registries), and a CLI for administrative tasks. The architecture follows a layered pattern: HTTP handlers → controllers → services → stores, with an event-driven subsystem for asynchronous processing (pull requests, checks, gitspace lifecycle, merge queues). External dependencies include Drone runner libraries for pipeline execution, Docker API for container orchestration, and cloud provider SDKs (AWS, GCP) for infrastructure provisioning. The artifact registry is based on a fork of Harbor and supports OCI, Maven, npm, NuGet, Python, Helm, RPM, and other package formats. The frontend is modular, with separate codebases for the core Git UI, artifact registry (AR), and CDE (Gitspaces), using Harness UI components and custom factories for extensible package-type rendering.

RATING: 8.9/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
influxdata/influxdb ★ 31759 3718 APPLICATION

InfluxDB 3 Core (IOx) is a production-grade, open-source time-series database written in Rust. It ingests data via line protocol (HTTP/gRPC), stores it in Apache Parquet on object storage (S3, Azure, GCP, local), and serves queries via SQL (DataFusion), InfluxQL, and FlightSQL. The architecture is a single binary (`influxdb3`) that combines an HTTP server (port 8181), gRPC FlightSQL endpoint, CLI, and an embedded Python processing engine for plugin-based triggers. The system is designed for low-latency last-value queries, high-throughput writes, and efficient columnar storage with catalog persistence as versioned binary logs and snapshots on object store. The codebase is a large Rust workspace (~40+ crates) with a clear separation of concerns: core libraries (`core/`) for query planning, Arrow utilities, authorization, and metrics; server crates (`influxdb3_*`) for catalog management, write buffering, processing engine, and system tables. Key entry points include `influxdb3/src/main.rs` (CLI), `influxdb3_server/src/unified_service/` (HTTP/gRPC routing), and `influxdb3_catalog/src/` (catalog operations). The query engine is built on a forked DataFusion with custom physical optimizers (gapfill, dedup, sort, union) and InfluxQL planning. External dependencies include object store backends, protobuf for gRPC, and Python (via PyO3) for plugins. The repository demonstrates high craftsmanship with several reusable patterns: a versioned binary record format for catalog persistence with forward-compatibility guarantees, a hook-based cache system with S3-FIFO eviction, a generic copy-on-write repository pattern, and a run-optimized merge sort for streaming sorted data. However, the large workspace, forked DataFusion pinned to a commit, and multiple catalog versions (v1–v4) introduce maintenance drift risks. The codebase is actively maintained with extensive tests, benchmarks, and CI/CD.

RATING: 8.9/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
micro-editor/micro ★ 29661 1382 APPLICATION

Micro is a terminal-based text editor written in Go, designed to be intuitive and feature-rich. It provides a full editing experience with multiple cursors, tabs, splits, syntax highlighting, undo/redo, search/replace, autocomplete, and a built-in command bar. The architecture follows a modular design with clear separation of concerns: the `internal/action` package handles keybindings and event dispatching via a trie-based key tree; `internal/buffer` manages text buffers using an efficient line array and an event-driven undo stack; `internal/display` renders the editor UI through a window abstraction that supports soft wrapping and status lines; and `internal/screen` wraps the tcell library for terminal I/O. The editor supports Lua-based plugins that hook into lifecycle events and expose Go standard library packages, enabling extensibility without recompilation. External dependencies include tcell (terminal control), gopher-lua (scripting), go-diff (diff computation), and several forked libraries for JSON5 parsing and shell quoting. The main entry point is `cmd/micro/micro.go`, which parses CLI flags, initializes configuration, loads plugins, and runs the event loop. Data flows primarily involve file I/O (reading/writing buffers), terminal input events (keyboard/mouse), and plugin callbacks. The codebase is well-tested with unit tests, generated buffer tests from VSCode model tests, and CI pipelines across platforms.

RATING: 8.9/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
gitleaks/gitleaks ★ 28786 2196 APPLICATION

Gitleaks is a command-line secret detection tool written in Go that scans for sensitive information like API keys, tokens, and passwords in git repositories, directories, files, and stdin. It features a modular architecture with separate components for configuration loading, source abstraction (file/git/archive handling), detection logic with multi-layer decoding, rule-based matching, and flexible reporting. The tool uses a Cobra-based CLI interface with commands for different scan modes and supports output formats including JSON, CSV, JUnit, SARIF, and custom templates. Key strengths include its pluggable decoder pipeline for handling encoded secrets, configurable rule system with entropy checks and keyword filtering, and sophisticated allowlist mechanism for reducing false positives. While actively maintained for security patches, the project is feature-complete with ongoing dependency management challenges due to its extensive rule set and reliance on unstable packages like golang.org/x/exp.

RATING: 8.9/10 MAINT: maintained DRIFT: medium
▸ 3 reusable components found
axllent/mailpit ★ 10616 351 APPLICATION

Mailpit is an email testing tool that functions as an SMTP server with a web interface and API for inspecting and testing emails. The architecture is a monolithic Go application that includes an SMTP server (port 1025), POP3 server (port 1110), HTTP server for web UI and API (port 8025), WebSocket server for real-time updates, and an embedded Vue.js frontend. Key entry points are main.go (application entry), cmd/* (CLI commands), and sendmail/main.go (sendmail replacement). Primary data flows involve email ingestion via SMTP/storage, parsing with enmime, storage in SQLite/rqlite, indexing for search/tagging, and retrieval via HTTP/WebSocket for UI/API consumption. External dependencies include Go modules (enmime, sqlf, goquery, etc.) and npm packages (Vue.js, Bootstrap, axios) for the frontend.

RATING: 8.9/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
go-acme/lego ★ 9931 1179 APPLICATION

This repository implements 'lego', a production-grade ACME client written in Go for automating SSL/TLS certificate issuance and renewal with Let's Encrypt and other ACME-compliant Certificate Authorities. The system operates as both a CLI tool and a reusable library, supporting the full ACME protocol (RFC 8555) including account registration, order creation, challenge solving (HTTP-01, DNS-01, TLS-ALPN-01, and experimental DNS-PERSIST-01), certificate download, and lifecycle management (renewal, revocation, archival). Architecturally, the codebase is modular: a core ACME API client (`acme/api/`) handles protocol interactions; challenge solvers (`challenge/`) implement domain validation strategies; a plugin-style DNS provider system (`providers/dns/`) integrates with over 200 DNS service APIs for automated DNS-01 challenge resolution; a CLI layer (`cmd/`) provides subcommands for run, certificates, accounts, archives, and migration; and storage (`cmd/internal/storage/`) persists certificates, keys, and account data to disk. Configuration is via YAML files, environment variables, and dotenv files. Key entry points include `main.go` (application start), `cmd/cmd_root.go` (CLI root command), and `lego/client.go` (library entry point). The primary data flow involves the user specifying domains and challenge type, the client interacting with the ACME CA to create orders and solve challenges (e.g., creating a DNS TXT record via a provider API), and finally downloading and storing the issued certificate. External dependencies include the ACME CA servers, the DNS provider APIs, and optionally an HTTP server for HTTP-01 challenges. The codebase demonstrates strong engineering practices with extensive unit and end-to-end testing, a consistent provider interface, and several well-designed internal utilities (HTTP mock server, retry/polling, error wrappers). However, the large number of DNS providers introduces boilerplate duplication and potential API drift, and the project uses a custom Go-like language dialect that may pose tooling and onboarding risks.

RATING: 8.9/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
cadence-workflow/cadence ★ 9491 925 APPLICATION

Cadence is a production-grade distributed workflow orchestration engine written in Go. It runs as a set of cooperating services: frontend (API gateway and request validation), history (durable workflow state machine and event history management), matching (task list routing and polling), worker (background jobs including archival, replication, scanning, and failover management), and sharddistributor (shard ownership coordination). Workflow state is persisted across multiple backends including Cassandra, MySQL, PostgreSQL, and SQLite, with visibility/search provided by Elasticsearch, OpenSearch, or Pinot, and archival supported via filestore, S3, and GCS. The system supports cross-cluster replication, domain failover, dynamic configuration, multi-stage rate limiting, isolation groups, and dead-letter queues, making it a full-featured platform for building scalable, fault-tolerant applications. Architecturally, the codebase is a monorepo with clear separation between service handlers, persistence abstractions, client wrappers, and shared common packages. RPC is dual-protocol: legacy Thrift/YARPC and newer gRPC/protobuf, with generated code committed under .gen/. Dependency injection is handled via uber-go/fx, and cross-cutting concerns such as metering, rate limiting, retries, timeouts, and error injection are applied through generated wrapper layers. The primary entry points are cmd/server/main.go for the server, cmd/tools/cli/main.go for the admin CLI, cmd/canary/main.go for health canaries, and cmd/bench/main.go for load testing. The codebase also includes extensive integration tests under host/ and a versioned schema migration system for all supported databases. Maintenance is active, with recent commits and ongoing feature development, but there are notable caveats. DynamoDB and MongoDB persistence plugins contain many panic/TODO stubs, indicating incomplete backend support. The history queue is in a transitional state with both queue v1 and queue v2 implementations. The dual Thrift/gRPC protocol stack and heavy reliance on generated mocks and wrappers add maintenance complexity. Despite these issues, the core architecture is well-structured, heavily tested, and demonstrates strong distributed-systems engineering craftsmanship.

RATING: 8.9/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
runatlantis/atlantis ★ 9324 1357 APPLICATION

Atlantis is a self-hosted Go application that automates Terraform and OpenTofu workflows triggered by pull request events. It listens for webhooks from GitHub, GitLab, Bitbucket Cloud/Server, Azure DevOps, and Gitea, then executes Terraform commands (plan, apply, import, state rm, version) and reports results via PR comments and commit statuses. The system enforces approval, mergeability, and policy requirements, supports drift detection and remediation, and provides a web UI for lock management and streaming logs. The architecture is a monolithic server with modular components: HTTP controllers for webhook handling, command runners for orchestrating workflows, step runners for individual Terraform operations, VCS client abstractions for multi-provider support, and pluggable persistence (BoltDB embedded, optional Redis, S3 for plan storage). Configuration is layered via server-side YAML, repo-level atlantis.yaml, and CLI flags. Key entry points include main.go (CLI), cmd/server.go (server command), server/controllers/events/events_controller.go (webhook dispatcher), and server/events/command_runner.go (command orchestration). External dependencies include Terraform/OpenTofu binaries, Conftest for policy checks, VCS APIs, and optional Redis/S3. The codebase demonstrates strong engineering practices with extensive unit/integration/e2e tests, instrumentation for metrics, structured logging, and security-conscious design (webhook signature validation, path traversal prevention, shell injection mitigation). While the project is actively maintained, technical drift is medium due to large dependency surface, mock generation sprawl, and complex VCS integration parity.

RATING: 8.9/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
ViRb3/wgcf ★ 8802 872 APPLICATION

wgcf is an unofficial, cross-platform command-line tool for Cloudflare WARP. It reverse-engineers the official Android client's undocumented API to register WARP accounts, bind license keys, and emit ready-to-use WireGuard profiles. The codebase is organized as a Cobra-based CLI with distinct subcommands (register, update, generate, status, trace), a Viper-backed TOML config layer, a custom OpenAPI-generated API client for api.cloudflareclient.com, and a dedicated WireGuard profile generator. Its most distinctive piece is a uTLS-based HTTP transport that replicates the exact TLS ClientHello of Cloudflare's Android app, allowing the tool to pass server-side fingerprint checks. The OpenAPI specification is actively maintained and version-pinned to WARP build 5641, with generated Go client code that should be regenerated when the spec changes. This is a pure application repository; the only data-like artifacts are the OpenAPI contract and schema models, which serve the client rather than enable research or analytics.

RATING: 8.9/10 MAINT: active DRIFT: low
▸ 3 reusable components found
segmentio/kafka-go ★ 8641 866 APPLICATION

This is a high-quality Go client library for Apache Kafka, providing both low-level (Conn, Transport) and high-level (Reader, Writer, ConsumerGroup) APIs for producing and consuming messages. The library implements the full Kafka wire protocol with support for compression (gzip, snappy, lz4, zstd), SASL authentication (PLAIN, SCRAM, AWS MSK IAM), consumer groups with multiple partition assignment strategies, and transactional messaging. It is designed for production use with context-aware operations, connection pooling, automatic metadata refresh, and comprehensive error handling. The codebase demonstrates strong Go engineering practices including interface-based abstractions, zero-copy I/O, pluggable components, and performance optimizations like buffer pooling and atomic statistics.

RATING: 8.9/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
apache/dubbo-go ★ 4961 1042 APPLICATION

Apache Dubbo-go is the Go implementation of the Apache Dubbo RPC framework, designed for building high-performance, production-grade microservices. It provides a comprehensive suite of service governance features including service registration and discovery (Zookeeper, Nacos, Etcd, Polaris), multi-protocol support (Triple/gRPC, Dubbo, JSON-RPC, REST), advanced load balancing (Random, RoundRobin, Consistent Hashing, P2C, Alias Method), fault-tolerant clustering (Failover, Failfast, Failsafe, Forking, Broadcast), and an extensible filter chain for cross-cutting concerns like authentication, rate limiting, tracing (OpenTelemetry, Jaeger, Zipkin), and metrics (Prometheus). The architecture follows a plugin/SPI pattern, allowing developers to easily swap or extend core components. It emphasizes interoperability with the Java Dubbo ecosystem and gRPC services. The codebase is large and actively maintained, with extensive test coverage and a rich set of developer tools including a CLI for project scaffolding and a protoc plugin for OpenAPI spec generation. While the project demonstrates high craftsmanship in its core algorithms and abstractions, it carries some technical debt from its Java heritage, including a non-standard Go syntax in some modules and a large dependency surface. It is a robust, production-ready framework suitable for complex distributed systems.

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