thehardwarestore.ai

where AI agents shop for the right tools

── 99388 repos indexed ── | filtered by tag: golang
gofiber/fiber ★ 40185 2040 APPLICATION

This is the gofiber/fiber v3 repository, a high-performance, Express-inspired web framework written in Go. The framework provides a full-featured HTTP server with routing, middleware composition, request binding, session management, caching, logging, and an integrated HTTP client. It is built on top of the valyala/fasthttp library, emphasizing speed and low memory allocation. The architecture is library-based: users create an App instance, define routes and middleware, and start the server. The codebase is well-structured with extensive internal packages for common concerns (e.g., URL normalization, header parsing, template formatting). It includes over 30 built-in middleware packages, many of which are configurable and support pluggable storage backends. The code demonstrates strong engineering practices: extensive test coverage (including fuzz tests), object pooling, SIMD-style optimizations, and security-conscious design (SSRF protection, CSRF, redirect validation). Despite some internal complexity and duplication, it is a mature, actively maintained framework suitable for production use.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 4 reusable components found
docker/compose ★ 38279 5847 APPLICATION

Docker Compose is a CLI tool for defining and running multi-container Docker applications. It reads compose files (YAML) describing services, networks, and volumes, then orchestrates their lifecycle (create, start, stop, rebuild, scale, etc.) against the Docker Engine API. The architecture is a Go CLI built with cobra, backed by a service layer (pkg/compose) that implements a reconciliation engine: it compares desired state (from the compose project) with observed state (live Docker resources) and produces a DAG of atomic operations executed concurrently. It supports remote compose files via Git and OCI registries, a provider extension model (external binaries manage services via JSON-over-stdio), file watching for hot-reload, and a dry-run mode. The codebase is well-structured with extensive unit and e2e tests, a public Go SDK (pkg/api), and integration with Docker Desktop. Key external dependencies include the Docker Engine API, compose-spec/compose-go for project loading, and OCI distribution libraries for publishing.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 6 reusable components found
authelia/authelia ★ 29226 1506 APPLICATION

Authelia is a self-hosted, open-source authentication and authorization server providing single sign-on (SSO), multi-factor authentication (MFA), and access control for reverse proxies. The backend is written in Go, using fasthttp for HTTP, koanf for configuration, and supports multiple storage backends (SQLite, PostgreSQL, MySQL) and authentication backends (LDAP, file-based, PAM). It implements a full OpenID Connect 1.0 / OAuth 2.0 provider with certified conformance, WebAuthn (FIDO2) passkeys, TOTP, Duo Push, and passwordless authentication. The frontend is a React/TypeScript single-page application with i18n, custom UI components, and integration with the backend via REST APIs. The architecture follows a service-oriented pattern with middleware chains, configuration validation, and extensive unit and integration tests. The codebase is well-structured, modular, and demonstrates high craftsmanship in areas like timing attack mitigation, clock abstraction for testability, and configuration validation.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 4 reusable components found
evilmartians/lefthook ★ 8914 321 APPLICATION

