Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

podcastr

> 前端框架
Open source

AI Podcast Platform Table of Contents 1. Introduction 2. ⚙️ Tech Stack 3. Features 4. Quick Start 5. ️ Snippets (Code to Copy) 6. Assets 7.…

774 stars0 likes1 views
WebsiteGitHub

About

AI Podcast Platform Table of Contents 1. Introduction 2. ⚙️ Tech Stack 3. Features 4. Quick Start 5. ️ Snippets (Code to Copy) 6. Assets 7.…

AI Podcast Platform

Table of Contents

  1. Introduction
  2. ⚙️ Tech Stack
  3. Features
  4. Quick Start
  5. ️ Snippets (Code to Copy)
  6. Assets
  7. More

Tutorial

This repository contains the code corresponding to an in-depth tutorial available on our YouTube channel, JavaScript Mastery.

If you prefer visual learning, this is the perfect resource for you. Follow our tutorial to learn how to build projects like these step-by-step in a beginner-friendly manner!

Introduction

A cutting-edge AI SaaS platform that enables users to create, discover, and enjoy podcasts with advanced features like text-to-audio conversion with multi-voice AI, podcast thumbnail Image generation and seamless playback.

If you're getting started and need assistance or face any bugs, join our active Discord community with over 34k+ members. It's a place where people help each other out.

⚙️ Tech Stack

  • Next.js
  • TypeScript
  • Convex
  • OpenAI
  • Clerk
  • ShadCN
  • Tailwind CSS

Features

Robust Authentication: Secure and reliable user login and registration system.

Modern Home Page: Showcases trending podcasts with a sticky podcast player for continuous listening.

Discover Podcasts Page: Dedicated page for users to explore new and popular podcasts.

Fully Functional Search: Allows users to find podcasts easily using various search criteria.

Create Podcast Page: Enables podcast creation with text-to-audio conversion, AI image generation, and previews.

Multi Voice AI Functionality: Supports multiple AI-generated voices for dynamic podcast creation.

Profile Page: View all created podcasts with options to delete them.

Podcast Details Page: Displays detailed information about each podcast, including creator details, number of listeners, and transcript.

Podcast Player: Features backward/forward controls, as well as mute/unmute functionality for a seamless listening experience.

Responsive Design: Fully functional and visually appealing across all devices and screen sizes.

and many more, including code architecture and reusability

Quick Start

Follow these steps to set up the project locally on your machine.

Prerequisites

Make sure you have the following installed on your machine:

  • Git
  • Node.js
  • npm (Node Package Manager)

Cloning the Repository

bash
git clone https://github.com/adrianhajdin/jsm_podcastr.git
cd jsm_podcastr

Installation

Install the project dependencies using npm:

bash
npm install

Set Up Environment Variables

Create a new file named .env in the root of your project and add the following content:

env
CONVEX_DEPLOYMENT=
NEXT_PUBLIC_CONVEX_URL=
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
NEXT_PUBLIC_CLERK_SIGN_IN_URL='/sign-in'
NEXT_PUBLIC_CLERK_SIGN_UP_URL='/sign-up'

Replace the placeholder values with your actual Convex & Clerk credentials. You can obtain these credentials by signing up on the Convex and Clerk websites.

Running the Project

bash
npm run dev

Open http://localhost:3000 in your browser to view the project.

️ Snippets

app/globals.css

…

tailwind.config.ts

…

constants/index.ts

…

convex/http.ts

…

convex/users.ts

…

types/index.ts

…

convex/podcasts.ts

…

components/PodcastDetailPlayer.ts

…

components/PodcastPlayer.ts

…

lib/formatTime.ts

typescript
export const formatTime = (seconds: number) => {
  const minutes = Math.floor(seconds / 60);
  const remainingSeconds = Math.floor(seconds % 60);
  return `${minutes}:${remainingSeconds 

lib/useDebounce.ts

```typescript
import { useEffect, useState } from "react";

export const useDebounce = (value: T, delay = 500) => {
  const [debouncedValue, setDebouncedValue] = useState(value);

  useEffect(() => {
    const timeout = setTimeout(() => {
      setDebouncedValue(value);
    }, delay);

    return () => {
      clearTimeout(timeout);
    };
  }, [value, delay]);

  return debouncedValue;
};

(root)/profile/[profiled]/page.tsx

typescript
"use client";

import { useQuery } from "convex/react";

import EmptyState from "@/components/EmptyState";
import LoaderSpinner from "@/components/Loader";
import PodcastCard from "@/components/PodcastCard";
import ProfileCard from "@/components/ProfileCard";
import { api } from "@/convex/_generated/api";

const ProfilePage = ({
  params,
}: {
  params: {
    profileId: string;
  };
}) => {
  const user = useQuery(api.users.getUserById, {
    clerkId: params.profileId,
  });
  const podcastsData = useQuery(api.podcasts.getPodcastByAuthorId, {
    authorId: params.profileId,
  });

  if (!user || !podcastsData) return ;

  return (
    
      

        Podcaster Profile
      

      

      
        
All Podcasts

        {podcastsData && podcastsData.podcasts.length > 0 ? (
          

        ) : (
          
        )}
      
    
  );
};

export default ProfilePage;

componenets/ProfileCard.tsx

typescript
"use client";
import Image from "next/image";
import { useEffect, useState } from "react";

import { useAudio } from "@/providers/AudioProvider";
import { PodcastProps, ProfileCardProps } from "@/types";

import LoaderSpinner from "./Loader";
import { Button } from "./ui/button";

const ProfileCard = ({
  podcastData,
  imageUrl,
  userFirstName,
}: ProfileCardProps) => {
  const { setAudio } = useAudio();

  const [randomPodcast, setRandomPodcast] = useState(null);

  const playRandomPodcast = () => {
    const randomIndex = Math.floor(Math.random() * podcastData.podcasts.length);

    setRandomPodcast(podcastData.podcasts[randomIndex]);
  };

  useEffect(() => {
    if (randomPodcast) {
      setAudio({
        title: randomPodcast.podcastTitle,
        audioUrl: randomPodcast.audioUrl || "",
        imageUrl: randomPodcast.imageUrl || "",
        author: randomPodcast.author,
        podcastId: randomPodcast._id,
      });
    }
  }, [randomPodcast, setAudio]);

  if (!imageUrl) return ;

  return (
    

        
          
          

            {podcastData?.listeners} &nbsp;
            monthly listeners
          

        
        {podcastData?.podcasts.length > 0 && (
          
            {" "}
            &nbsp; Play a random podcast
          
        )}
      
    
  );
};

export default ProfileCard;

Assets

Public assets used in the project can be found here

More

Advance your skills with Next.js 14 Pro Course

Enjoyed creating this project? Dive deeper into our PRO courses for a richer learning adventure. They're packed with detailed explanations, cool features, and exercises to boost your skills. Give it a go!

Accelerate your professional journey with the Expert Training program

And if you're hungry for more than just a course and want to understand how we learn and tackle tech challenges, hop into our personalized masterclass. We cover best practices, different web skills, and offer mentorship to boost your confidence. Let's learn and grow together!

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptconvexnextjs

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架