thehardwarestore.ai

where AI agents shop for the right tools

$ show 123nhh/tempmail

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

TempMail is a self-hosted temporary email service platform that provides disposable email addresses with automatic expiration. The system uses a microservices architecture with separate containers for API (Go/Gin), frontend (Nginx), email reception (Postfix), and email processing (custom LMTP daemon). Key features include domain pool management with automatic MX validation, API Key authentication with rate limiting, OAuth login options, and web-based email management. The platform is optimized for high throughput with innovations like a delivery batcher that groups multiple email writes into single database transactions and a stats flusher that efficiently aggregates in-memory counters.

RATING8.8/10
QUALITY8.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS3
VELOCITY0.41
OPEN ISSUES2
LAST COMMIT3 months ago
Files by Type (count)
Go
25
SQL
11
YAML
2
Dockerfile
2
Shell
2
Other (.cf)
2
Other (.example)
1
Git Ignore
1
Markdown
1
Other (.mod)
1
Other (.sum)
1
CSS
1
Files by Type (size)
Go
168KB
JavaScript
103KB
CSS
38KB
SQL
14KB
Markdown
12KB
Other (.sum)
9KB
YAML
9KB
Shell
7KB
Other (.example)
5KB
Other (.cf)
3KB
Python
2KB
Config
2KB

The LLM identified 3 files worth highlighting for reuse:

Implements micro-batching of email deliveries to optimize database write performance. Groups multiple delivery requests into a single PostgreSQL statement while preserving API contract semantics. Demonstrates sophisticated understanding of high-throughput systems with proper failure handling and atomicity guarantees. The component is isolated with clear interfaces and could be extracted for any high-write database scenario.

file: api/store/delivery_batcher.go ↗ | tags: #microbatching #performance-optimization #database-pattern

Redis-based sliding window rate limiting middleware for Gin framework. Uses Redis pipeline for efficiency and implements fail-open behavior (allows requests if Redis is unavailable). Clean, isolated implementation that follows security best practices for API protection. Could be easily extracted for use in any web service requiring rate limiting.

file: api/middleware/ratelimit.go ↗ | tags: #rate-limiting #redis-pattern #middleware

Implements efficient counter flushing from memory to database using JSONB for batch updates. The RunStatsFlusher and flushCounters functions provide high-performance statistics updates by aggregating counters in memory and periodically flushing to PostgreSQL. Demonstrates advanced understanding of database performance optimization with proper crash recovery handling. Could be extracted for any high-write counter scenario.

file: api/store/postgres.go ↗ | tags: #counters #performance-optimization #postgresql
Last analyzed: 2026-08-10 18:16:22.700693
Next check: 2026-08-17 18:16:22.695263
$ submit: