Shreddit
Shreddit is a fullstack Reddit clone using Next.js, Tailwind CSS, Prisma, and NextAuth, featuring infinite scroll, image uploads, and nested comments.

Shreddit: Fullstack Reddit Clone with Next.js, Tailwind, and Prisma
Shreddit is a sophisticated, open-source Reddit clone built with a modern fullstack architecture. It leverages Next.js 13, Tailwind CSS for styling, Prisma for database operations, and NextAuth.js for secure authentication. Deployed on Vercel, this project demonstrates best practices in web development, including server components, advanced caching with Redis, and a strong focus on user experience, making it an excellent example for developers building interactive social platforms.
Features:
- Infinite Scrolling: Dynamically loads posts as the user scrolls for a seamless browsing experience.
- Functional Post Editor: A visually appealing and highly capable editor for creating and formatting posts.
- Shadcn UI Integration: Powers a beautiful and modern user interface.
- Light and Dark Modes: Offers theme options for user visual preference.
- NextAuth.js Authentication: Secure user sign-in and registration, including GitHub provider.
- Custom User Feeds: Personalized content feeds for authenticated users.
- Image Uploads via UploadThing: Enables users to easily upload and share images within posts.
- Link Previews: Automatically generates previews for URLs shared in posts.
- Nested Comment System: Supports full comment functionality, including threaded replies.
- Next.js /app Directory: Built using the latest Next.js app directory structure for improved routing and layouts.
- React Server Components: Utilizes React Server Components for optimized rendering and data fetching.
- SEO & Web Shareability: Enhanced metadata configuration for better search engine visibility and social sharing.
- React Query for Data Handling: Manages data fetching, caching, and mutations effectively.
- Optimistic Updates & Loading States: Provides graceful loading states and optimistic UI updates for a superior user experience.
- Advanced Caching with Upstash Redis: Implements sophisticated caching strategies for improved performance.
Summary:
Shreddit serves as a comprehensive boilerplate and learning example for a modern Reddit-like application. It integrates key technologies such as Next.js, Tailwind CSS, Prisma, and NextAuth, showcasing advanced features like infinite scroll, a rich post editor, nested comments, and robust authentication. Developers can explore its implementation of server components, optimistic updates, and efficient data handling with React Query and Redis, making it a valuable resource for building scalable social web apps.

Similar to Shreddit:


