# mansoor0x/polpno architecture

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

- Interactive diagram: https://gitdiagram.com/mansoor0x/polpno
- Repository: https://github.com/mansoor0x/polpno

## Overview

This repository implements a browser-based PS4 jailbreak and kernel-patching workflow. A user opens the jailbreak page, which establishes a memory primitive, promotes it to read/write access, and uses firmware-specific offsets to build and run kernel operations before mapping patch and payload data. The graph separates those domain stages from the primitive and address helpers. The README is empty, and the excerpts omit parts of the main workflow, so links to the page entry point and patch assets are shown as unverified; the RPC worker is included without an inferred caller.

Main entry points: [`jb.js`](https://github.com/mansoor0x/polpno/blob/main/jb.js) (Jailbreak controller), [`mem.js`](https://github.com/mansoor0x/polpno/blob/main/mem.js) (Memory API), [`core.js`](https://github.com/mansoor0x/polpno/blob/main/core.js) (Primitive setup), [`int64.js`](https://github.com/mansoor0x/polpno/blob/main/int64.js) (64-bit addresses)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Jailbreak workflow"]
  node_controller["Jailbreak controller<br/>[jb.js]"]
  node_primitive_setup["Primitive setup<br/>[core.js]"]
  node_kernel_ops["Kernel operations<br/>[jb.js]"]
  node_kernel_patch["Kernel patching<br/>[jb.js]"]
  node_payload_exec["Payload mapping<br/>[jb.js]"]
end

subgraph group_primitive["Memory primitive"]
  node_memory_api["Memory API<br/>[mem.js]"]
  node_worker_rpc["Worker RPC<br/>[rpc_worker.js]"]
end

subgraph group_support["Address support"]
  node_int64["64-bit addresses<br/>[int64.js]"]
  node_firmware_offsets["Firmware offsets<br/>[ps4_offsets.js]"]
end

subgraph group_assets["Runtime assets"]
  node_patch_assets["Firmware patch assets"]
  node_goldhen["GoldHEN binary<br/>[goldhen.bin]"]
end

node_user(("Browser user"))

node_user -.->|"opens"| node_controller
node_controller -->|"establishes"| node_primitive_setup
node_controller -->|"installs"| node_memory_api
node_memory_api -->|"uses carrier"| node_primitive_setup
node_controller -->|"uses addresses"| node_int64
node_memory_api -->|"uses addresses"| node_int64
node_controller -->|"loads offsets"| node_firmware_offsets
node_controller -->|"runs"| node_kernel_ops
node_kernel_ops -.->|"applies patches"| node_kernel_patch
node_kernel_ops -->|"maps payload"| node_payload_exec
node_kernel_patch -.->|"reads patch data"| node_patch_assets
node_payload_exec -.->|"loads binary"| node_goldhen

click node_controller "https://github.com/mansoor0x/polpno/blob/main/jb.js"
click node_primitive_setup "https://github.com/mansoor0x/polpno/blob/main/core.js"
click node_kernel_ops "https://github.com/mansoor0x/polpno/blob/main/jb.js"
click node_kernel_patch "https://github.com/mansoor0x/polpno/blob/main/jb.js"
click node_payload_exec "https://github.com/mansoor0x/polpno/blob/main/jb.js"
click node_memory_api "https://github.com/mansoor0x/polpno/blob/main/mem.js"
click node_worker_rpc "https://github.com/mansoor0x/polpno/blob/main/rpc_worker.js"
click node_int64 "https://github.com/mansoor0x/polpno/blob/main/int64.js"
click node_firmware_offsets "https://github.com/mansoor0x/polpno/blob/main/ps4_offsets.js"
click node_patch_assets "https://github.com/mansoor0x/polpno/tree/main/patches"
click node_goldhen "https://github.com/mansoor0x/polpno/blob/main/goldhen.bin"

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_controller,node_primitive_setup,node_kernel_ops,node_kernel_patch,node_payload_exec,node_user toneBlue
class node_memory_api,node_worker_rpc toneAmber
class node_int64,node_firmware_offsets toneMint
class node_patch_assets,node_goldhen toneRose
```

## Components

### Jailbreak workflow

- [Jailbreak controller](https://github.com/mansoor0x/polpno/blob/main/jb.js): `jb.js`
- [Primitive setup](https://github.com/mansoor0x/polpno/blob/main/core.js): `core.js`
- [Kernel operations](https://github.com/mansoor0x/polpno/blob/main/jb.js): `jb.js`
- [Kernel patching](https://github.com/mansoor0x/polpno/blob/main/jb.js): `jb.js`
- [Payload mapping](https://github.com/mansoor0x/polpno/blob/main/jb.js): `jb.js`

### Memory primitive

- [Memory API](https://github.com/mansoor0x/polpno/blob/main/mem.js): `mem.js`
- [Worker RPC](https://github.com/mansoor0x/polpno/blob/main/rpc_worker.js): `rpc_worker.js`

### Address support

- [64-bit addresses](https://github.com/mansoor0x/polpno/blob/main/int64.js): `int64.js`
- [Firmware offsets](https://github.com/mansoor0x/polpno/blob/main/ps4_offsets.js): `ps4_offsets.js`

### Runtime assets

- [Firmware patch assets](https://github.com/mansoor0x/polpno/tree/main/patches): `patches`
- [GoldHEN binary](https://github.com/mansoor0x/polpno/blob/main/goldhen.bin): `goldhen.bin`

### Other components

- **Browser user**

## Connections

- Browser user → Jailbreak controller: opens
- Jailbreak controller → Primitive setup: establishes (evidence: `jb.js`)
- Jailbreak controller → Memory API: installs (evidence: `jb.js`)
- Memory API → Primitive setup: uses carrier (evidence: `mem.js`)
- Jailbreak controller → 64-bit addresses: uses addresses (evidence: `jb.js`)
- Memory API → 64-bit addresses: uses addresses (evidence: `mem.js`)
- Jailbreak controller → Firmware offsets: loads offsets (evidence: `jb.js`)
- Jailbreak controller → Kernel operations: runs (evidence: `jb.js`)
- Kernel operations → Kernel patching: applies patches (evidence: `jb.js`)
- Kernel operations → Payload mapping: maps payload (evidence: `jb.js`)
- Kernel patching → Firmware patch assets: reads patch data
- Payload mapping → GoldHEN binary: loads binary
