MCPcopy Index your code
hub / github.com/NiketanG/instaclone

github.com/NiketanG/instaclone @v2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.1 ↗ · + Follow
254 symbols 657 edges 79 files 4 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Instaclone

Instagram clone built with Supabase & React Native.

Installation

Install dependencies -

yarn
or
npm install

Setup Supabase Project and configure supabaseClient.ts

Use the Database structure from db_dump.sql in Supabase.

Enable Google Auth in Supabase ,and set up Google Cloud Project and add Oauth Clients in Supabase App Dashboard.

Set Environment Variables.

SUPABASE_KEY
SUPABASE_URL

Start metro bundler

yarn start
or
npm run start

Build Application.

Make sure a physical device is connected & detected in adb OR emulator is installed & running.

yarn android
or
npm run android

Additional Steps

Make sure you enable 'Realtime' for messages table from Supabase Dashboard. Otherwise realtime messaging wont work.

Note

This is not a 1:1 Replica of Instagram and will never be. The aim of this project was to try and test out Supabase.

Extension points exported contracts — how you extend this code

paths (Interface)
(no doc)
src/app/types/supabase.ts
CommentWithUser (Interface)
(no doc)
src/api/index.ts
definitions (Interface)
(no doc)
src/app/types/supabase.ts
NestedComments (Interface)
(no doc)
src/api/index.ts
parameters (Interface)
(no doc)
src/app/types/supabase.ts
operations (Interface)
(no doc)
src/app/types/supabase.ts
external (Interface)
(no doc)
src/app/types/supabase.ts

Core symbols most depended-on inside this repo

getCurrentUser
called by 28
src/api/index.ts
responseInterceptor
called by 7
src/api/index.ts
uploadToSupabase
called by 5
src/app/utils/uploadToSupabase.ts
getTimeDistance
called by 4
src/app/utils/utils.ts
selectMessage
called by 4
src/app/Screens/Messages/Messages.tsx
newMessage
called by 4
src/api/index.ts
isUsernameAvailable
called by 3
src/api/index.ts
checkIfFollowing
called by 3
src/api/index.ts

Shape

Function 229
Method 14
Interface 7
Class 4

Languages

TypeScript93%
Java7%

Modules by API surface

src/api/index.ts45 symbols
src/app/Screens/StoryView/index.tsx13 symbols
src/app/Screens/Messages/Messages.tsx11 symbols
src/app/Screens/NewStory/index.tsx10 symbols
src/app/Screens/Comments/index.tsx8 symbols
src/app/Components/Post/index.tsx8 symbols
android/app/src/main/java/com/instaclone/MainApplication.java8 symbols
src/app/utils/utils.ts7 symbols
src/app/Screens/Profile/index.tsx7 symbols
src/app/utils/appContext.tsx6 symbols
src/app/Screens/NewPost/index.tsx6 symbols
src/app/Screens/Messages/ChatList.tsx6 symbols

For agents

$ claude mcp add instaclone \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact