{"id":13474095,"url":"https://github.com/nathanwaters/hasura-cloudflare-worker","last_synced_at":"2025-03-26T20:31:51.899Z","repository":{"id":148898740,"uuid":"158612995","full_name":"nathanwaters/hasura-cloudflare-worker","owner":"nathanwaters","description":"Example Cloudflare Worker for Facebook-based authorization and GraphQL proxy queries with Hasura","archived":false,"fork":false,"pushed_at":"2018-11-21T22:55:09.000Z","size":11,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-30T07:46:16.904Z","etag":null,"topics":["cloudflare-worker","cloudflare-workers","facebook-login","graphql","hasura","hasura-graphql"],"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/nathanwaters.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}},"created_at":"2018-11-21T22:22:22.000Z","updated_at":"2023-07-29T22:40:41.000Z","dependencies_parsed_at":"2023-07-17T00:00:37.096Z","dependency_job_id":null,"html_url":"https://github.com/nathanwaters/hasura-cloudflare-worker","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/nathanwaters%2Fhasura-cloudflare-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanwaters%2Fhasura-cloudflare-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanwaters%2Fhasura-cloudflare-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanwaters%2Fhasura-cloudflare-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathanwaters","download_url":"https://codeload.github.com/nathanwaters/hasura-cloudflare-worker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245731615,"owners_count":20663216,"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":["cloudflare-worker","cloudflare-workers","facebook-login","graphql","hasura","hasura-graphql"],"created_at":"2024-07-31T16:01:09.487Z","updated_at":"2025-03-26T20:31:51.160Z","avatar_url":"https://github.com/nathanwaters.png","language":"JavaScript","funding_links":[],"categories":["GraphQL","Workers"],"sub_categories":["Recipes"],"readme":"# Hasura Cloudflare Worker\n\nExample Cloudflare Worker using Facebook-based authorization and GraphQL proxy queries with Hasura.\n\n## Prerequisites\n\n1. [Cloudflare](https://www.cloudflare.com/products/cloudflare-workers/) account with Workers enabled ($5/mth minimum).\n2. [Hasura](https://hasura.io/) GraphQL endpoint setup with `person` table, auth webhook (for GQL subscriptions) and [permissions](https://docs.hasura.io/1.0/graphql/manual/auth/basics.html) set on the `fb_id` plus a user `role` column.\n\n## Install\n\n1. Add config variables in .env\n2. Run `npm install`\n3. Run `npm run build`\n4. Copy dist/worker.js code into Cloudflare Worker web UI\n5. Save and test with [Insomnia](https://insomnia.rest/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanwaters%2Fhasura-cloudflare-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathanwaters%2Fhasura-cloudflare-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanwaters%2Fhasura-cloudflare-worker/lists"}