{"id":14557233,"url":"https://github.com/RGB-Tools/rgb-lib-nodejs","last_synced_at":"2025-09-04T02:31:42.897Z","repository":{"id":255396383,"uuid":"731163275","full_name":"RGB-Tools/rgb-lib-nodejs","owner":"RGB-Tools","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-29T09:53:56.000Z","size":80,"stargazers_count":3,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-08T21:53:18.962Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/RGB-Tools.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":"2023-12-13T13:48:18.000Z","updated_at":"2025-07-29T09:53:52.000Z","dependencies_parsed_at":"2024-12-31T00:30:42.744Z","dependency_job_id":"6b2fd6d6-db88-45f0-8181-f0c53a95049f","html_url":"https://github.com/RGB-Tools/rgb-lib-nodejs","commit_stats":null,"previous_names":["rgb-tools/rgb-lib-nodejs"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/RGB-Tools/rgb-lib-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RGB-Tools%2Frgb-lib-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RGB-Tools%2Frgb-lib-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RGB-Tools%2Frgb-lib-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RGB-Tools%2Frgb-lib-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RGB-Tools","download_url":"https://codeload.github.com/RGB-Tools/rgb-lib-nodejs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RGB-Tools%2Frgb-lib-nodejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273541939,"owners_count":25124062,"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-09-04T02:00:08.968Z","response_time":61,"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":[],"created_at":"2024-09-06T20:00:53.723Z","updated_at":"2025-09-04T02:31:42.890Z","avatar_url":"https://github.com/RGB-Tools.png","language":"JavaScript","readme":"# RGB Lib Node.js bindings\n\n[![npm version](https://badge.fury.io/js/rgb-lib.svg)](https://badge.fury.io/js/rgb-lib)\n\nThis project builds Node.js packages for the [rgb-lib] Rust library, which is\nincluded as a git submodule. The bindings are created using the [rgb-lib C++\nbindings], which are located inside the rgb-lib submodule, and [Swig].\n\n## Platform-specific packages\n\nBindings are platform-specific and are published into dedicated packages (under\nthe @rgb-tools namespace). The main package is a thin layer that depends on the\ncorrect platform-specific package for the platform where it's being installed.\n\n## Requirements\n\n- Python 3\n- development tools (e.g. make, g++)\n\n## Installation\n\nInstall the package with npm:\n\n```sh\nnpm install rgb-lib\n```\n\n## Usage\n\nImport the package with:\n\n```javascript\nconst rgblib = require(\"rgb-lib\");\n```\n\nThen call its exported functions. As an example:\n\n```javascript\nlet keys = rgblib.generateKeys(rgblib.BitcoinNetwork.Regtest);\nconsole.log(keys);\n```\n\n\u003e :warning: **Warning: memory will be leaked if not taken care of manually**\n\u003e\n\u003e Check the example to see how you can manually avoid memory leaks\n\n[Swig]: https://github.com/swig/swig\n[rgb-lib C++ bindings]: https://github.com/RGB-Tools/rgb-lib/tree/master/bindings/c-ffi\n[rgb-lib]: https://github.com/RGB-Tools/rgb-lib\n","funding_links":[],"categories":["Libraries and CLIs"],"sub_categories":["Main RGB Standards"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRGB-Tools%2Frgb-lib-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRGB-Tools%2Frgb-lib-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRGB-Tools%2Frgb-lib-nodejs/lists"}