$adarsh-jha-dev~projects/snapgram
back to projects
live·2024

~/snapgram

Instagram-style social platform with Appwrite

ReactTypeScriptAppwritereact-queryshadcn/uiTailwind

// overview

Photo-sharing social app with following, likes, infinite scroll, and saved posts. Built to learn react-query and shadcn/ui.

// problem

I'd built CRUD apps but never seriously dealt with cache invalidation and optimistic updates at scale. Needed a project where those patterns actually mattered.

// approach

Used react-query as the single source of truth for server state — every mutation paired with explicit invalidation or optimistic update. Appwrite handled the backend so I could focus on the data layer.

// highlights

  • Infinite-scroll feed with react-query
  • Optimistic UI for likes and saves
  • Appwrite for auth, storage, and database
  • Component system with shadcn/ui

// learnings

Optimistic updates feel like cheating until you have to handle the rollback. Designing the rollback path is the real work.