# arashutosh/mitanshi architecture

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

- Interactive diagram: https://gitdiagram.com/arashutosh/mitanshi
- Repository: https://github.com/arashutosh/mitanshi

## Overview

MITANSHI is a documented home-cloud setup assembled from existing tools, not a custom software application. Its main workflow is to configure an always-on Acer, connect household devices through Tailscale, and access shared files and media; phone photos are backed up to the Acer. The README also documents nightly USB-drive backups and an optional Nextcloud upgrade. Source excerpts were unavailable, so relationships below are limited to those explicitly described in the README; implementation details beyond the named files are not inferred.

Main entry points: [`mitanshi-setup.ps1`](https://github.com/arashutosh/mitanshi/blob/main/mitanshi-setup.ps1) (C:\Data SMB share), [`SETUP.md`](https://github.com/arashutosh/mitanshi/blob/main/SETUP.md) (Device setup guide), [`docker-compose.yml`](https://github.com/arashutosh/mitanshi/blob/main/docker-compose.yml) (Nextcloud upgrade)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Setup and backup"]
  node_setup_guide["Device setup guide<br/>[SETUP.md]"]
  node_setup_script["Acer setup script<br/>[mitanshi-setup.ps1]"]
  node_usb_backup["Nightly USB backup<br/>[SETUP.md]"]
end

subgraph group_connectivity["Private connectivity"]
  node_tailscale{{"Tailscale mesh"}}
end

subgraph group_services["Home cloud services"]
  node_smb["C:&#92;Data SMB share<br/>[mitanshi-setup.ps1]"]
  node_jellyfin["Jellyfin streaming<br/>[mitanshi-setup.ps1]"]
  node_photosync["PhotoSync backup"]
end

subgraph group_optional["Optional upgrade"]
  node_nextcloud["Nextcloud upgrade<br/>[docker-compose.yml]"]
end

node_acer(("Acer home base"))
node_macbook(("MacBook"))
node_phone(("Phone"))

node_setup_guide -->|"guides running"| node_setup_script
node_setup_script -->|"configures"| node_acer
node_acer -->|"joins mesh"| node_tailscale
node_macbook -->|"joins mesh"| node_tailscale
node_phone -->|"joins mesh"| node_tailscale
node_macbook -->|"mounts drive"| node_smb
node_phone -->|"browses drive"| node_smb
node_acer -->|"hosts share"| node_smb
node_acer -->|"hosts server"| node_jellyfin
node_phone -->|"streams media"| node_jellyfin
node_macbook -->|"streams media"| node_jellyfin
node_phone -->|"backs up photos"| node_photosync
node_photosync -->|"writes photos"| node_smb
node_setup_guide -->|"documents setup"| node_usb_backup
node_acer -->|"mirrors data"| node_usb_backup
node_acer -.->|"can upgrade to"| node_nextcloud

click node_setup_guide "https://github.com/arashutosh/mitanshi/blob/main/SETUP.md"
click node_setup_script "https://github.com/arashutosh/mitanshi/blob/main/mitanshi-setup.ps1"
click node_usb_backup "https://github.com/arashutosh/mitanshi/blob/main/SETUP.md"
click node_smb "https://github.com/arashutosh/mitanshi/blob/main/mitanshi-setup.ps1"
click node_jellyfin "https://github.com/arashutosh/mitanshi/blob/main/mitanshi-setup.ps1"
click node_nextcloud "https://github.com/arashutosh/mitanshi/blob/main/docker-compose.yml"

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_setup_guide,node_setup_script,node_usb_backup toneBlue
class node_tailscale toneAmber
class node_smb,node_jellyfin,node_photosync toneMint
class node_nextcloud toneRose
class node_acer,node_macbook,node_phone toneIndigo
```

## Components

### Setup and backup

- [Device setup guide](https://github.com/arashutosh/mitanshi/blob/main/SETUP.md): `SETUP.md`
- [Acer setup script](https://github.com/arashutosh/mitanshi/blob/main/mitanshi-setup.ps1): `mitanshi-setup.ps1`
- [Nightly USB backup](https://github.com/arashutosh/mitanshi/blob/main/SETUP.md): `SETUP.md`

### Private connectivity

- **Tailscale mesh**

### Home cloud services

- [C:\Data SMB share](https://github.com/arashutosh/mitanshi/blob/main/mitanshi-setup.ps1): `mitanshi-setup.ps1`
- [Jellyfin streaming](https://github.com/arashutosh/mitanshi/blob/main/mitanshi-setup.ps1): `mitanshi-setup.ps1`
- **PhotoSync backup**

### Optional upgrade

- [Nextcloud upgrade](https://github.com/arashutosh/mitanshi/blob/main/docker-compose.yml): `docker-compose.yml`

### Other components

- **Acer home base**
- **MacBook**
- **Phone**

## Connections

- Device setup guide → Acer setup script: guides running (evidence: `README.md`)
- Acer setup script → Acer home base: configures (evidence: `README.md`)
- Acer home base → Tailscale mesh: joins mesh (evidence: `README.md`)
- MacBook → Tailscale mesh: joins mesh (evidence: `README.md`)
- Phone → Tailscale mesh: joins mesh (evidence: `README.md`)
- MacBook → C:\Data SMB share: mounts drive (evidence: `README.md`)
- Phone → C:\Data SMB share: browses drive (evidence: `README.md`)
- Acer home base → C:\Data SMB share: hosts share (evidence: `README.md`)
- Acer home base → Jellyfin streaming: hosts server (evidence: `README.md`)
- Phone → Jellyfin streaming: streams media (evidence: `README.md`)
- MacBook → Jellyfin streaming: streams media (evidence: `README.md`)
- Phone → PhotoSync backup: backs up photos (evidence: `README.md`)
- PhotoSync backup → C:\Data SMB share: writes photos (evidence: `README.md`)
- Device setup guide → Nightly USB backup: documents setup (evidence: `README.md`)
- Acer home base → Nightly USB backup: mirrors data (evidence: `README.md`)
- Acer home base → Nextcloud upgrade: can upgrade to (evidence: `README.md`)
