# Korr internals

This is the developer documentation: how Korr is built, how a program travels
from text to running code, and how every part of the ecosystem fits together. It
is written for people who want to learn how a programming language works, review
Korr's design, or change it.

You do not need this to *use* Korr; that is what the [user guide](../en/README.md)
is for. You should know some Rust to follow the code links.

| Page | Covers |
|---|---|
| [1. Architecture](01-architecture.md) | The big picture: components, source tree, design rules, the ecosystem around the binary |
| [2. From source to execution](02-pipeline.md) | What happens when you run `korr main.krr`: lexer, parser, resolver, compiler, virtual machine |
| [3. Values and memory](03-values-and-memory.md) | How values are represented, reference counting, why the VM is written the way it is |
| [4. The standard library](04-standard-library.md) | Native functions and modules, and how to add one |
| [5. The web server](05-web-server.md) | Request lifecycle, routing, sessions, CSRF, uploads, limits |
| [6. Databases](06-databases.md) | Drivers, placeholders, value mapping, transactions, migrations |
| [7. Tooling](07-tooling.md) | `korr build` bundles, the package manager, `korr setup`, installers, editor support |
| [8. Testing and quality](08-testing-and-quality.md) | Test layers, CI, benchmarks, formatting and lint rules |
| [9. Releases and versioning](09-releases.md) | Version numbers, codenames, the release pipeline |

A good first read is pages 1 and 2, then the page for the part you want to change.
How to send a change is in [CONTRIBUTING.md](../../CONTRIBUTING.md).
