# win98plus/alight-motion-premium-shadowrocket architecture

> Architecture diagram of the GitHub repository win98plus/alight-motion-premium-shadowrocket, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/win98plus/alight-motion-premium-shadowrocket
- Repository: https://github.com/win98plus/alight-motion-premium-shadowrocket

## Overview

This repository is a small Alight Motion response-rewrite script for use with Shadowrocket. It parses the incoming response body, replaces it with a hard-coded successful subscription result, and returns the JSON body through `$done`. The README gives no further capability details, and the `.module` file was not sampled, so its behavior and any additional wiring are uncertain.

Main entry points: [`AlightMotion.js`](https://github.com/win98plus/alight-motion-premium-shadowrocket/blob/main/AlightMotion.js) (Response rewrite)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_api(("Alight Motion API"))
node_rewrite["Response rewrite<br/>[AlightMotion.js]"]
node_shadowrocket(("Shadowrocket"))

node_api -->|"provides response"| node_rewrite
node_rewrite -->|"returns body"| node_shadowrocket

click node_rewrite "https://github.com/win98plus/alight-motion-premium-shadowrocket/blob/main/AlightMotion.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_api toneMint
class node_rewrite toneTeal
class node_shadowrocket toneIndigo
```

## Components

### Other components

- **Alight Motion API**
- [Response rewrite](https://github.com/win98plus/alight-motion-premium-shadowrocket/blob/main/AlightMotion.js): `AlightMotion.js`
- **Shadowrocket**

## Connections

- Alight Motion API → Response rewrite: provides response
- Response rewrite → Shadowrocket: returns body
