---
title: "Deploy Kilnx"
description: "Build full-stack apps with 27 keywords. SQL, SQLite, htmx, one binary."
category: "Starters"
url: https://railway.com/deploy/kilnx
---

# Deploy Kilnx

Build full-stack apps with 27 keywords. SQL, SQLite, htmx, one binary.

**[Deploy Kilnx on Railway](https://railway.com/template/kilnx)**

- **Creator:** André Ahlert
- **Category:** Starters

## Template content

### kilnx https://raw.githubusercontent.com/kilnx-org/railway-template/main/kilnx-icon.svg

- **Source:** https://github.com/kilnx-org/railway-template
- **Health check:** /healthz
- **Public domain:** Yes

## Documentation

# Deploy and Host Kilnx on Railway

Kilnx is a declarative backend language that compiles to a single binary. You write models, routes, SQL queries, and auth in a `.kilnx` file. The compiler generates a standalone executable with an embedded HTTP server, SQLite database, and htmx. 27 keywords cover everything from CRUD to WebSockets.

## About Hosting Kilnx

Deploying Kilnx on Railway requires no runtime, no package manager, and no external database. 

The template uses a pre-built Docker image (`ghcr.io/kilnx-org/kilnx`) to compile your `.kilnx` file into a standalone binary during the build phase. The resulting container runs a single executable that serves your app, manages its own SQLite database, and handles authentication, CSRF, and session management out of the box. Push changes to your GitHub repo and Railway rebuilds automatically in under 30 seconds.

## Common Use Cases

- Internal tools, admin panels, and dashboards with auth and role-based access
- CRUD web apps with server-rendered HTML, inline htmx interactions, and SQLite persistence
- REST/JSON APIs with rate limiting, pagination, and webhook receivers

## Dependencies for Kilnx Hosting

- Pre-built Kilnx CLI Docker image (pulled automatically during build)
- Railway Volume mounted at `/data` for persistent SQLite storage across deploys

### Deployment Dependencies

- [Kilnx language repo](https://github.com/kilnx-org/kilnx)
- [Grammar reference](https://github.com/kilnx-org/kilnx/blob/main/GRAMMAR.md)
- [Feature list](https://github.com/kilnx-org/kilnx/blob/main/FEATURES.md)
- [Example apps](https://github.com/kilnx-org/examples)

### Implementation Details

The Dockerfile compiles your app at build time using the published Kilnx image:

  ```dockerfile
  FROM ghcr.io/kilnx-org/kilnx:1.0.1 AS builder
  COPY app.kilnx /kilnx/app.kilnx
  RUN kilnx build app.kilnx -o /app/server

  FROM alpine:3.21
  COPY --from=builder /app/server /usr/local/bin/server
  CMD ["server"]
  ```

The app reads PORT from Railway automatically. SQLite data is stored in /data/. A health check endpoint is available at /healthz.

## Why Deploy Kilnx on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Kilnx on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [caring-vibrancy](https://railway.com/deploy/caring-vibrancy) — Deploy and Host caring-vibrancy with Railway
- [Appsmith](https://railway.com/deploy/appsmith-1) — Low-code platform for internal tools, dashboards, and admin panels.

Open this page in a browser: https://railway.com/deploy/kilnx
