Guide
Version
This documentation covers Neton 1.0.0 (Kotlin 2.4.20 / KSP 2.3.12), released on October 29, 2026. See the release notes for the supported scope and migration guidance. Where the documentation and the code disagree, the compilable examples under neton/examples/ and the framework sources are authoritative.
Welcome to the Neton Framework guide.
Neton Framework is a Kotlin/Native backend application framework for APIs, services and business systems. It brings routing, dependency injection, configuration, data access and security together, with compile-time assembly and native deployment without a JVM.
Use Framework directly to develop a service, or build on Neton Application to reuse business modules and a modular administration frontend. Understand the two layers. Underlying protocol libraries are documented separately in the technical architecture and ecosystem.
Contents
Getting started
- Quick start — build and run your first Neton application
- What Neton gives you — the built-in component set, what is left to the platform, and why that keeps it fast
- Project structure — module layout, directory conventions and config files
Core features
- Routing and controllers — controller annotations, HTTP methods, route groups, DSL routes
- Parameter binding — inference by convention, plus path / query / body / header / cookie binding
- Configuration — TOML files, environment overrides, the
@NetonConfigSPI - Logging — structured logs, sink routing, asynchronous writes, trace context
Security
- Security guide — the Authenticator + Guard architecture, JWT authentication,
@RequireAuth/@AllowAnonymous
Data and caching
- Database — the entity + table model, the type-safe query DSL, the logic layer
- Cache — two-tier L1 + L2 caching,
@Cacheable/@CachePut/@CacheEvict - Redis and distributed locks — the Redis client and the
@Lockannotation - Domain events — decoupling modules with the event bus;
SYNC/BEST_EFFORT/RETRYABLE
Advanced
- Middleware — the request pipeline and custom middleware
- Deployment and targets — release builds and cross-platform compilation
- Toolchain known issues — known build noise from Kotlin/Native, KSP and Gradle