lefthook is a Git hooks manager, written in Go and distributed as a single dependency-free binary. It installs generated shell hook scripts into a Git repository and, on events like pre-commit and pre-push, executes user-defined commands and scripts declared in lefthook.yml (YAML/JSON/TOML/JSONC are supported). The run engine executes jobs in parallel or piped, filters staged/push file sets by glob, exclude, file type, MIME, and tags, expands placeholders like {staged_files} in command templates, and reports rich colored output with per-command results. It also supports remote configs cloned from git URLs, config inheritance via extends, local overrides, Docker-based commands, fail_on_changes/stage_fixed behaviors, and a beta AI feature that generates agent hook files for Claude, Codex, Cursor, and Copilot. Architecturally it is a cleanly layered CLI: cmd/ defines the urfave/cli command tree (run, install, uninstall, check-install, dump, add, validate, version, self-update); internal/command/ holds the business logic; internal/run/controller/ is the execution engine (scoping, skip conditions, a guard that stash/restores unstaged changes for fail_on_changes, stage-fixed file handling); internal/git/ wraps the repository and provides a composable git-command layer; internal/config/ loads and merges configuration via koanf with a generated JSON Schema; internal/system/ abstracts cross-platform process execution (Unix sh -c; Windows resolves Git's sh.exe). Packaging spans npm, RubyGems, PyPI, PHP, Homebrew, Scoop, AUR, and Linux repositories. Quality signals are strong: extensive unit tests, a large testscript-based integration suite running on Linux/macOS/Windows, a fast release cadence, and use of modern Go (iterators, slices/maps helpers). Maintenance is active: recent commits, triaged issues, zero Dependabot alerts. The main long-term risks are duplicated schema files that must stay in sync, a beta AI integration, and a large bash-heavy packaging matrix; none of these detract from the core engine, which is well-abstracted and contains genuinely reusable components.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 6 reusable components found
mongodb/mongo-go-driver ★ 8533 940 APPLICATION

The MongoDB Go Driver is the official MongoDB driver for Go applications, providing connectivity to MongoDB databases. It implements the MongoDB wire protocol, handles BSON encoding/decoding, manages connection pooling and server discovery, and supports all MongoDB features including transactions, change streams, GridFS, and encryption. The driver follows a layered architecture with high-level (mongo package), middle-layer (driver implementation), and low-level (BSON handling) components. It uses idiomatic Go patterns including context-based cancellation, functional options for configuration, and dependency injection for pluggable components like authenticators and loggers.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
xvzc/spoofdpi ★ 5040 330 APPLICATION

spoofdpi is a cross-platform proxy tool that bypasses Deep Packet Inspection (DPI) by fragmenting and desynchronizing TLS handshakes. It operates in three modes: HTTP proxy, SOCKS5 proxy, or TUN interface (transparent proxy). In production, it intercepts outgoing connections, reads the TLS ClientHello, splits it into segments using configurable strategies (SNI-split, random, chunk, first-byte, or custom plans), optionally sends fake packets before the real data, and may disorder segments by manipulating the TTL field so that DPI middleboxes misparse the connection while the destination server reassembles it correctly. It also includes a built-in DNS resolver with UDP, HTTPS (DoH), and system backends, and a rule system for per-domain/per-IP configuration. The architecture is a single Go binary with modular internal packages: config (TOML+CLI loading), desync (TLS/UDP desynchronization), dns (multi-backend resolver), netutil (connection management, dialing, TTL setting), packet (raw packet capture/injection via pcap or Linux raw sockets), proto (HTTP, SOCKS5, TLS parsing), rule (domain and CIDR matching), server (HTTP, SOCKS5, TUN server implementations), session (context-based tracing), trie (generic trie structures), cache (sharded LRU and TTL caches), and logging (zerolog-based structured logging). The TUI mode uses bubbletea for a terminal interface showing real-time speed and logs. Key entry points are cmd/spoofdpi/main.go (main function) which parses CLI flags, loads configuration, and starts the selected server. External dependencies include gopacket for packet manipulation, wireguard-tun for TUN device support, gvisor for TCP/IP stack in TUN mode, and various Go packages for CLI, TOML, DNS, and logging. The code is well-structured with extensive use of interfaces, generics, and concurrency primitives (context, channels, goroutines).

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 6 reusable components found
nicocha30/ligolo-ng ★ 4911 462 APPLICATION

Ligolo-ng is a tunneling tool designed for penetration testing that creates secure tunnels from reverse TCP/TLS connections using TUN interfaces. Unlike traditional tools that rely on SOCKS proxies, Ligolo-ng implements a userland network stack using gvisor to translate packets between the TUN interface on the proxy server and target networks accessed through compromised agents. This allows security professionals to run tools like nmap directly through the tunnel without requiring proxychains or other proxyification tools. The system consists of two main components: an agent that runs on target machines and establishes outbound connections to the proxy, and a proxy server that manages agent connections, creates TUN interfaces, and handles traffic routing. The proxy features a rich CLI interface for managing agents, establishing tunnels, configuring listeners, and viewing network information, with an optional web API and UI for graphical management. Communication between agent and proxy is secured via TLS and multiplexed using yamux for efficient handling of multiple simultaneous connections. Key technical innovations include a sophisticated packet relaying mechanism that preserves UDP datagram boundaries while transmitting error information back through the tunnel, cross-platform TUN interface abstraction that works on Linux, BSD, and Windows, and flexible TLS certificate management supporting self-signed certificates, Let's Encrypt automation, and custom certificate files. The tool demonstrates careful attention to reliability features like automatic reconnection, interface recovery after connection drops, and proper resource cleanup.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 3 reusable components found
felinics/Memoh ★ 2205 208 APPLICATION

Memoh is an open-source, full-stack AI agent platform that provides each agent with an isolated cloud computer (filesystem, desktop, browser, network, long-term memory). The system is built around a Go backend with Echo HTTP and gRPC, Vue 3 frontend with Pinia, and an Electron desktop shell. It supports multiple agent runtimes (native, ACP, Codex, Claude Code), a wide range of messaging channels (Telegram, Discord, Feishu, WeChat, LINE, DingTalk, etc.), and container-based workspaces via containerd or Docker. The architecture is a monolith with clearly separated packages for channel adapters, context management, session orchestration, and tool execution. The codebase demonstrates high engineering craftsmanship with extensive test coverage, sophisticated concurrency patterns (runtime fences, decision waiters, atomic compaction barriers), and a modular context fragment system for prompt assembly. It is actively maintained with frequent commits, thorough CI/CD, and over 140 database migrations.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 4 reusable components found
pelletier/go-toml ★ 1980 250 APPLICATION

This repository provides a Go library (`github.com/pelletier/go-toml/v2`) for reading and writing TOML documents, conforming to TOML v1.1.0. It offers a two-phase architecture: a low-level iterative AST parser in the `unstable` package, and higher-level `Marshal`/`Unmarshal` functions with configurable streaming `Encoder`/`Decoder` that support strict mode, custom marshalers, and struct tags. The library is dependency-free (only standard library) and includes three CLI tools: `tomll` (formatter), `tomljson` (TOML to JSON), and `jsontoml` (JSON to TOML). The codebase demonstrates strong engineering practices: pooled encoder/decoder states, cached struct plans via `sync.Map`, word-at-a-time scanning for performance, a fused generic decode path, and comprehensive test coverage including auto-generated conformance tests from the upstream toml-test suite. It also includes an experimental document-editing package (`unstable/edit`) that preserves comments and layout via byte-range indexing and splice-based mutations.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 3 reusable components found
foxglove/mcap ★ 1089 227 APPLICATION

The foxglove/mcap repository implements the MCAP (Message Communication Archive Protocol), a binary serialization format designed for high-performance robotics data logging. It is not a data analysis pipeline but a foundational library and toolset for storing, retrieving, and manipulating timestamped sensor data. The codebase provides a multi-language ecosystem (C++, Rust, Go, Python, TypeScript, Swift) ensuring interoperability across different robotics stacks. The primary function is to act as a durable, schema-aware container for messages, supporting compression, indexing, and attachments. Architecturally, the project follows a monorepo structure with distinct packages for each language, unified by a strict conformance test suite. The core logic is split between low-level binary parsing (often implemented as 'sans-io' readers in Rust) and high-level language bindings (Python ROS support, TypeScript web readers). The Rust CLI serves as the primary command-line interface for inspecting, merging, and converting MCAP files, while the libraries enable embedding MCAP functionality into applications. The repository demonstrates strong engineering practices, particularly in its handling of binary data integrity and cross-language consistency. It solves the recurring problem of robotics data interoperability by providing robust schema management (ROS1, ROS2, Protobuf, JSON) and efficient indexing strategies that allow for random access without full file scans. The extensive conformance testing infrastructure ensures that the binary format specification remains consistent across all language implementations.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 4 reusable components found
zombiezen/go-sqlite ★ 982 41 APPLICATION

zombiezen/go-sqlite is a Go library providing low-level bindings to SQLite 3 using the CGo-free modernc.org/sqlite implementation. It offers direct access to SQLite features including connection management, statement execution, blob I/O streaming, online backup API, user-defined functions (scalar and aggregate), session API for changesets, virtual table support, and schema migration tools. The architecture follows a modular design with core sqlite package for basic operations, sqlitex for extended utilities (connection pooling, execution helpers), sqlitefile for blob-backed buffers, and sqlitemigration for schema migrations. The library is safe for concurrent use through connection pooling and proper error handling, with comprehensive test coverage demonstrating its reliability.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 4 reusable components found
openclaw/clawdex ★ 55 9 APPLICATION

clawdex is a local-first, markdown-first personal contact index CLI written in Go. Contacts are stored as plain markdown files with YAML frontmatter in a private Git repository, making the data diffable, grepable, and portable. The tool provides commands to manage people, notes, avatars, search, and timelines, with import adapters for Apple Contacts (macOS only via a temporary Swift helper), Google Contacts (via the gog CLI), X/Twitter DMs (Birdclaw), Discord DMs (Discrawl), and generic crawlkit-compatible crawlers. It also supports vCard export, Git sync helpers, and a doctor command for repairing damaged frontmatter. The architecture is a single self-contained binary with Kong-based CLI parsing, internal packages for each major domain, and a strong emphasis on security and correctness — the safefile package performs rooted, symlink-aware file I/O with atomic writes, and the markdown package includes robust salvage and repair logic for damaged frontmatter. CI enforces 90%+ test coverage, security scanning (gitleaks, gosec), dead code detection, and reproducible builds via GoReleaser.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 3 reusable components found
AdguardTeam/AdGuardHome ★ 37277 2533 APPLICATION

AdGuard Home is a production-grade, self-hosted network-wide ad/tracker blocking DNS server. In operation it listens for DNS queries, applies filtering via blocklists, custom rules, parental control, safe search, and DNS rewrites, forwards remaining queries to upstream resolvers over plain DNS, DoT, DoH, or DoQ, and records query logs and statistics. It also includes a DHCP server for IPv4/IPv6, client identification through ARP/WHOIS/rDNS/DHCP/hosts files, TLS/encryption management, and a REST API documented in the openapi directory. The Go backend is a modular monolith organized into domain packages such as dnsforward, filtering, querylog, stats, dhcpd/dhcpsvc, home, and the new next/websvc, with heavy use of interfaces and OS-specific build tags for Linux, macOS, Windows, FreeBSD, and OpenBSD. The repository ships two frontends in parallel: a legacy React/Redux application under client/ and a newer SolidJS application under client_v2/, both built with webpack and backed by the same HTTP control API. Entry points include main.go for the stable product and main_next.go for an ongoing architectural rewrite. Configuration is stored in YAML and migrated through 34 schema versions using a dedicated migration framework. The codebase is extensively tested at both unit and end-to-end levels, and release packaging scripts cover many OS/arch targets. The presence of JSON tracker metadata and safe-search rule lists is operational data, not research artifacts; this is not a data pipeline or analytics repository. Primary data flows: DNS request -> dnsforward request handler -> client identity lookup -> filtering engine (urlfilter, custom rules, hosts) -> safe-search/rewrite handling -> upstream forwarding -> response; each query is written to a binary query log and aggregated into statistics. DHCP leases persist through JSON databases, and embedded datasets such as whotracksme metadata and blocked-services definitions support UI and filtering behavior. The largest current risk is the dual-frontend and dual-backend transition, which creates duplication and increases maintenance burden, but the core DNS/DHCP/filtering paths remain coherent and well-tested.

RATING: 9.2/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
Wox-launcher/Wox ★ 27506 2436 APPLICATION

Wox is a cross-platform desktop launcher (macOS, Linux, Windows) written in Go with a custom retained-mode UI framework. It provides a keyboard-first search interface with an extensive plugin system (system plugins in Go, external plugins via WebSocket hosts for Python and Node.js). Core features include file search with content indexing (SQLite FTS5, USN journal, FSEvents), clipboard history, calculator, converter, emoji picker, screenshot with annotation, window management, AI chat with multiple providers (OpenAI, Ollama, etc.), cloud sync with encryption, and system commands (shell, timer, dictation). The architecture is a monolith with a plugin manager dispatching queries to registered plugins, rendering results in a custom widget tree with GPU-accelerated painting. It has a sophisticated settings system with typed definitions, migrations, and cloud sync. The codebase is large but well-organized, with extensive platform-specific code for Windows (COM, Win32), macOS (AppKit, Objective-C), and Linux (GTK, Wayland, X11).

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 4 reusable components found
securego/gosec ★ 8972 718 APPLICATION

gosec is a production-grade static analysis security scanner for Go source code. It analyzes Go programs by traversing the AST and SSA representations to detect a wide range of security vulnerabilities, including SQL injection, command injection, path traversal, cross-site scripting (XSS), hardcoded credentials, weak cryptography, TLS misconfigurations, and more. The tool is distributed as a CLI binary, a Docker image, a GitHub Action, and a reusable Go library. The architecture is modular: a core analysis engine loads Go packages, applies AST-based rules and SSA-based analyzers, and runs a configurable taint analysis engine that tracks data flow from user-controlled sources to dangerous sinks. Results are output in multiple formats (text, JSON, SARIF, CSV, JUnit, HTML, SonarQube, golint, YAML). The tool also integrates with AI providers (OpenAI, Claude, Gemini, Atlas) to suggest automated fixes for detected vulnerabilities. Notable design highlights include a generic LRU cache for regex matching, a path-based rule exclusion filter, a comprehensive CWE knowledge base, and a well-abstracted taint analysis configuration system. The codebase demonstrates strong engineering practices with extensive test coverage, performance benchmarks, and CI/CD pipelines for release and scanning.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 5 reusable components found
gobuffalo/buffalo ★ 8424 580 APPLICATION

This repository is the core library of the Buffalo web framework for Go. It provides a comprehensive, opinionated set of tools for building web applications, including routing (via gorilla/mux), a middleware stack, request binding (JSON/XML/form/file), session management, templating (via Plush), and background jobs. The codebase is well-structured, clean, and thoroughly tested. Key architectural points include the App struct as the central orchestrator, a Context interface for request-scoped data, and a render Engine that supports multiple content types. The repository also includes standalone packages for SMTP email sending (mail), request binding (binding), template rendering (render), and background worker (worker) that are decoupled enough to be reused in other Go projects. The project is actively maintained with recent commits and CI.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 4 reusable components found
ComicSparks/pikapika ★ 8355 489 APPLICATION

Pikapika is a cross-platform comic reader and downloader built with Flutter and Go, providing an ad-free experience for reading manga and comics. The application supports Windows, macOS, Linux, Android, and iOS, offering features such as browsing comics by category, searching, reading online or offline, managing downloads, favoriting content, viewing and posting comments, and downloading games. It includes a pro tier that unlocks advanced features like batch operations and extended export capabilities. The architecture separates the Flutter-based UI from a Go-based core backend, communicating via MethodChannels on mobile and go-flutter plugins on desktop. Local data storage for settings, favorites, and download history is managed through a central Method service. The UI is composed of reusable widgets organized in a component library, including specialized widgets for displaying comics, handling asynchronous states, and managing user interactions. Settings are implemented as individual classes that persist user preferences and broadcast changes via an event bus. Key entry points include platform-specific native code (MainActivity for Android, AppDelegate for iOS, etc.) and Flutter's main.dart/main_desktop.dart. Data flows involve user interactions triggering API requests through the Method service, which communicates with the Go backend to fetch or process data, then updates the UI accordingly. The application relies on various Flutter plugins for permissions, file handling, networking, and UI enhancements, while the Go core handles core logic and API interactions. We note that the project is actively maintained with recent commits and a low level of technical drift, indicating ongoing compatibility with current dependencies and platform SDKs.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 4 reusable components found
rorkai/App-Store-Connect-CLI ★ 7950 679 APPLICATION

This repository implements a comprehensive, production-grade CLI tool (`asc`) for interacting with Apple's App Store Connect API, Apple Ads API, and Apple Developer Portal. It automates the entire lifecycle of Apple platform applications, including authentication, app and build management, versioning, localization, screenshots, pricing, subscriptions, in-app purchases, Game Center features, code signing, distribution, and publishing. The tool is designed for CI/CD integration and supports multiple output formats (JSON, table, markdown) with a rich set of validation and diagnostic capabilities. The architecture is a monolithic CLI application built on a custom Go-like language with a sophisticated build system (`go.mod`, `go.sum`, `//go:build` directives). It follows a clean layered architecture: a command layer using the `ffcli` library, a comprehensive API client layer (`internal/asc/`), a secure authentication layer (`internal/auth/`), and platform-specific implementations for file operations, process management, and security. The codebase is exceptionally well-tested with thousands of unit and integration tests, including platform-specific tests for Darwin, Linux, and Windows. Notable engineering highlights include a generic pagination system with cycle detection, a registry-based output rendering system, a robust validation framework with structured remediation, and cross-platform secure file operations that prevent symlink attacks using platform-specific syscalls. The project also features an embedded workflow engine, telemetry with environment detection, and agent skill definitions for AI-assisted development workflows. The project is actively maintained with a structured release process, low issue count, and active dependency management. Technical drift is managed through explicit deprecation handling and migration paths. Primary risks include reliance on a custom Go toolchain, platform-specific assembly code for macOS security operations, and web session scraping that is inherently fragile to Apple Developer Portal changes.

RATING: 9.2/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
canonical/lxd ★ 4837 1062 APPLICATION

LXD is a modern, secure system container and virtual machine manager developed by Canonical. It provides a REST API over a Unix socket and HTTPS, a command-line client (lxc), and an in-guest agent (lxd-agent). The architecture is a monolithic daemon with pluggable storage drivers (ZFS, Btrfs, LVM, Ceph, dir, and enterprise SAN), network drivers (bridge, OVN, macvlan, SR-IOV, physical), and device passthrough (GPU, USB, NIC, TPM, proxy). It supports clustering via dqlite/Raft for high availability, fine-grained authorization via OpenFGA, OIDC authentication, and ACME certificate provisioning. The codebase is written in Go with CGo for low-level Linux operations (namespaces, seccomp, AppArmor, cgroups) and includes extensive unit and integration tests. Key features include live migration, incremental backups, cloud-init integration, and a built-in metrics endpoint for Prometheus.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 8 reusable components found
dkron-io/dkron ★ 4733 418 APPLICATION

Dkron is a production-grade, distributed cron and job scheduling system written in Go. It runs as a cluster of nodes coordinated via HashiCorp Raft for consensus and Serf for membership, providing fault tolerance and automatic leader election. The system exposes a REST API, a gRPC API, and an embedded React admin UI. Jobs are executed through a plugin architecture supporting multiple executors (shell, HTTP, Kafka, NATS, RabbitMQ, Google Cloud Pub/Sub, gRPC) and processors (log, file, syslog, Fluentd). The scheduler extends standard cron syntax with custom descriptors like @at, @after, and @manually, and supports retries, concurrency control, job chaining, and notifications via email/webhook. State is persisted in embedded BuntDB for application data and BoltDB for the Raft log, with optional cloud auto-join via go-discover. The project also includes a commercial Pro tier (ACL, encryption, failover) referenced in the codebase, but the core open-source code is fully functional and well-tested with unit, integration, and end-to-end tests.

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