$ show mattogodoy/nametag
Nametag is a personal relationships management application that combines contact tracking, relationship visualization, journaling, and synchronization capabilities. Built with Next.js 16, React 19, and TypeScript, it features a modular architecture with API routes, Prisma ORM with PostgreSQL, and extensive third-party integrations including Stripe for billing, Resend for email, and CardDAV for address book synchronization. The application offers both self-hosted and SaaS deployment options with tiered feature access (FREE/PERSONAL/PRO). Key architectural strengths include isolated utility modules, consistent API patterns, soft delete implementation, and comprehensive testing coverage. The codebase demonstrates modern development practices with attention to security, internationalization, and data privacy.
The LLM identified 10 files worth highlighting for reuse:
Contains centralized Zod schemas and a validateRequest helper that provides consistent request validation across all API endpoints. Demonstrates excellent separation of concerns by isolating validation logic from business logic, making it easily reusable in any Node.js/TypeScript API project.
Provides standardized API utilities including apiResponse, handleApiError, parseRequestBody, withLogging, and withAuth higher-order functions. Shows exemplary craftsmanship in creating consistent API patterns that reduce boilerplate while maintaining flexibility for error handling, logging, and authentication across all route handlers.
Implements a sophisticated Pino logger setup with AsyncLocalStorage context management for request correlation. Demonstrates advanced logging practices that could be extracted to any Node.js application needing structured, traceable logging with performance-conscious implementation.
Contains sophisticated duplicate detection algorithms using weighted field comparisons and Levenshtein distance calculations. Shows non-obvious skill in balancing accuracy with performance, making it reusable in any contact management or data deduplication scenario with minimal adaptation.
Abstracts geocoding functionality with support for multiple providers, caching, and fallback mechanisms. Demonstrates excellent service isolation and error handling patterns that could be reused in any project requiring address-to-coordinates conversion with minimal modification.
Provides a complete photo handling system with HEIC conversion, resizing, optimization, and secure storage. Shows impressive attention to detail in image processing workflows, making it reusable in any application needing robust image upload and manipulation capabilities.
Implements a client-side search solution using MiniSearch with intelligent debouncing and persistence patterns. Demonstrates effective search UI implementation that could be extracted to any React application needing lightweight, instant search capabilities.
Offers a flexible rate limiting implementation with Redis backend and in-memory fallback. Shows excellent engineering in creating a resilient rate limiting system that gracefully degrades when external services are unavailable.
Implements a sophisticated custom field system that allows dynamic extension of data models without schema migrations. Demonstrates advanced data modeling techniques that could be reused in any application requiring user-definable data fields.
A well-encapsulated, reusable Button component with consistent styling, loading states, and accessibility features. Exemplifies high-quality UI primitive development that could be extracted to any React/Tailwind project as part of a design system.