GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tim-syntax/youtube-to-blog: Simple YouTube url to MDX blog app

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

44 Commits
44 Commits

Folders and files

NameName
Last commit message
Last commit date
.cursor/rules
.cursor/rules
 
 
.husky
.husky
 
 
.vscode
.vscode
 
 
app
app
 
 
components
components
 
 
db
db
 
 
lib
lib
 
 
public
public
 
 
server
server
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
biome.json
biome.json
 
 
components.json
components.json
 
 
drizzle.config.ts
drizzle.config.ts
 
 
license.md
license.md
 
 
next.config.ts
next.config.ts
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
postcss.config.mjs
postcss.config.mjs
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

🎥 YouTube to Blog

Application that automatically converts YouTube videos into well-structured, professional blog posts using AI. Perfect for content creators, developers, and anyone who wants to transform video content into written format.

✨ Features

  • 🎯 One-Click Conversion: Simply paste a YouTube URL and get a professional blog post
  • 🤖 AI-Powered: Uses Google's Gemini 2.5 Flash for intelligent content transformation
  • 📝 Professional Formatting: Converts transcripts into well-structured MDX blog posts
  • 🎨 Modern UI: Beautiful, responsive interface with dark/light mode support
  • 💾 Persistent Storage: Automatically saves generated blogs to avoid duplicates
  • 🔍 Smart Detection: Checks if a blog already exists for a video before generating
  • 📱 Mobile Friendly: Fully responsive design that works on all devices
  • ⚡ Fast Performance: Built with Next.js 15 and optimized for speed

🚀 How It Works

  1. Input: User provides a YouTube video URL
  2. Extraction: System extracts video metadata using YouTube Data API v3
  3. Transcript: Fetches video transcript using youtube-transcript library
  4. AI Processing: Gemini 2.5 Flash transforms the content into a professional blog post
  5. Storage: Blog post is saved to the database with proper formatting
  6. Output: User can view, copy, or share the generated blog post

🛠️ Tech Stack

  • Framework: Next.js 15 with App Router
  • Language: TypeScript
  • Database: Neon PostgreSQL with Drizzle ORM
  • AI: Google Gemini 2.5 Flash
  • Styling: Tailwind CSS with shadcn/ui components
  • YouTube API: Official YouTube Data API v3
  • Transcripts: youtube-transcript library
  • Deployment: Vercel-ready

📋 Prerequisites

Before you begin, ensure you have:

  • Node.js 18+ installed
  • A Google Cloud Platform account
  • A Neon database account

🔧 Environment Setup

1. YouTube Data API v3 Key

  1. Go to the Google Cloud Console
  2. Create a new project or select an existing one
  3. Enable the YouTube Data API v3
  4. Create credentials (API Key)
  5. Copy your API key

2. Database Setup

This project uses Neon for PostgreSQL database hosting:

  1. Go to Neon Console
  2. Create a new project
  3. Copy your database connection string
  4. The connection string will be used as your DATABASE_URL

3. Environment Variables

Create a .env.local file in the root directory:

# YouTube Data API v3 Key
YOUTUBE_API_KEY=your_youtube_api_key_here

# Neon Database URL
DATABASE_URL=your_neon_database_url_here

# App URL (for production)
NEXT_PUBLIC_APP_URL=http://localhost:3000

🚀 Getting Started

1. Clone the Repository

git clone https://github.com/yourusername/youtubetoblog.git
cd youtubetoblog

2. Install Dependencies

npm install
# or
yarn install
# or
pnpm install

3. Set Up the Database

# Generate and run migrations
npx drizzle-kit generate
npx drizzle-kit migrate

4. Start the Development Server

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 to see the application.

🎯 Usage

  1. Enter YouTube URL: Paste any YouTube video URL into the input field
  2. Click Convert: The system will process the video and generate a blog post
  3. View Results: See the generated blog post with options to:
    • View the full blog post
    • Copy the markdown content
    • Share the blog post

🔧 Configuration

AI Model Configuration

The application uses Google's Gemini 2.5 Flash model. You can customize the AI prompt in server/ai.ts to change the output style or format.

🚀 Deployment

Deploy to Vercel

  1. Push your code to GitHub
  2. Connect your repository to Vercel
  3. Set environment variables in Vercel dashboard
  4. Deploy!

Environment Variables for Production

Make sure to set these in your deployment platform:

  • YOUTUBE_API_KEY
  • DATABASE_URL
  • NEXT_PUBLIC_APP_URL (your production URL)

🤝 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

Development Guidelines

  • Follow the existing code style
  • Add TypeScript types for new features
  • Test your changes thoroughly
  • Update documentation as needed

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

📞 Support

If you have any questions or need help:

  • Open an issue on GitHub
  • Check the documentation
  • Join our community discussions

Made with axe 🪓 by OrcDev

About

Simple YouTube url to MDX blog app

youtube-to-blog-brown.vercel.app

Resources

Readme
License
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.