MCPcopy Index your code
hub / github.com/Hazrat-Ali9/Real-Time-Location

github.com/Hazrat-Ali9/Real-Time-Location @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
32 symbols 104 edges 28 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

SignalR Real-Time Location & Infinite Scroll App

This project showcases real-time communication with SignalR for live location sharing and an efficient infinite scroll user feed, built with Next.js and React Query.

Live Link

✨ Key Features

  • Real-Time Location Sharing:
    • User A (Sender): Broadcasts live GPS coordinates (simulated or real) via SignalR.
    • User B (Receiver): Displays real-time location updates on an interactive Leaflet map.
    • Includes a custom useSignalR hook, connection tester, and a mock mode for development.
  • Infinite Scroll User Feed:
    • Fetches and displays a paginated list of users from an API.
    • Uses React Query for data management, caching, and automatic retries.
    • Features react-window for list virtualization, skeleton loaders, and robust error handling.
    • Automatically scrolls to the top once all data is loaded.

🚀 Technologies Used

  • Next.js 15 (App Router)
  • React Query
  • SignalR (@microsoft/signalr)
  • Leaflet (leaflet, react-leaflet)
  • React Window (react-window)
  • Tailwind CSS & Shadcn/ui
  • TypeScript

Installation & Run

Clone and Install

git clone https://github.com/Hazrat-Ali9/Real-Time-Location
cd Real-Time-Location-Sharing
npm install
# or
npm install -f

Run development server

npm run dev

Open http://localhost:3000

Build for Production

npm run start

Extension points exported contracts — how you extend this code

User (Interface)
(no doc)
types/index.ts
LocationData (Interface)
(no doc)
components/map-component.tsx
LocationData (Interface)
(no doc)
components/location/LocationReceiver.tsx
User (Interface)
(no doc)
components/user/UserCard.tsx
ButtonProps (Interface)
(no doc)
components/ui/button.tsx
LocationData (Interface)
(no doc)
hooks/use-signalr.ts
ApiResponse (Interface)
(no doc)
types/index.ts
MapComponentProps (Interface)
(no doc)
components/map-component.tsx

Core symbols most depended-on inside this repo

cn
called by 19
lib/utils.ts
useSignalR
called by 2
hooks/use-signalr.ts
startConnection
called by 1
hooks/use-signalr.ts
MapComponent
called by 0
components/map-component.tsx
LocationSender
called by 0
components/location/LocationSender.tsx
handleStartSharing
called by 0
components/location/LocationSender.tsx
handleStopSharing
called by 0
components/location/LocationSender.tsx
LocationReceiver
called by 0
components/location/LocationReceiver.tsx

Shape

Function 22
Interface 10

Languages

TypeScript100%

Modules by API surface

hooks/use-signalr.ts4 symbols
components/map-component.tsx3 symbols
components/location/LocationSender.tsx3 symbols
app/users/page.tsx3 symbols
types/index.ts2 symbols
components/user/UserCard.tsx2 symbols
components/ui/badge.tsx2 symbols
components/location/LocationReceiver.tsx2 symbols
lib/utils.ts1 symbols
lib/api.ts1 symbols
components/user/VirtualizedUserItem.tsx1 symbols
components/user/UserCardSkeleton.tsx1 symbols

For agents

$ claude mcp add Real-Time-Location \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page