{"id":50151096,"url":"https://github.com/ordpool-space/ordpool-parser","last_synced_at":"2026-05-24T08:06:29.949Z","repository":{"id":234179252,"uuid":"730294820","full_name":"ordpool-space/ordpool-parser","owner":"ordpool-space","description":"The parsing engine that detects Inscriptions, Runes, BRC-20, SRC-20 Stamps, CAT-21, Atomicals, and Labitbus in Bitcoin transactions.","archived":false,"fork":false,"pushed_at":"2026-05-21T10:59:33.000Z","size":13026,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-21T18:58:40.190Z","etag":null,"topics":["atomicals","bitcoin","brc-20","cat-21","inscription","inscriptions","labitbu","npm","ordinals","rune","runes","src-20","typescript"],"latest_commit_sha":null,"homepage":"https://ordpool.space","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ordpool-space.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":"2023-12-11T16:04:10.000Z","updated_at":"2026-05-21T10:59:37.000Z","dependencies_parsed_at":"2024-04-18T12:11:59.553Z","dependency_job_id":"701ce86f-69f3-4f7c-a1e9-5b8f3c7b9e71","html_url":"https://github.com/ordpool-space/ordpool-parser","commit_stats":null,"previous_names":["ordpool-space/ordpool-parser","haushoppe/ordpool-parser"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/ordpool-space/ordpool-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ordpool-space%2Fordpool-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ordpool-space%2Fordpool-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ordpool-space%2Fordpool-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ordpool-space%2Fordpool-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ordpool-space","download_url":"https://codeload.github.com/ordpool-space/ordpool-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ordpool-space%2Fordpool-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33426022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T22:14:44.296Z","status":"online","status_checked_at":"2026-05-24T02:00:06.296Z","response_time":57,"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":["atomicals","bitcoin","brc-20","cat-21","inscription","inscriptions","labitbu","npm","ordinals","rune","runes","src-20","typescript"],"created_at":"2026-05-24T08:06:29.262Z","updated_at":"2026-05-24T08:06:29.944Z","avatar_url":"https://github.com/ordpool-space.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ordpool-parser\n\nYes, Bitcoin is money. Everything else is an attack on Bitcoin. We get it. [BIP 110](https://github.com/bitcoin/bips/blob/master/bip-0110.mediawiki) will fix this.\n\nBut you still want to know what's inside your blocks, don't you? Know your enemy! ;-)\n\n**ordpool-parser** is a zero-dependency TypeScript parser that detects and extracts digital artifacts from raw Bitcoin transactions: **Inscriptions**, **Runes** (including **Alkanes**), **BRC-20**, **SRC-20 Stamps**, **CAT-21**, **Atomicals**, and **Labitbu**.\n\nWorks in **Node.js** and **browsers** out of the box. Used by [ordpool.space](https://ordpool.space).\n\n```\nnpm install ordpool-parser\n```\n\n## What does it parse?\n\n| Protocol | What it detects | Key data extracted |\n|----------|----------------|-------------------|\n| **Inscriptions** | `OP_FALSE OP_IF \"ord\"` envelope in witness | Content, content type, metadata, parents, delegates, **galleries** (tag 17 properties with items + traits) |\n| **Runes** | `OP_RETURN` runestone | Etching, mint, transfers, cenotaphs; also surfaces **Alkanes** (sub-protocol via Runestone tag 16383 Protostones) |\n| **BRC-20** | JSON inscriptions with `\"p\": \"brc-20\"` | Deploy, mint, transfer operations |\n| **SRC-20** | RC4-encrypted stamp data in multisig outputs | Deploy, mint, transfer operations |\n| **CAT-21** | Transactions with `nLockTime == 21` | Deterministic cat image (SVG) + traits |\n| **Atomicals** | `OP_FALSE OP_IF \"atom\"` envelope in witness | Operation type, CBOR payload, args, file attachments |\n| **Labitbu** | WebP image in Taproot control block (NUMS key) | 4096-byte WebP image |\n\n## Quick start\n\nThe parser expects transactions in Esplora API JSON format (served by `api.ordpool.space`, `mempool.space`, `blockstream.info`, or your own Esplora-compatible backend).\n\n### Parse everything at once\n\n```ts\nimport { DigitalArtifactsParserService } from 'ordpool-parser';\n\nconst response = await fetch(`https://api.ordpool.space/api/tx/${txId}`);\nconst tx = await response.json();\n\n// Returns all digital artifacts found in the transaction\nconst artifacts = DigitalArtifactsParserService.parse(tx);\n```\n\n### Parse specific types\n\n```ts\nimport {\n  InscriptionParserService,\n  Cat21ParserService,\n  RuneParserService,\n  AtomicalParserService,\n  LabitbuParserService,\n  Src20ParserService,\n} from 'ordpool-parser';\n\n// Inscriptions (can return multiple — batch inscriptions)\nconst inscriptions = InscriptionParserService.parse(tx);\nif (inscriptions.length) {\n  console.log(inscriptions[0].contentType);\n  console.log(await inscriptions[0].getContent());\n\n  // Galleries (tag 17 properties)\n  const properties = await inscriptions[0].getProperties();\n  if (properties) {\n    console.log(properties.gallery);  // Array of { inscriptionId, title?, traits? }\n  }\n}\n\n// CAT-21\nconst cat = Cat21ParserService.parse(tx);\nif (cat) {\n  console.log(cat.getImage());   // SVG string\n  console.log(cat.getTraits());  // { genesis, gender, designIndex, ... }\n}\n\n// Runes\nconst rune = RuneParserService.parse(tx);\nif (rune?.runestone?.etching) {\n  console.log(rune.runestone.etching.runeName);\n}\n\n// Atomicals\nconst atomical = AtomicalParserService.parse(tx);\nif (atomical) {\n  console.log(atomical.operation);   // 'nft', 'dft', 'ft', 'mod', ...\n  console.log(atomical.getArgs());   // { request_ticker, mint_amount, ... }\n  console.log(atomical.getFiles()); // [{ name, contentType, data }]\n}\n\n// Labitbu\nconst labitbu = LabitbuParserService.parse(tx);\nif (labitbu) {\n  console.log(labitbu.getDataRaw()); // 4096-byte WebP image\n}\n```\n\n### Analyze a full block\n\n```ts\nimport { DigitalArtifactAnalyserService } from 'ordpool-parser';\n\n// Analyze all transactions in a block — returns per-type counts, fees, mint activity\nconst stats = await DigitalArtifactAnalyserService.analyseTransactions(blockTxns);\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fordpool-space%2Fordpool-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fordpool-space%2Fordpool-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fordpool-space%2Fordpool-parser/lists"}