{"id":15130279,"url":"https://github.com/wjsc/apollo-server-restify-persisted-queries","last_synced_at":"2026-01-20T15:07:20.727Z","repository":{"id":57182414,"uuid":"155019035","full_name":"wjsc/apollo-server-restify-persisted-queries","owner":"wjsc","description":"Tiny in-memory persisted queries middleware for apollo-server-restify","archived":false,"fork":false,"pushed_at":"2018-10-28T16:38:16.000Z","size":166,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-28T11:07:17.081Z","etag":null,"topics":["apollo","apq","automatic","graphql","graphql-server","middeware","persisted","queries","query","restify","server"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/apollo-server-restify-persisted-queries","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/wjsc.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}},"created_at":"2018-10-27T23:34:47.000Z","updated_at":"2019-02-02T01:50:57.000Z","dependencies_parsed_at":"2022-09-12T00:00:26.252Z","dependency_job_id":null,"html_url":"https://github.com/wjsc/apollo-server-restify-persisted-queries","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wjsc/apollo-server-restify-persisted-queries","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wjsc%2Fapollo-server-restify-persisted-queries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wjsc%2Fapollo-server-restify-persisted-queries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wjsc%2Fapollo-server-restify-persisted-queries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wjsc%2Fapollo-server-restify-persisted-queries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wjsc","download_url":"https://codeload.github.com/wjsc/apollo-server-restify-persisted-queries/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wjsc%2Fapollo-server-restify-persisted-queries/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28606139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T14:45:23.139Z","status":"ssl_error","status_checked_at":"2026-01-20T14:44:16.929Z","response_time":117,"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":["apollo","apq","automatic","graphql","graphql-server","middeware","persisted","queries","query","restify","server"],"created_at":"2024-09-26T02:43:41.222Z","updated_at":"2026-01-20T15:07:20.708Z","avatar_url":"https://github.com/wjsc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Current Version](https://img.shields.io/npm/v/apollo-server-restify-persisted-queries.svg)\n![NPM Minified size](https://img.shields.io/bundlephobia/min/apollo-server-restify-persisted-queries.svg)\n![Github Code Size](https://img.shields.io/github/languages/code-size/wjsc/apollo-server-restify-persisted-queries.svg)\n![Downloads/Year](https://img.shields.io/npm/dy/apollo-server-restify-persisted-queries.svg)\n![Issues](https://img.shields.io/github/issues/wjsc/apollo-server-restify-persisted-queries.svg)\n![License](https://img.shields.io/github/license/wjsc/apollo-server-restify-persisted-queries.svg)\n![Contributors](https://img.shields.io/github/contributors/wjsc/apollo-server-restify-persisted-queries.svg)\n\n[![NPM](https://nodei.co/npm/apollo-server-restify-persisted-queries.png)](https://nodei.co/npm/apollo-server-restify-persisted-queries)\n\n# apollo-server-restify-persisted-queries\nTiny in-memory automatic persisted queries middleware for apollo-server-restify\n\nSince apollo-server-restify uses Apollo Server 1.x, it has not support for APQ. \nUse this module to get server support.\n\nThis package implements a circular buffer that persists the latest X queries in a in-memory Map.\n\n## Usage\n```\nimport restify from 'restify';\nimport { graphqlRestify } from 'apollo-server-restify';\n\n// 1. Import the module\nimport { persistedQueries } from 'apollo-server-restify-persisted-queries';\n\n// 2. Set the number of cached queries\nconst cacheLength = 10;\n\nconst server = restify.createServer({\n  title: 'Apollo Server',\n});\n \nconst graphQLOptions = { schema: myGraphQLSchema };\n \nserver.use(restify.plugins.bodyParser());\nserver.use(restify.plugins.queryParser());\n\n// 3. Call the persistedQueries method, ant it returns a Middleware\nserver.get('/graphql', persistedQueries(graphqlRestify(graphQLOptions)), cacheLength);\n \nserver.listen(3000, () =\u003e console.log(`Listening on port 3000`));\n```\n\n## Official Docs\nhttps://www.apollographql.com/docs/guides/performance.html#automatic-persisted-queries\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwjsc%2Fapollo-server-restify-persisted-queries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwjsc%2Fapollo-server-restify-persisted-queries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwjsc%2Fapollo-server-restify-persisted-queries/lists"}