{"id":15652996,"url":"https://github.com/rafalwilinski/edge-graphql-dynamodb-api","last_synced_at":"2025-04-30T20:29:58.269Z","repository":{"id":42838258,"uuid":"264165458","full_name":"RafalWilinski/edge-graphql-dynamodb-api","owner":"RafalWilinski","description":"Serverless GraphQL API on Edge with Global DynamoDB Tables","archived":false,"fork":false,"pushed_at":"2023-01-06T05:58:55.000Z","size":3152,"stargazers_count":30,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T17:48:15.367Z","etag":null,"topics":["apollo","apollo-server","aws","aws-cdk","aws-lambda","cdk","dynamodb","edge-computing","graphql","serverless"],"latest_commit_sha":null,"homepage":"https://rwilinski.me","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RafalWilinski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-15T10:31:28.000Z","updated_at":"2023-03-02T04:46:45.000Z","dependencies_parsed_at":"2023-02-05T11:46:15.239Z","dependency_job_id":null,"html_url":"https://github.com/RafalWilinski/edge-graphql-dynamodb-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/RafalWilinski%2Fedge-graphql-dynamodb-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafalWilinski%2Fedge-graphql-dynamodb-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafalWilinski%2Fedge-graphql-dynamodb-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafalWilinski%2Fedge-graphql-dynamodb-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RafalWilinski","download_url":"https://codeload.github.com/RafalWilinski/edge-graphql-dynamodb-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242704602,"owners_count":20172249,"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","apollo-server","aws","aws-cdk","aws-lambda","cdk","dynamodb","edge-computing","graphql","serverless"],"created_at":"2024-10-03T12:44:26.500Z","updated_at":"2025-03-09T14:30:52.022Z","avatar_url":"https://github.com/RafalWilinski.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Solution Diagram](./assets/overview.png)\n\n- [Demo Playground](https://d1pc7a0vu5q5b3.cloudfront.net/playground)\n- [Blogpost with full explanation](https://servicefull.cloud/blog/graphql-at-edge/)\n\n# Serverless GraphQL @ Edge + Global DynamoDB Tables\n\nWhy? Mostly for fun. I don't see too many practical use cases for such setup. Lambda@Edges aren't suitable for a lot of cases due to limited memory and CPU, so they are *slow*. If you need a globally available website with dynamic content, you should consider going with JAMStack served via CloudFront, Vercel or Cloudflare.\n\n## Features\n\n- Globally and highly available\n- GraphQL Server at each of Edge locations using Lambda@Edge + CloudFront\n- Globally replicated DynamoDB Tables\n- GraphQL handlers routing to the closest DynamoDB table as persistence layer\n- Pay-what-you-use model, no upfront or fixed charges, everything billed per-request\n- Infra managed using AWS-CDK and Typescript\n- Node functions packaged and minified automatically using Parcel, ([there's a small bug though](https://github.com/aws/aws-cdk/issues/8031))\n\n## Useful commands\n\n * `npm run build`   compile typescript to js\n * `npm run deploy`  deploy this stack to your default AWS account/region\n\n## Limitations\n\n- Your server must be rather lightweight. Minified GraphQL Server code must be less than `1 MB`. Lambda@Edge is restricted to `128MB` of memory and `5000ms` of timeout for `VIEWER_REQUEST` integration type.\n- Cannot use ENV variables\n- Table name is hardcoded, gonna fix that\n- Schema creation is laborious right now\n\nLooking for cool DynamoDB editor? Check out [Dynobase](https://dynobase.dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafalwilinski%2Fedge-graphql-dynamodb-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafalwilinski%2Fedge-graphql-dynamodb-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafalwilinski%2Fedge-graphql-dynamodb-api/lists"}