# dechp796/corelanggen architecture

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

- Interactive diagram: https://gitdiagram.com/dechp796/corelanggen
- Repository: https://github.com/dechp796/corelanggen

## Overview

The repository is named coreLangGen, but its README and sampled files do not describe a language-generation workflow. The only confirmed runtime behavior is admin PIN verification against a Firestore-stored hash, with an in-memory unlocked flag. The contents of index.html and any UI-to-verifier wiring were not sampled, so that connection is omitted.

Main entry points: [`auth-service.js`](https://github.com/dechp796/corelanggen/blob/main/auth-service.js) (PIN verifier), [`firebase-config.js`](https://github.com/dechp796/corelanggen/blob/main/firebase-config.js) (Firebase config)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_caller(("Caller"))
node_verifier["PIN verifier<br/>[auth-service.js]"]
node_status["Admin status<br/>[auth-service.js]"]
node_crypto["Web Crypto"]
node_config["Firebase config<br/>[firebase-config.js]"]
node_firestore[("Firestore")]
node_firebaseauth["Firebase Auth"]

node_verifier -->|"hashes PIN"| node_crypto
node_verifier -->|"reads PIN hash"| node_firestore
node_verifier -->|"sets unlock flag"| node_status
node_status -->|"reads unlock flag"| node_verifier
node_config -->|"creates client"| node_firestore
node_config -->|"creates client"| node_firebaseauth

click node_verifier "https://github.com/dechp796/corelanggen/blob/main/auth-service.js"
click node_status "https://github.com/dechp796/corelanggen/blob/main/auth-service.js"
click node_config "https://github.com/dechp796/corelanggen/blob/main/firebase-config.js"

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_caller,node_crypto,node_firebaseauth toneIndigo
class node_verifier,node_status,node_config toneTeal
class node_firestore toneAmber
```

## Components

### Other components

- **Caller**
- [PIN verifier](https://github.com/dechp796/corelanggen/blob/main/auth-service.js): `auth-service.js`
- [Admin status](https://github.com/dechp796/corelanggen/blob/main/auth-service.js): `auth-service.js`
- **Web Crypto**
- [Firebase config](https://github.com/dechp796/corelanggen/blob/main/firebase-config.js): `firebase-config.js`
- **Firestore**
- **Firebase Auth**

## Connections

- PIN verifier → Web Crypto: hashes PIN
- PIN verifier → Firestore: reads PIN hash
- PIN verifier → Admin status: sets unlock flag
- Admin status → PIN verifier: reads unlock flag
- Firebase config → Firestore: creates client
- Firebase config → Firebase Auth: creates client
