# mooque-dev/arnd architecture

> Architecture diagram of the GitHub repository mooque-dev/arnd, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mooque-dev/arnd
- Repository: https://github.com/mooque-dev/arnd
- Video tour (about a minute): https://gitdiagram.com/mooque-dev/arnd/video

## Overview

ARND is an Expo mobile/web marketplace for discovering nearby live music and connecting fans, performers, and venues. Its primary loop is discovery by feed or map, saving and following, attending and checking in, then rating and supporting performers; attendance and ratings also provide artist credibility for talent seekers. The graph combines documented product capabilities with relationships visible in the supplied excerpts and SOURCE INDEX. Unsampled screens and backend wiring limit the detail of some connections; beta follows and RSVPs are partly device-local, and tips currently go through artists’ external payment accounts.

Main entry points: [`lib/data/repository.ts`](https://github.com/mooque-dev/arnd/blob/main/lib/data/repository.ts) (Data repository), [`app/(tabs)/feed/index.tsx`](https://github.com/mooque-dev/arnd/blob/main/app/(tabs)/feed/index.tsx) (Feed and search), [`app/performance/[id].tsx`](https://github.com/mooque-dev/arnd/blob/main/app/performance/%5Bid%5D.tsx) (Show details), [`lib/auth.ts`](https://github.com/mooque-dev/arnd/blob/main/lib/auth.ts) (Authentication seam)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Music discovery"]
  node_feed["Feed and search<br/>[index.tsx]"]
  node_map["Explore map<br/>[MapExplore.tsx]"]
  node_showdetail["Show details<br/>[&#91;id&#93;.tsx]"]
  node_artistdetail["Artist profiles<br/>[&#91;id&#93;.tsx]"]
  node_venuesboard["Venue board<br/>[index.tsx]"]
end

subgraph group_community["People and shows"]
  node_hosting["Hosted nights<br/>[hosting.ts]"]
  node_checkin["Check-in<br/>[checkin.ts]"]
  node_ratings["Show ratings<br/>[ratings.ts]"]
  node_tips["Artist tips<br/>[index.ts]"]
  node_credibility["Artist credibility<br/>[achievements.ts]"]
  node_share["Show sharing<br/>[cards.ts]"]
end

subgraph group_data["Data and identity"]
  node_repository["Data repository<br/>[repository.ts]"]
  node_services["Backend services<br/>[performances.ts]"]
  node_auth["Authentication seam<br/>[auth.ts]"]
  node_localauth["Device-local auth<br/>[localAuth.ts]"]
end

subgraph group_experience["App experience"]
  node_design["Theme and UI system<br/>[index.ts]"]
end

node_fans(("Fans"))
node_performers(("Performers"))
node_venues(("Talent seekers"))
node_supabase[("Supabase")]

node_fans -->|"discover shows"| node_feed
node_fans -->|"find nearby"| node_map
node_feed -->|"loads listings"| node_repository
node_map -.->|"loads listings"| node_repository
node_repository -->|"fetches live data"| node_services
node_services -->|"queries backend"| node_supabase
node_fans -->|"open a show"| node_showdetail
node_performers -->|"claim profiles"| node_artistdetail
node_venues -->|"find performers"| node_venuesboard
node_fans -->|"host listening nights"| node_hosting
node_fans -->|"verify attendance"| node_checkin
node_fans -->|"rate a show"| node_ratings
node_fans -->|"support performers"| node_tips
node_checkin -->|"signals attendance"| node_credibility
node_ratings -->|"signals live draw"| node_credibility
node_performers -->|"receive support"| node_tips
node_showdetail -->|"share show"| node_share
node_auth -->|"uses configured auth"| node_supabase
node_auth -->|"falls back locally"| node_localauth
node_feed -->|"composes UI"| node_design
node_showdetail -->|"loads show data"| node_repository

click node_feed "https://github.com/mooque-dev/arnd/blob/main/app/(tabs)/feed/index.tsx"
click node_map "https://github.com/mooque-dev/arnd/blob/main/components/composed/map/MapExplore.tsx"
click node_showdetail "https://github.com/mooque-dev/arnd/blob/main/app/performance/%5Bid%5D.tsx"
click node_artistdetail "https://github.com/mooque-dev/arnd/blob/main/app/artist/%5Bid%5D.tsx"
click node_venuesboard "https://github.com/mooque-dev/arnd/blob/main/app/venues/index.tsx"
click node_hosting "https://github.com/mooque-dev/arnd/blob/main/lib/domain/hosting.ts"
click node_checkin "https://github.com/mooque-dev/arnd/blob/main/lib/domain/checkin.ts"
click node_ratings "https://github.com/mooque-dev/arnd/blob/main/lib/services/ratings.ts"
click node_tips "https://github.com/mooque-dev/arnd/blob/main/lib/payments/index.ts"
click node_credibility "https://github.com/mooque-dev/arnd/blob/main/lib/domain/achievements.ts"
click node_repository "https://github.com/mooque-dev/arnd/blob/main/lib/data/repository.ts"
click node_services "https://github.com/mooque-dev/arnd/blob/main/lib/services/performances.ts"
click node_auth "https://github.com/mooque-dev/arnd/blob/main/lib/auth.ts"
click node_localauth "https://github.com/mooque-dev/arnd/blob/main/lib/localAuth.ts"
click node_design "https://github.com/mooque-dev/arnd/blob/main/components/ui/index.ts"
click node_share "https://github.com/mooque-dev/arnd/blob/main/lib/share/cards.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_feed,node_map,node_showdetail,node_artistdetail,node_venuesboard toneBlue
class node_hosting,node_checkin,node_ratings,node_tips,node_credibility,node_share,node_supabase toneAmber
class node_repository,node_services,node_auth,node_localauth toneMint
class node_design toneRose
class node_fans,node_performers,node_venues toneIndigo
```

## Components

### Music discovery

- [Feed and search](https://github.com/mooque-dev/arnd/blob/main/app/(tabs)/feed/index.tsx): `app/(tabs)/feed/index.tsx`
- [Explore map](https://github.com/mooque-dev/arnd/blob/main/components/composed/map/MapExplore.tsx): `components/composed/map/MapExplore.tsx`
- [Show details](https://github.com/mooque-dev/arnd/blob/main/app/performance/%5Bid%5D.tsx): `app/performance/[id].tsx`
- [Artist profiles](https://github.com/mooque-dev/arnd/blob/main/app/artist/%5Bid%5D.tsx): `app/artist/[id].tsx`
- [Venue board](https://github.com/mooque-dev/arnd/blob/main/app/venues/index.tsx): `app/venues/index.tsx`

### People and shows

- [Hosted nights](https://github.com/mooque-dev/arnd/blob/main/lib/domain/hosting.ts): `lib/domain/hosting.ts`
- [Check-in](https://github.com/mooque-dev/arnd/blob/main/lib/domain/checkin.ts): `lib/domain/checkin.ts`
- [Show ratings](https://github.com/mooque-dev/arnd/blob/main/lib/services/ratings.ts): `lib/services/ratings.ts`
- [Artist tips](https://github.com/mooque-dev/arnd/blob/main/lib/payments/index.ts): `lib/payments/index.ts`
- [Artist credibility](https://github.com/mooque-dev/arnd/blob/main/lib/domain/achievements.ts): `lib/domain/achievements.ts`
- [Show sharing](https://github.com/mooque-dev/arnd/blob/main/lib/share/cards.ts): `lib/share/cards.ts`

### Data and identity

- [Data repository](https://github.com/mooque-dev/arnd/blob/main/lib/data/repository.ts): `lib/data/repository.ts`
- [Backend services](https://github.com/mooque-dev/arnd/blob/main/lib/services/performances.ts): `lib/services/performances.ts`
- [Authentication seam](https://github.com/mooque-dev/arnd/blob/main/lib/auth.ts): `lib/auth.ts`
- [Device-local auth](https://github.com/mooque-dev/arnd/blob/main/lib/localAuth.ts): `lib/localAuth.ts`

### App experience

- [Theme and UI system](https://github.com/mooque-dev/arnd/blob/main/components/ui/index.ts): `components/ui/index.ts`

### Other components

- **Fans**
- **Performers**
- **Talent seekers**
- **Supabase**

## Connections

- Fans → Feed and search: discover shows (evidence: `README.md`)
- Fans → Explore map: find nearby (evidence: `README.md`)
- Feed and search → Data repository: loads listings
- Explore map → Data repository: loads listings
- Data repository → Backend services: fetches live data (evidence: `lib/data/repository.ts`)
- Backend services → Supabase: queries backend (evidence: `README.md`)
- Fans → Show details: open a show (evidence: `README.md`)
- Performers → Artist profiles: claim profiles (evidence: `README.md`)
- Talent seekers → Venue board: find performers (evidence: `README.md`)
- Fans → Hosted nights: host listening nights (evidence: `README.md`)
- Fans → Check-in: verify attendance (evidence: `README.md`)
- Fans → Show ratings: rate a show (evidence: `README.md`)
- Fans → Artist tips: support performers (evidence: `README.md`)
- Check-in → Artist credibility: signals attendance (evidence: `README.md`)
- Show ratings → Artist credibility: signals live draw (evidence: `README.md`)
- Performers → Artist tips: receive support (evidence: `README.md`)
- Show details → Show sharing: share show (evidence: `app/performance/[id].tsx`)
- Authentication seam → Supabase: uses configured auth (evidence: `lib/auth.ts`)
- Authentication seam → Device-local auth: falls back locally (evidence: `lib/auth.ts`)
- Feed and search → Theme and UI system: composes UI
- Show details → Data repository: loads show data (evidence: `app/performance/[id].tsx`)
