{"id":20645194,"url":"https://github.com/czbix/disasm-web","last_synced_at":"2025-04-16T02:11:58.539Z","repository":{"id":48725760,"uuid":"516996580","full_name":"CzBiX/disasm-web","owner":"CzBiX","description":"Online Assembler and Disassembler, support offline usage.","archived":false,"fork":false,"pushed_at":"2023-09-19T13:32:52.000Z","size":2405,"stargazers_count":44,"open_issues_count":1,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-16T02:11:39.923Z","etag":null,"topics":["capstone","emscripten","keystone","wasm"],"latest_commit_sha":null,"homepage":"https://disasm.czbix.com","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/CzBiX.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":"2022-07-23T08:06:25.000Z","updated_at":"2025-04-14T14:11:53.000Z","dependencies_parsed_at":"2024-10-28T08:04:27.616Z","dependency_job_id":"b3e64ffa-a53f-4868-b3c4-49cd290b3f0f","html_url":"https://github.com/CzBiX/disasm-web","commit_stats":{"total_commits":24,"total_committers":2,"mean_commits":12.0,"dds":0.04166666666666663,"last_synced_commit":"555a3a6332c6682be3f7ab02f578113f73833635"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CzBiX%2Fdisasm-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CzBiX%2Fdisasm-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CzBiX%2Fdisasm-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CzBiX%2Fdisasm-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CzBiX","download_url":"https://codeload.github.com/CzBiX/disasm-web/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249183106,"owners_count":21226142,"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":["capstone","emscripten","keystone","wasm"],"created_at":"2024-11-16T16:19:06.877Z","updated_at":"2025-04-16T02:11:58.502Z","avatar_url":"https://github.com/CzBiX.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# disasm-web\n[![npm](https://img.shields.io/npm/v/capstone-wasm?label=capstone-wasm)](https://www.npmjs.com/package/capstone-wasm)\n[![npm](https://img.shields.io/npm/v/keystone-wasm?label=keystone-wasm)](https://www.npmjs.com/package/keystone-wasm)\n\nOnline Assembler and Disassembler.\n\nThis project ported [capstone](https://github.com/capstone-engine/capstone) and [keystone](https://github.com/keystone-engine/keystone) into the browser via [emscripten](https://emscripten.org/).\n\nPlayground: https://disasm.czbix.com/ (support offline usage)\n\n## NPM packages\nThere are two packages available: [`capstone-wasm`](https://www.npmjs.com/package/capstone-wasm) and [`keystone-wasm`](https://www.npmjs.com/package/keystone-wasm).\n\n### Usage\n\n```js\nimport {\n  Const, Capstone, loadCapstone,\n} from 'capstone-wasm'\n\nawait loadCapstone()\n\nconst capstone = new Capstone(Const.CS_ARCH_X86, Const.CS_MODE_32)\n// the code can be bytes array or Uint8Array\nconst code = [0x55, 0x8b, 0xec, 0x83, 0xc4, 0x0c, 0xc3]\nconst insns = capstone.disasm(code, {\n  address: 0x1000,\n})\n\ninsns.forEach(insn =\u003e {\n  console.log(insn.mnemonic, insn.opStr)\n})\n```\n\n```js\nimport {\n  Const, Keystone, loadKeystone,\n} from 'keystone-wasm'\n\nawait loadKeystone()\n\nconst capstone = new Keystone(Const.KS_ARCH_X86, Const.KS_MODE_32)\n// can separate code by `\\n` or `;`\nconst code = `push ebp\nmov ebp, esp\nadd esp, 0xc\nret`\n// bytes is a Uint8Array\nconst bytes = keystone.asm(code, {\n  address: 0x1000,\n})\n```\n\n## Cons\nNot support detail feature(`CS_OPT_DETAIL`) yet.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczbix%2Fdisasm-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fczbix%2Fdisasm-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczbix%2Fdisasm-web/lists"}