# saeidb/insta_create architecture

> Architecture diagram of the GitHub repository saeidb/insta_create, 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/saeidb/insta_create
- Repository: https://github.com/saeidb/insta_create

## Overview

This is a command-line Instagram account-registration automation tool. The principal workflow collects user settings, obtains a phone number and proxy, starts registration through a remote API, submits an SMS code, polls for completion, and writes account and cookie data. README features also include username generation, choosing cookie formats, proxy rotation, multiple accounts per number, and following a specified user. The sampled code is partial and monolithic, so unsampled feature links are documented but not inferred as internal calls.

Main entry points: [`reg.py`](https://github.com/saeidb/insta_create/blob/main/reg.py) (Registration runner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Registration workflow"]
  node_runner["Registration runner<br/>[reg.py]"]
  node_usernames["Username selection<br/>[reg.py]"]
  node_proxy["Proxy selection<br/>[reg.py]"]
  node_sms["SMS handling<br/>[reg.py]"]
  node_registration["Registration API client<br/>[reg.py]"]
  node_completion["Status and cookies<br/>[reg.py]"]
  node_followtarget["Follow target<br/>[reg.py]"]
end

subgraph group_services["External services"]
  node_mobileapi{{"Registration API"}}
  node_smsproviders{{"SMS providers"}}
  node_proxyservice{{"Proxy service"}}
end

subgraph group_results["Account outputs"]
  node_accountfile["Account records<br/>[reg.py]"]
  node_cookiefiles["Cookie files<br/>[reg.py]"]
end

node_operator(("Operator"))

node_operator -->|"configures"| node_runner
node_runner -->|"loads names"| node_usernames
node_runner -->|"selects proxy"| node_proxy
node_runner -->|"requests number"| node_sms
node_runner -->|"starts registration"| node_registration
node_runner -->|"checks status"| node_completion
node_registration -->|"sends requests"| node_mobileapi
node_completion -->|"polls status"| node_mobileapi
node_sms -->|"gets codes"| node_smsproviders
node_proxy -->|"rotates proxy"| node_proxyservice
node_completion -->|"writes records"| node_accountfile
node_completion -->|"writes cookies"| node_cookiefiles
node_runner -.->|"supports following"| node_followtarget

click node_runner "https://github.com/saeidb/insta_create/blob/main/reg.py"
click node_usernames "https://github.com/saeidb/insta_create/blob/main/reg.py"
click node_proxy "https://github.com/saeidb/insta_create/blob/main/reg.py"
click node_sms "https://github.com/saeidb/insta_create/blob/main/reg.py"
click node_registration "https://github.com/saeidb/insta_create/blob/main/reg.py"
click node_completion "https://github.com/saeidb/insta_create/blob/main/reg.py"
click node_accountfile "https://github.com/saeidb/insta_create/blob/main/reg.py"
click node_cookiefiles "https://github.com/saeidb/insta_create/blob/main/reg.py"
click node_followtarget "https://github.com/saeidb/insta_create/blob/main/reg.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_runner,node_usernames,node_proxy,node_sms,node_registration,node_completion,node_followtarget toneBlue
class node_mobileapi,node_smsproviders,node_proxyservice toneAmber
class node_accountfile,node_cookiefiles toneMint
class node_operator toneIndigo
```

## Components

### Registration workflow

- [Registration runner](https://github.com/saeidb/insta_create/blob/main/reg.py): `reg.py`
- [Username selection](https://github.com/saeidb/insta_create/blob/main/reg.py): `reg.py`
- [Proxy selection](https://github.com/saeidb/insta_create/blob/main/reg.py): `reg.py`
- [SMS handling](https://github.com/saeidb/insta_create/blob/main/reg.py): `reg.py`
- [Registration API client](https://github.com/saeidb/insta_create/blob/main/reg.py): `reg.py`
- [Status and cookies](https://github.com/saeidb/insta_create/blob/main/reg.py): `reg.py`
- [Follow target](https://github.com/saeidb/insta_create/blob/main/reg.py): `reg.py`

### External services

- **Registration API**
- **SMS providers**
- **Proxy service**

### Account outputs

- [Account records](https://github.com/saeidb/insta_create/blob/main/reg.py): `reg.py`
- [Cookie files](https://github.com/saeidb/insta_create/blob/main/reg.py): `reg.py`

### Other components

- **Operator**

## Connections

- Operator → Registration runner: configures (evidence: `README.md`)
- Registration runner → Username selection: loads names (evidence: `reg.py`)
- Registration runner → Proxy selection: selects proxy (evidence: `reg.py`)
- Registration runner → SMS handling: requests number (evidence: `reg.py`)
- Registration runner → Registration API client: starts registration (evidence: `reg.py`)
- Registration runner → Status and cookies: checks status (evidence: `reg.py`)
- Registration API client → Registration API: sends requests (evidence: `reg.py`)
- Status and cookies → Registration API: polls status (evidence: `reg.py`)
- SMS handling → SMS providers: gets codes (evidence: `reg.py`)
- Proxy selection → Proxy service: rotates proxy (evidence: `README.md`)
- Status and cookies → Account records: writes records (evidence: `reg.py`)
- Status and cookies → Cookie files: writes cookies (evidence: `reg.py`)
- Registration runner → Follow target: supports following (evidence: `README.md`)
