# 2teez/learn-nim architecture

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

- Interactive diagram: https://gitdiagram.com/2teez/learn-nim
- Repository: https://github.com/2teez/learn-nim

## Overview

This repository is a Nim learning project, intended to teach programming concepts and support learning about compilers and interpreters. Its visible progression includes introductory examples, type and function lessons, and a ChatApp example. The README does not describe a specific execution workflow, and no source excerpts were provided, so relationships between these components cannot be verified and are not shown.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_intro["Introduction"]
  node_fp["FP Example<br/>[fp.nim]"]
  node_hello["Hello Example<br/>[hello.nim]"]
  node_types["Types Example<br/>[types.nim]"]
end

subgraph group_concepts["Language Concepts"]
  node_collect_types["Collect Types<br/>[collectTypes.nim]"]
  node_functions["Functions<br/>[func.nim]"]
  node_user_types["User Types<br/>[userTypes.nim]"]
end

subgraph group_chat["ChatApp"]
  node_chat_client["Chat Client<br/>[client.nim]"]
  node_chat_entry["Chat Entry<br/>[main.nim]"]
  node_chat_protocol["Chat Protocol<br/>[protocol.nim]"]
  node_chat_server["Chat Server<br/>[server.nim]"]
end

click node_fp "https://github.com/2teez/learn-nim/blob/main/ch00/fp.nim"
click node_hello "https://github.com/2teez/learn-nim/blob/main/ch00/hello.nim"
click node_types "https://github.com/2teez/learn-nim/blob/main/ch00/types.nim"
click node_collect_types "https://github.com/2teez/learn-nim/blob/main/ch01/collectTypes.nim"
click node_functions "https://github.com/2teez/learn-nim/blob/main/ch01/func.nim"
click node_user_types "https://github.com/2teez/learn-nim/blob/main/ch01/userTypes.nim"
click node_chat_client "https://github.com/2teez/learn-nim/blob/main/ch02/ChatApp/src/client.nim"
click node_chat_entry "https://github.com/2teez/learn-nim/blob/main/ch02/ChatApp/src/main.nim"
click node_chat_protocol "https://github.com/2teez/learn-nim/blob/main/ch02/ChatApp/src/protocol.nim"
click node_chat_server "https://github.com/2teez/learn-nim/blob/main/ch02/ChatApp/src/server.nim"

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_fp,node_hello,node_types toneBlue
class node_collect_types,node_functions,node_user_types toneAmber
class node_chat_client,node_chat_entry,node_chat_protocol,node_chat_server toneMint
```

## Components

### Introduction

- [FP Example](https://github.com/2teez/learn-nim/blob/main/ch00/fp.nim): `ch00/fp.nim`
- [Hello Example](https://github.com/2teez/learn-nim/blob/main/ch00/hello.nim): `ch00/hello.nim`
- [Types Example](https://github.com/2teez/learn-nim/blob/main/ch00/types.nim): `ch00/types.nim`

### Language Concepts

- [Collect Types](https://github.com/2teez/learn-nim/blob/main/ch01/collectTypes.nim): `ch01/collectTypes.nim`
- [Functions](https://github.com/2teez/learn-nim/blob/main/ch01/func.nim): `ch01/func.nim`
- [User Types](https://github.com/2teez/learn-nim/blob/main/ch01/userTypes.nim): `ch01/userTypes.nim`

### ChatApp

- [Chat Client](https://github.com/2teez/learn-nim/blob/main/ch02/ChatApp/src/client.nim): `ch02/ChatApp/src/client.nim`
- [Chat Entry](https://github.com/2teez/learn-nim/blob/main/ch02/ChatApp/src/main.nim): `ch02/ChatApp/src/main.nim`
- [Chat Protocol](https://github.com/2teez/learn-nim/blob/main/ch02/ChatApp/src/protocol.nim): `ch02/ChatApp/src/protocol.nim`
- [Chat Server](https://github.com/2teez/learn-nim/blob/main/ch02/ChatApp/src/server.nim): `ch02/ChatApp/src/server.nim`
