#4141st of 110 in Backend and cloud templates
kemal
Sinatra-style web framework for Crystal with routing, WebSockets and JSON
- Stars
- 3.9k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Oct 2026
- Language
- Crystal
3,839 on 26 Apr 20263,934 on 22 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Kemal is a web framework for the Crystal language with a Sinatra-like routing DSL covering all HTTP verbs, including QUERY. It includes WebSocket routes, ECR templates, static file serving and composable middleware, and compiles to a single native binary. It does not impose an ORM or project layout; sessions come from the separate kemal-session shard.
Who it is for: Crystal developers building HTTP APIs, WebSocket services or small web apps
Strengths
- Built-in WebSocket routes and ECR templates, no extra shards needed
- Compiles to a single native binary (~2 MB per README)
- No forced ORM or layout; works with any Crystal database library
- Returns 405 with an Allow header for wrong-method requests, per RFC 9110
Weaknesses
- Crystal only; requires Crystal 1.19+ and a compile step
- Sessions need the separate kemal-session shard
- General web framework with no LLM or model integration included
- README benchmark figures are self-reported, with no methodology given
What it needs
- Crystal
- Needs Crystal 1.19+
What changed
- v1.15.0 ↗ (opens in a new tab)Security fix
GHSA-X97G-6H7H-Q9W6, GHSA-89XC-29WG-6MM5, GHSA-GVHF-4V24-F8R5. “(SECURITY) Never route a request-target that does not start with /, and refuse a malformed one (GHSA-x97g-6h7h-q9w6). The route key is the method followed by the path with nothing in between, so the …”
- v1.13.0 ↗ (opens in a new tab)Security fix
GHSA-JF9Q-62H3-924J, CVE-2011-3192. “(SECURITY) Run the GET filters for HEAD requests served by the GET route (GHSA-jf9q-62h3-924j). Kemal serves a HEAD request with the GET route when no explicit HEAD route exists, but Kemal::FilterHan…”
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in Backend and cloud templates
See all 110| Rank | Project | Score |
|---|---|---|
| #39 | functions-samplesOfficial Cloud Functions for Firebase samples for each trigger type and use case | 73 out of 100 |
| #40 | humaGo framework for REST/RPC APIs built from typed handlers and OpenAPI 3.1 | 73 out of 100 |
| #42 | api-platform/corePHP library for building hypermedia REST and GraphQL APIs on Symfony | 73 out of 100 |
| #43 | cloud-foundation-fabricTerraform modules and landing-zone blueprints for Google Cloud organizations | 72 out of 100 |
| #44 | litestarTyped Python ASGI framework for building APIs with OpenAPI generation | 71 out of 100 |