A modern social media platform similar to X (formerly Twitter)

- Timeline Experience: Browse For You and Following feeds with real-time post updates
- Interactive Posts: Create, like, and comment on posts with rich text editing
- User Profiles: Customize your profile with avatars and bio information
- Follow System: Connect with other users by following their accounts
- Dark/Light Mode: Switch between themes for comfortable viewing in any environment
- Trending: Stay updated with trending topics and popular discussions
- Infinite Scrolling: Smoothly load additional content as you scroll
- Responsive Design: Optimized experience across desktop and mobile devices
- Next.js 15
- React 19
- TypeScript
- Prisma
- Lucia Auth
- Tailwind CSS
- Shadcn UI
- TanStack Query
- Tiptap Editor
- UploadThing
- Clone the repository
- Install dependencies:
pnpm install
- Set up your database and configure the environment variables in
.env according to .env.example
- Run the development server:
npm run dev
- Open
http://localhost:3000 in your browser
- Using
suppressHydrationWarning for themes
- Optimizing cache with
unstable_cache and upcoming use cache() in Next 15
- Managing API responses with proper date handling using
ky
- Implementing proper cache clearing upon user logout
- Creating infinite scroll using pagination with
useInfiniteQuery
- Efficient cache mutation strategies for updating timelines
- Handling avatar uploads with proper image resizing and domain whitelisting
MIT