talira

Rails-like framework for API-only Ruby apps that compiles to one native binary

open sourceMITfree

A web framework for API-only Ruby apps that keeps Rails' conventions (routes, controllers, migrations, forms, mailers and jobs in the Rails layout) and compiles the app, the framework and the HTTP server into one native binary, so the server runs without a Ruby runtime, Bundler or gems. Without Ruby's GVL one process serves requests on every core; its own benchmark shows about 3 times the throughput of Rails in cluster mode with a fraction of the memory. It drops the view layer, Active Record and gem compatibility: models are plain classes over tables with readable SQL, and Rails stays the better fit for server-rendered pages. MIT licensed, with a stable 1.x API.

Problems it solves

  • ship a Ruby API as a single binary without installing Ruby on the server
  • Rails conventions for a JSON API but with much lower memory use
  • make my Ruby API use every CPU core in one process

Features

  • Rails conventions for routes, controllers, migrations, mailers and jobs
  • compiles the app into one native binary with no Ruby runtime
  • one process uses every core (no GVL)
  • plain model classes over tables with readable SQL
  • snails new generator and test runner

Alternatives

The same job

These do what Snails does.

  1. Grape REST-like API framework for Ruby

Compare Snails with the top 3