# azkachirzasaifanichasan/project-togather architecture

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

- Interactive diagram: https://gitdiagram.com/azkachirzasaifanichasan/project-togather
- Repository: https://github.com/azkachirzasaifanichasan/project-togather

## Overview

Togather is a location-based community discovery and participation platform. Users discover and compare communities by interests, distance, schedules, and activity; then join communities, attend events, and contribute to member features. Organizers manage community details and events, while platform admins review verification requests. The graph follows documented capabilities and source-indexed imports; some unsampled routes and action details are represented only where the README supports them.

Main entry points: [`src/app/actions/app.ts`](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/actions/app.ts) (Participation Actions), [`src/lib/data.ts`](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/lib/data.ts) (Community Data Access), [`src/app/komunitas/[slug]/page.tsx`](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/komunitas/%5Bslug%5D/page.tsx) (Community Profile), [`src/lib/auth.ts`](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/lib/auth.ts) (Auth & User Lookup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Discovery"]
  node_home["Home<br/>[page.tsx]"]
  node_browse["Community Browse<br/>[page.tsx]"]
  node_explore["Filtered Explore<br/>[page.tsx]"]
  node_filters["Discovery Filters"]
  node_workspace["Map Workspace"]
  node_map["Interactive Map<br/>[map-inner.tsx]"]
end

subgraph group_participation["Community &amp; Events"]
  node_community["Community Profile<br/>[page.tsx]"]
  node_chat["Member Chat<br/>[community-chat.tsx]"]
  node_lists["Collaborative Places<br/>[page.tsx]"]
  node_events["Event Listings<br/>[page.tsx]"]
  node_eventdetail["Event Details<br/>[page.tsx]"]
  node_mycommunities["My Communities<br/>[page.tsx]"]
end

subgraph group_management["Accounts &amp; Management"]
  node_actions["Participation Actions<br/>[app.ts]"]
  node_organizer["Organizer Dashboard<br/>[page.tsx]"]
  node_verification["Verification Review<br/>[page.tsx]"]
  node_authpages["Sign In &amp; Register<br/>[page.tsx]"]
  node_authactions["Authentication Actions<br/>[auth.ts]"]
end

subgraph group_foundation["Application Services"]
  node_matching["Match Scoring<br/>[matching.ts]"]
  node_geo["Distance &amp; Geo<br/>[geo.ts]"]
  node_auth["Auth &amp; User Lookup<br/>[auth.ts]"]
  node_session["Signed Sessions<br/>[session.ts]"]
  node_data["Community Data Access<br/>[data.ts]"]
  node_dbclient["Prisma Client<br/>[prisma.ts]"]
  node_database[("SQLite / PostgreSQL")]
end

node_visitor(("Visitor / Member"))

node_visitor -->|"opens"| node_home
node_home -->|"loads recommendations"| node_data
node_home -->|"links to browse"| node_browse
node_visitor -->|"browses"| node_browse
node_visitor -->|"explores"| node_explore
node_explore -->|"uses filters"| node_filters
node_explore -->|"renders results"| node_workspace
node_workspace -->|"renders map"| node_map
node_workspace -->|"shows match reasons"| node_matching
node_data -->|"scores communities"| node_matching
node_data -->|"uses distance"| node_geo
node_visitor -->|"opens profile"| node_community
node_community -->|"loads profile"| node_data
node_community -->|"renders chat"| node_chat
node_community -->|"shows shared places"| node_lists
node_visitor -->|"views events"| node_events
node_visitor -->|"opens event"| node_eventdetail
node_visitor -->|"views memberships"| node_mycommunities
node_community -->|"submits participation"| node_actions
node_chat -->|"sends messages"| node_actions
node_eventdetail -->|"registers"| node_actions
node_organizer -->|"submits management changes"| node_actions
node_verification -->|"reviews requests"| node_actions
node_visitor -->|"signs in"| node_authpages
node_authpages -->|"submits credentials"| node_authactions
node_authactions -->|"checks credentials"| node_auth
node_auth -->|"reads session"| node_session
node_auth -->|"loads user"| node_dbclient
node_actions -->|"checks current user"| node_auth
node_actions -->|"checks membership"| node_data
node_data -->|"queries records"| node_dbclient
node_actions -->|"writes domain changes"| node_dbclient
node_dbclient -->|"accesses database"| node_database

click node_home "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/page.tsx"
click node_browse "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/komunitas/page.tsx"
click node_explore "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/jelajah/page.tsx"
click node_filters "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/components/discover-filters.tsx"
click node_workspace "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/components/discovery-workspace.tsx"
click node_map "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/components/map/map-inner.tsx"
click node_matching "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/lib/matching.ts"
click node_geo "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/lib/geo.ts"
click node_community "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/komunitas/%5Bslug%5D/page.tsx"
click node_chat "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/components/community-chat.tsx"
click node_lists "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/komunitas/%5Bslug%5D/page.tsx"
click node_events "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/event/page.tsx"
click node_eventdetail "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/event/%5Bslug%5D/page.tsx"
click node_mycommunities "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/komunitasku/page.tsx"
click node_actions "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/actions/app.ts"
click node_organizer "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/komunitas/%5Bslug%5D/kelola/page.tsx"
click node_verification "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/verifikasi/page.tsx"
click node_authpages "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/masuk/page.tsx"
click node_authactions "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/actions/auth.ts"
click node_auth "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/lib/auth.ts"
click node_session "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/lib/session.ts"
click node_data "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/lib/data.ts"
click node_dbclient "https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/lib/prisma.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_home,node_browse,node_explore,node_filters,node_workspace,node_map toneBlue
class node_community,node_chat,node_lists,node_events,node_eventdetail,node_mycommunities toneAmber
class node_actions,node_organizer,node_verification,node_authpages,node_authactions toneMint
class node_matching,node_geo,node_auth,node_session,node_data,node_dbclient,node_database toneRose
class node_visitor toneIndigo
```

## Components

### Discovery

- [Home](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Community Browse](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/komunitas/page.tsx): `src/app/komunitas/page.tsx`
- [Filtered Explore](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/jelajah/page.tsx): `src/app/jelajah/page.tsx`
- [Discovery Filters](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/components/discover-filters.tsx): `src/components/discover-filters.tsx`
- [Map Workspace](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/components/discovery-workspace.tsx): `src/components/discovery-workspace.tsx`
- [Interactive Map](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/components/map/map-inner.tsx): `src/components/map/map-inner.tsx`

### Community & Events

- [Community Profile](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/komunitas/%5Bslug%5D/page.tsx): `src/app/komunitas/[slug]/page.tsx`
- [Member Chat](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/components/community-chat.tsx): `src/components/community-chat.tsx`
- [Collaborative Places](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/komunitas/%5Bslug%5D/page.tsx): `src/app/komunitas/[slug]/page.tsx`
- [Event Listings](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/event/page.tsx): `src/app/event/page.tsx`
- [Event Details](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/event/%5Bslug%5D/page.tsx): `src/app/event/[slug]/page.tsx`
- [My Communities](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/komunitasku/page.tsx): `src/app/komunitasku/page.tsx`

### Accounts & Management

- [Participation Actions](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/actions/app.ts): `src/app/actions/app.ts`
- [Organizer Dashboard](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/komunitas/%5Bslug%5D/kelola/page.tsx): `src/app/komunitas/[slug]/kelola/page.tsx`
- [Verification Review](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/verifikasi/page.tsx): `src/app/verifikasi/page.tsx`
- [Sign In & Register](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/masuk/page.tsx): `src/app/masuk/page.tsx`
- [Authentication Actions](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/app/actions/auth.ts): `src/app/actions/auth.ts`

### Application Services

- [Match Scoring](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/lib/matching.ts): `src/lib/matching.ts`
- [Distance & Geo](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/lib/geo.ts): `src/lib/geo.ts`
- [Auth & User Lookup](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/lib/auth.ts): `src/lib/auth.ts`
- [Signed Sessions](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/lib/session.ts): `src/lib/session.ts`
- [Community Data Access](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/lib/data.ts): `src/lib/data.ts`
- [Prisma Client](https://github.com/azkachirzasaifanichasan/project-togather/blob/main/src/lib/prisma.ts): `src/lib/prisma.ts`
- **SQLite / PostgreSQL**

### Other components

- **Visitor / Member**

## Connections

- Visitor / Member → Home: opens (evidence: `src/app/page.tsx`)
- Home → Community Data Access: loads recommendations (evidence: `src/app/page.tsx`)
- Home → Community Browse: links to browse (evidence: `src/app/page.tsx`)
- Visitor / Member → Community Browse: browses (evidence: `src/app/komunitas/page.tsx`)
- Visitor / Member → Filtered Explore: explores (evidence: `src/app/jelajah/page.tsx`)
- Filtered Explore → Discovery Filters: uses filters (evidence: `src/app/jelajah/page.tsx`)
- Filtered Explore → Map Workspace: renders results (evidence: `src/app/jelajah/page.tsx`)
- Map Workspace → Interactive Map: renders map (evidence: `src/components/discovery-workspace.tsx`)
- Map Workspace → Match Scoring: shows match reasons
- Community Data Access → Match Scoring: scores communities (evidence: `src/lib/data.ts`)
- Community Data Access → Distance & Geo: uses distance (evidence: `src/lib/data.ts`)
- Visitor / Member → Community Profile: opens profile (evidence: `src/app/komunitas/[slug]/page.tsx`)
- Community Profile → Community Data Access: loads profile (evidence: `src/app/komunitas/[slug]/page.tsx`)
- Community Profile → Member Chat: renders chat (evidence: `src/app/komunitas/[slug]/page.tsx`)
- Community Profile → Collaborative Places: shows shared places (evidence: `src/app/komunitas/[slug]/page.tsx`)
- Visitor / Member → Event Listings: views events (evidence: `src/app/event/page.tsx`)
- Visitor / Member → Event Details: opens event (evidence: `src/app/event/[slug]/page.tsx`)
- Visitor / Member → My Communities: views memberships (evidence: `src/app/komunitasku/page.tsx`)
- Community Profile → Participation Actions: submits participation
- Member Chat → Participation Actions: sends messages (evidence: `src/components/community-chat.tsx`)
- Event Details → Participation Actions: registers (evidence: `README.md`)
- Organizer Dashboard → Participation Actions: submits management changes (evidence: `src/app/komunitas/[slug]/kelola/page.tsx`)
- Verification Review → Participation Actions: reviews requests (evidence: `src/app/verifikasi/page.tsx`)
- Visitor / Member → Sign In & Register: signs in (evidence: `src/app/masuk/page.tsx`)
- Sign In & Register → Authentication Actions: submits credentials
- Authentication Actions → Auth & User Lookup: checks credentials (evidence: `src/app/actions/auth.ts`)
- Auth & User Lookup → Signed Sessions: reads session (evidence: `src/lib/auth.ts`)
- Auth & User Lookup → Prisma Client: loads user (evidence: `src/lib/auth.ts`)
- Participation Actions → Auth & User Lookup: checks current user (evidence: `src/app/actions/app.ts`)
- Participation Actions → Community Data Access: checks membership (evidence: `src/app/actions/app.ts`)
- Community Data Access → Prisma Client: queries records (evidence: `src/lib/data.ts`)
- Participation Actions → Prisma Client: writes domain changes (evidence: `src/app/actions/app.ts`)
- Prisma Client → SQLite / PostgreSQL: accesses database (evidence: `README.md`)
