{"id":28477425,"url":"https://github.com/cardanosolutions/ogmios-mdk","last_synced_at":"2025-10-09T03:33:30.653Z","repository":{"id":282422563,"uuid":"947980196","full_name":"CardanoSolutions/ogmios-mdk","owner":"CardanoSolutions","description":"A minimalist JavaScript development kit for Ogmios.","archived":false,"fork":false,"pushed_at":"2025-03-14T14:51:43.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-30T08:45:11.702Z","etag":null,"topics":["cardano","client","javascript","ogmios","sdk"],"latest_commit_sha":null,"homepage":"https://cardanosolutions.github.io/ogmios-mdk/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CardanoSolutions.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}},"created_at":"2025-03-13T14:54:11.000Z","updated_at":"2025-03-14T14:51:46.000Z","dependencies_parsed_at":"2025-03-14T15:30:40.287Z","dependency_job_id":"12ceb270-16d2-4eaf-9df6-3daaf4b1dde2","html_url":"https://github.com/CardanoSolutions/ogmios-mdk","commit_stats":null,"previous_names":["cardanosolutions/ogmios-mdk"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/CardanoSolutions/ogmios-mdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CardanoSolutions%2Fogmios-mdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CardanoSolutions%2Fogmios-mdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CardanoSolutions%2Fogmios-mdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CardanoSolutions%2Fogmios-mdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CardanoSolutions","download_url":"https://codeload.github.com/CardanoSolutions/ogmios-mdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CardanoSolutions%2Fogmios-mdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000714,"owners_count":26082911,"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-10-09T02:00:07.460Z","response_time":59,"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":["cardano","client","javascript","ogmios","sdk"],"created_at":"2025-06-07T16:13:28.641Z","updated_at":"2025-10-09T03:33:30.630Z","avatar_url":"https://github.com/CardanoSolutions.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ogmios - Minimal Development Kit\n\n[![Licence](https://img.shields.io/github/license/CardanoSolutions/ogmios-mdk?style=for-the-badge)](https://github.com/CardanoSolutions/ogmios-mdk/blob/main/LICENSE)\n[![NPM](https://img.shields.io/npm/v/%40cardano-ogmios%2Fmdk?style=for-the-badge)](https://www.npmjs.com/package/@cardano-ogmios/mdk)\n\nA minimalist development kit in JavaScript for Ogmios.\n\n## Installation\n\n```\nyarn add @cardano-ogmios/mdk\n```\n\n## Usage\n\n### General usage\n\n```js\nimport { ogmios, Json } from \"@cardano-ogmios/mdk\";\n\nconst tip = await ogmios((ws, done) =\u003e {\n  ws.once(\"message\", (data) =\u003e {\n    done(Json.parse(data).result.tip)\n  });\n\n  ws.rpc(\"findIntersection\", { points: [ \"origin\" ] });\n});\n\nconsole.log(tip);\n```\n\n### Simple state-query\n\n```js\nimport { ogmios, Json } from \"@cardano-ogmios/mdk\";\n\nconst result = await ogmios((ws, done) =\u003e {\n  ws.queryLedgerState(\"tip\").then(done);\n});\n\nconsole.log(Json.stringify(result));\n```\n\n### Get a particular block child\n\n```js\nimport { ogmios, Json } from \"@cardano-ogmios/mdk\";\n\nawait ogmios(async (ws, done) =\u003e {\n  const chainFollower = await ws.newChainFollower(\n    [\n      {\n        id: \"3d6f139f9f019668fe0412cacfaeb9e0be42e7b0f6ab21d6bddbc12d771ec18a\",\n        slot: 86268539,\n      },\n    ],\n    1\n  );\n\n  for await (const { block } of chainFollower()) {\n    console.log(block);\n  }\n\n  done();\n});\n```\n\n### Follow the chain from the tip\n\n```js\nimport { ogmios, Json } from \"@cardano-ogmios/mdk\";\n\nawait ogmios(async (ws, done) =\u003e {\n  const chainFollower = await ws.newChainFollower();\n\n  for await (const { block } of chainFollower()) {\n    console.log(block);\n  }\n\n  done();\n});\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcardanosolutions%2Fogmios-mdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcardanosolutions%2Fogmios-mdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcardanosolutions%2Fogmios-mdk/lists"}