Skip to content
SPECIFICTION
Get listed

Lighthouse vs Sangria

Lighthouse

lighthouse-php.com

Sangria

sangria-graphql.github.io

Side by side

FigureLighthouseSangria
Price fromFree—
Free planYes—
Free trial——
Open source——
APIYesYes
Self-hostedYesYes
Plans published10
Spec score · GraphQL Tools8.1 (#7)6.8 (#22)
AuthenticationIt supports standard Laravel authentication mechanisms and can use Laravel Sanctum for API authentication.The documentation says Sangria does not provide explicit security primitives and demonstrates implementing authentication and authorization through application context, resolvers, middleware, and field tags.
PurposeLighthouse is a framework for serving GraphQL from Laravel.Sangria is a Scala implementation of GraphQL.
Schema definitionIt uses GraphQL Schema Definition Language (SDL) and server-side directives to describe data and add functionality.It provides Scala abstractions for defining GraphQL schemas, types, fields, and resolvers.

Plans

Lighthouse

  • LighthouseFree

Lighthouse pricing →

Sangria

No plans published.

Sangria pricing →

In their own words

Lighthouse

Lighthouse is a framework for serving GraphQL from an existing Laravel application. It uses GraphQL Schema Definition Language and server-side directives to describe data and add behavior, while reusing Laravel concepts and Eloquent models. Built-in directives can create records, resolve relationships, apply query constraints, paginate results, and validate fields and arguments. Developers can add custom directives for reusable behavior, while the @can directive family can use Laravel Policies to restrict field operations. The default endpoint is `/graphql`, and any GraphQL client can use it. Lighthouse also supports standard Laravel authentication mechanisms, including Sanctum, and GraphQL subscriptions for event updates. Parsed queries can be cached with Laravel cache stores or local PHP files using OPcache; Automatic Persisted Queries are supported with Apollo compatibility. Installation uses Composer in a Laravel or Lumen project. The package is free and self-hosted. GraphQL tooling such as GraphiQL is not included, and federation support is experimental and cannot serve as a federation gateway.

Visit lighthouse-php.com

Sangria

Sangria has no write-up on Specifiction yet; its figures are above.

Visit sangria-graphql.github.io