# durgaprasadt235-hash/house-of-threads architecture

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

- Interactive diagram: https://gitdiagram.com/durgaprasadt235-hash/house-of-threads
- Repository: https://github.com/durgaprasadt235-hash/house-of-threads

## Overview

House of Threads is currently a Next.js landing page and shared PostgreSQL/Prisma foundation for two brands. The present user journey ends at the home page; storefront, account, checkout, administration, and loyalty capabilities are explicitly planned, not implemented. The diagram separates those planned domain areas from the running app and data foundation. Their shared services directory is shown only as a documented future location; source excerpts do not establish runtime connections to it.

Main entry points: [`src/app/page.tsx`](https://github.com/durgaprasadt235-hash/house-of-threads/blob/main/src/app/page.tsx) (Brand landing page), [`prisma/schema.prisma`](https://github.com/durgaprasadt235-hash/house-of-threads/blob/main/prisma/schema.prisma) (PostgreSQL database), [`src/app/layout.tsx`](https://github.com/durgaprasadt235-hash/house-of-threads/blob/main/src/app/layout.tsx) (App layout), [`src/lib/db.ts`](https://github.com/durgaprasadt235-hash/house-of-threads/blob/main/src/lib/db.ts) (Prisma client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Web application"]
  node_home["Brand landing page<br/>[page.tsx]"]
  node_shell["App layout<br/>[layout.tsx]"]
end

subgraph group_data["Data foundation"]
  node_dbclient["Prisma client<br/>[db.ts]"]
  node_database[("PostgreSQL database<br/>[schema.prisma]")]
  node_brandseed["Brand seed<br/>[seed.ts]"]
end

subgraph group_planned["Planned commerce"]
  node_storefront["Storefront discovery"]
  node_accounts["Customer accounts"]
  node_checkout["Cart and checkout"]
  node_operations["Admin and inventory"]
  node_loyalty["Puzzle and rewards"]
  node_mediaemail["Media and email"]
end

node_shopper(("Site visitor"))

node_shopper -->|"visits"| node_home
node_shell -->|"renders"| node_home
node_brandseed -->|"upserts brands"| node_database
node_dbclient -.->|"connects to"| node_database

click node_home "https://github.com/durgaprasadt235-hash/house-of-threads/blob/main/src/app/page.tsx"
click node_shell "https://github.com/durgaprasadt235-hash/house-of-threads/blob/main/src/app/layout.tsx"
click node_dbclient "https://github.com/durgaprasadt235-hash/house-of-threads/blob/main/src/lib/db.ts"
click node_database "https://github.com/durgaprasadt235-hash/house-of-threads/blob/main/prisma/schema.prisma"
click node_brandseed "https://github.com/durgaprasadt235-hash/house-of-threads/blob/main/prisma/seed.ts"
click node_storefront "https://github.com/durgaprasadt235-hash/house-of-threads/tree/main/src/services"
click node_accounts "https://github.com/durgaprasadt235-hash/house-of-threads/tree/main/src/services"
click node_checkout "https://github.com/durgaprasadt235-hash/house-of-threads/tree/main/src/services"
click node_operations "https://github.com/durgaprasadt235-hash/house-of-threads/tree/main/src/services"
click node_loyalty "https://github.com/durgaprasadt235-hash/house-of-threads/tree/main/src/services"
click node_mediaemail "https://github.com/durgaprasadt235-hash/house-of-threads/tree/main/src/services"

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_home,node_shell toneBlue
class node_dbclient,node_database,node_brandseed toneAmber
class node_storefront,node_accounts,node_checkout,node_operations,node_loyalty,node_mediaemail toneMint
class node_shopper toneIndigo
```

## Components

### Web application

- [Brand landing page](https://github.com/durgaprasadt235-hash/house-of-threads/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [App layout](https://github.com/durgaprasadt235-hash/house-of-threads/blob/main/src/app/layout.tsx): `src/app/layout.tsx`

### Data foundation

- [Prisma client](https://github.com/durgaprasadt235-hash/house-of-threads/blob/main/src/lib/db.ts): `src/lib/db.ts`
- [PostgreSQL database](https://github.com/durgaprasadt235-hash/house-of-threads/blob/main/prisma/schema.prisma): `prisma/schema.prisma`
- [Brand seed](https://github.com/durgaprasadt235-hash/house-of-threads/blob/main/prisma/seed.ts): `prisma/seed.ts`

### Planned commerce

- [Storefront discovery](https://github.com/durgaprasadt235-hash/house-of-threads/tree/main/src/services): `src/services`
- [Customer accounts](https://github.com/durgaprasadt235-hash/house-of-threads/tree/main/src/services): `src/services`
- [Cart and checkout](https://github.com/durgaprasadt235-hash/house-of-threads/tree/main/src/services): `src/services`
- [Admin and inventory](https://github.com/durgaprasadt235-hash/house-of-threads/tree/main/src/services): `src/services`
- [Puzzle and rewards](https://github.com/durgaprasadt235-hash/house-of-threads/tree/main/src/services): `src/services`
- [Media and email](https://github.com/durgaprasadt235-hash/house-of-threads/tree/main/src/services): `src/services`

### Other components

- **Site visitor**

## Connections

- Site visitor → Brand landing page: visits (evidence: `README.md`)
- App layout → Brand landing page: renders (evidence: `src/app/layout.tsx`)
- Brand seed → PostgreSQL database: upserts brands (evidence: `prisma/seed.ts`)
- Prisma client → PostgreSQL database: connects to
