{"id":20407832,"url":"https://github.com/restorando/graphql-query-whitelist-ui","last_synced_at":"2026-03-04T12:01:26.086Z","repository":{"id":70323985,"uuid":"72467784","full_name":"restorando/graphql-query-whitelist-ui","owner":"restorando","description":null,"archived":false,"fork":false,"pushed_at":"2017-04-29T19:14:58.000Z","size":434,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-12T15:31:26.167Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/restorando.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-31T18:49:28.000Z","updated_at":"2020-05-22T20:39:14.000Z","dependencies_parsed_at":"2023-03-03T11:00:24.302Z","dependency_job_id":null,"html_url":"https://github.com/restorando/graphql-query-whitelist-ui","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/restorando/graphql-query-whitelist-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restorando%2Fgraphql-query-whitelist-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restorando%2Fgraphql-query-whitelist-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restorando%2Fgraphql-query-whitelist-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restorando%2Fgraphql-query-whitelist-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/restorando","download_url":"https://codeload.github.com/restorando/graphql-query-whitelist-ui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restorando%2Fgraphql-query-whitelist-ui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30079565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T11:57:42.557Z","status":"ssl_error","status_checked_at":"2026-03-04T11:56:10.793Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T05:26:27.109Z","updated_at":"2026-03-04T12:01:25.803Z","avatar_url":"https://github.com/restorando.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graphql-query-whitelist-ui\n\nA slick UI for viewing, adding and enabling/disabling queries for [graphql-query-whitelist](https://github.com/restorando/graphql-query-whitelist).\n\nThis UI uses the API that comes with [graphql-query-whitelist](https://github.com/restorando/graphql-query-whitelist)\n\n![whitelist-ui](https://cloud.githubusercontent.com/assets/591992/21966398/248f9b3c-db51-11e6-9c37-12e2a3a9a9de.gif)\n\n# Installation\n\n`npm install --save graphql-query-whitelist-ui`\n\nExample app:\n\n```js\nimport express from 'express'\nimport bodyParser from 'body-parser'\nimport { MemoryStore, Api } from 'graphql-query-whitelist'\nimport whitelistUI from 'graphql-query-whitelist-ui'\n\n/* Get Express instance and set port */\nconst app = express()\n\napp.use(bodyParser.json())\n\n// The whitelist UI will be available at `http://localhost/whitelist`\napp.get('/whitelist', whitelistUI({ apiURL: '/whitelist/api/' }))\n\n// The `graphql-query-whitelist` API can be mounted into a different app.\n// We mount it in this same app just to contextualize this example\napp.use('/whitelist/api', Api(new MemoryStore()))\n```\n\n## Features\n\n - Addition of whitelisted queries\n - Queries can be enabled/disabled and renamed\n - Query Autocompletion using an internal or external schema\n - Query linting using an internal or external schema\n\n## Options\n\n#### apiURL (required)\n\nThis option tells the UI where the `graphql-query-whitelist` API is mounted. The URL must contain a trailing slash .\n\n#### graphqlURL\n\nIf this option is set, the query autocompletion and linting will be enabled using the provided schema.\n\n**Example:**\n\n```js\napp.get('/whitelist', whitelistUI({\n  apiURL: '/whitelist/api/',\n  graphqlURL: 'https://graphql-swapi.parseapp.com'\n}))\n```\n\n#### graphqlSchema\n\nAlternatively, if the UI is mounted in the same app as the GraphQL endpoint, you can pass the schema directly.\n\n**Example:**\n\n```js\n// This returns an instance of GraphQLSchema\nimport schema from './schema'\n\napp.get('/whitelist', whitelistUI({\n  apiURL: '/whitelist/api/',\n  graphqlSchema: schema\n}))\n```\n\n## How to run it in development mode\n\nClone the repo\n\n```\n$ git clone https://github.com/restorando/graphql-query-whitelist-ui.git\n```\n\nInstall the dependencies\n\n```\n$ npm i\n```\n\nRun it in dev mode\n\n```\n$ npm run dev\n```\n\n## Todo\n\n- [ ] Query search box\n- [ ] Pagination\n\n## Contributors\n\n- Javascript by [Gabriel Schammah](https://github.com/gschammah)\n- Design and CSS by [Joaquín Lluis](https://github.com/joaquinlluis)\n\n## License\n\nCopyright (c) 2017 Restorando\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frestorando%2Fgraphql-query-whitelist-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frestorando%2Fgraphql-query-whitelist-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frestorando%2Fgraphql-query-whitelist-ui/lists"}