{"id":18417387,"url":"https://github.com/stellar/js-stellar-xdr-json","last_synced_at":"2025-04-07T12:32:26.906Z","repository":{"id":241468236,"uuid":"802166563","full_name":"stellar/js-stellar-xdr-json","owner":"stellar","description":"A JS library for XDR conversion to and from JSON.","archived":false,"fork":false,"pushed_at":"2025-01-12T02:28:59.000Z","size":60,"stargazers_count":2,"open_issues_count":4,"forks_count":3,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-03-22T18:41:26.525Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/stellar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2024-05-17T16:41:11.000Z","updated_at":"2024-11-27T20:07:17.000Z","dependencies_parsed_at":"2024-06-07T00:35:57.694Z","dependency_job_id":"b5f1b2c1-e388-4ada-91be-236f8320f17b","html_url":"https://github.com/stellar/js-stellar-xdr-json","commit_stats":null,"previous_names":["stellar/js-stellar-xdr-json"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Fjs-stellar-xdr-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Fjs-stellar-xdr-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Fjs-stellar-xdr-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Fjs-stellar-xdr-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stellar","download_url":"https://codeload.github.com/stellar/js-stellar-xdr-json/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247653224,"owners_count":20973785,"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":[],"created_at":"2024-11-06T04:09:15.136Z","updated_at":"2025-04-07T12:32:21.894Z","avatar_url":"https://github.com/stellar.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# js-stellar-xdr-json\nA JS library for XDR conversion to and from JSON.\n\n## Usage\n\n```js\nimport init, { decode, encode, guess, types, schema } from \"@stellar/stellar-xdr-json\";\n\n// Fetch and initialize the Wasm module.\nawait init();\n\n// Get a list of XDR types.\nconsole.log(types());\n\n// Get the JSON schema for any type.\nconsole.log(schema(\"TransactionResult\"));\n\n// Guess what types an XDR value could be.\nconsole.log(guess(\"AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=\"));\n\n// Encode an XDR value.\nconsole.log(encode(\n    \"TransactionResult\",\n    JSON.stringify(\n        {\n            \"fee_charged\": 100,\n            \"result\": {\n                \"tx_success\": [{ \"op_inner\": { \"payment\": \"success\" } }],\n            },\n            \"ext\": \"v0\",\n        },\n    ),\n));\n\n// Decode an XDR value.\nconsole.log(\n    decode(\"TransactionResult\", \"AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=\"),\n);\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellar%2Fjs-stellar-xdr-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstellar%2Fjs-stellar-xdr-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellar%2Fjs-stellar-xdr-json/lists"}