{"id":29601736,"url":"https://github.com/ted537/tsembind","last_synced_at":"2025-07-20T13:03:23.743Z","repository":{"id":47602704,"uuid":"366793653","full_name":"ted537/tsembind","owner":"ted537","description":"Generate typescript bindings for Embind projects","archived":false,"fork":false,"pushed_at":"2023-04-05T23:38:56.000Z","size":116,"stargazers_count":26,"open_issues_count":3,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-06T18:18:51.221Z","etag":null,"topics":["embind","emscripten","wasm"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ted537.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":"2021-05-12T17:15:38.000Z","updated_at":"2025-02-12T15:46:10.000Z","dependencies_parsed_at":"2024-06-19T01:35:48.316Z","dependency_job_id":"e2b3b4db-f77b-4c18-ae92-53059cd86a2e","html_url":"https://github.com/ted537/tsembind","commit_stats":{"total_commits":124,"total_committers":4,"mean_commits":31.0,"dds":0.08064516129032262,"last_synced_commit":"ea8d74da5c03764d34c52dd7e14efbf6638908f3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ted537/tsembind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ted537%2Ftsembind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ted537%2Ftsembind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ted537%2Ftsembind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ted537%2Ftsembind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ted537","download_url":"https://codeload.github.com/ted537/tsembind/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ted537%2Ftsembind/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266127485,"owners_count":23880448,"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":["embind","emscripten","wasm"],"created_at":"2025-07-20T13:03:22.401Z","updated_at":"2025-07-20T13:03:23.737Z","avatar_url":"https://github.com/ted537.png","language":"TypeScript","readme":"# Typescript for Emscripten (TSEMBIND)\n\nGenerate `.d.ts` files using your existing Emscripten projects.\nRe-compiling is not necessary!\n\n![image](https://user-images.githubusercontent.com/8276517/118375496-fe84d100-b58f-11eb-8999-a00c8cf66aa1.png)\n\n\nInstallation:\n```\nnpm i -g tsembind\n```\n\nUsage:\n```\ntsembind my-embind-lib.js\n```\n\n## How it works\n\nEmbind registers functions,classes, etc. at runtime,\nby calling JS functions like `__embind_register_function()` from WASM.\nThese functions can be replaced by replacing `WebAssembly.instantiate()` \nwith a wrapper.\nSimilarly, `__embind_register_function()` can be wrapped\nto compile the type information.\n\n## Limitations\n\nEmbind only knows the order and type of parameters at runtime. As such, declarations will refer to parameters as `arg0`, `arg1`, etc\n\n## Compatibility\n\nKnown to work with the following EMSDK config.\n\n```\nreleases-upstream-c2ac7520fad29a7937ed60ab6a95b08eb374c7ba-64bit\nnode-14.15.5-64bit\n```\n\n## Development\n\nInstall EMSDK, make sure everything is on the path, and then run `npm build`\n\nTo debug, run `npm link` followed by `tsembind lib/examplelib.js`\n\nTo run the automatic tests, run `npm test`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fted537%2Ftsembind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fted537%2Ftsembind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fted537%2Ftsembind/lists"}