Silth
Silth
Forged in the dark. Built to last.
A dark, elegant, batteries-included MVC web framework for Crystal — with zero third-party dependencies.
Silth.routes do
get "/", HomeController, :index
resources "posts", PostsController
live "/search", SearchComponent
end
class Post < ApplicationModel
primary_key
column title : String
column embedding : Array(Float32)?
belongs_to author : User
validates title, presence: true
end
Post.search([:title, :body], "crystal").includes(:author).paginate(1)
Post.nearest(:embedding, query_vector).limit(5)
The monorepo
| Folder | Content |
|---|---|
framework/ |
the silth shard and the silth CLI |
website/ |
silth.dev — landing page (EN/FR) and documentation, built with Silth itself |
docs/ |
Markdown documentation (also served as llms.txt / llms-full.txt) |
skills/ |
agent skills for Claude Code (application development and framework contribution) |
docker/ |
official Docker images (builder, runtime) published to GHCR |
docker-compose.yml |
PostgreSQL + pgvector, MariaDB, MySQL 8.4, Redis, Mailpit, MinIO, Jaeger for development |
What's inside
Routing · middleware · controllers · ECR templates with auto-escaping · components · live components (WebSocket, DOM morphing) · assets without a build step · ORM & query builder · native drivers for PostgreSQL, MariaDB/MySQL and SQLite · migrations, seeders, factories, pagination · pgvector & full-text search · authentication (sessions, tokens, JWT, TOTP) · policies & gates · CSRF, CSP nonces, rate limiting, encryption, signed URLs · cache (memory/file/db/Redis) · events · queues (sync/memory/db/Redis) · scheduler · mail (SMTP built in) · notifications · storage (local/S3 with SigV4) · i18n · concurrency helpers · HTTP client · channels & presence · workflows (state machines) · Stripe billing · OpenAPI docs · profiler & debug toolbar · OpenTelemetry (OTLP) · structured logging · CLI, generators & scaffolds · testing (in-process HTTP, fakes, browser tests) · dev server with live reload · static export.
Quick start
brew install crystal
cd framework && shards build silth --release && cp bin/silth /usr/local/bin/
silth new blog && cd blog && shards install
silth g scaffold Post title:string 'body:text?'
silth db:migrate && silth serve # http://localhost:3000 · profiler: /_silth/profiler
Development
docker compose up -d
cd framework && crystal spec # SQLite
SILTH_TEST_DATABASE_URL=postgres://silth:silth@127.0.0.1:55432/silth_test crystal spec
SILTH_TEST_DATABASE_URL=mysql://silth:silth@127.0.0.1:53306/silth_test crystal spec
SILTH_TEST_DATABASE_URL=mysql://silth:silth@127.0.0.1:53307/silth_test \
SILTH_TEST_MYSQL_ADMIN_URL=mysql://root:silth@127.0.0.1:53307/silth_test crystal spec # MySQL 8 + auth specs
cd ../website && ../framework/bin/silth serve # the website, with live reload
See ROADMAP.md for what comes next (deployment, metrics, admin panel).
License
MIT
Silth
- 0
- 0
- 0
- 0
- 0
- about 4 hours ago
- November 24, 2026
MIT License
Wed, 25 Nov 2026 11:32:43 GMT