TrendPilot
RachitShah1299/TrendPilot
Gere scripts YouTube prontos para publicar em 30 segundos com IA
Ver no GitHubStudio de conteúdo YouTube alimentado por IA que identifica tópicos em tendência e gera pacotes de conteúdo prontos para publicar em 30 segundos. Combina pesquisa em tempo real com geração de scripts via Claude, produzindo 8 seções (hook, roteiro completo, títulos SEO, tags e mais). Ideal para criadores que precisam de ciclos de produção ágeis.
Instalação
npx convez-ai RachitShah1299/TrendPilot1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.
Métricas
Casos de uso
- Criadores de YouTube gerando múltiplos vídeos por semana
- Produtoras de conteúdo otimizando tempo de pré-produção
- Criadores testando novos nichos com geração rápida de ideias
Veredito

Agent bem arquitetado com fluxo de trabalho completo (pesquisa → geração → histórico). Tech stack moderno (React 19, Supabase, Claude) e UX polida (glassmorphism, autenticação, multi-canal). Resolve um problema real de produção de conteúdo com limite claro entre planos free e pro.
README
A tradução para o português deste README ainda está na fila.
TrendPilot ⚡
AI-powered YouTube content studio. Discover what's trending in your niche, pick a topic, and get a full publish-ready content package — in 30 seconds.
What It Does
TrendPilot combines real-time trend research with AI script generation. Every generation produces 8 sections:
| # | Section | Description |
|---|---|---|
| 0 | Description | 1–2 sentence summary of the generated script |
| 1 | Hook | Opening line engineered to retain viewers past the first 30 seconds |
| 2 | Outline | Timestamped structure with key talking points |
| 3 | Full Script | Complete word-for-word video script |
| 4 | Title Options | 3 SEO-optimised, A/B-testable YouTube titles |
| 5 | Thumbnail Brief | Visual direction for the thumbnail |
| 6 | SEO Tags | 15 YouTube tags (long-form) |
| 7 | Hashtags | 7 hashtags (Shorts) |
Tech Stack
- Frontend — React 19 + TypeScript + Vite 8
- Styling — Tailwind CSS v4 + shadcn/ui (Radix)
- Backend — Supabase (PostgreSQL + Auth + Edge Functions)
- AI — Claude Sonnet (search phase via Haiku) via Anthropic API + Supabase Edge Functions
- Payments — Lemon Squeezy (subscriptions + webhooks)
- Hosting — Vercel (planned)
Features
- Email/password auth with disposable email blocklist
- Channel profiles — save niche, target audience, tone defaults, and a freeform channel description per channel
- Multi-channel switcher in navbar (auto-hidden when only one channel exists)
- AI topic picker — real-time web search surfaces trending topics scoped to your niche and format
- 3 topic ideas per refresh with used-topic tracking (consumed topics auto-removed)
- Long-form (8–20 min) and YouTube Shorts (≤60 sec) modes
- 8 output sections per generation (description + 7 content sections, see above)
- Credit unit system — long-form = 4 units, Shorts = 1 unit
- Script history with favourites
- Settings page with channel management (add / edit / delete)
- Onboarding flow for new users
- Dark / light mode (dark default)
- Glassmorphism UI with backdrop-blur cards throughout
- Framer Motion animations with reduced-motion support
Plans
| Plan | Long-form | Shorts | Topic Refreshes |
|---|---|---|---|
| Free | 5/month | 20/month | 3/month |
| Creator Pro ($9.99/mo) | 50/month | 200/month | 20/month |
Long-form scripts cost 4 units. Shorts cost 1 unit. Limits reset monthly.
Project Structure
src/
├── api/ # Supabase DB operations
│ ├── channels.ts # Channel CRUD + topic caching
│ ├── generateScript.ts
│ ├── generateTopics.ts
│ └── scripts.ts
├── components/ # UI components
│ ├── ui/ # shadcn/ui primitives
│ ├── nav/ # Navbar
│ ├── settings/ # SettingsPage + ChannelsManager
│ ├── Auth.tsx
│ ├── Hero.tsx
│ ├── ChannelSwitcher.tsx
│ ├── OnboardingModal.tsx
│ ├── TopicPicker.tsx
│ └── ScriptCard.tsx
├── constants/ # App constants (limits, tones, modes)
├── hooks/ # useAuth, useChannels
├── lib/ # cn() utility, Framer Motion animation presets
├── types/ # Supabase generated types + domain aliases
supabase/
├── functions/
│ ├── generate-script/ # Claude API call + auth + limit check
│ ├── generate-topics/ # Two-phase: Haiku web search → Sonnet topic gen
│ └── lemon-webhook/ # Lemon Squeezy payment webhook handler
Getting Started
- Clone the repo
- Install dependencies:
npm install
- Copy
.env.exampleto.envand fill in your keys:
VITE_SUPABASE_URL=
VITE_SUPABASE_ANON_KEY=
VITE_LEMONSQUEEZY_STORE_SLUG=
VITE_LEMONSQUEEZY_PRODUCT_SLUG=
- Run locally:
npm run dev
Google OAuth Setup
Google sign-in is handled entirely through Supabase Auth. No frontend secrets are required.
2a. Create a Google OAuth App
- Go to console.cloud.google.com → APIs & Services → Credentials
- Create a new OAuth 2.0 Client ID (type: Web application)
- Under Authorised redirect URIs, add:
https://ersglkgclgzkxkalrckp.supabase.co/auth/v1/callback - Copy the Client ID and Client Secret
2b. Enable Google in Supabase Dashboard
- Go to Supabase Dashboard → Authentication → Providers → Google
- Toggle Enable
- Paste the Client ID and Client Secret from step 2a
- Enable "Skip nonce checks" — required for web-based OAuth flows
- Under Authentication → URL Configuration, ensure the following are in Redirect URLs:
http://localhost:5173 https://trendpilot.xyz
2c. Enable Account Linking
So users who signed up with email/password can also sign in via Google using the same address without creating a duplicate account:
- Go to Supabase Dashboard → Authentication → Sign In / Up
- Enable "Link accounts with same email address"
Google-verified emails are trusted directly — no disposable email check is applied to OAuth signups.
2d. Verify the Profile Trigger
TrendPilot creates a row in public.profiles via a PostgreSQL trigger on auth.users INSERT. Confirm this trigger fires for OAuth signups by checking:
Supabase Dashboard → Database → Functions → handle_new_user (or equivalent trigger name)
It must handle OAuth users whose raw_user_meta_data may contain full_name and avatar_url fields from Google, not just email and full_name from email signup. If the trigger uses new.raw_user_meta_data->>'full_name', it will work correctly for both paths. If it fails, an OAuth user hits PGRST116 in useAuth.ts and is immediately signed out.
Environment Variables
| Variable | Description |
|---|---|
VITE_SUPABASE_URL | Supabase project URL |
VITE_SUPABASE_ANON_KEY | Supabase anon key |
VITE_LEMONSQUEEZY_STORE_SLUG | Lemon Squeezy store slug |
VITE_LEMONSQUEEZY_PRODUCT_SLUG | Lemon Squeezy product slug |
Supabase Edge Function Secrets
Set these in your Supabase project dashboard under Settings → Edge Functions:
| Secret | Description |
|---|---|
ANTHROPIC_API_KEY | Anthropic API key (Claude) |
LEMONSQUEEZY_WEBHOOK_SECRET | Lemon Squeezy webhook signing secret |
Roadmap
- Auth + disposable email blocklist
- Channel profiles + settings page
- Multi-channel switcher
- AI topic picker with real-time trend research
- Used topic tracking + auto-consumption
- Script generation via Claude API
- YouTube Shorts mode
- 8-section output (description, hook, outline, script, titles, thumbnail, tags, hashtags)
- Credit unit system
- Free + Creator Pro tiers via Lemon Squeezy
- Framer Motion animations + reduced-motion support
- Dark / light mode
- Glassmorphism UI
- TrendPilot rebrand
- Custom domain (trendpilot.xyz)
- Google OAuth
- Script description (auto-generated 1–2 sentence summary per script)
- Channel description field (onboarding + settings, used in generation prompts)
- Make it generic for all platforms such as youtube, instagram, tiktok.
- Prompt polishing
- Beta launch