# g2all-ps4/g2all-ps4.github.io architecture

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

- Interactive diagram: https://gitdiagram.com/g2all-ps4/g2all-ps4.github.io
- Repository: https://github.com/g2all-ps4/g2all-ps4.github.io

## Overview

G2ALL is a static PS4 web host for launching firmware-specific GoldHEN exploit paths. The documented user workflow is to open the host, have it detect firmware, and select compatible exploit support; GoldHEN integration and offline caching are also documented. The tree separates browser-host code, firmware-specific exploit implementations, and shared exploit primitives. Source excerpts establish several internal memory and ROP dependencies, but do not expose the host’s complete runtime wiring, cache behavior, or GoldHEN loading path; those links are therefore omitted or marked unverified.

Main entry points: [`css/main.js`](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/main.js) (Host UI), [`700/lapse.js`](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/lapse.js) (7–8.52 Lapse), [`900/lapse.js`](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/lapse.js) (9–9.60 Lapse), [`700/module/memtools.js`](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/module/memtools.js) (700 memory tools)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_host["Web host"]
  node_host_ui["Host UI<br/>[main.js]"]
  node_host_loader["Host loader<br/>[loader.js]"]
  node_host_workers["Host workers<br/>[workers.js]"]
  node_host_worker["Worker runtime<br/>[worker.js]"]
  node_host_lapse["Host exploit UI<br/>[lapse.js]"]
  node_host_ps4["PS4 host logic<br/>[userland.js]"]
  node_host_kernel["Kernel routines<br/>[kernel.js]"]
  node_host_misc["Host utilities<br/>[misc.js]"]
  node_firmware_data["Firmware constants<br/>[constants.js]"]
end

subgraph group_exploit["Firmware exploits"]
  node_exploit_505["5.05 exploit<br/>[exploit.js]"]
  node_exploit_700["7–8.52 exploit<br/>[psfree.js]"]
  node_lapse_700["7–8.52 Lapse<br/>[lapse.js]"]
  node_rop_700["7–8.52 ROP<br/>[700.js]"]
  node_exploit_900["9–9.60 exploit<br/>[psfree.js]"]
  node_lapse_900["9–9.60 Lapse<br/>[lapse.js]"]
  node_rop_900["9–9.60 ROP<br/>[900.js]"]
  node_send_700["700 payload sender<br/>[send.js]"]
  node_send_900["900 payload sender<br/>[send.js]"]
end

subgraph group_primitives["Exploit primitives"]
  node_int64_700["700 64-bit values<br/>[int64.js]"]
  node_memory_700["700 memory access<br/>[mem.js]"]
  node_memory_tools_700["700 memory tools<br/>[memtools.js]"]
  node_chain_700["700 ROP chain<br/>[chain.js]"]
  node_rw_700["700 buffer access<br/>[rw.js]"]
  node_offsets_700["700 offsets<br/>[offset.js]"]
  node_int64_900["900 64-bit values<br/>[int64.js]"]
  node_memory_900["900 memory access<br/>[mem.js]"]
  node_memory_tools_900["900 memory tools<br/>[memtools.js]"]
  node_chain_900["900 ROP chain<br/>[chain.js]"]
  node_rw_900["900 buffer access<br/>[rw.js]"]
  node_offsets_900["900 offsets<br/>[offset.js]"]
end

subgraph group_slopkit["Slopkit"]
  node_slopkit_core["Slopkit core<br/>[core.js]"]
  node_slopkit_jb["Slopkit jailbreak<br/>[jb.js]"]
  node_slopkit_lapse["Slopkit Lapse chain<br/>[chain_lapse.js]"]
end

node_user(("PS4 user"))

