# isarojpandit/theseus_growth architecture

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

- Interactive diagram: https://gitdiagram.com/isarojpandit/theseus_growth
- Repository: https://github.com/isarojpandit/theseus_growth

## Overview

Theseus is a Python library for product-growth analysis. An analyst supplies retention data through the public Theseus API, which builds a fitted or interpolated retention profile; that profile can then drive cohort DAU projections and age-based DAU views, with totals and combined projections available for analysis. The library also provides plotting and Excel/JSON export. The README documents these capabilities, while the sampled source shows the API dispatch and projection internals; unsampled notebook usage is not treated as evidence of additional runtime links.

Main entry points: [`theseus_growth/__init__.py`](https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/__init__.py) (Theseus API), [`theseus_growth/cohort_projections.py`](https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/cohort_projections.py) (Cohort projection), [`theseus_growth/retention_profile.py`](https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/retention_profile.py) (Retention engine), [`theseus_growth/aged_DAU_projections.py`](https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/aged_DAU_projections.py) (At-least-age DAU)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_profiles["Retention profiles"]
  node_profile["Profile builder<br/>[__init__.py]"]
  node_retention_engine["Retention engine"]
  node_curve_fits["Curve functions<br/>[curve_functions.py]"]
end

subgraph group_projections["DAU projections"]
  node_cohort_projection["Cohort projection"]
  node_aged_projection["At-least-age DAU"]
  node_exact_age_projection["Exact-age DAU"]
  node_dnu["DNU extraction"]
end

subgraph group_outputs["Analysis outputs"]
  node_dau_totals["DAU totals"]
  node_dau_combine["Combine projections"]
  node_charts["Charts<br/>[graphs.py]"]
  node_file_export["File export<br/>[theseus_io.py]"]
end

node_analyst(("Analyst"))
node_api["Theseus API<br/>[__init__.py]"]

node_analyst -->|"uses"| node_api
node_api -->|"builds profile"| node_profile
node_profile -->|"fits and projects"| node_retention_engine
node_retention_engine -->|"uses functions"| node_curve_fits
node_api -->|"projects cohorts"| node_cohort_projection
node_api -->|"projects ages"| node_aged_projection
node_api -->|"projects exact ages"| node_exact_age_projection
node_api -->|"extracts DNU"| node_dnu
node_aged_projection -->|"projects cohorts"| node_cohort_projection
node_exact_age_projection -->|"projects cohorts"| node_cohort_projection
node_api -->|"totals DAU"| node_dau_totals
node_api -->|"combines totals"| node_dau_combine
node_api -->|"plots results"| node_charts
node_api -->|"exports data"| node_file_export

click node_api "https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/__init__.py"
click node_profile "https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/__init__.py"
click node_retention_engine "https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/retention_profile.py"
click node_curve_fits "https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/curve_functions.py"
click node_cohort_projection "https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/cohort_projections.py"
click node_aged_projection "https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/aged_DAU_projections.py"
click node_exact_age_projection "https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/aged_DAU_projections.py"
click node_dnu "https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/aged_DAU_projections.py"
click node_dau_totals "https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/cohort_projections.py"
click node_dau_combine "https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/cohort_projections.py"
click node_charts "https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/graphs.py"
click node_file_export "https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/theseus_io.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_profile,node_retention_engine,node_curve_fits toneBlue
class node_cohort_projection,node_aged_projection,node_exact_age_projection,node_dnu toneAmber
class node_dau_totals,node_dau_combine,node_charts,node_file_export,node_api toneMint
class node_analyst toneIndigo
```

## Components

### Retention profiles

- [Profile builder](https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/__init__.py): `theseus_growth/__init__.py`
- [Retention engine](https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/retention_profile.py): `theseus_growth/retention_profile.py`
- [Curve functions](https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/curve_functions.py): `theseus_growth/curve_functions.py`

### DAU projections

- [Cohort projection](https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/cohort_projections.py): `theseus_growth/cohort_projections.py`
- [At-least-age DAU](https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/aged_DAU_projections.py): `theseus_growth/aged_DAU_projections.py`
- [Exact-age DAU](https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/aged_DAU_projections.py): `theseus_growth/aged_DAU_projections.py`
- [DNU extraction](https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/aged_DAU_projections.py): `theseus_growth/aged_DAU_projections.py`

### Analysis outputs

- [DAU totals](https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/cohort_projections.py): `theseus_growth/cohort_projections.py`
- [Combine projections](https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/cohort_projections.py): `theseus_growth/cohort_projections.py`
- [Charts](https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/graphs.py): `theseus_growth/graphs.py`
- [File export](https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/theseus_io.py): `theseus_growth/theseus_io.py`

### Other components

- **Analyst**
- [Theseus API](https://github.com/isarojpandit/theseus_growth/blob/master/theseus_growth/__init__.py): `theseus_growth/__init__.py`

## Connections

- Analyst → Theseus API: uses (evidence: `README.md`)
- Theseus API → Profile builder: builds profile (evidence: `theseus_growth/__init__.py`)
- Profile builder → Retention engine: fits and projects (evidence: `theseus_growth/__init__.py`)
- Retention engine → Curve functions: uses functions (evidence: `theseus_growth/retention_profile.py`)
- Theseus API → Cohort projection: projects cohorts (evidence: `theseus_growth/__init__.py`)
- Theseus API → At-least-age DAU: projects ages (evidence: `theseus_growth/__init__.py`)
- Theseus API → Exact-age DAU: projects exact ages (evidence: `theseus_growth/__init__.py`)
- Theseus API → DNU extraction: extracts DNU (evidence: `theseus_growth/__init__.py`)
- At-least-age DAU → Cohort projection: projects cohorts (evidence: `theseus_growth/aged_DAU_projections.py`)
- Exact-age DAU → Cohort projection: projects cohorts (evidence: `theseus_growth/aged_DAU_projections.py`)
- Theseus API → DAU totals: totals DAU (evidence: `theseus_growth/__init__.py`)
- Theseus API → Combine projections: combines totals (evidence: `theseus_growth/__init__.py`)
- Theseus API → Charts: plots results (evidence: `theseus_growth/__init__.py`)
- Theseus API → File export: exports data (evidence: `theseus_growth/__init__.py`)
