{"id":20444896,"url":"https://github.com/snapchat/pixel-server-gateway","last_synced_at":"2026-03-03T18:32:01.022Z","repository":{"id":42773128,"uuid":"501001202","full_name":"Snapchat/pixel-server-gateway","owner":"Snapchat","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-15T09:12:11.000Z","size":139,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-13T00:26:10.547Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Snapchat.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-06-07T20:55:12.000Z","updated_at":"2023-05-03T07:17:35.000Z","dependencies_parsed_at":"2025-04-13T00:23:39.172Z","dependency_job_id":"12f78b53-bc10-4e1e-997a-af67bdaef827","html_url":"https://github.com/Snapchat/pixel-server-gateway","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Snapchat/pixel-server-gateway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snapchat%2Fpixel-server-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snapchat%2Fpixel-server-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snapchat%2Fpixel-server-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snapchat%2Fpixel-server-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Snapchat","download_url":"https://codeload.github.com/Snapchat/pixel-server-gateway/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snapchat%2Fpixel-server-gateway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30054585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"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-15T10:09:58.453Z","updated_at":"2026-03-03T18:32:00.986Z","avatar_url":"https://github.com/Snapchat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SC Gateway\n\n## Deploy it on Google Cloud Run\n[![Run on Google Cloud](https://deploy.cloud.run/button.svg)](https://deploy.cloud.run?git_repo=https://github.com/Snapchat/pixel-server-gateway.git)\n\n## Deploy it on AWS Cloudformation\n[![](https://s3.amazonaws.com/cloudformation-examples/cloudformation-launch-stack.png)](https://console.aws.amazon.com/cloudformation/home?#/stacks/create/template?stackName=snap-pixel-gateway\u0026templateURL=https://snap-launchpad-public.s3.amazonaws.com/gateway/cloudformation.yaml)\n\n## Updated front-end code:\n\n```\n\u003c!-- Snap Pixel Code --\u003e\n\u003cscript type='text/javascript'\u003e\n  (function(e,t,n){if(e.snaptr)return;var a=e.snaptr=function()\n          {a.handleRequest?a.handleRequest.apply(a,arguments):a.queue.push(arguments)};\n          a.queue=[];var s='script';r=t.createElement(s);r.async=!0;\n          r.src=n;var u=t.getElementsByTagName(s)[0];\n          u.parentNode.insertBefore(r,u);})(window,document,\n  '{{***HOST_URL_GOES_HERE***}}/scevent.min.js');\n\n        snaptr('init', '{{***PIXEL_ID_GOES_HERE***}}', {\n  'user_email': '__INSERT_USER_EMAIL__'\n              });\n\n        snaptr('track', 'PAGE_VIEW');\n\n\u003c/script\u003e\n\u003c!-- End Snap Pixel Code --\u003e\n```\n\n## To Build a dockerimage:\n\n*Prerequisites:*\n\n* Install Docker (if you don't already have it)\n* Install [pack](https://github.com/buildpacks/pack/releases)\n```\nbrew install buildpacks/tap/pack\n```\n\n### Creating the Image\n\nWe utilize Google's Cloud Function Builder [buildpack](https://github.com/GoogleCloudPlatform/buildpacks) to ensure consistency with what will be generated on Google Cloud Functions\n\n```\npack build snap-pixel-gateway -B gcr.io/buildpacks/builder:v1\n```\n\nAfter running that command you should have a docker image named `snap-pixel-gateway`\n\nThis image can then be pushed to a repository with `docker push` or exported as a `.tar.gz` with `docker export`\n\n### Running the container \n\nTo run the built contianer, you may simply:\n\n```\ndocker run --rm -p 8080:8080 snap-pixel-gateway\n```\n\nAnd the server should be up and running on port `8080`\n\nWhile this is suitable for very testing and development, in production you should use something like `docker compose` or `kubernetes` or utilize your hosting architecture's container orchestration such as Amazon ECS to automatically scale up and down and ensure health of containers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnapchat%2Fpixel-server-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnapchat%2Fpixel-server-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnapchat%2Fpixel-server-gateway/lists"}