node_user -.->|"opens host"| node_host_ui
node_host_ui -.->|"selects firmware"| node_exploit_505
node_host_ui -.->|"selects firmware"| node_exploit_700
node_host_ui -.->|"selects firmware"| node_exploit_900
node_host_ui -.->|"loads host"| node_host_loader
node_host_ui -.->|"uses workers"| node_host_workers
node_host_workers -.->|"dispatches work"| node_host_worker
node_host_ui -.->|"presents exploit UI"| node_host_lapse
node_host_ui -.->|"runs PS4 logic"| node_host_ps4
node_host_ps4 -.->|"uses kernel routines"| node_host_kernel
node_exploit_700 -->|"uses exploit stage"| node_lapse_700
node_exploit_900 -->|"uses exploit stage"| node_lapse_900
node_lapse_700 -->|"uses values"| node_int64_700
node_lapse_700 -->|"uses memory"| node_memory_700
node_lapse_700 -->|"uses chains"| node_chain_700
node_lapse_700 -->|"uses tools"| node_memory_tools_700
node_lapse_700 -->|"uses offsets"| node_offsets_700
node_lapse_900 -->|"uses values"| node_int64_900
node_lapse_900 -->|"uses memory"| node_memory_900
node_lapse_900 -->|"uses chains"| node_chain_900
node_lapse_900 -->|"uses tools"| node_memory_tools_900
node_lapse_900 -->|"uses offsets"| node_offsets_900
node_chain_700 -->|"uses values"| node_int64_700
node_chain_700 -->|"gets view address"| node_memory_tools_700
node_memory_700 -->|"converts values"| node_int64_700
node_memory_tools_700 -->|"uses values"| node_int64_700
node_memory_tools_700 -->|"uses memory"| node_memory_700
node_memory_tools_700 -->|"uses buffer views"| node_rw_700
node_chain_900 -->|"gets view address"| node_memory_tools_900
node_memory_900 -->|"converts values"| node_int64_900
node_memory_tools_900 -->|"uses values"| node_int64_900
node_memory_tools_900 -->|"uses memory"| node_memory_900
node_memory_tools_900 -->|"uses buffer views"| node_rw_900
node_exploit_505 -.->|"hosted by"| node_host_ui
node_host_ui -.->|"loads GoldHEN"| node_send_700
node_host_ui -.->|"loads GoldHEN"| node_send_900
node_slopkit_lapse -->|"uses core"| node_slopkit_core
node_slopkit_lapse -.->|"supports jailbreak"| node_slopkit_jb

