# eladharels/ps5-60fps architecture

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

- Interactive diagram: https://gitdiagram.com/eladharels/ps5-60fps
- Repository: https://github.com/eladharels/ps5-60fps

## Overview

fps60 is a PS4/PS5 game frame-rate patch payload for jailbroken PS5 consoles. A user opens its web UI, inspects installed-game and patch-version matches, enables a patch, and starts the game; a periodic watcher detects it, waits for the target executable, and writes patch bytes into game memory. Settings, activity/logging, diagnostics, rescanning, and home-screen tile management are supporting capabilities. Some implementation details are unsampled, so uncertain subsystem links are omitted rather than inferred.

Main entry points: [`fps60/app.c`](https://github.com/eladharels/ps5-60fps/blob/main/fps60/app.c) (Application state), [`common/service.c`](https://github.com/eladharels/ps5-60fps/blob/main/common/service.c) (Payload service), [`fps60/main.c`](https://github.com/eladharels/ps5-60fps/blob/main/fps60/main.c) (Payload entry), [`fps60/routes.c`](https://github.com/eladharels/ps5-60fps/blob/main/fps60/routes.c) (API routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_routes["API routes<br/>[routes.c]"]
  node_ui["Browser UI<br/>[common.js]"]
end

subgraph group_app["Game and patch logic"]
  node_entry["Payload entry<br/>[main.c]"]
  node_appstate["Application state<br/>[app.c]"]
  node_titles["Installed titles<br/>[titles.c]"]
  node_patchdb["Patch database<br/>[patchdb.c]"]
  node_watcher["Game watcher<br/>[app.c]"]
  node_patcher["Memory patcher<br/>[patcher.c]"]
  node_settings[("Enabled settings<br/>[app.c]")]
end

subgraph group_console["Console integration"]
  node_platform["PS5 game access<br/>[platform_ps5.c]"]
  node_system["PS5 services<br/>[sys_ps5.c]"]
  node_tile["Home-screen tile<br/>[sys_ps5.c]"]
end

subgraph group_shared["Shared services"]
  node_service["Payload service<br/>[service.c]"]
  node_http["HTTP server<br/>[http.c]"]
  node_logging[("Activity logs<br/>[log.c]")]
end

node_user(("Player / browser"))
node_game["Installed / running games"]

node_user -->|"opens"| node_ui
node_ui -->|"requests API"| node_routes
node_entry -->|"starts service"| node_service
node_entry -->|"initializes"| node_appstate
node_service -->|"serves requests"| node_http
node_service -->|"dispatches handler"| node_routes
node_routes -->|"reads / updates"| node_appstate
node_routes -->|"delegates shared routes"| node_service
node_appstate -->|"parses database"| node_patchdb
node_appstate -->|"scans titles"| node_titles
node_appstate -->|"loads / saves"| node_settings
node_entry -->|"starts periodic loop"| node_watcher
node_watcher -->|"lists game processes"| node_platform
node_watcher -->|"applies enabled patches"| node_patcher
node_patcher -->|"reads / writes memory"| node_platform
node_platform -.->|"accesses processes"| node_game
node_watcher -->|"records activity"| node_logging
node_appstate -.->|"logs state changes"| node_logging
node_entry -->|"announces / notifies"| node_system
node_service -->|"manages tile"| node_tile
node_game -->|"is detected by"| node_watcher

click node_entry "https://github.com/eladharels/ps5-60fps/blob/main/fps60/main.c"
click node_routes "https://github.com/eladharels/ps5-60fps/blob/main/fps60/routes.c"
click node_ui "https://github.com/eladharels/ps5-60fps/blob/main/common/ui/common.js"
click node_service "https://github.com/eladharels/ps5-60fps/blob/main/common/service.c"
click node_http "https://github.com/eladharels/ps5-60fps/blob/main/common/http.c"
click node_appstate "https://github.com/eladharels/ps5-60fps/blob/main/fps60/app.c"
click node_titles "https://github.com/eladharels/ps5-60fps/blob/main/fps60/titles.c"
click node_patchdb "https://github.com/eladharels/ps5-60fps/blob/main/fps60/patchdb.c"
click node_watcher "https://github.com/eladharels/ps5-60fps/blob/main/fps60/app.c"
click node_patcher "https://github.com/eladharels/ps5-60fps/blob/main/fps60/patcher.c"
click node_platform "https://github.com/eladharels/ps5-60fps/blob/main/fps60/platform_ps5.c"
click node_system "https://github.com/eladharels/ps5-60fps/blob/main/common/sys_ps5.c"
click node_settings "https://github.com/eladharels/ps5-60fps/blob/main/fps60/app.c"
click node_logging "https://github.com/eladharels/ps5-60fps/blob/main/common/log.c"
click node_tile "https://github.com/eladharels/ps5-60fps/blob/main/common/sys_ps5.c"

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_routes,node_ui,node_user toneBlue
class node_entry,node_appstate,node_titles,node_patchdb,node_watcher,node_patcher,node_settings toneAmber
class node_platform,node_system,node_tile toneMint
class node_service,node_http,node_logging toneRose
class node_game toneIndigo
```

## Components

### Web interface

- [API routes](https://github.com/eladharels/ps5-60fps/blob/main/fps60/routes.c): `fps60/routes.c`
- [Browser UI](https://github.com/eladharels/ps5-60fps/blob/main/common/ui/common.js): `common/ui/common.js`

### Game and patch logic

- [Payload entry](https://github.com/eladharels/ps5-60fps/blob/main/fps60/main.c): `fps60/main.c`
- [Application state](https://github.com/eladharels/ps5-60fps/blob/main/fps60/app.c): `fps60/app.c`
- [Installed titles](https://github.com/eladharels/ps5-60fps/blob/main/fps60/titles.c): `fps60/titles.c`
- [Patch database](https://github.com/eladharels/ps5-60fps/blob/main/fps60/patchdb.c): `fps60/patchdb.c`
- [Game watcher](https://github.com/eladharels/ps5-60fps/blob/main/fps60/app.c): `fps60/app.c`
- [Memory patcher](https://github.com/eladharels/ps5-60fps/blob/main/fps60/patcher.c): `fps60/patcher.c`
- [Enabled settings](https://github.com/eladharels/ps5-60fps/blob/main/fps60/app.c): `fps60/app.c`

### Console integration

- [PS5 game access](https://github.com/eladharels/ps5-60fps/blob/main/fps60/platform_ps5.c): `fps60/platform_ps5.c`
- [PS5 services](https://github.com/eladharels/ps5-60fps/blob/main/common/sys_ps5.c): `common/sys_ps5.c`
- [Home-screen tile](https://github.com/eladharels/ps5-60fps/blob/main/common/sys_ps5.c): `common/sys_ps5.c`

### Shared services

- [Payload service](https://github.com/eladharels/ps5-60fps/blob/main/common/service.c): `common/service.c`
- [HTTP server](https://github.com/eladharels/ps5-60fps/blob/main/common/http.c): `common/http.c`
- [Activity logs](https://github.com/eladharels/ps5-60fps/blob/main/common/log.c): `common/log.c`

### Other components

- **Player / browser**
- **Installed / running games**

## Connections

- Player / browser → Browser UI: opens (evidence: `README.md`)
- Browser UI → API routes: requests API (evidence: `README.md`)
- Payload entry → Payload service: starts service (evidence: `fps60/main.c`)
- Payload entry → Application state: initializes (evidence: `fps60/main.c`)
- Payload service → HTTP server: serves requests
- Payload service → API routes: dispatches handler
- API routes → Application state: reads / updates (evidence: `fps60/routes.c`)
- API routes → Payload service: delegates shared routes (evidence: `fps60/routes.c`)
- Application state → Patch database: parses database (evidence: `fps60/app.c`)
- Application state → Installed titles: scans titles (evidence: `fps60/app.c`)
- Application state → Enabled settings: loads / saves (evidence: `fps60/app.c`)
- Payload entry → Game watcher: starts periodic loop (evidence: `fps60/main.c`)
- Game watcher → PS5 game access: lists game processes (evidence: `fps60/app.c`)
- Game watcher → Memory patcher: applies enabled patches (evidence: `fps60/app.c`)
- Memory patcher → PS5 game access: reads / writes memory (evidence: `fps60/patcher.c`)
- PS5 game access → Installed / running games: accesses processes
- Game watcher → Activity logs: records activity (evidence: `fps60/app.c`)
- Application state → Activity logs: logs state changes
- Payload entry → PS5 services: announces / notifies (evidence: `fps60/main.c`)
- Payload service → Home-screen tile: manages tile
- Installed / running games → Game watcher: is detected by (evidence: `README.md`)
