Trpc Insta

screenshot of Trpc Insta
nextjs
react
tanstack
tailwind
cmdk
shadcn-ui
prisma

Instagram using tRPC (with a NextJS backend) & React Server Components: Next Auth, Prisma & Shadcn UI.

Overview:

This article discusses a clone of Instagram that has been created using Next.js, Tailwind CSS, and Server Components. The clone includes a variety of features such as user search, liking posts, editing profiles, and more. The theme also incorporates the uploadThing API and components from Shadcn-ui, along with added metadata tags.

Features:

  • Trinsta Carousel: Scroll through a carousel of images on the Trinsta clone.
  • Search by User or Username: Easily search for other users on the platform by their name or username.
  • Double Tap to Like a Post: Like a post by double-tapping on it, similar to the Instagram functionality.
  • Skeleton UI for Major Pages: Utilize a skeleton UI to provide a smooth loading experience for major pages.
  • Fallback UI for Loading User DP: Display a fallback UI while loading a user's display picture.
  • Edit Profile: Allow users to edit their profile information, including their name, bio, profile picture, and more.
  • Post Loading and View States: Implement loading and view states for posts to enhance the user experience.
  • Custom Errors: Show custom error messages for various scenarios to provide better feedback to users.
  • Delete Post for the Author: Allow authors to delete their own posts for better content management.

Summary:

The Instagram clone theme built using Next.js, Tailwind CSS, and Server Components offers a range of features that closely mirror the functionality of the popular social media platform. With its clean design, smooth transitions, and user-friendly interface, users can easily navigate the platform, search for other users, like posts, edit their profiles, and more. The incorporation of the uploadThing API and components from Shadcn-ui, along with added metadata tags, enhances the overall experience. Overall, this clone theme provides a great foundation for those looking to create their own Instagram-like application.

nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

tanstack
TanStack

TanStack is a collection of high-quality, framework-agnostic libraries including TanStack Query for data fetching, TanStack Router for routing, TanStack Table for tables, and more. These tools provide powerful, type-safe solutions for common web development challenges.

tailwind
Tailwind

Tailwind CSS is a utility-first CSS framework that provides pre-defined classes for building responsive and customizable user interfaces.

cmdk
cmdk

cmdk is a fast, composable command menu component for React. It provides the foundation for building command palettes, search interfaces, and keyboard-navigable menus similar to those found in applications like VS Code, Linear, and Raycast.

shadcn-ui
Shadcn UI

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.

prisma
Prisma

Prisma is a server-side library that helps developers read and write data to the database in an intuitive, efficient and safe way.

fullstack
Fullstack

A fullstack boilerplate provides a starter application that includes both frontend and backend. It should include database, auth, payments, user roles and other backend services to build a fully featured saas or webapps.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

postcss
Postcss

PostCSS is a popular open-source tool that enables web developers to transform CSS styles with JavaScript plugins. It allows for efficient processing of CSS styles, from applying vendor prefixes to improving browser compatibility, ultimately resulting in cleaner, faster, and more maintainable code.

react-hook-form
React Hook Form

React Hook Form is a performant, flexible, and extensible form library for React with easy validation. It reduces re-renders and improves performance by using uncontrolled components and native HTML validation, making form handling simple and efficient.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.

zod
Zod

Zod is a TypeScript-first schema declaration and validation library. It allows you to define schemas that can validate data at runtime while providing excellent TypeScript inference, making it perfect for API validation, form validation, and type-safe data handling.