click node_host_ui "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/main.js"
click node_host_loader "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/loader.js"
click node_host_workers "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/workers.js"
click node_host_worker "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/worker.js"
click node_host_lapse "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/lapse.js"
click node_host_ps4 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/ps4/userland.js"
click node_host_kernel "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/ps4/kernel.js"
click node_host_misc "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/misc.js"
click node_firmware_data "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/ps4/constants.js"
click node_exploit_505 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/505/exploit.js"
click node_exploit_700 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/psfree.js"
click node_lapse_700 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/lapse.js"
click node_rop_700 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/rop/700.js"
click node_exploit_900 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/psfree.js"
click node_lapse_900 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/lapse.js"
click node_rop_900 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/rop/900.js"
click node_send_700 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/send.js"
click node_send_900 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/send.js"
click node_int64_700 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/module/int64.js"
click node_memory_700 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/module/mem.js"
click node_memory_tools_700 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/module/memtools.js"
click node_chain_700 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/module/chain.js"
click node_rw_700 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/module/rw.js"
click node_offsets_700 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/module/offset.js"
click node_int64_900 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/module/int64.js"
click node_memory_900 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/module/mem.js"
click node_memory_tools_900 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/module/memtools.js"
click node_chain_900 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/module/chain.js"
click node_rw_900 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/module/rw.js"
click node_offsets_900 "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/module/offset.js"
click node_slopkit_core "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/slopkit/core.js"
click node_slopkit_jb "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/slopkit/jb.js"
click node_slopkit_lapse "https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/slopkit/chain_lapse.js"

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_host_ui,node_host_loader,node_host_workers,node_host_worker,node_host_lapse,node_host_ps4,node_host_kernel,node_host_misc,node_firmware_data,node_user toneBlue
class node_exploit_505,node_exploit_700,node_lapse_700,node_rop_700,node_exploit_900,node_lapse_900,node_rop_900,node_send_700,node_send_900 toneAmber
class node_int64_700,node_memory_700,node_memory_tools_700,node_chain_700,node_rw_700,node_offsets_700,node_int64_900,node_memory_900,node_memory_tools_900,node_chain_900,node_rw_900,node_offsets_900 toneMint
class node_slopkit_core,node_slopkit_jb,node_slopkit_lapse toneRose
```

## Components

### Web host

- [Host UI](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/main.js): `css/main.js`
- [Host loader](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/loader.js): `css/loader.js`
- [Host workers](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/workers.js): `css/workers.js`
- [Worker runtime](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/worker.js): `css/worker.js`
- [Host exploit UI](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/lapse.js): `css/lapse.js`
- [PS4 host logic](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/ps4/userland.js): `css/ps4/userland.js`
- [Kernel routines](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/ps4/kernel.js): `css/ps4/kernel.js`
- [Host utilities](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/misc.js): `css/misc.js`
- [Firmware constants](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/css/ps4/constants.js): `css/ps4/constants.js`

### Firmware exploits

- [5.05 exploit](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/505/exploit.js): `505/exploit.js`
- [7–8.52 exploit](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/psfree.js): `700/psfree.js`
- [7–8.52 Lapse](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/lapse.js): `700/lapse.js`
- [7–8.52 ROP](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/rop/700.js): `700/rop/700.js`
- [9–9.60 exploit](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/psfree.js): `900/psfree.js`
- [9–9.60 Lapse](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/lapse.js): `900/lapse.js`
- [9–9.60 ROP](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/rop/900.js): `900/rop/900.js`
- [700 payload sender](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/send.js): `700/send.js`
- [900 payload sender](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/send.js): `900/send.js`

### Exploit primitives

- [700 64-bit values](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/module/int64.js): `700/module/int64.js`
- [700 memory access](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/module/mem.js): `700/module/mem.js`
- [700 memory tools](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/module/memtools.js): `700/module/memtools.js`
- [700 ROP chain](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/module/chain.js): `700/module/chain.js`
- [700 buffer access](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/module/rw.js): `700/module/rw.js`
- [700 offsets](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/700/module/offset.js): `700/module/offset.js`
- [900 64-bit values](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/module/int64.js): `900/module/int64.js`
- [900 memory access](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/module/mem.js): `900/module/mem.js`
- [900 memory tools](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/module/memtools.js): `900/module/memtools.js`
- [900 ROP chain](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/module/chain.js): `900/module/chain.js`
- [900 buffer access](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/module/rw.js): `900/module/rw.js`
- [900 offsets](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/900/module/offset.js): `900/module/offset.js`

### Slopkit

- [Slopkit core](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/slopkit/core.js): `slopkit/core.js`
- [Slopkit jailbreak](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/slopkit/jb.js): `slopkit/jb.js`
- [Slopkit Lapse chain](https://github.com/g2all-ps4/g2all-ps4.github.io/blob/main/slopkit/chain_lapse.js): `slopkit/chain_lapse.js`

### Other components

- **PS4 user**

## Connections

- PS4 user → Host UI: opens host
- Host UI → 5.05 exploit: selects firmware
- Host UI → 7–8.52 exploit: selects firmware
- Host UI → 9–9.60 exploit: selects firmware
- Host UI → Host loader: loads host
- Host UI → Host workers: uses workers
- Host workers → Worker runtime: dispatches work
- Host UI → Host exploit UI: presents exploit UI
- Host UI → PS4 host logic: runs PS4 logic
- PS4 host logic → Kernel routines: uses kernel routines
- 7–8.52 exploit → 7–8.52 Lapse: uses exploit stage (evidence: `700/psfree.js`)
- 9–9.60 exploit → 9–9.60 Lapse: uses exploit stage (evidence: `900/psfree.js`)
- 7–8.52 Lapse → 700 64-bit values: uses values (evidence: `700/lapse.js`)
- 7–8.52 Lapse → 700 memory access: uses memory (evidence: `700/lapse.js`)
- 7–8.52 Lapse → 700 ROP chain: uses chains (evidence: `700/lapse.js`)
- 7–8.52 Lapse → 700 memory tools: uses tools (evidence: `700/lapse.js`)
- 7–8.52 Lapse → 700 offsets: uses offsets (evidence: `700/lapse.js`)
- 9–9.60 Lapse → 900 64-bit values: uses values (evidence: `900/lapse.js`)
- 9–9.60 Lapse → 900 memory access: uses memory (evidence: `900/lapse.js`)
- 9–9.60 Lapse → 900 ROP chain: uses chains (evidence: `900/lapse.js`)
- 9–9.60 Lapse → 900 memory tools: uses tools (evidence: `900/lapse.js`)
- 9–9.60 Lapse → 900 offsets: uses offsets (evidence: `900/lapse.js`)
- 700 ROP chain → 700 64-bit values: uses values (evidence: `700/module/chain.js`)
- 700 ROP chain → 700 memory tools: gets view address (evidence: `700/module/chain.js`)
- 700 memory access → 700 64-bit values: converts values (evidence: `700/module/mem.js`)
- 700 memory tools → 700 64-bit values: uses values (evidence: `700/module/memtools.js`)
- 700 memory tools → 700 memory access: uses memory (evidence: `700/module/memtools.js`)
- 700 memory tools → 700 buffer access: uses buffer views (evidence: `700/module/memtools.js`)
- 900 ROP chain → 900 memory tools: gets view address (evidence: `900/module/chain.js`)
- 900 memory access → 900 64-bit values: converts values (evidence: `900/module/mem.js`)
- 900 memory tools → 900 64-bit values: uses values (evidence: `900/module/memtools.js`)
- 900 memory tools → 900 memory access: uses memory (evidence: `900/module/memtools.js`)
- 900 memory tools → 900 buffer access: uses buffer views (evidence: `900/module/memtools.js`)
- 5.05 exploit → Host UI: hosted by
- Host UI → 700 payload sender: loads GoldHEN
- Host UI → 900 payload sender: loads GoldHEN
- Slopkit Lapse chain → Slopkit core: uses core (evidence: `slopkit/chain_lapse.js`)
- Slopkit Lapse chain → Slopkit jailbreak: supports jailbreak
