{"id":13547081,"url":"https://github.com/owenthereal/godzilla","last_synced_at":"2025-04-12T21:25:45.978Z","repository":{"id":57498292,"uuid":"91023587","full_name":"owenthereal/godzilla","owner":"owenthereal","description":"Godzilla is a ES2015 to Go source code transpiler and runtime","archived":false,"fork":false,"pushed_at":"2017-08-07T15:36:34.000Z","size":101,"stargazers_count":1483,"open_issues_count":8,"forks_count":31,"subscribers_count":36,"default_branch":"master","last_synced_at":"2024-10-29T14:18:38.497Z","etag":null,"topics":["compiler","es2015","golang","javascript","transpiler"],"latest_commit_sha":null,"homepage":"https://github.com/jingweno/godzilla","language":"Go","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/owenthereal.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}},"created_at":"2017-05-11T21:07:13.000Z","updated_at":"2024-10-29T06:51:56.000Z","dependencies_parsed_at":"2022-09-03T23:52:14.383Z","dependency_job_id":null,"html_url":"https://github.com/owenthereal/godzilla","commit_stats":null,"previous_names":["jingweno/godzilla"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenthereal%2Fgodzilla","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenthereal%2Fgodzilla/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenthereal%2Fgodzilla/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenthereal%2Fgodzilla/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owenthereal","download_url":"https://codeload.github.com/owenthereal/godzilla/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248633317,"owners_count":21136853,"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":["compiler","es2015","golang","javascript","transpiler"],"created_at":"2024-08-01T12:00:50.744Z","updated_at":"2025-04-12T21:25:45.946Z","avatar_url":"https://github.com/owenthereal.png","language":"Go","readme":"# Godzilla: Go running JavaScript\n\n## Overview\n\nGodzilla is a [ES2015](http://babeljs.io/learn-es2015) to Go source code transpiler and runtime that is intended to be a near drop-in replacement for [Node.js](https://nodejs.org).\nIt compiles ES2015 source code to Go source code which is then compiled to native code.\nThe compiled Go source code is a series of calls to the Godzilla runtime, a Go library serving a similar purpose to Node.js.\n\nGodzilla parses ES2015 source code with the awesome [babylon](https://github.com/babel/babylon).\nThat means at the moment Node.js is required for compilation.\nAs Godzilla becomes mature, `babylon` will be compiled to Go source code using Godzilla itself so that the Node.js dependency can be dropped.\n\n**Note that Godzilla is at a very early stage and only very few language features are implemented**\n\n[![asciicast](https://asciinema.org/a/0e2ce574fm9d23mwxmfg0jo93.png)](https://asciinema.org/a/0e2ce574fm9d23mwxmfg0jo93)\n\n## Compiling\n\nMake sure Go and Node.js are installed properly, then run:\n\n```\n$ make\n```\n\n## Running\n\n```\n$ echo \"console.log('Hello, Godzilla')\" | bin/godzilla run\nHello, Godzilla\n$ echo \"console.log('Hello, Godzilla')\" | bin/godzilla build -o hello\n$ ./hello\nHello, Godzilla\n```\n\n## Performance\n\nThere are still lots of works to get Godzilla to a stable state, but this is one preliminary benchmark for a simple script about program startup time:\n\n```\n$ echo \"console.log('Hello, Godzilla')\" | bin/godzilla build -o hello\n$ time ./hello\nHello, Godzilla\n./hello  0.00s user 0.00s system 30% cpu 0.013 total\n\n$ echo \"console.log('Hello, Godzilla')\" \u003e hello.js\n$ time node hello.js\nHello, Godzilla\nnode hello.js  0.07s user 0.03s system 70% cpu 0.137 total\n```\n\n## Talks\n\nYou can find my GopherCon 2017 lightening talk [here](https://www.youtube.com/watch?v=zSW0nKArIvU).\n\n## Related Arts\n\n* [grumpy](https://github.com/google/grumpy)\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowenthereal%2Fgodzilla","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowenthereal%2Fgodzilla","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowenthereal%2Fgodzilla/lists"}