Kilnx documentation
Kilnx is a declarative backend language that compiles
.kilnx source to a single standalone binary. Models,
routes, SQL, auth, jobs, WebSockets, SSE, and tests live in one file.
SQLite and PostgreSQL are first-class.
- Zero JavaScript, zero runtime dependencies for the user
- ~15MB self-contained binary
- Built for the htmx era
Start here
Guides
Reference
Tutorials
Minimal example
config
database: env DATABASE_URL default "sqlite://app.db"
port: env PORT default 8080
secret: env SECRET_KEY required
model user
name: text required min 2 max 100
email: email unique
password: password required
created: timestamp auto
auth
table: user
identity: email
password: password
login: /login
after login: /dashboard
page /dashboard requires auth
query stats: SELECT count(*) as total FROM user
html
<h1>Welcome, {current_user.name}</h1>
<p>Total users: {stats.total}</p>
One file. kilnx run app.kilnx starts a dev server with
hot reload. kilnx build emits a standalone binary.