Ross ROSS = Recommend OSS · open-source software intelligence for agents

maticzav/graphql-middleware

Split up your GraphQL resolvers in middleware functions observed · 2026-08-28

github.com/maticzav/graphql-middleware · TypeScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

67/100

  • Activity 99
  • Release rhythm 8
  • Longevity 100
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: 3219
  • days_rel: n/a
  • days_push: 7
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1145 stars · 58 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A TypeScript library that lets you split GraphQL resolvers into reusable middleware functions applied to any GraphQL schema. It follows the onion model, running code before and after resolver invocation for cross-cutting concerns like logging, auth, and error handling.

Use cases

  • add logging around graphql resolvers
  • apply authentication middleware to graphql schema
  • share logic across multiple graphql resolvers
  • wrap graphql resolvers with error handling
  • run code before and after resolver execution

When to choose

  • you want reusable cross-cutting logic across many resolvers
  • you need middleware that works with any GraphQL schema
  • you prefer the onion middleware pattern for resolver composition

When to avoid

  • you use GraphQL Yoga and need out-of-the-box support
  • you want per-field resolver logic only within a single resolver
  • your server framework already provides equivalent resolver middleware

Facets

library · maturity stable

middleware graphql web-framework web-development backend apis developer-tools graphql-schema resolver-middleware onion-pattern schema-wrapper nodejs typescript

2 sources

Member repositories

RepositoryRoleHealth v2
maticzav/graphql-middlewaremain67

For agents

markdown · JSON · MCP: product_card(name="maticzav/graphql-middleware")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem