{"id":18016985,"url":"https://github.com/fitzgen/wbgvm","last_synced_at":"2025-08-17T19:39:35.849Z","repository":{"id":66008186,"uuid":"127267530","full_name":"fitzgen/wbgvm","owner":"fitzgen","description":"Consumes WebIDL and TypeScript definition files and emits wasm-bindgen extern declarations","archived":false,"fork":false,"pushed_at":"2018-03-29T10:04:11.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-17T11:59:47.504Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/fitzgen.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":"2018-03-29T09:17:00.000Z","updated_at":"2018-04-13T06:09:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c5ceb3b-5e12-4c90-9ff1-e59b4324fb0e","html_url":"https://github.com/fitzgen/wbgvm","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/fitzgen%2Fwbgvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitzgen%2Fwbgvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitzgen%2Fwbgvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitzgen%2Fwbgvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fitzgen","download_url":"https://codeload.github.com/fitzgen/wbgvm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247202743,"owners_count":20900834,"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-10-30T04:19:51.915Z","updated_at":"2025-04-04T15:32:59.911Z","avatar_url":"https://github.com/fitzgen.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"⚠ NOT YET IMPLEMENTED ⚠\n\n# `wbgvm`\n\nThe `wasm-bindgen` virtual machine.\n\nConsumes WebIDL and TypeScript definition files and emits `wasm-bindgen` `extern\ntype` and `extern fn` declarations.\n\n## Architecture\n\n### Frontends\n\nThere are two frontends:\n\n1. TypeScript\n2. WebIDL\n\nDespite parsing and munging different input languages, both frontends translate\nthe input into the same IR.\n\n#### TypeScript Frontend\n\nWritten in TypeScript and uses the TypeScript compiler API to parse `.d.ts`\ndefinition files and emit the IR as JSON. This TypeScript frontend is run as a\nsubprocess.\n\nhttps://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API\n\n#### WebIDL Frontend\n\nThis is pure Rust. We use the `webidl` crate to parse WebIDL interface\ndefinitions and translate them into our IR.\n\n### Intermediate Representation (IR)\n\nThe IR has a well-defined JSON encoding. It can describe any `wasm-bindgen`\nextern declaration.\n\n### Code Generation\n\nThe code generation serves as the shared backend for `wbgvm`. It takes the IR\nand translates it into Rust source text defining `#[wasm_bindgen]` declarations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitzgen%2Fwbgvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffitzgen%2Fwbgvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitzgen%2Fwbgvm/lists"}