crails-examples
CRails Examples
⚠️ EXPERIMENTAL FRAMEWORK, DO NOT USE IN PRODUCTION YET.
Example applications for CRails — the Ruby on Rails port on Crystal. Each example is autonomous: it declares its framework shards in its own shard.yml and resolves them from GitHub tags via shards install.
Examples
| Example | What it is |
|---|---|
demo/ |
Full-stack demo app: mini-blog with accounts, validations, flash banners, chat with an SSE bot, Turbo Streams, and LiveView-style reactive views |
hello_world/ |
The minimal app produced by crails new — baseline "Hello" page, first stop of the framework |
rails_hello/ |
1:1 mirror of the Rails 8.1.1 reference app; one HTTP harness runs against both and both must pass the same oracle expectations |
Technologies used
- Crystal >= 1.21
- Framework shards (each in its own OrelSokolov repo):
railties_cr— thecrailsCLI, generators, app glueactive_record_cr— ORM, migrations, SQLite/PG adaptersaction_pack_cr,action_view_cr,erb_cr— controllers, routing, ERB viewsaction_cable_cr— WebSocketsturbo_cr— Hotwire Turbo Streamslive_view_cr— LiveView-style reactive viewsdevise_cr— authentication (sessions, password digest)importmap_cr,propshaft_cr— JS/CSS assets without a bundleractive_job_cr,kiq_cr— background jobs (see the main repo's benches)
Running an example
cd demo
shards install
bin/crails server # build + run, http://localhost:3000
Relation to the main repo
This repository is embedded in OrelSokolov/crails as the examples/ submodule pinned to master. Benchmarks and Rails reference apps live in the main repo under bench/.
Repository
crails-examples
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- about 4 hours ago
- November 4, 2026
License
Links
Synced at
Wed, 04 Nov 2026 09:41:24 GMT
Languages