awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com

Ruby API Frameworks

Ranking updated Jun 30, 2026

For a web framework for building APIs in Ruby, the first results are ruby-grape/grape (Grape is a purpose-built Ruby framework for building structured APIs with a declarative routing DSL, built-in request validation, and modular middleware support—exactly the lightweight, API-focused tool you're looking for), sinatra/sinatra (Sinatra is a lightweight Ruby web framework with a routing DSL and Rack middleware support, making it a solid choice for building API endpoints, though it lacks built-in request validation and serialization compared to dedicated API frameworks) and rails-api/rails-api (Rails API is a streamlined Ruby on Rails framework explicitly designed for building lightweight JSON API services, omitting browser views to reduce overhead while providing routing, serialization, and Rack middleware support). kickstarter/rack-attack and apiaryio/api-blueprint round out the shortlist. Compare the match explanations and check the project documentation against your requirements.

High-performance open-source libraries and frameworks designed for building scalable RESTful and GraphQL APIs in Ruby.

Ruby API Frameworks

Find the best repos with AI.We'll search the best matching repositories with AI.
  • ruby-grape/graperuby-grape avatar

    ruby-grape/grape

    9,990View on GitHub↗

    Grape is a RESTful web service framework for Ruby designed for building structured APIs. It provides a declarative syntax for routing and parameter validation, allowing developers to map HTTP verbs to logic through a domain specific language. The framework is distinguished by its built-in support for service versioning, which can be managed via URL paths, custom headers, or request parameters. It also features a modular architecture that allows large services to be constructed by nesting smaller API definitions. The project covers comprehensive API lifecycle capabilities, including schema-dr

    Grape is a purpose-built Ruby framework for building structured APIs with a declarative routing DSL, built-in request validation, and modular middleware support—exactly the lightweight, API-focused tool you're looking for.

    RubyRequest ValidationResponse Formatting
    View on GitHub↗9,990
  • sinatra/sinatrasinatra avatar

    sinatra/sinatra

    12,441View on GitHub↗

    Sinatra is a lightweight web framework for the Ruby programming language designed for building web applications and services. It provides a domain-specific language that maps HTTP verbs and URL patterns directly to executable code blocks, allowing developers to define routes and handle incoming network requests with minimal boilerplate. The framework distinguishes itself through a modular architecture that relies on a middleware pipeline to process, modify, or terminate connections. This design allows for the integration of external functionality by mixing modules into the core request-handli

    Sinatra is a lightweight Ruby web framework with a routing DSL and Rack middleware support, making it a solid choice for building API endpoints, though it lacks built-in request validation and serialization compared to dedicated API frameworks.

    RubyRack-Based Middleware Pipelines
    View on GitHub↗12,441
  • rails-api/rails-apirails-api avatar

    rails-api/rails-api

    5,130View on GitHub↗

    This is a streamlined Ruby on Rails framework designed for building lightweight backend services and JSON endpoints. It utilizes a model-view-controller architecture to separate data models and business logic from API responses, specifically omitting browser-centric views to reduce system overhead. The framework provides a system for rapidly generating models, controllers, and routes through JSON API scaffolding. It maps HTTP verbs to controllers to ensure consistent resource routing and data modeling for RESTful API backends. The project includes capabilities for HTTP request management, su

    Rails API is a streamlined Ruby on Rails framework explicitly designed for building lightweight JSON API services, omitting browser views to reduce overhead while providing routing, serialization, and Rack middleware support.

    RubyJSON APIsREST API BackendsAPI-Only Frameworks
    View on GitHub↗5,130
  • kickstarter/rack-attackkickstarter avatar

    kickstarter/rack-attack

    5,744View on GitHub↗

    This project is a Rack middleware rate limiter and application layer firewall for Ruby web applications. It serves as a security layer to throttle and block HTTP requests based on custom rules, protecting web servers from abusive traffic. The system provides capabilities for IP blocking and the banning of malicious clients. It implements request safelisting to bypass restrictions for trusted users and uses time-windowed rate limiting to control request frequency. The middleware covers traffic management and monitoring, including the ability to track request patterns and instrument traffic ev

    rack-attack is a Rack middleware for rate limiting and blocking abusive traffic, not a framework for building API endpoints—it lacks routing, request validation, and serialization, so it's a security component you'd add to an API framework rather than the framework itself.

    RubyRack-Based Middleware Pipelines
    View on GitHub↗5,744
  • apiaryio/api-blueprintapiaryio avatar

    apiaryio/api-blueprint

    8,648View on GitHub↗

    api-blueprint is a markdown-based API design language and specification standard used to define the structure, behavior, and data schemas of HTTP web services. It provides a formal method for mapping HTTP methods to resources and defining payload validation rules through a machine-readable syntax. The project functions as a blueprint for creating interactive technical documentation and functional mock servers. These tools transform design specifications into human-readable guides and simulated backend environments to enable integration testing before implementation. The language covers API m

    API Blueprint is an API specification language and toolset for designing and documenting APIs, not a Ruby web framework for implementing endpoints; it lacks routing, validation, and Rack support.

    RESTful API Designs
    View on GitHub↗8,648
  • hanami/hanamihanami avatar

    hanami/hanami

    6,374View on GitHub↗

    Hanami is a full-stack Ruby web framework and API platform designed for building maintainable applications. It centers on a modular web architecture that organizes software into independent slices to prevent monolithic growth and isolate functional units. The framework implements a clean architecture by decoupling business logic from persistence and request handling. This is achieved through a central dependency injection container for managing object lifetimes and a repository pattern mapper that separates domain entities from the persistence layer. The project further provides a Rack-compa

    Hanami is a full-stack Ruby web framework with API capabilities, but its design prioritizes modular clean architecture for general web applications rather than the minimal, API-specialized overhead you're looking for.

    RubyRack-Based Middleware Pipelines
    View on GitHub↗6,374
  • fastify/fastifyfastify avatar

    fastify/fastify

    36,508View on GitHub↗

    This project is a high-performance web framework designed for building scalable server-side applications with minimal resource consumption. It provides a type-safe runtime environment that leverages static analysis to ensure consistent data structures across request handlers and server configurations, facilitating reliable API development. The framework distinguishes itself through a schema-driven validation layer that enforces strict data integrity for incoming requests and outgoing responses using standardized definitions. It utilizes an encapsulated plugin architecture that organizes appli

    Fastify is a high-performance JavaScript web framework designed for building APIs with schema validation and plugin architecture, but this search specifically requires a Ruby framework — Fastify is the right kind of tool in the wrong language.

    JavaScriptRequest Validation Middleware
    View on GitHub↗36,508
  • gin-gonic/gingin-gonic avatar

    gin-gonic/gin

    88,694View on GitHub↗

    Gin is a web framework designed for building high-performance web services and APIs. It functions as a middleware-oriented engine that processes incoming HTTP requests through a sequential chain of handlers, allowing for the modular management of cross-cutting concerns such as authentication and logging. The framework utilizes a radix tree data structure to perform request routing, ensuring high-speed path matching with minimal memory overhead. It distinguishes itself by employing a zero-reflection dispatch mechanism that invokes handler functions through static type assertions, avoiding the

    Gin is a high-performance Go web framework for building APIs, not a Ruby framework — while it fits the API-focused and lightweight description, the language mismatch makes it unsuitable for a Ruby-specific search.

    GoApplication Route Definitions
    View on GitHub↗88,694
  • rails/railsrails avatar

    rails/rails

    58,690View on GitHub↗

    This project is a full-stack web framework designed for building database-backed applications through a standardized architectural pattern. It provides a comprehensive suite of integrated libraries that manage the entire request-response lifecycle, from routing incoming web traffic to rendering dynamic server-side templates. By utilizing an object-relational mapping layer, the framework allows developers to define domain models that map database tables directly to application objects, simplifying data persistence, schema migrations, and complex relationship management. The framework is distin

    Rails is a full-stack web framework with many integrated components for building database-backed applications with server-side templates, which makes it far heavier and more opinionated than the minimalist, API-specific framework you are looking for.

    RubyRack-Based Middleware Pipelines
    View on GitHub↗58,690
  • labstack/echolabstack avatar

    labstack/echo

    32,451View on GitHub↗

    Echo is a high-performance, lightweight web framework for Go designed for building scalable RESTful APIs and web services. It provides a centralized environment for mapping network requests to handler functions, utilizing a fast radix-tree routing engine to ensure efficient request dispatching. The framework is built around a modular, middleware-centric pipeline that allows developers to execute reusable logic for cross-cutting concerns like authentication, logging, and security across the entire application. What distinguishes Echo is its focus on developer productivity through structured da

    Echo is a high-performance web API framework, but it is built for Go, not Ruby, so it does not match the Ruby-specific requirement of this search.

    GoResponse Rendering
    View on GitHub↗32,451
  • digitallyinduced/ihpdigitallyinduced avatar

    digitallyinduced/ihp

    5,294View on GitHub↗

    ihp is a type-safe web framework and full-stack application orchestrator designed for PostgreSQL. It functions as a server-side rendering framework and a type-safe ORM that automatically generates record types from SQL schemas to ensure compile-time query validation. The platform distinguishes itself by verifying routing, database queries, and templates at compile time to prevent runtime crashes. It implements real-time web interfaces using WebSockets for instant data synchronization and employs server-driven hypermedia for partial DOM patching. The framework covers a broad range of integrat

    IHP is a full-stack Haskell web framework with compile-time type safety and server-side rendering, not a lightweight Ruby API framework — it is a different language and architectural focus than the API-first, minimal-overhead tool you need.

    HaskellApplication Route DefinitionsResponse Rendering
    View on GitHub↗5,294
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
ruby-grape/grape10KRubyMITJun 23, 2026
sinatra/sinatra12.4KRubyMITApr 28, 2026
rails-api/rails-api
5.1K
Ruby
MIT
May 2, 2021
kickstarter/rack-attack5.7KRubyMITApr 5, 2026
apiaryio/api-blueprint8.6K—MITAug 19, 2023
hanami/hanami6.4KRubyMITJun 21, 2026
fastify/fastify36.5KJavaScriptMITJun 14, 2026
gin-gonic/gin88.7KGoMITJun 8, 2026
rails/rails58.7KRubyMITJun 16, 2026
labstack/echo32.5KGoMITJun 15, 2026

Related searches

  • a web framework for building HTTP APIs in Rust
  • a web framework for building APIs in Kotlin
  • an HTTP framework for building web services in Elixir
  • a high performance web framework for Rust
  • a framework for building REST APIs
  • a ruby framework for building cli applications
  • a high performance web framework for Go
  • a lightweight web framework for Node.js