$ show olyaiy/resume-lm
ResumeLM is an AI-powered resume builder application built with Next.js 15, React 19, and TypeScript. It provides a SaaS platform for creating, editing, and optimizing resumes for tech job applications, featuring AI-assisted content generation, resume tailoring for specific job applications, ATS optimization, and cover letter generation. The application uses Supabase for authentication and data storage, Stripe for subscription management, and integrates with multiple AI providers (OpenAI, Anthropic, Google, etc.) via OpenRouter or direct API keys. The architecture follows a modular structure with separate concerns for authentication, dashboard, resume editor, admin panel, and settings, leveraging server actions for data mutations and a robust AI abstraction layer for model selection and usage tracking.
The LLM identified 5 files worth highlighting for reuse:
Centralizes AI model resolution and access control logic, determining which AI models are available based on user subscription status and API keys. Implements reliability middleware with fallback mechanisms and usage tracking. Demonstrates a clean abstraction layer for multi-provider AI integration that could be extracted for other AI-powered applications.
Handles subscription state evaluation and entitlement determination by synchronizing Stripe subscription data with Supabase records. Provides reusable functions for checking user limits, trial status, and feature access. Shows a robust pattern for subscription-based feature gating that handles edge cases like past-due subscriptions and payment recovery fields.
Defines a standardized event taxonomy with automatic PII sanitization for safe analytics tracking. Includes utilities for tracking outbound links, page performance, and custom events with property filtering. Demonstrates a privacy-conscious analytics framework that prevents accidental data leakage while maintaining tracking flexibility.
A highly reusable, accessible button component built with Radix UI primitives and Tailwind CSS variants. Supports multiple variants, sizes, and states with proper focus management and keyboard navigation. Exemplifies a well-crafted UI primitive that follows modern accessibility standards and can be easily dropped into any React project.
Implements Stripe operations with idempotency keys to prevent duplicate checkout sessions and subscription creations. Includes robust error handling, webhook signature verification, and metadata propagation. Shows a production-ready pattern for Stripe integration that ensures data consistency and handles common payment edge cases.