{"id":30516107,"url":"https://github.com/0xf0xx0/qranode","last_synced_at":"2025-08-26T09:29:04.443Z","repository":{"id":55039996,"uuid":"283344308","full_name":"0xf0xx0/QRANode","owner":"0xf0xx0","description":"Node wrapper for https://quantumnumbers.anu.edu.au","archived":false,"fork":false,"pushed_at":"2024-12-17T15:07:41.000Z","size":59,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T13:51:29.910Z","etag":null,"topics":["nodejs","qrng","quantum-randomness"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xf0xx0.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":"2020-07-28T22:47:45.000Z","updated_at":"2024-12-17T04:01:51.000Z","dependencies_parsed_at":"2024-12-13T05:35:52.118Z","dependency_job_id":null,"html_url":"https://github.com/0xf0xx0/QRANode","commit_stats":null,"previous_names":["0xf0xx0/qranode","experibass/qranode"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/0xf0xx0/QRANode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xf0xx0%2FQRANode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xf0xx0%2FQRANode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xf0xx0%2FQRANode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xf0xx0%2FQRANode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xf0xx0","download_url":"https://codeload.github.com/0xf0xx0/QRANode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xf0xx0%2FQRANode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272205137,"owners_count":24891689,"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-08-26T02:00:07.904Z","response_time":60,"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":["nodejs","qrng","quantum-randomness"],"created_at":"2025-08-26T09:29:01.621Z","updated_at":"2025-08-26T09:29:04.434Z","avatar_url":"https://github.com/0xf0xx0.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QRANode\n\n## A wrapper for ANUs Quantum RNG API.\n\nSee here for more info on the rng: https://quantumnumbers.anu.edu.au/\nyou should donate to them too, this is really cool :3\n\n[NPM Link](https://npmjs.com/package/qranode)\n\n## Installation\n\n`npm i qranode`\n\n## Usage:\n\n```js\nconst qranode = require('qranode')\n\n/// get the request function\nconst qrng = qranode('API_KEY_GOES_HERE', 'optional HTTP user agent string')\n\n/// get random uint8 (default values)\nconst uint8Arr = await qrng() // -\u003e { success: true, type: 'uint8', length: '1', data: [ 126 ] }\n\n// .then.catch\nqrng({ dataType: 'uint8', amount: 5 }) // get 5 numbers from 0 to 255\n    .then(console.log) // log the output\n    .catch(console.error) // or the errors, if any\n\n// you can even get hex!\nqrng({ dataType: 'hex16', amount: 5, blockSize: 2 }) // get 5 hex strings, each string consisting of 2 hex blocks between 0000 and ffff\n```\n\nThe API returns a JSON object with the success status, the type requested, the length of the array, and the array of numbers. The example below is the result of a request for two hex16 numbers with a block size of 4.\n\n```js\n{\n  success: true,\n  type: 'hex16',\n  length: '2',\n  data: [ '2f2497d207a39d67', 'dd537fa2b1c4c6b2' ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xf0xx0%2Fqranode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xf0xx0%2Fqranode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xf0xx0%2Fqranode/lists"}