{"id":16487621,"url":"https://github.com/saeris/scryfall-api","last_synced_at":"2025-08-01T22:33:14.549Z","repository":{"id":36366524,"uuid":"154228688","full_name":"Saeris/Scryfall-API","owner":"Saeris","description":"🌠 A GraphQL API wrapper for Scryfall built with Apollo Data Sources.","archived":false,"fork":false,"pushed_at":"2023-01-05T14:29:25.000Z","size":986,"stargazers_count":7,"open_issues_count":29,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-19T17:55:57.970Z","etag":null,"topics":["apollo-server","aws","aws-lambda","graphql","magic-the-gathering","mtg","scryfall"],"latest_commit_sha":null,"homepage":"https://scryfall.saeris.io","language":"TypeScript","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/Saeris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-22T23:01:56.000Z","updated_at":"2024-05-06T17:13:54.000Z","dependencies_parsed_at":"2023-01-17T01:30:48.837Z","dependency_job_id":null,"html_url":"https://github.com/Saeris/Scryfall-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saeris%2FScryfall-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saeris%2FScryfall-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saeris%2FScryfall-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saeris%2FScryfall-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saeris","download_url":"https://codeload.github.com/Saeris/Scryfall-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228413945,"owners_count":17915919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-server","aws","aws-lambda","graphql","magic-the-gathering","mtg","scryfall"],"created_at":"2024-10-11T13:35:27.260Z","updated_at":"2024-12-06T05:01:45.257Z","avatar_url":"https://github.com/Saeris.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\" style=\"display: block; text-align: center;\"\u003e🌠 Scryfall API\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\u003ca href=\"https://travis-ci.com/Saeris/Scryfall-API\"\u003e\u003cimg src=\"https://travis-ci.com/Saeris/Scryfall-API.svg?branch=master\" alt=\"Build Status\" /\u003e\u003c/a\u003e\u003ca href=\"https://codecov.io/gh/Saeris/Scryfall-API\"\u003e\u003cimg src=\"https://codecov.io/gh/Saeris/Scryfall-API/branch/master/graph/badge.svg\" alt=\"Code Coverage\"/\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003eA GraphQL API wrapper for Scryfall built with \u003ca href=\"https://www.apollographql.com/docs/apollo-server/features/data-sources.html\"\u003eApollo Data Sources\u003c/a\u003e.\u003c/p\u003e\n\n## 🛠️ Setup\n\nInstall dependencies by running `yarn`. That's it!\n\nIf you want to track usage metrics for your API, you'll need to get an API key from Apollo Graph Manager. For instructions on how to do that, please read the [Apollo Graph Manager docs](https://www.apollographql.com/docs/graph-manager/). Then create a new file in the root directory named `.env`. In it, copy + paste the following and replace the text following the `=` sign with your newly create API key.\n\n```\nENGINE_API_KEY=\u003cinsert your apollo graph manager api key here\u003e\n```\n\nOnce that's done, you can now start up a development server using `yarn start`. By default this will use Serverless Offline, but if you would instead like to use Netlify Lamba, you can run `yarn start:netlify` instead. Once the development server is listening, you can pull up a GraphQL Playground by visiting one of the following URLs:\n\nLambda: http://localhost:1337/dev\nNetlify: http://localhost:1337/.netlify/functions/scryfall-api\n\n## 🕹️ Demo\n\nYou can try out the API using the GraphQL Playground hosted at https://scryfall.saeris.io/.netlify/functions/scryfall-api\n\n## 🧪 Testing\n\nTesting is provided via `jest` and is pre-configured to run with `codecov` as well. While tests for this project are far from complete, they can be found under `src/__TEST__` and follow a naming format of `[filename].spec.ts`. Additionally, this project uses `eslint`, `typescript`, and `prettier`, all three of which are automatically run on each commit via `husky` + `lint-staged`. To manually lint and test, use the following commands:\n\nLint:\n```bash\nyarn lint\n```\n\nTypecheck:\n```bash\nyarn typecheck\n```\n\nTest and watch for changes:\n```bash\nyarn test:watch\n```\n\nLint + Typecheck + Test:\n```bash\nyarn test\n```\n\n## 🚢 Deployment\n\nTo deploy the server, you'll need to follow the Serverless Framework's [Setup Guide](https://serverless.com/framework/docs/providers/aws/guide/installation/) to deploy to AWS. If you'd rather use Netlify, you'll need to follow whichever method works best for your workflow. Refer to [Netlify's Docs](https://docs.netlify.com/configure-builds/get-started/) for more information.\n\nIf you're deploying to AWS, you can use the following commands to deploy to Staging or Production:\n\nStaging:\n```bash\nyarn deploy\n```\n\nProduction:\n```bash\nyarn deploy:prod\n```\n\nAlternatively, if you're using Travis CI, you can deploy to both on each commit as part of your CI process by uncommenting the following lines inside `travis.yml`:\n\n```yaml\ndeploy:\n # deploy develop to the staging environment\n - provider: script\n   skip_cleanup: true\n   script: yarn deploy:dev\n   on:\n     node: \"12\"\n     branch: develop\n # deploy master to production\n - provider: script\n   skip_cleanup: true\n   script:\n     - yarn deploy:prod\n   on:\n     node: \"12\"\n     branch: master\n```\n\n## 🥂 License\n\nReleased under the [MIT license](https://github.com/Saeris/Scryfall-API/blob/master/LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaeris%2Fscryfall-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaeris%2Fscryfall-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaeris%2Fscryfall-api/lists"}