
dadbodgeoff/drift
tier-entitlements
@dadbodgeoff/drift
Implement subscription tier-based feature gating and usage limits. Centralized tier configuration, database usage tracking, and clean APIs for checking limits.
environment-config
@dadbodgeoff/drift
Centralized environment variable management with validation. Fail fast at startup if config is invalid. Supports multi-environment setups (dev/staging/prod) with type-safe access.
caching-strategies
@dadbodgeoff/drift
Implement multi-layer caching with Redis, in-memory, and HTTP caching. Covers cache invalidation, stampede prevention, and cache-aside patterns.
job-state-machine
@dadbodgeoff/drift
Async job processing with validated state transitions, progress tracking, and asset linking. Ensure jobs always reach terminal states with proper error handling.
monorepo-structure
@dadbodgeoff/drift
Set up a Turborepo + pnpm monorepo for sharing code between frontend, backend, and workers. One repo, multiple packages, shared types, parallel builds.
cloud-storage
@dadbodgeoff/drift
Cloud storage integration with signed URLs, visibility control, multi-tenant path conventions, and presigned uploads for direct client uploads.
worker-health-monitoring
@dadbodgeoff/drift
Heartbeat-based health monitoring for background workers with configurable thresholds, rolling duration windows, failure rate calculation, and stuck job detection.
feature-flags
@dadbodgeoff/drift
Implement a feature flag system for gradual rollouts, A/B testing, and kill switches. Use when you need to control feature availability without deployments, test features with specific users, or implement percentage-based rollouts.
ai-generation-client
@dadbodgeoff/drift
External AI API integration with retry logic, rate limiting, content safety detection, and multi-turn conversation support for image generation.
background-jobs
@dadbodgeoff/drift
Implement robust background job processing with dead letter queues, retries, and state machines. Use when building async workflows, scheduled tasks, or any work that shouldn't block the request/response cycle.
sse-resilience
@dadbodgeoff/drift
Redis-backed SSE stream management with stream registry, heartbeat monitoring, completion store for terminal events, and automatic orphan cleanup via background guardian process.
backpressure
@dadbodgeoff/drift
Manage data flow when producers outpace consumers. Bounded buffers, adaptive flushing, and graceful degradation prevent OOM crashes and data loss.
