convez.ai
AgenteMarketing & VendasIntermediário
RachitShah1299

TrendPilot

RachitShah1299/TrendPilot

Gere scripts YouTube prontos para publicar em 30 segundos com IA

Ver no GitHub
InicialPluginScore · de 0 a 100

Studio 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/TrendPilot

1 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

Estrelas
1
Forks
1
Acompanhando
0
Saúde
28%
Último commit
há 7 meses
Versão
—
Issues abertas
0
Contribuidores
1

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:

#SectionDescription
0Description1–2 sentence summary of the generated script
1HookOpening line engineered to retain viewers past the first 30 seconds
2OutlineTimestamped structure with key talking points
3Full ScriptComplete word-for-word video script
4Title Options3 SEO-optimised, A/B-testable YouTube titles
5Thumbnail BriefVisual direction for the thumbnail
6SEO Tags15 YouTube tags (long-form)
7Hashtags7 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

PlanLong-formShortsTopic Refreshes
Free5/month20/month3/month
Creator Pro ($9.99/mo)50/month200/month20/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

  1. Clone the repo
  2. Install dependencies:
npm install
  1. Copy .env.example to .env and fill in your keys:
VITE_SUPABASE_URL=
VITE_SUPABASE_ANON_KEY=
VITE_LEMONSQUEEZY_STORE_SLUG=
VITE_LEMONSQUEEZY_PRODUCT_SLUG=
  1. 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

  1. Go to console.cloud.google.com → APIs & Services → Credentials
  2. Create a new OAuth 2.0 Client ID (type: Web application)
  3. Under Authorised redirect URIs, add:
    https://ersglkgclgzkxkalrckp.supabase.co/auth/v1/callback
    
  4. Copy the Client ID and Client Secret

2b. Enable Google in Supabase Dashboard

  1. Go to Supabase Dashboard → Authentication → Providers → Google
  2. Toggle Enable
  3. Paste the Client ID and Client Secret from step 2a
  4. Enable "Skip nonce checks" — required for web-based OAuth flows
  5. 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:

  1. Go to Supabase Dashboard → Authentication → Sign In / Up
  2. 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

VariableDescription
VITE_SUPABASE_URLSupabase project URL
VITE_SUPABASE_ANON_KEYSupabase anon key
VITE_LEMONSQUEEZY_STORE_SLUGLemon Squeezy store slug
VITE_LEMONSQUEEZY_PRODUCT_SLUGLemon Squeezy product slug

Supabase Edge Function Secrets

Set these in your Supabase project dashboard under Settings → Edge Functions:

SecretDescription
ANTHROPIC_API_KEYAnthropic API key (Claude)
LEMONSQUEEZY_WEBHOOK_SECRETLemon 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
Ver o original no GitHub

Bom para

Relacionados