# danielnrs/kelolacell architecture

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

## Overview

This repository is a Next.js starter scaffold named for a mobile-phone shop cashier, with navigation and role-permission definitions that suggest POS, repairs, inventory, reporting, and staff features. Those business workflows are not implemented in the sampled app: the home page is still the create-next-app welcome screen. The visible runtime is therefore limited to rendering that page in a shared layout, plus standalone navigation, permission, formatting, type, and Prisma-client utilities. Business capabilities and database behavior beyond these excerpts remain unverified.

Main entry points: [`src/app/page.tsx`](https://github.com/danielnrs/kelolacell/blob/main/src/app/page.tsx) (Welcome page), [`src/app/layout.tsx`](https://github.com/danielnrs/kelolacell/blob/main/src/app/layout.tsx) (Root layout), [`src/lib/prisma.ts`](https://github.com/danielnrs/kelolacell/blob/main/src/lib/prisma.ts) (Prisma client)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_visitor(("Visitor"))
node_home["Welcome page<br/>[page.tsx]"]
node_layout["Root layout<br/>[layout.tsx]"]
node_navigation["Role navigation<br/>[navigation.ts]"]
node_permissions["Permission rules<br/>[permissions.ts]"]
node_types["Shared types<br/>[index.ts]"]
node_utils["Formatting utilities<br/>[utils.ts]"]
node_prisma["Prisma client<br/>[prisma.ts]"]
node_postgres[("PostgreSQL")]

node_visitor -->|"opens app"| node_home
node_layout -->|"renders"| node_home
node_prisma -->|"connects to"| node_postgres

click node_home "https://github.com/danielnrs/kelolacell/blob/main/src/app/page.tsx"
click node_layout "https://github.com/danielnrs/kelolacell/blob/main/src/app/layout.tsx"
click node_navigation "https://github.com/danielnrs/kelolacell/blob/main/src/lib/navigation.ts"
click node_permissions "https://github.com/danielnrs/kelolacell/blob/main/src/lib/permissions.ts"
click node_types "https://github.com/danielnrs/kelolacell/blob/main/src/types/index.ts"
click node_utils "https://github.com/danielnrs/kelolacell/blob/main/src/lib/utils.ts"
click node_prisma "https://github.com/danielnrs/kelolacell/blob/main/src/lib/prisma.ts"

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_visitor toneIndigo
class node_home,node_layout,node_navigation,node_permissions,node_types,node_utils toneTeal
class node_prisma toneBlue
class node_postgres toneAmber
```

## Components

### Other components

- **Visitor**
- [Welcome page](https://github.com/danielnrs/kelolacell/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Root layout](https://github.com/danielnrs/kelolacell/blob/main/src/app/layout.tsx): `src/app/layout.tsx`
- [Role navigation](https://github.com/danielnrs/kelolacell/blob/main/src/lib/navigation.ts): `src/lib/navigation.ts`
- [Permission rules](https://github.com/danielnrs/kelolacell/blob/main/src/lib/permissions.ts): `src/lib/permissions.ts`
- [Shared types](https://github.com/danielnrs/kelolacell/blob/main/src/types/index.ts): `src/types/index.ts`
- [Formatting utilities](https://github.com/danielnrs/kelolacell/blob/main/src/lib/utils.ts): `src/lib/utils.ts`
- [Prisma client](https://github.com/danielnrs/kelolacell/blob/main/src/lib/prisma.ts): `src/lib/prisma.ts`
- **PostgreSQL**

## Connections

- Visitor → Welcome page: opens app (evidence: `README.md`)
- Root layout → Welcome page: renders (evidence: `README.md`)
- Prisma client → PostgreSQL: connects to (evidence: `src/lib/prisma.ts`)
