{"id":13734879,"url":"https://github.com/gabbifish/amp-transform-wasm","last_synced_at":"2026-01-26T18:13:39.361Z","repository":{"id":70494038,"uuid":"178297526","full_name":"gabbifish/amp-transform-wasm","owner":"gabbifish","description":"A WASM version of the AMP transform library work for use in Cloudflare Workers","archived":false,"fork":false,"pushed_at":"2019-03-29T21:02:16.000Z","size":4357,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-03T03:04:08.041Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/gabbifish.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}},"created_at":"2019-03-28T23:29:37.000Z","updated_at":"2024-08-03T03:04:08.899Z","dependencies_parsed_at":null,"dependency_job_id":"fd131f00-4031-4431-aa02-99877d4aebf3","html_url":"https://github.com/gabbifish/amp-transform-wasm","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/gabbifish%2Famp-transform-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabbifish%2Famp-transform-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabbifish%2Famp-transform-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabbifish%2Famp-transform-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabbifish","download_url":"https://codeload.github.com/gabbifish/amp-transform-wasm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224727168,"owners_count":17359530,"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":[],"created_at":"2024-08-03T03:01:00.771Z","updated_at":"2026-01-26T18:13:39.293Z","avatar_url":"https://github.com/gabbifish.png","language":"JavaScript","funding_links":[],"categories":["Msc"],"sub_categories":[],"readme":"# AMP-transformer\nThis repository contains a go/WASM port of the [AMP packager transform library](https://github.com/ampproject/amppackager/tree/master/transformer). It is derived from Devin Mullin's work towards minimizing the Go WASM runtime so Go/WASM binaries can be run within CF Workers' 128-MB heap memory limit.\n\n## Building the AMP transformation\nYou'll need to compile a separate branch of Go that contains changes to the runtime such that\nthe amount of heap memory used can reasonably fit in a worker.\n\n```bash\ngit clone https://github.com/gabbifish/go\ncd go/\ngit checkout gabbi-small\nsrc/make.bash\n```\n\nThen use it to build the wasm binary from worker.go:\n```bash\ncd go-wasm/\nGOOS=js GOARCH=wasm path/to/custom-go/bin/go build -o main.wasm main.go\n```\n\nUpload the wasm to Cloudflare Workers with name `TRANSFORM_WASM`.\n\n## Building for Workers\nFirst, make sure to pull node dependencies:\n```bash\nnpm install\n```\n\nthen, to build for workers, run \n```bash\nnpm run build\n```\nThe final outputted workers code is in the `dist/` directory. There is a fully minified and less minified version of the code, so you can debug the code in the workers console using the less minified version before deploying the fully minified version.\n\n## Todo:\n1. Set up makefile with nice API calls for easily uploading the worker and the wasm binary.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabbifish%2Famp-transform-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabbifish%2Famp-transform-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabbifish%2Famp-transform-wasm/lists"}