{"id":29866574,"url":"https://github.com/element39/bun-llvm","last_synced_at":"2026-04-09T15:51:00.915Z","repository":{"id":306674243,"uuid":"1026906826","full_name":"element39/bun-llvm","owner":"element39","description":"🍔 use LLVM with bun effortlessly","archived":false,"fork":false,"pushed_at":"2025-07-27T12:27:34.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-27T14:41:13.288Z","etag":null,"topics":["bindings","bun","c","cpp","ffi","go","ir","javascript","llvm","llvm-bindings","rust","typescript","zig"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/element39.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}},"created_at":"2025-07-26T21:52:55.000Z","updated_at":"2025-07-27T12:27:38.000Z","dependencies_parsed_at":"2025-07-27T14:51:40.229Z","dependency_job_id":null,"html_url":"https://github.com/element39/bun-llvm","commit_stats":null,"previous_names":["grngxd/llvm-bun","element39/bun-llvm"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/element39/bun-llvm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/element39%2Fbun-llvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/element39%2Fbun-llvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/element39%2Fbun-llvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/element39%2Fbun-llvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/element39","download_url":"https://codeload.github.com/element39/bun-llvm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/element39%2Fbun-llvm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267873727,"owners_count":24158678,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"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":["bindings","bun","c","cpp","ffi","go","ir","javascript","llvm","llvm-bindings","rust","typescript","zig"],"created_at":"2025-07-30T13:00:45.548Z","updated_at":"2025-12-30T19:54:11.731Z","avatar_url":"https://github.com/element39.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🍔 bun-llvm\n\u003e ` use LLVM with bun effortlessly `\n\n```ts\nimport LLVM from \"./llvm\";\n\nfunction main() {\n\t// initialize LLVM\n\tconst ctx = new LLVM.Context();\n\tconst mod = new LLVM.Module(\"demo\", ctx);\n\tconst builder = new LLVM.IRBuilder(ctx);\n\n\t// define types\n\tconst i32 = LLVM.Type.int32(ctx);\n\tconst fnType = new LLVM.FunctionType([i32, i32], i32);\n\n\t// {} are used to separate scopes (optional)\n\t{\n\t\t// create the function\n\t\tconst fn = mod.createFunction(\"add\", fnType, { linkage: LLVM.Linkage.External });\n\t\tconst entry = fn.addBlock(\"entry\");\n\n\t\tbuilder.insertInto(entry);\n\t\t\n\t\t{\n\t\t\t// get parameters \u0026 add them\n\t\t\tconst [a, b] = fn.getArgs();\n\t\t\tconst sum = builder.add(a, b);\n\t\t\t\n\t\t\t// return the result\n\t\t\tbuilder.ret(sum);\n\t\t}\n\n\t\t// make sure the function is valid\n\t\tfn.verify();\n\t}\n\t\n\t// verify the module\n\tmod.verify();\n\t\n\t// output IR\n\tconsole.log(mod.toString());\n}\n\nmain();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felement39%2Fbun-llvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felement39%2Fbun-llvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felement39%2Fbun-llvm/lists"}