{"id":29395219,"url":"https://github.com/paralin/go-quickjs-wasi","last_synced_at":"2026-04-17T05:34:12.812Z","repository":{"id":339299920,"uuid":"1129329497","full_name":"paralin/go-quickjs-wasi","owner":"paralin","description":"Go module containing an embedded quickjs wasi binary.","archived":false,"fork":false,"pushed_at":"2026-02-19T01:59:25.000Z","size":780,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-19T07:31:53.802Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/quickjs-ng/quickjs","language":"JavaScript","has_issues":false,"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/paralin.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-07T00:02:06.000Z","updated_at":"2026-02-19T01:59:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/paralin/go-quickjs-wasi","commit_stats":null,"previous_names":["paralin/go-quickjs-wasi"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/paralin/go-quickjs-wasi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralin%2Fgo-quickjs-wasi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralin%2Fgo-quickjs-wasi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralin%2Fgo-quickjs-wasi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralin%2Fgo-quickjs-wasi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paralin","download_url":"https://codeload.github.com/paralin/go-quickjs-wasi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralin%2Fgo-quickjs-wasi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31917061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["node","quickjs","wasi"],"created_at":"2025-07-10T11:27:14.556Z","updated_at":"2026-04-17T05:34:12.802Z","avatar_url":"https://github.com/paralin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-quickjs-wasi\n\n[![GoDoc Widget]][GoDoc] [![Go Report Card Widget]][Go Report Card]\n\n\u003e A Go module that embeds the QuickJS-NG WASI WebAssembly runtime.\n\n[GoDoc]: https://godoc.org/github.com/paralin/go-quickjs-wasi\n[GoDoc Widget]: https://godoc.org/github.com/paralin/go-quickjs-wasi?status.svg\n[Go Report Card Widget]: https://goreportcard.com/badge/github.com/paralin/go-quickjs-wasi\n[Go Report Card]: https://goreportcard.com/report/github.com/paralin/go-quickjs-wasi\n\n## Variants\n\nThis repository provides the **command model** WASM binary, where QuickJS runs to completion in `_start()`. If you need re-entrant execution with host-controlled scheduling (for browsers, Node.js, Deno, or event-loop integration), see the **reactor model** variant:\n\n- [go-quickjs-wasi-reactor](https://github.com/aperturerobotics/go-quickjs-wasi-reactor) - Exports `qjs_init()`, `qjs_eval()`, `qjs_loop_once()` for non-blocking execution\n\n## About QuickJS-NG\n\nQuickJS is a small and embeddable JavaScript engine. It aims to support the latest ECMAScript specification.\n\nThis project uses [QuickJS-NG] which is a fork of the original [QuickJS project]\nby Fabrice Bellard and Charlie Gordon, after it went dormant, with the intent of\nreigniting its development.\n\n[QuickJS-NG]: https://github.com/quickjs-ng/quickjs\n[QuickJS project]: https://bellard.org/quickjs/\n\n## Purpose\n\nThis module provides easy access to the QuickJS-NG JavaScript engine compiled to\nWebAssembly with WASI support. The WASM binary is embedded directly in the Go\nmodule, making it easy to use QuickJS in Go applications without external\ndependencies.\n\n## Features\n\n- Embeds the latest QuickJS-NG WASI WebAssembly binary\n- Provides version information about the embedded QuickJS release\n- Automatic update script to fetch the latest QuickJS-NG release\n\n## Usage\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/paralin/go-quickjs-wasi\"\n)\n\nfunc main() {\n    // Access the embedded WASM binary\n    wasmBytes := quickjswasi.QuickJSWASM\n    fmt.Printf(\"QuickJS WASM size: %d bytes\\n\", len(wasmBytes))\n\n    // Get version information\n    fmt.Printf(\"QuickJS version: %s\\n\", quickjswasi.Version)\n    fmt.Printf(\"Download URL: %s\\n\", quickjswasi.DownloadURL)\n}\n```\n\n## Example\n\nA complete example interactive JS REPL is provided in the `./wazero-quickjs` directory.\nThis demonstrates how to run QuickJS in a Wazero WebAssembly runtime.\n\nTo run the REPL:\n\n```bash\ncd ./wazero-quickjs \u0026\u0026 go run ./\n```\n\nThis will start an interactive JavaScript shell powered by QuickJS-NG.\n\nTo install the repl run in your home directory:\n\n```bash\ngo install github.com/paralin/go-quickjs-wasi/wazero-quickjs@master\n```\n\nThe `wazero-quickjs` command will now run the wazero repl.\n\n## Updating\n\nTo update to the latest QuickJS-NG release:\n\n```bash\n./update-quickjs.bash\n```\n\nThis script will:\n1. Fetch the latest release information from the QuickJS-NG GitHub repository\n2. Download the `qjs-wasi.wasm` file\n3. Generate version information constants\n\n## Testing\n\n```bash\ngo test\n```\n\n## License\n\nThis module is released under the same license as the embedded QuickJS-NG project.\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparalin%2Fgo-quickjs-wasi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparalin%2Fgo-quickjs-wasi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparalin%2Fgo-quickjs-wasi/lists"}