lucky_router
Version, currently 0.6.113 versions
- 0.6.1latestSep 16, 2025
- 0.6.0not indexedJan 23, 2026
- 0.5.2not indexedJan 23, 2026
- 0.5.1not indexedJan 23, 2026
- 0.5.0not indexedJan 23, 2026
- 0.4.2not indexedJan 23, 2026
- 0.4.1not indexedJan 23, 2026
- 0.4.0not indexedJan 23, 2026
- 0.3.1not indexedJan 23, 2026
- 0.3.0not indexedJan 23, 2026
- 0.2.2not indexedJan 23, 2026
- 0.2.1not indexedJan 23, 2026
- 0.2.0not indexedJan 23, 2026
github.com/luckyframework/lucky_router
The router for the Lucky framework, can be used outside Lucky
25 stars
4 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
lucky_router:
github: luckyframework/lucky_router
version: ~> 0.6.1Then run:
shards installshard.yml
- Crystal
>= 1.10.0- License
- MIT
- Author
- Paul Smith
- Target
benchmarkfrom src/benchmark.cr
Dependencies
Development Dependencies
- ameba~> 1.5.0github: crystal-ameba/amebadev
README
LuckyRouter
A library for routing HTTP request with Crystal
Installation
Add this to your application's shard.yml:
dependencies:
lucky_router:
github: luckyframework/lucky_router
Usage
require "lucky_router"
router = LuckyRouter::Matcher(Symbol).new
router.add("get", "/users", :index)
router.add("delete", "/users/:id", :delete)
router.match("get", "/users").payload # :index
router.match("get", "/users").params # {} of String => String
router.match("delete", "/users/1").payload # :delete
router.match("delete", "/users/1").params # {"id" => "1"}
router.match("get", "/missing_route").payload # nil
Contributing
- Fork it ( https://github.com/luckyframework/lucky_router/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Make your changes
- Run
./bin/testto run the specs, build shards, and check formatting - Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- paulcsmith Paul Smith - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.6.1- Tagged
- Sep 16, 2025
- Commit
8373c97913aa- Crystal
>= 1.10.0- Indexed
- yes
Dependents
Repository
github.com/luckyframework/lucky_router
Metadata
- Created
- Aug 12, 2026
- Updated
- Sep 24, 2026
- Synced
- Sep 24, 2026
- Versions
- 13