English
Architecture
The internals of ours: what the binary consists of, how modules describe themselves, how a running instance is built from YAML and how it is reloaded.
The big picture
- Layers —
libs/,ours-api,ours-kernel,modules/,app/and the dependency rules between them. - Data path — from an accepted connection to an outgoing one.
- Building the binary — features, the module list, checks of what goes into a build.
- Known architectural debt — where the design diverges from the description, why it is so for now and when to redo it.
Kernel
- Kernel — the component graph, the plan, the instance, reload, units and services.
Module contract
- Contract —
Module,Provide, points and extensions, services,requires.
Configuration
- Configuration — the loader, sections, entities, blocks, references, checks, schema, errors.
Modules
- Modules — one file per module: what it opens and claims, what it requires, under which feature.
Libraries and auxiliary crates
- Libraries
libs/— reusable parts with no knowledge of proxying. - Auxiliary crates
crates/— neither modules nor libraries.
Development
- How to add — a protocol, a transport, a rule condition, a section.
- Checks — tests, layers, features, E2E, interop, benchmarks; where to start — Running the tests from scratch.
Compatibility
- Differences from sing-box and Xray — what is not done, done partially or differently.