# rs/rest-layer

REST Layer, Go (golang) REST API framework

Repository: https://github.com/rs/rest-layer
Canonical: https://ross.abutalabs.com/products/rest-layer
Homepage:  http://rest-layer.io
Language: Go
License: MIT
License Family: permissive
Topics: api, rest-api, graphql, framework, go, api-server, api-documentation, storage-backend, json-schema, schema-fields
Last push: 2021-10-01T07:21:48+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4053, "days_push": 1797, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1241, forks 112 (observed 2026-08-28T04:04:06.359635+00:00)

## What it is
REST Layer is a Go API framework for building comprehensive, customizable REST (graph) APIs on top of pluggable storage backends with minimal boilerplate. Resources are defined via schemas, and the framework auto-generates routes, validation, conditional requests, caching, and optional GraphQL support.

## Use cases
- build a REST API in Go without writing handlers
- auto-generate routes from resource schemas
- serve a graph API with field selection to reduce round-trips
- validate incoming data before it hits a custom storage handler
- back an API with MongoDB or Elasticsearch with little code
- add conditional requests and caching to an API server

## When to avoid
- you need full control over routing and handlers
- you need a framework with frequent recent releases
- your API is not resource/schema oriented

## Facets
- artifact type: framework
- maturity: maintenance
- function: api-framework, web-framework, routing, serialization, graphql, middleware
- domain: web-development, backend, apis
- platform: go, windows, cross-platform
- tags: rest-api, schema-validation, -schema, storage-backends, graph-api, net-http, linux, macos

## Member repositories
- rs/rest-layer (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:06.359635+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:08:30.467528+00:00, confidence not recorded.
  - readme: https://github.com/rs/rest-layer (fetched 2026-08-28T04:04:06.359635+00:00, sha 2d71613251c0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
