01 · Software Engineering

Distributed backends built to survive failure: consistent hashing, transactional outboxes, cache stampedes, and observability. Alongside Rust and Python tools that make the machine legible.

00 · Events Aggregator ↗ LIVE · 2026-11-26 · 10 commits · #Go #PostgreSQL #2026

Headless distributed Kenyan event aggregation service in Go (zero JS) crawling 10 live ticketers, deduplicating with pg_trgm, mirroring posters to SeaweedFS S3, and streaming via REST, GraphQL, gRPC, SSE & WebSockets.

docker compose up -d --build
curl http://localhost:8080/readyz
curl "http://localhost:8080/api/v1/events?county=Nairobi&limit=10"

Architecture & Resilience

  • 13-service Go system solving duplicate crawls across replicas, dual-write Postgres/Kafka inconsistency, cache stampedes, and cascading downstream timeouts across 10 Kenyan ticketers (47 counties).
  • Consistent Hash Ring (32 vnodes/worker) + Redis SETNX/Lua locks for mutually-exclusive sharded crawling.
  • ACID Transactional Outbox in Postgres relaying to Redpanda/Kafka (events.discovered + events.dlq) & Redis Pub/Sub.
  • PgBouncer -> Postgres Primary for writes; WAL-streaming Read Replica + Redis Cache-Aside (Singleflight + TTL jitter) for reads.
  • Per-domain Circuit Breaker, Exponential Backoff with Full Jitter, Bulkhead semaphore, SSRF IP/DNS validation, slog JSON, OpenTelemetry OTLP gRPC, Prometheus & Grafana.
01 · safeAuth ↗ SAMPLE · 2026-01-24 · 8 commits · #Go #Ed25519 #2026

Zero-password, local-first authentication system in Go rooted in a 128-bit BIP39 seed phrase, per-origin HKDF Ed25519 keys, Argon2id + XChaCha20-Poly1305 vault, and 1-of-N Schnorr ring proofs.

go test -v ./...
go run ./cmd/safeauth-server -addr :8080 -origin localhost:8080
go run ./cmd/safeauth init

Cryptography & Protocol

  • 128-bit BIP39 Identity Root + Per-Origin HKDF-SHA256 Ed25519 key isolation (internal/identity).
  • Encrypted Local Vault with Argon2id + XChaCha20-Poly1305 (0600 permissions, internal/vault).
  • 32-byte single-use nonces (60s TTL), uniform 401 timing hardening, and per-IP token-bucket rate limiting.
  • Epoch key rotation (/rotate) via root-derived recovery key + 1-of-N Schnorr ring proof (/anon-verify).
02 · scannex (rust_scanner) ↗ SAMPLE · 2026-11-26 · 8 commits · #Rust #Win32 #2026

Ultrafast Windows storage scanner in Rust using direct Win32 FindFirstFileExW, lock-free crossbeam-channel MPMC workers, thread-local accumulators, and an optional Slint desktop GUI.

cargo build --release
rust_scanner.exe C:\
rust_scanner.exe C:\ --mode detailed --ui

Engine & Concurrency

  • Direct Win32 FindFirstFileExW (FindExInfoBasic, FIND_FIRST_EX_LARGE_FETCH) + GetCompressedFileSizeW for allocated disk size.
  • Extended-length \\?\ UTF-16 paths and NTFS reparse-point safety.
  • Lock-free MPMC work queue (crossbeam-channel) with thread-local FxHashMap & TopK heaps + #[repr(C)] structs.
  • 5 interactive TUI tabs (File Types, Top Files, Top Folders, Extensions & Info, Deep Details) + --ui Slint desktop GUI.
03 · greg ↗ SAMPLE · 2025-10-20 · 3 commits · #Python #ONNX #2025

Fast, 100% local AI background remover and image pipeline powered by ONNX Runtime, built for humans (CLI + Browser UI) and AI agents (NDJSON streaming, MCP server, SKILL.md).

pip install -e .
greg ui
greg remove ./raw/logo.jpg --out-dir ./assets --ext webp --preset logo

Inference & Interfaces

  • 7 on-demand ONNX segmentation models (u2netp to birefnet-general) with NVIDIA CUDA / Windows DirectML auto-detection.
  • Color decontamination, morphological erode/dilate, Gaussian feathering, auto-trim, and export to png/webp/avif/ico/tiff/pdf.
  • Browser UI (`greg ui`) with before/after split slider and batch ZIP export.
  • Agent-native `--json` NDJSON streaming, `--webhook` / `--done-file` hooks, and `greg mcp` stdio server.
04 · hern_editor ↗ SAMPLE · 2024-06-28 · 4 commits · #WebGL2 #FastAPI #2024

Plug-and-play hybrid photo editor: 60fps real-time adjustments run on browser GPU (WebGL2 fragment shaders + JS), while heavy ops run on Python (FastAPI + OpenCV + NumPy).

pip install -r requirements.txt
python run.py

GPU & Backend Pipeline

  • Browser GPU (60fps): WebGL2 fragment shaders for Exposure, Contrast, Highlights/Shadows, RGB Tone Curve, 8-Channel HSL Mixer, Split Toning, Grain, Live Histogram.
  • Python Backend: EXIF orientation normalization, Full-Res non-destructive Edit Graph export (JPEG/PNG/WebP).
  • AI/CV Tools: Auto-Enhance (CLAHE + Gray-World WB), fastNlMeansDenoisingColored, 2x Upscale, Magic Eraser inpainting, GrabCut BG removal.
05 · PDFPRO ↗ SAMPLE · 2024-10-28 · 6 commits · #FastAPI #PyMuPDF #2024

Full-featured PDF toolkit built with FastAPI + PyMuPDF + pdfplumber and plain vanilla JS + pdf.js: viewer, page manipulation, annotations, conversions, redaction, and batch pipelines.

pip install -r requirements.txt
uvicorn app.main:app --reload
pytest

Reader, Editing & Security

  • pdf.js reader (normal, dark, sepia, high-contrast) with drag-and-drop reorder, rotate, merge, split, crop, resize, and stamps.
  • In-place paragraph text reflow, freehand/signature annotations, Tesseract OCR, and visual/text PDF diffs.
  • PDF <-> PNG/JPG/WebP/Markdown/CSV/JSON, password encryption, metadata stripping, and permanent redaction.
06 · usage-billing-next-nest ↗ SAMPLE · 2025-02-14 · 6 commits · #NestJS #NextJS #2025

Plans, subscriptions, usage metering with idempotency-key enforcement, and invoice generation in NestJS + Next.js + PostgreSQL.

docker compose up --build

Metering & Architecture

  • PostgreSQL-enforced idempotency-key deduplication so retried usage events never double-bill.
  • Clean NestJS backend + Next.js invoices/metering frontend orchestrated via docker-compose.yml.

Additional GitHub Repositories (@tensorGT)

ops-dashboard-next-nestNestJS · Next.js
support-portal-next-nestNestJS · Next.js
nestjs-multitenant-keysNestJS · API Keys
nestjs-inventory-tx-pgNestJS · PostgreSQL
nestjs-prisma-rbac-authNestJS · Prisma · RBAC
nextjs-workspace-tasksNext.js · TypeScript
nextjs-prisma-md-blogNext.js · Prisma
nextjs-pg-job-boardNext.js · PostgreSQL
ts-issue-tracker-pgTypeScript · PostgreSQL
ts-express-budget-pgExpress · PostgreSQL
mern-recipe-meal-planMongoDB · Express · React
playwright-checkpoint-runnerPlaywright · TypeScript