Not Yet Another Ruby Async web framework and server.
- Evented IO while API remains synchrony
- Prefork production server, mixing a bit blocking operations won't block other users
- Sinatra-like http method and scanf-like http path and path helper
- Request format matcher with just
case ... when
- Easy to stream the view with
Fiber.yield
Requirement
- BSD/Linux/Mac OS X
- Ruby 2.0.0 or higher
- GCC or Clang
Install
gem ins --pre nyara
Edit a file, name it nyahaha.rb
for example
require 'nyara'
get '/' do
send_string 'hello world'
end
And start server
ruby nyahaha.rb
- Nyara is not based on rack.
- Nyara is not compatible with eventmachine. It won't work if you add gems like em-synchrony.
BSD 3-Clause, see copying