{"id":30211212,"url":"https://github.com/ahmetcanaksu/device-database","last_synced_at":"2026-05-02T18:34:15.511Z","repository":{"id":137849252,"uuid":"168413474","full_name":"ahmetcanaksu/Device-Database","owner":"ahmetcanaksu","description":"A library that detects collection of development boards.","archived":false,"fork":false,"pushed_at":"2022-01-16T15:46:17.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-04T20:28:30.502Z","etag":null,"topics":["nodejs","orangepi","raspberry-pi","robotics","rpi"],"latest_commit_sha":null,"homepage":"","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/ahmetcanaksu.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":"2019-01-30T20:52:22.000Z","updated_at":"2022-12-09T23:15:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"7bddb450-c687-47f0-83c8-5c8f89608c10","html_url":"https://github.com/ahmetcanaksu/Device-Database","commit_stats":null,"previous_names":["ahmetcanaksu/device-database"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ahmetcanaksu/Device-Database","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetcanaksu%2FDevice-Database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetcanaksu%2FDevice-Database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetcanaksu%2FDevice-Database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetcanaksu%2FDevice-Database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmetcanaksu","download_url":"https://codeload.github.com/ahmetcanaksu/Device-Database/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetcanaksu%2FDevice-Database/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270305842,"owners_count":24562109,"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-13T02:00:09.904Z","response_time":66,"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","orangepi","raspberry-pi","robotics","rpi"],"created_at":"2025-08-13T20:34:14.264Z","updated_at":"2025-10-17T20:31:37.884Z","avatar_url":"https://github.com/ahmetcanaksu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Device-Database\nA library that detects collection of development boards listed below.\n\n#### Available devices on database\n\n|Raspberry Pi | Orange Pi|\n|--------------------|---------|\n|Raspberry Pi 3      | Orange Pi PC      |\n|Raspberry Pi B+     | Orange Pi PC Plus |\n|Raspberry Pi 2B     | Orange Pi Plus    |\n|Raspberry Pi 3B     | Orange Pi Lite    |\n|Raspberry Pi 3B+    | Orange Pi Plus 2  |\n|Raspberry Pi A+     | Orange Pi Plus 2E |\n|Raspberry Pi 3A+    | Orange Pi One     |\n|Raspberry Pi Zero   | Orange Pi 2       |\n|Raspberry Pi Zero W | Orange Pi PC 2    |\n|Raspberry Pi CM3+   | Orange Pi Zero    |\n|Raspberry Pi CM3    | Orange Pi Prime   |\n\n## Install\n\n```shell\n$ npm i device-database\n```\n---      \n\n### Construct module\n\n```js\nconst database = require(\"device-database\");\nconst data = new database.data()\n```\n---\n\n#### Get parsed data\n\nGet parsed file from /proc/cpuinfo \n\n```js\nconst data = new database.data()\nconsole.log(data.getParsed());\n\n/*\n[ { processor: '0',\n    modelName: 'ARMv7 Processor rev 4 (v7l)',\n    bogomips: '76.81',\n    features: 'half thumb',\n    cpuImplementer: '0x41',\n    cpuArchitecture: '7',\n    cpuVariant: '0x0',\n    cpuPart: '0xd03',\n    cpuRevision: '4' },\n    ...\n  { hardware: 'BCM2835',\n    revision: 'a02082',\n    serial: 'serialid' } ]\n*/\n\n```\n---\n\n#### Get device data\n\nGet device data\n\n```js\nconst data = new database.data()\nconsole.log(data.getDevice());\n\n/*\n  { hardware: 'BCM2835',\n    revision: 'a02082',\n    serial: 'serialid' }\n*/\n\n```\n\n---\n#### Get database data\n\nFind device data exist on database\n\n```js\nconst data = new database.data()\nconsole.log(data.getResult());\n\n/*\n{ model: '3B',\n  revision: '1.2',\n  ram: 1024,\n  manufacturer: 'Sony UK',\n  brand: 'raspberry' }\n*/\n\n```\n*Device results may different from others\n\n---\n#### Device exist\n\nCheck device exist on database\n\n```js\nconst data = new database.data()\nconsole.log(data.found());\n\n/*\ntrue || false\n*/\n```\n---\n\n#### Get experimental parser data\n\n```js\n\nconst data = new database.data()\nconsole.log(data.getParsed2());\n\n/*\n{ \n  cpu1: {\n    modelName: 'ARMv7 Processor rev 4 (v7l)',\n    bogomips: '76.81',\n    features: 'half thumb',\n    cpuImplementer: '0x41',\n    cpuArchitecture: '7',\n    cpuVariant: '0x0',\n    cpuPart: '0xd03',\n    cpuRevision: '4' \n  },\n  ...\n  device: {\n    cpuLength: 1,\n    hardware: 'BCM2835',\n    revision: 'a02082',\n    serial: 'serialid'\n  } \n}\n*/\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmetcanaksu%2Fdevice-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmetcanaksu%2Fdevice-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmetcanaksu%2Fdevice-database/lists"}