Ruby API

Open-source Ruby projects categorized as API

Top 23 Ruby API Projects

  • GitHub repo Grape

    An opinionated framework for creating REST-like APIs in Ruby.

    Project mention: 26 most popular Ruby/Rails repositories on GitHub in July-August 2020 | dev.to | 2020-09-05

    Grape is a REST-like API framework for Ruby. It’s designed to run on Rack or complement existing web application frameworks such as Rails and Sinatra by providing a simple DSL to easily develop RESTful APIs. 9,200 stars by now

  • GitHub repo Hanami

    The web, with simplicity.

    Project mention: A sustainable architecture for Ruby on Rails | reddit.com/r/ruby | 2021-02-25

    Very Clean Architecture inspired. The result is similar to https://hanamirb.org/

  • GitHub repo Devise Token Auth

    Token based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth.

    Project mention: Devise, The Swiss Army Knife of Rails User Authentication. | dev.to | 2021-02-04

    As a side note, also check out devise_token_auth here

  • GitHub repo flipper

    :dolphin: Beautiful, performant feature flags for Ruby.

  • GitHub repo DuckRails

    Development tool to mock API endpoints quickly and easily (docker image available)

  • GitHub repo rspec_api_documentation

    Automatically generate API documentation from RSpec

  • GitHub repo tesla-api

    🚘 A Ruby gem and unofficial documentation of Tesla's JSON API for the Model S, 3, X, and Y.

    Project mention: Thoughts on renting out your Tesla? | reddit.com/r/teslamotors | 2021-04-04
  • GitHub repo grape-swagger

    Add OAPI/swagger v2.0 compliant documentation to your grape API

  • GitHub repo versionist

    A plugin for versioning Rails based RESTful APIs.

  • GitHub repo Version Cake

    :cake: Version Cake is an unobtrusive way to version APIs in your Rails or Rack apps

  • GitHub repo Spyke

    Interact with REST services in an ActiveRecord-like manner

  • GitHub repo rack-app

    minimalist framework for building rack applications

  • GitHub repo feedirss-api

    RSS as RESTful. This service allows you to transform RSS feed into an awesome API.

    Project mention: RSS as RESTful API | reddit.com/r/coolgithubprojects | 2021-01-22
  • GitHub repo api_struct

    API wrapper builder with response serialization

  • GitHub repo datoji

    A tiny JSON storage service. Create, Read, Update, Delete and Search JSON data.

    Project mention: Show HN: DatoJi – The cleanest and simplest JSON storage service ever made | news.ycombinator.com | 2021-02-18
  • GitHub repo Flexirest

    Flexirest - The really flexible REST API client for Ruby

  • GitHub repo JSONAPI::Utils

    Build JSON API-compliant APIs on Rails with no (or less) learning curve.

  • GitHub repo api_guard

    JWT authentication solution for Rails APIs

    Project mention: What do you use for user authentication on an API only app? | reddit.com/r/rails | 2021-02-03

    https://github.com/Gokul595/api_guard is a nice little gem for API auth using JWTs. Most of it is honestly not that hard to implement yourself though

  • GitHub repo jsonapi.rb

    Lightweight, simple and maintained JSON:API support for your next Ruby HTTP API.

    Project mention: What is it like to work with Rails 6 in 2021? | reddit.com/r/rails | 2021-01-22

    - https://github.com/stas/jsonapi.rb

  • GitHub repo Pragma

    An expressive, opinionated ecosystem for building beautiful RESTful APIs with Ruby. (by pragmarb)

  • GitHub repo js_from_routes

    🛣️ Generate path helpers and API methods from your Rails routes

    Project mention: Path helpers and API methods in JS from your Rails routes | reddit.com/r/rails | 2021-03-16

    You might already be able to achieve that by using Config.withResponse to store data in a Redux store.

  • GitHub repo endpoint-flux

    Micro framework for dealing with API and endpoints

    Project mention: Endpoint_flux is another gem to deal with endpoints | reddit.com/r/ruby | 2021-03-29
  • GitHub repo tokenable-ruby

    Tokenable is a Rails gem that allows API-only applications a way to authenticate users. This can be helpful when building Single Page Applications, or Mobile Applications. Works with Devise, Sorcery, has_secure_password, and any other auth system you may want to use.

    Project mention: What API auth pattern am I describing here? | reddit.com/r/rails | 2021-02-01

    I built https://github.com/tokenable/tokenable-ruby for exactly this use case.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-04-04.

Index

What are some of the best open-source API projects in Ruby? This list will help you:

Project Stars
1 Grape 9,293
2 Hanami 5,436
3 Devise Token Auth 3,132
4 flipper 2,456
5 DuckRails 1,682
6 rspec_api_documentation 1,371
7 tesla-api 1,332
8 grape-swagger 1,001
9 versionist 953
10 Version Cake 625
11 Spyke 592
12 rack-app 390
13 feedirss-api 342
14 api_struct 225
15 datoji 221
16 Flexirest 193
17 JSONAPI::Utils 192
18 api_guard 164
19 jsonapi.rb 122
20 Pragma 94
21 js_from_routes 25
22 endpoint-flux 19
23 tokenable-ruby 11