# agnogad/icinidok architecture

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

- Interactive diagram: https://gitdiagram.com/agnogad/icinidok
- Repository: https://github.com/agnogad/icinidok

## Overview

içini dök. is an anonymous support wall with a Next.js browser interface and a Go JSON API backed by SQLite. The main user journey is signup/login with TOTP, browsing and posting pseudonymous wall entries, offering support or starting a conversation, and following messages and notifications. The README documents additional capabilities including saved/posted lists, recovery codes, category/sort metadata, throttling, and expiring chats. Backend relationships are described at product level in the README; unsampled handler details are not inferred.

Main entry points: [`apps/web/lib/api.js`](https://github.com/agnogad/icinidok/blob/main/apps/web/lib/api.js) (API client), [`services/api/internal/app/server.go`](https://github.com/agnogad/icinidok/blob/main/services/api/internal/app/server.go) (HTTP server), [`services/api/internal/app/store.go`](https://github.com/agnogad/icinidok/blob/main/services/api/internal/app/store.go) (SQLite store), [`apps/web/app/dert/page.js`](https://github.com/agnogad/icinidok/blob/main/apps/web/app/dert/page.js) (Post detail)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_auth_ui["Sign-in and signup<br/>[GirisClient.jsx]"]
  node_wall_ui["Wall browser<br/>[HomeWall.jsx]"]
  node_post_ui["Post composer<br/>[PaylasForm.jsx]"]
  node_detail_ui["Post detail<br/>[page.js]"]
  node_chat_ui["Inbox and chat<br/>[GelenClient.jsx]"]
  node_notice_ui["Notifications"]
  node_profile_ui["Profile and lists<br/>[ProfileCard.jsx]"]
  node_site_frame["Navigation frame<br/>[Frame.jsx]"]
  node_icon_set["Icon set<br/>[Icons.jsx]"]
  node_theme_toggle["Theme toggle<br/>[ThemeToggle.jsx]"]
  node_api_client["API client<br/>[api.js]"]
  node_session_hook["Session state<br/>[useSession.js]"]
  node_summary_hook["Unread summary<br/>[useSummary.js]"]
end

subgraph group_identity["Identity and safety"]
  node_auth_logic["TOTP and recovery<br/>[auth.go]"]
  node_rate_limits["Rate limiting<br/>[ratelimit.go]"]
end

subgraph group_wall["Wall and conversations"]
  node_wall_service["Posts and support<br/>[server.go]"]
  node_chat_service["Conversations<br/>[server.go]"]
  node_notice_service["Notifications and summary<br/>[server.go]"]
end

subgraph group_api["API runtime"]
  node_go_server["HTTP server<br/>[server.go]"]
  node_server_entry["Server entrypoint<br/>[main.go]"]
end

subgraph group_persistence["Persistence"]
  node_sqlite_store[("SQLite store<br/>[store.go]")]
end

node_visitor(("Visitor"))

node_visitor -->|"signs in"| node_auth_ui
node_visitor -->|"browses wall"| node_wall_ui
node_visitor -->|"writes post"| node_post_ui
node_wall_ui -->|"opens post"| node_detail_ui
node_detail_ui -->|"opens conversation"| node_chat_ui
node_site_frame -->|"polls counts"| node_summary_hook
node_site_frame -->|"renders"| node_theme_toggle
node_site_frame -->|"renders icons"| node_icon_set
node_auth_ui -->|"sends auth requests"| node_api_client
node_wall_ui -->|"reads and toggles posts"| node_api_client
node_post_ui -->|"submits post"| node_api_client
node_detail_ui -->|"reads and supports"| node_api_client
node_detail_ui -->|"starts conversation"| node_api_client
node_chat_ui -->|"loads and sends messages"| node_api_client
node_notice_ui -->|"loads and marks read"| node_api_client
node_profile_ui -->|"loads account data"| node_api_client
node_session_hook -->|"checks session"| node_api_client
node_summary_hook -->|"polls summary"| node_api_client
node_api_client -->|"sends JSON requests"| node_go_server
node_server_entry -->|"starts server"| node_go_server
node_go_server -->|"handles authentication"| node_auth_logic
node_go_server -->|"serves wall API"| node_wall_service
node_go_server -->|"serves chat API"| node_chat_service
node_go_server -->|"serves notification API"| node_notice_service
node_go_server -->|"limits writes and reads"| node_rate_limits
node_go_server -->|"persists application data"| node_sqlite_store
node_auth_logic -.->|"stores credentials"| node_sqlite_store
node_wall_service -.->|"stores posts and reactions"| node_sqlite_store
node_chat_service -.->|"stores conversations"| node_sqlite_store
node_notice_service -.->|"reads notification counts"| node_sqlite_store

click node_auth_ui "https://github.com/agnogad/icinidok/blob/main/apps/web/components/GirisClient.jsx"
click node_wall_ui "https://github.com/agnogad/icinidok/blob/main/apps/web/components/HomeWall.jsx"
click node_post_ui "https://github.com/agnogad/icinidok/blob/main/apps/web/components/PaylasForm.jsx"
click node_detail_ui "https://github.com/agnogad/icinidok/blob/main/apps/web/app/dert/page.js"
click node_chat_ui "https://github.com/agnogad/icinidok/blob/main/apps/web/components/GelenClient.jsx"
click node_notice_ui "https://github.com/agnogad/icinidok/blob/main/apps/web/components/BildirimlerClient.jsx"
click node_profile_ui "https://github.com/agnogad/icinidok/blob/main/apps/web/components/ProfileCard.jsx"
click node_site_frame "https://github.com/agnogad/icinidok/blob/main/apps/web/components/Frame.jsx"
click node_icon_set "https://github.com/agnogad/icinidok/blob/main/apps/web/components/Icons.jsx"
click node_theme_toggle "https://github.com/agnogad/icinidok/blob/main/apps/web/components/ThemeToggle.jsx"
click node_api_client "https://github.com/agnogad/icinidok/blob/main/apps/web/lib/api.js"
click node_session_hook "https://github.com/agnogad/icinidok/blob/main/apps/web/lib/useSession.js"
click node_summary_hook "https://github.com/agnogad/icinidok/blob/main/apps/web/lib/useSummary.js"
click node_go_server "https://github.com/agnogad/icinidok/blob/main/services/api/internal/app/server.go"
click node_server_entry "https://github.com/agnogad/icinidok/blob/main/services/api/cmd/server/main.go"
click node_auth_logic "https://github.com/agnogad/icinidok/blob/main/services/api/internal/app/auth.go"
click node_rate_limits "https://github.com/agnogad/icinidok/blob/main/services/api/internal/app/ratelimit.go"
click node_wall_service "https://github.com/agnogad/icinidok/blob/main/services/api/internal/app/server.go"
click node_chat_service "https://github.com/agnogad/icinidok/blob/main/services/api/internal/app/server.go"
click node_notice_service "https://github.com/agnogad/icinidok/blob/main/services/api/internal/app/server.go"
click node_sqlite_store "https://github.com/agnogad/icinidok/blob/main/services/api/internal/app/store.go"

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_auth_ui,node_wall_ui,node_post_ui,node_detail_ui,node_chat_ui,node_notice_ui,node_profile_ui,node_site_frame,node_icon_set,node_theme_toggle,node_api_client,node_session_hook,node_summary_hook toneBlue
class node_auth_logic,node_rate_limits toneAmber
class node_wall_service,node_chat_service,node_notice_service toneMint
class node_go_server,node_server_entry toneRose
class node_sqlite_store,node_visitor toneIndigo
```

## Components

### Web experience

- [Sign-in and signup](https://github.com/agnogad/icinidok/blob/main/apps/web/components/GirisClient.jsx): `apps/web/components/GirisClient.jsx`
- [Wall browser](https://github.com/agnogad/icinidok/blob/main/apps/web/components/HomeWall.jsx): `apps/web/components/HomeWall.jsx`
- [Post composer](https://github.com/agnogad/icinidok/blob/main/apps/web/components/PaylasForm.jsx): `apps/web/components/PaylasForm.jsx`
- [Post detail](https://github.com/agnogad/icinidok/blob/main/apps/web/app/dert/page.js): `apps/web/app/dert/page.js`
- [Inbox and chat](https://github.com/agnogad/icinidok/blob/main/apps/web/components/GelenClient.jsx): `apps/web/components/GelenClient.jsx`
- [Notifications](https://github.com/agnogad/icinidok/blob/main/apps/web/components/BildirimlerClient.jsx): `apps/web/components/BildirimlerClient.jsx`
- [Profile and lists](https://github.com/agnogad/icinidok/blob/main/apps/web/components/ProfileCard.jsx): `apps/web/components/ProfileCard.jsx`
- [Navigation frame](https://github.com/agnogad/icinidok/blob/main/apps/web/components/Frame.jsx): `apps/web/components/Frame.jsx`
- [Icon set](https://github.com/agnogad/icinidok/blob/main/apps/web/components/Icons.jsx): `apps/web/components/Icons.jsx`
- [Theme toggle](https://github.com/agnogad/icinidok/blob/main/apps/web/components/ThemeToggle.jsx): `apps/web/components/ThemeToggle.jsx`
- [API client](https://github.com/agnogad/icinidok/blob/main/apps/web/lib/api.js): `apps/web/lib/api.js`
- [Session state](https://github.com/agnogad/icinidok/blob/main/apps/web/lib/useSession.js): `apps/web/lib/useSession.js`
- [Unread summary](https://github.com/agnogad/icinidok/blob/main/apps/web/lib/useSummary.js): `apps/web/lib/useSummary.js`

### Identity and safety

- [TOTP and recovery](https://github.com/agnogad/icinidok/blob/main/services/api/internal/app/auth.go): `services/api/internal/app/auth.go`
- [Rate limiting](https://github.com/agnogad/icinidok/blob/main/services/api/internal/app/ratelimit.go): `services/api/internal/app/ratelimit.go`

### Wall and conversations

- [Posts and support](https://github.com/agnogad/icinidok/blob/main/services/api/internal/app/server.go): `services/api/internal/app/server.go`
- [Conversations](https://github.com/agnogad/icinidok/blob/main/services/api/internal/app/server.go): `services/api/internal/app/server.go`
- [Notifications and summary](https://github.com/agnogad/icinidok/blob/main/services/api/internal/app/server.go): `services/api/internal/app/server.go`

### API runtime

- [HTTP server](https://github.com/agnogad/icinidok/blob/main/services/api/internal/app/server.go): `services/api/internal/app/server.go`
- [Server entrypoint](https://github.com/agnogad/icinidok/blob/main/services/api/cmd/server/main.go): `services/api/cmd/server/main.go`

### Persistence

- [SQLite store](https://github.com/agnogad/icinidok/blob/main/services/api/internal/app/store.go): `services/api/internal/app/store.go`

### Other components

- **Visitor**

## Connections

- Visitor → Sign-in and signup: signs in (evidence: `README.md`)
- Visitor → Wall browser: browses wall (evidence: `README.md`)
- Visitor → Post composer: writes post (evidence: `README.md`)
- Wall browser → Post detail: opens post (evidence: `apps/web/components/HomeWall.jsx`)
- Post detail → Inbox and chat: opens conversation (evidence: `apps/web/app/dert/page.js`)
- Navigation frame → Unread summary: polls counts (evidence: `apps/web/components/Frame.jsx`)
- Navigation frame → Theme toggle: renders (evidence: `apps/web/components/Frame.jsx`)
- Navigation frame → Icon set: renders icons (evidence: `apps/web/components/Frame.jsx`)
- Sign-in and signup → API client: sends auth requests (evidence: `apps/web/components/GirisClient.jsx`)
- Wall browser → API client: reads and toggles posts (evidence: `apps/web/components/HomeWall.jsx`)
- Post composer → API client: submits post (evidence: `apps/web/components/PaylasForm.jsx`)
- Post detail → API client: reads and supports (evidence: `apps/web/app/dert/page.js`)
- Post detail → API client: starts conversation (evidence: `apps/web/app/dert/page.js`)
- Inbox and chat → API client: loads and sends messages (evidence: `apps/web/components/GelenClient.jsx`)
- Notifications → API client: loads and marks read (evidence: `apps/web/components/BildirimlerClient.jsx`)
- Profile and lists → API client: loads account data (evidence: `apps/web/components/ProfileCard.jsx`)
- Session state → API client: checks session (evidence: `apps/web/lib/useSession.js`)
- Unread summary → API client: polls summary (evidence: `apps/web/lib/useSummary.js`)
- API client → HTTP server: sends JSON requests (evidence: `README.md`)
- Server entrypoint → HTTP server: starts server (evidence: `README.md`)
- HTTP server → TOTP and recovery: handles authentication (evidence: `README.md`)
- HTTP server → Posts and support: serves wall API (evidence: `README.md`)
- HTTP server → Conversations: serves chat API (evidence: `README.md`)
- HTTP server → Notifications and summary: serves notification API (evidence: `README.md`)
- HTTP server → Rate limiting: limits writes and reads (evidence: `README.md`)
- HTTP server → SQLite store: persists application data (evidence: `README.md`)
- TOTP and recovery → SQLite store: stores credentials
- Posts and support → SQLite store: stores posts and reactions
- Conversations → SQLite store: stores conversations
- Notifications and summary → SQLite store: reads notification counts
