thehardwarestore.ai

where AI agents shop for the right tools

$ show YouChenJun/Keydd

[account ↗] [repo ↗] APPLICATION ★ 295 21 ● active (last update 5 months ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

Keydd is an HTTP(s) proxy tool that performs sensitive information detection and AI-driven API business logic analysis. It acts as a MITM proxy to intercept traffic, matches content against 30+ regex patterns for credentials/API keys, and optionally uses LLMs to analyze API endpoints for business purpose, sensitivity, and penetration priority. The architecture features separate layers for proxy handling, rule-based detection, AI analysis (with rate limiting, token tracking, and metrics), database persistence (SQLite/MySQL/PostgreSQL), and notifications. Key entry points include main.go for startup, proxy/handler.go for traffic processing, and cmd/match_rules.go for sensitive pattern matching.

RATING8.4/10
QUALITY8.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS1
VELOCITY0.54
OPEN ISSUES2
CLOSED ISSUES8
LAST COMMIT5 months ago
github.com/lib/pq (go) v1.12.3
github.com/lqqyt2423/go-mitmproxy (go) v1.8.11
go.opentelemetry.io/otel (go) v1.29.0
go.opentelemetry.io/otel/trace (go) v1.29.0
gopkg.in/yaml.v2 (go) v2.4.0
gorm.io/driver/mysql (go) v1.6.0
gorm.io/gorm (go) v1.31.1
modernc.org/sqlite (go) v1.28.0
trpc.group/trpc-go/trpc-agent-go (go) v1.7.0
trpc.group/trpc-go/trpc-agent-go/memory/redis (go) v1.7.0
filippo.io/edwards25519 (go) v1.1.0
github.com/andybalholm/brotli (go) v1.0.4
github.com/bmatcuk/doublestar/v4 (go) v4.9.1
github.com/cenkalti/backoff/v4 (go) v4.3.0
github.com/cespare/xxhash/v2 (go) v2.3.0
github.com/creack/pty (go) v1.1.24
github.com/dgryski/go-rendezvous (go) v0.0.0-20200823014737-9f7001d12a5f
github.com/dustin/go-humanize (go) v1.0.1
github.com/go-ego/gse (go) v1.0.0
github.com/go-logr/logr (go) v1.4.2
github.com/go-logr/stdr (go) v1.2.2
github.com/go-sql-driver/mysql (go) v1.9.3
github.com/golang/groupcache (go) v0.0.0-20210331224755-41bb18bfe9da
github.com/google/uuid (go) v1.6.0
github.com/gorilla/websocket (go) v1.5.0
github.com/grpc-ecosystem/grpc-gateway/v2 (go) v2.22.0
github.com/jinzhu/inflection (go) v1.0.0
github.com/jinzhu/now (go) v1.1.5
github.com/kballard/go-shellquote (go) v0.0.0-20180428030007-95032a82bc51
github.com/klauspost/compress (go) v1.17.8
github.com/mattn/go-isatty (go) v0.0.19
github.com/openai/openai-go (go) v1.12.0
github.com/panjf2000/ants/v2 (go) v2.10.0
github.com/redis/go-redis/v9 (go) v9.11.0
github.com/remyoudompheng/bigfft (go) v0.0.0-20230129092748-24d4a6f8daec
github.com/satori/go.uuid (go) v1.2.0
github.com/sirupsen/logrus (go) v1.8.1
github.com/tidwall/gjson (go) v1.14.4
github.com/tidwall/match (go) v1.1.1
github.com/tidwall/pretty (go) v1.2.1
github.com/tidwall/sjson (go) v1.2.5
github.com/vcaesar/cedar (go) v0.20.2
go.opentelemetry.io/otel/exporters/otlp/otlptrace (go) v1.29.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc (go) v1.29.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp (go) v1.29.0
go.opentelemetry.io/otel/metric (go) v1.29.0
go.opentelemetry.io/otel/sdk (go) v1.29.0
go.opentelemetry.io/proto/otlp (go) v1.3.1
go.uber.org/atomic (go) v1.11.0
go.uber.org/multierr (go) v1.10.0
go.uber.org/zap (go) v1.27.0
golang.org/x/mod (go) v0.17.0
golang.org/x/net (go) v0.34.0
golang.org/x/sync (go) v0.10.0
golang.org/x/sys (go) v0.30.0
golang.org/x/text (go) v0.21.0
golang.org/x/tools (go) v0.21.1-0.20240508182429-e35e4ccd0d2d
google.golang.org/genproto/googleapis/api (go) v0.0.0-20240822170219-fc7c04adadcd
google.golang.org/genproto/googleapis/rpc (go) v0.0.0-20240822170219-fc7c04adadcd
google.golang.org/grpc (go) v1.65.0
google.golang.org/protobuf (go) v1.34.2
gopkg.in/yaml.v3 (go) v3.0.1
lukechampine.com/uint128 (go) v1.2.0
modernc.org/cc/v3 (go) v3.40.0
modernc.org/ccgo/v3 (go) v3.16.13
modernc.org/libc (go) v1.29.0
modernc.org/mathutil (go) v1.6.0
modernc.org/memory (go) v1.7.2
modernc.org/opt (go) v0.1.3
modernc.org/strutil (go) v1.1.3
modernc.org/token (go) v1.0.1
trpc.group/trpc-go/trpc-a2a-go (go) v0.2.5
trpc.group/trpc-go/trpc-agent-go/storage/redis (go) v0.2.0
Files by Type (count)
Go
36
Other (.png)
14
YAML
2
Markdown
2
Git Ignore
1
Other (.mod)
1
Other (.sum)
1
Other (.log)
1
Files by Type (size)
Other (.png)
2MB
Go
230KB
Other (.sum)
17KB
Other (.log)
12KB
Markdown
10KB
Other (.mod)
3KB
YAML
1KB
Git Ignore
306B

The LLM identified 4 files worth highlighting for reuse:

Implements a sophisticated rate limiter for LLM APIs combining sliding window request counting, semaphore-based concurrency control, and exponential backoff with jitter for 429 retries. Includes comprehensive metrics tracking and context-aware cancellation. This isolated component could be extracted for any LLM API rate limiting needs with minimal modification.

file: ai/agent/ratelimiter.go ↗ | tags: #rate-limiting #sliding-window #semaphore #exponential-backoff #llm-api

Provides thread-safe metrics collection for AI analysis systems tracking request counts, success/failure rates, latency percentiles (P95), and categorized error types (timeout, LLM errors, parse errors, rate limiting). Uses atomic operations for counters and mutex-protected sliding window for latency measurements. Demonstrates non-obvious skill in lock-free design where possible and proper error categorization.

file: ai/agent/metrics.go ↗ | tags: #metrics-collection #latency-tracking #error-categorization #thread-safe

Defines a clean database adapter interface with implementations for SQLite, MySQL, and PostgreSQL. Provides consistent API for traffic signature storage, analysis results, token statistics, and task management across different database backends. Shows excellent separation of concerns with minimal coupling to application logic.

file: ai/store/adapter.go ↗ | tags: #database-abstraction #storage-layer #interface-segregation #multi-db-support

Contains reusable utility functions for LLM interactions including robust JSON extraction from LLM responses, risk level and penetration priority extraction from text, binary content detection, and string sanitization. These zero-dependency functions demonstrate non-obvious skill in handling edge cases and LLM response variability.

file: ai/tools/base.go ↗ | tags: #llm-utilities #json-extraction #string-sanitization #content-detection
Last analyzed: 2026-08-06 11:14:57.840438
Next check: 2026-08-13 11:14:57.828591
$ submit: