Grape
An opinionated framework for creating REST-like APIs in Ruby. observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 99
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5875
- days_rel: n/a
- days_push: 9
- n_releases_24m: 0
Adoption not part of the score
10003 stars · 1231 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Grape is an opinionated Ruby framework for building REST-like APIs, running on Rack or alongside Rails and Sinatra. It provides a simple DSL with built-in support for versioning, multiple formats, content negotiation, and parameter validation, with a companion grape-swagger gem for API documentation.
Use cases
- build a rest api in ruby
- create versioned json api endpoints
- add an api to an existing rails app
- mount a rack-based api microservice
- generate swagger docs for a ruby api
- validate and coerce api request parameters
When to choose
- you need a dedicated REST API layer in Ruby with versioning and content negotiation
- you want to complement Rails or Sinatra with a lightweight API DSL
- you prefer declarative parameter validation and auto-generated Swagger docs
When to avoid
- you are building a full web application with server-rendered views
- you need a framework outside the Ruby ecosystem
- you want a non-opinionated, unstructured API layer
Facets
framework · maturity active
api-framework web-framework routing middleware serialization web-development backend apis ruby rest-api dsl rack sinatra rails api-versioning content-negotiation swagger web-server
2 sources
- readme: https://github.com/ruby-grape/grape · fetched 2026-08-28 · 6d9460997a07
- homepage: http://www.ruby-grape.org · fetched 2026-08-29 · d67b61028905
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ruby-grape/grape | main | 77 |
| ruby-grape/grape-swagger | plugin | 77 |
For agents
markdown · JSON · MCP: product_card(name="ruby-grape/grape")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem