• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

altair-graphql/altair: ✨⚡️ A beautiful feature-rich GraphQL Client for all pl ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

altair-graphql/altair

开源软件地址(OpenSource Url):

https://github.com/altair-graphql/altair

开源编程语言(OpenSource Language):

TypeScript 66.4%

开源软件介绍(OpenSource Introduction):

Crowdin

Chrome Web Store Mozilla Add-on npm Altair GraphQL Client GitHub release Github All Releases

Backers on Open Collective Sponsors on Open Collective

Maintenance

Deploying?

set url

Altair is a beautiful feature-rich GraphQL Client IDE for all platforms. Available for MacOS, Windows, Linux, Chrome, Firefox. It enables you interact with any GraphQL server you are authorized to access from any platform you are on.

-- the GraphQL IDE that does not require running a web server

Features

Altair provides several features that make developing with GraphQL very efficient and friendly. These features include:

  • setting headers
  • setting variables
  • creating environments
  • viewing response stats
  • viewing schema docs
  • advanced schema docs search
  • dynamically adding/generating queries and/or fragments from schema docs
  • file upload via GraphQL
  • autocompletion of queries
  • autofill all query fields at cursor
  • automatic schema refreshing using GraphQL Event Stream protocol
  • automatic refactoring of query
  • prerequest scripts
  • multiple windows, multiple languages
  • importing and exporting collections of queries
  • multiple themes
  • plugin system for extensibility
  • and many more features (really there's a lot more!).

See more here: https://altair.sirmuel.design/docs/features

Missing feature?

Is there a feature that is missing? You can let us know by creating a new issue or you can add the feature by creating a Pull Request.

Sponsors

Thanks to all our sponsors for sponsoring this project! Do you use Altair GraphQL client at your company? Consider supporting this project as a major sponsor (primary, gold, silver or bronze) on open collective.

Primary Sponsor

XKojiMedia

To be a primary sponsor, reach out to us.

Gold Sponsor

Become a Gold sponsor of Altair to appear here.

Usage

For mac users, you can also install using cask:

$ brew install --cask altair-graphql-client

For linux users, you can also install using snap:

$ snap install altair

For arch linux users, an AUR package aur/altair exists:

$ yay -S altair

For windows users, you can install using chocolatey:

$ choco install altair-graphql

...or winget:

$ winget install -e --id altair-graphql.altair

Usage with express

You can use altair with an express server using altair-express-middleware. Read more about how to use this here.

Usage with koa

You can use altair with a koa server using altair-koa-middleware. Read more about how to use this here.

Usage with Fastify

You can use altair with a Fastify server using altair-fastify-plugin. Read more about how to use this here.

Usage with Laravel (PHP)

You can use altair in a Laravel project using xkojimedia/laravel-altair-graphql:

$ composer require xkojimedia/laravel-altair-graphql

You can find other available integrations here: https://altair.sirmuel.design/docs/integrations

Configuration Options

When using a custom instance of Altair, there are couple of options you can use to customize Altair based on your needs:

  • endpointURL string - URL to set as the server endpoint
  • subscriptionsEndpoint string - URL to set as the subscription endpoint
  • initialSubscriptionsProvider "websocket" | "graphql-ws" | "app-sync" | "action-cable" - Initial subscriptions provider
  • initialQuery string - Initial query to be added
  • initialVariables string - Initial variables to be added (in JSON format) e.g. '{ "var1": "first variable" }'
  • initialPreRequestScript string - Initial pre-request script to be added e.g. 'altair.helpers.getEnvironment("api_key")'
  • initialHeaders IDictionary - Initial headers object to be added
{
  'X-GraphQL-Token': 'asd7-237s-2bdk-nsdk4'
}
  • initialEnvironments IInitialEnvironments - Initial Environments to be added
{
  base: {
    title: 'Environment',
    variables: {}
  },
  subEnvironments: [
    {
      title: 'sub-1',
      variables: {}
    }
  ]
}
  • instanceStorageNamespace string - Namespace for storing the data for the altair instance. Use this when you have multiple altair instances running on the same domain. e.g. 'altair_dev_'

Example usage:

AltairGraphQL.init({
  endpointURL: 'https://www.example.com/graphql',
  initialVariables: '{ "username": "imolorhe" }',
});

Supported Browsers

Altair has been tested in the latest versions of Google Chrome and Mozilla Firefox. It might not work as expected in other browsers like Safari and Edge.

Community


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap