# sjcoding0130/tester architecture

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

- Interactive diagram: https://gitdiagram.com/sjcoding0130/tester
- Repository: https://github.com/sjcoding0130/tester

## Overview

This repository is a collection of Python scripts for retrieving Unity game assets, extracting selected files, reconstructing atlas textures, and submitting book JSON files to a local PHP viewer. The documented-in-code asset workflow spans bundle listing, asset downloading, extraction/filtering, and image reconstruction, but the scripts do not import one another; connections between those stages are therefore not asserted. The JSON-to-HTML workflow is a separate branch. Source excerpts do not establish what test.py does, and no README provides additional capability details.

Main entry points: [`try.py`](https://github.com/sjcoding0130/tester/blob/main/try.py) (Asset downloader), [`asset.py`](https://github.com/sjcoding0130/tester/blob/main/asset.py) (Unity extraction), [`chapter.py`](https://github.com/sjcoding0130/tester/blob/main/chapter.py) (Bundle listing), [`title.py`](https://github.com/sjcoding0130/tester/blob/main/title.py) (Atlas reconstruction)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_asset_discovery["Asset discovery"]
  node_bundle_listing["Bundle listing<br/>[chapter.py]"]
  node_asset_lists["Asset lists<br/>[chapter.py]"]
  node_asset_downloader["Asset downloader<br/>[try.py]"]
  node_downloaded_assets["Downloaded assets<br/>[try.py]"]
end

subgraph group_asset_processing["Asset processing"]
  node_asset_extractor["Unity extraction<br/>[asset.py]"]
  node_filtered_assets["Filtered assets<br/>[asset.py]"]
  node_atlas_reconstructor["Atlas reconstruction<br/>[title.py]"]
  node_reconstructed_images["Reconstructed images<br/>[title.py]"]
end

subgraph group_book_rendering["Book rendering"]
  node_book_files["Book JSON files<br/>[ttt.py]"]
  node_php_viewer["Local PHP viewer"]
  node_html_output["Language HTML<br/>[ttt.py]"]
end

node_bundle_source(("Asset CDN"))
node_asset_cdn(("Asset CDN"))
node_ripper_release(("AssetRipper release"))

node_bundle_listing -->|"downloads bundle"| node_bundle_source
node_bundle_listing -->|"writes lists"| node_asset_lists
node_asset_downloader -->|"reads lists"| node_asset_lists
node_asset_downloader -->|"requests assets"| node_asset_cdn
node_asset_downloader -->|"saves downloads"| node_downloaded_assets
node_asset_extractor -->|"downloads tool"| node_ripper_release
node_asset_extractor -->|"extracts input"| node_downloaded_assets
node_asset_extractor -->|"copies matches"| node_filtered_assets
node_atlas_reconstructor -->|"reads assets"| node_filtered_assets
node_atlas_reconstructor -->|"writes images"| node_reconstructed_images
node_book_files -->|"submitted by script"| node_php_viewer
node_php_viewer -->|"returns HTML"| node_html_output

click node_bundle_listing "https://github.com/sjcoding0130/tester/blob/main/chapter.py"
click node_asset_lists "https://github.com/sjcoding0130/tester/blob/main/chapter.py"
click node_asset_downloader "https://github.com/sjcoding0130/tester/blob/main/try.py"
click node_downloaded_assets "https://github.com/sjcoding0130/tester/blob/main/try.py"
click node_asset_extractor "https://github.com/sjcoding0130/tester/blob/main/asset.py"
click node_filtered_assets "https://github.com/sjcoding0130/tester/blob/main/asset.py"
click node_atlas_reconstructor "https://github.com/sjcoding0130/tester/blob/main/title.py"
click node_reconstructed_images "https://github.com/sjcoding0130/tester/blob/main/title.py"
click node_book_files "https://github.com/sjcoding0130/tester/blob/main/ttt.py"
click node_html_output "https://github.com/sjcoding0130/tester/blob/main/ttt.py"

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_bundle_listing,node_asset_lists,node_asset_downloader,node_downloaded_assets toneBlue
class node_asset_extractor,node_filtered_assets,node_atlas_reconstructor,node_reconstructed_images toneAmber
class node_book_files,node_php_viewer,node_html_output toneMint
class node_bundle_source,node_asset_cdn,node_ripper_release toneIndigo
```

## Components

### Asset discovery

- [Bundle listing](https://github.com/sjcoding0130/tester/blob/main/chapter.py): `chapter.py`
- [Asset lists](https://github.com/sjcoding0130/tester/blob/main/chapter.py): `chapter.py`
- [Asset downloader](https://github.com/sjcoding0130/tester/blob/main/try.py): `try.py`
- [Downloaded assets](https://github.com/sjcoding0130/tester/blob/main/try.py): `try.py`

### Asset processing

- [Unity extraction](https://github.com/sjcoding0130/tester/blob/main/asset.py): `asset.py`
- [Filtered assets](https://github.com/sjcoding0130/tester/blob/main/asset.py): `asset.py`
- [Atlas reconstruction](https://github.com/sjcoding0130/tester/blob/main/title.py): `title.py`
- [Reconstructed images](https://github.com/sjcoding0130/tester/blob/main/title.py): `title.py`

### Book rendering

- [Book JSON files](https://github.com/sjcoding0130/tester/blob/main/ttt.py): `ttt.py`
- **Local PHP viewer**
- [Language HTML](https://github.com/sjcoding0130/tester/blob/main/ttt.py): `ttt.py`

### Other components

- **Asset CDN**
- **Asset CDN**
- **AssetRipper release**

## Connections

- Bundle listing → Asset CDN: downloads bundle (evidence: `chapter.py`)
- Bundle listing → Asset lists: writes lists (evidence: `chapter.py`)
- Asset downloader → Asset lists: reads lists (evidence: `try.py`)
- Asset downloader → Asset CDN: requests assets (evidence: `try.py`)
- Asset downloader → Downloaded assets: saves downloads (evidence: `try.py`)
- Unity extraction → AssetRipper release: downloads tool (evidence: `asset.py`)
- Unity extraction → Downloaded assets: extracts input (evidence: `asset.py`)
- Unity extraction → Filtered assets: copies matches (evidence: `asset.py`)
- Atlas reconstruction → Filtered assets: reads assets (evidence: `title.py`)
- Atlas reconstruction → Reconstructed images: writes images (evidence: `title.py`)
- Book JSON files → Local PHP viewer: submitted by script (evidence: `ttt.py`)
- Local PHP viewer → Language HTML: returns HTML (evidence: `ttt.py`)
