absinthe_plug alternatives and similar packages
Based on the "Framework Components" category.
Alternatively, view absinthe_plug alternatives based on common mentions on social networks and blogs.
-
plug
A specification and conveniences for composable modules in between web applications. -
commanded
Command handling middleware for Command Query Responsibility Segregation (CQRS) applications. -
ex_admin
ExAdmin is an auto administration package for Elixir and the Phoenix Framework. -
torch
Torch is a rapid admin generator for Phoenix apps. It uses generators rather than DSLs to ensure that the code remains maintainable. -
phoenix_html
Phoenix.HTML functions for working with HTML strings and templates. -
react_phoenix
Make rendering React.js components in Phoenix views easy -
cors_plug
An Elixir plug that adds CORS headers to requests and responds to preflight requests (OPTIONS). -
scrivener_html
Helpers built to work with Scrivener's page struct to easily build HTML output for various CSS frameworks. -
phoenix_live_reload
Provides live-reload functionality for Phoenix. -
params
Use Ecto to enforce/validate parameters structure, akin to Rails' strong parameters. -
rummage_ecto
A configurable framework to search, sort and paginate Ecto Queries. -
dayron
A repository similar to Ecto.Repo that works with REST API requests instead of a database. -
phoenix_pubsub_redis
The Redis PubSub adapter for the Phoenix framework. -
phoenix_token_auth
Token authentication solution for Phoenix. Useful for APIs or single page apps. -
passport
Passport provides authentication for Phoenix applications. -
rummage_phoenix
A support framework for searching, sorting and paginating models in Phoenix, with support HTML support. -
sentinel
An authentication framework for Phoenix extending guardian with routing and other basic functionality. -
plug_rails_cookie_session_store
Rails compatible Plug session store. -
multiverse
Plug that allows to add version compatibility layers via API Request/Response Gateways. -
access pass
Authentication framework that can be used with or outside of phoenix. Similar to Addict but geared towards API usage.(Docs). -
filterable
Simple query params filtering for Phoenix framework inspired by Rails has_scope. -
phoenix_pubsub_rabbitmq
RabbitMQ adapter for Phoenix's PubSub layer. -
better_params
Elixir Plug for cleaner request params in web apps. -
plug_statsd
A plug for automatically sending timing and count metrics to statsd. -
plug_checkup
Plug for adding simple health checks to your app. -
trailing_format_plug
An Elixir plug to support legacy APIs that use a rails-like trailing format. -
plug_rest
REST behaviour and Plug router for hypermedia web applications. -
scrivener_headers
Helpers for paginating API responses with Scrivener and HTTP headers. -
phoenix_html_simplified_helpers
Some helpers for phoenix html (truncate, time_ago_in_words, number_with_delimiter). -
Votex
Hex Package : Implements vote / like / follow functionality for Ecto models in Phoenix -
phoenix_pubsub_postgres
Postgresql PubSub adapter for Phoenix apps. -
phoenix_pubsub_vernemq
The VerneMQ MQTT pubsub adapter for the Phoenix framework.
Scout APM - Leading-edge performance monitoring starting at $39/month
Do you think we are missing an alternative of absinthe_plug or a related project?
README
Absinthe Plug
Plug support for Absinthe, the GraphQL toolkit for Elixir.
Please see the website at http://absinthe-graphql.org.
Installation
Install from Hex.pm:
def deps do
[{:absinthe_plug, "~> 1.5.0"}]
end
Absinthe.Plug
also requires a JSON codec. Jason
and Poison
work out of the box.
def deps do
[
...,
{:absinthe_plug, "~> 1.5.0"},
{:jason, "~> 1.0"}
]
end
Usage
Basic Usage:
plug Plug.Parsers,
parsers: [:urlencoded, :multipart, :json, Absinthe.Plug.Parser],
pass: ["*/*"],
json_decoder: Jason
plug Absinthe.Plug,
schema: MyAppWeb.Schema
If you want Absinthe.Plug
to serve only a particular route, configure your
router like:
plug Plug.Parsers,
parsers: [:urlencoded, :multipart, :json, Absinthe.Plug.Parser],
pass: ["*/*"],
json_decoder: Jason
forward "/api",
to: Absinthe.Plug,
init_opts: [schema: MyAppWeb.Schema]
For more information, see the API documentation for Absinthe.Plug
.
Phoenix.Router
If you are using Phoenix.Router, forward
expects different arguments:
Plug.Router
forward "/graphiql",
to: Absinthe.Plug.GraphiQL,
init_opts: [
schema: MyAppWeb.Schema,
interface: :simple
]
Phoenix.Router
forward "/graphiql",
Absinthe.Plug.GraphiQL,
schema: MyAppWeb.Schema,
interface: :simple
For more information see Phoenix.Router.forward/4.
GraphiQL
To add support for a GraphiQL interface, add a configuration for
Absinthe.Plug.GraphiQL
:
forward "/graphiql",
to: Absinthe.Plug.GraphiQL,
init_opts: [schema: MyAppWeb.Schema]
See the API documentation for Absinthe.Plug.GraphiQL
for more information.
Documentation
See HexDocs.
More Help
- For the tutorial, guides, and general information about Absinthe-related projects, see http://absinthe-graphql.org.
- Join the community of Absinthe users.
Related Projects
See the project list at http://absinthe-graphql.org/projects.
License
See [LICENSE.md](./LICENSE.md).
*Note that all licence references and agreements mentioned in the absinthe_plug README section above
are relevant to that project's source code only.