How stasync/keel-dotnet works
Keel is a set of base libraries: reliable UDP messaging, dependency injection with scoped object construction and events, and reusable utilities. The main workflows are application code using the client/server Update loop or configuring a binder and resolving services; serialization, UDP transport, factories, injection, and event dispatch are internal layers. Networking and dependency injection both depend on Utils as documented. Some capabilities are documented but their implementation was not sampled, so those links are shown only where evidence supports them.
Main entry points: Scope.cs Scopes and resolution · UdpProtocol.cs Delivery protocol · Broadcaster.cs Event broadcaster · Logger.cs Logging
Components 25
UDP networking
- Reliable client
networking/Udp/ReliableUdpClient.cs - Reliable server
networking/Udp/ReliableUdpServer.cs - Delivery protocol
networking/Udp/LowLevel/UdpProtocol.cs - UDP transport
networking/Udp/LowLevel/UdpTransport.cs - Message serialization
networking/NetWriter.cs - Message reading
networking/NetReader.cs - Packet simulators
networking/Udp/LowLevel/IncomingPacketSimulator.cs - Transfer layers
networking/Udp/LowLevel/DataTransferLayer.cs
Dependency injection
- Scope binder
dependency_injection/ScopeBinder.cs - Dependency map
dependency_injection/ScopeDependencyMap.cs - Root scope
dependency_injection/RootScope.cs - Scopes and resolution
dependency_injection/Scope.cs - Instance factories
dependency_injection/Factories/InstanceFactory.cs - Injection targets
dependency_injection/Internal/InjectionTargetsCache.cs - Cycle detection
dependency_injection/Diagnostics/CircularDependencyDetector.cs - Event broadcaster
dependency_injection/Events/Broadcaster.cs - Listener discovery
dependency_injection/Events/Internal/EventListenerMethodCache.cs
Utilities
- Logging
utils/Debug/Logger.cs - Queued log worker
utils/Debug/LogWorker.cs - Background workers
utils/Threading/Worker.cs - Launch arguments
utils/LaunchArguments.cs - Encryption utilities
utils/Security/EncryptionUtility.cs - Domain helpers
utils/DomainUtils.cs
Other components
- Application
- UDP peer
Connections 29
- Application → Reliable client: connects and updates
- Application → Reliable server: updates and handles
- Reliable client → Delivery protocol: delegates delivery
networking/Udp/ReliableUdpClient.cs - Reliable server → Delivery protocol: uses protocol
- Delivery protocol → UDP transport: sends datagrams
networking/Udp/LowLevel/UdpProtocol.cs - Delivery protocol → Packet simulators: registers simulators
networking/Udp/LowLevel/UdpProtocol.cs - Delivery protocol → Transfer layers: registers layers
networking/Udp/LowLevel/UdpProtocol.cs - UDP peer → UDP transport: exchanges datagrams
- Application → Message serialization: packs messages
- Message serialization → Message reading: paired decoding
networking/NetReader.cs - Application → Message reading: reads messages
- Application → Scope binder: configures bindings
- Scope binder → Dependency map: builds map
dependency_injection/ScopeBinder.cs - Application → Root scope: creates scope
- Root scope → Scopes and resolution: initializes scope
dependency_injection/RootScope.cs - Scopes and resolution → Dependency map: resolves from
dependency_injection/Scope.cs - Scopes and resolution → Instance factories: produces instances
- Scopes and resolution → Injection targets: finds injection targets
dependency_injection/Scope.cs - Scopes and resolution → Cycle detection: validates dependencies
dependency_injection/Scope.cs - Scopes and resolution → Event broadcaster: supports event service
- Event broadcaster → Listener discovery: discovers listeners
dependency_injection/Events/Broadcaster.cs - Application → Event broadcaster: broadcasts events
- Queued log worker → Background workers: runs on
utils/Debug/LogWorker.cs - Queued log worker → Logging: logs output
- Application → Logging: writes logs
utils/Debug/Logger.cs - Application → Launch arguments: reads settings
- Application → Encryption utilities: uses encryption
- Application → Background workers: runs background work
- Logging → Domain helpers: utility dependency