{"id":37180460,"url":"https://github.com/powersj/pciids","last_synced_at":"2026-01-14T20:58:50.992Z","repository":{"id":57562467,"uuid":"330812368","full_name":"powersj/pciids","owner":"powersj","description":"Lookup vendor and device names using PCI IDs!","archived":false,"fork":false,"pushed_at":"2025-12-05T14:09:08.000Z","size":688,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-09T00:40:40.199Z","etag":null,"topics":["cli","go","golang","hardware","hardware-ids","pciid"],"latest_commit_sha":null,"homepage":"https://powersj.github.io/pciids","language":"Go","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/powersj.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}},"created_at":"2021-01-18T23:35:17.000Z","updated_at":"2025-12-05T14:08:46.000Z","dependencies_parsed_at":"2022-09-26T16:40:31.536Z","dependency_job_id":null,"html_url":"https://github.com/powersj/pciids","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/powersj/pciids","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powersj%2Fpciids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powersj%2Fpciids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powersj%2Fpciids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powersj%2Fpciids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/powersj","download_url":"https://codeload.github.com/powersj/pciids/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powersj%2Fpciids/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","go","golang","hardware","hardware-ids","pciid"],"created_at":"2026-01-14T20:58:50.167Z","updated_at":"2026-01-14T20:58:50.985Z","avatar_url":"https://github.com/powersj.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pciids\n\n*Lookup vendor and device names using PCI IDs!*\n\n[![Build Status](https://travis-ci.com/powersj/pciids.svg?branch=master)](https://travis-ci.com/powersj/pciids/) [![Go Report Card](https://goreportcard.com/badge/github.com/powersj/pciids)](https://goreportcard.com/report/github.com/powersj/pciids) [![Go Reference](https://pkg.go.dev/badge/github.com/powersj/pciids.svg)](https://pkg.go.dev/github.com/powersj/pciids)\n\n## CLI\n\nTo search for devices using the CLI, pass in either:\n\n  a) a pair of vendor and device PCI IDs\n  b) two pairs, vendor and device PCI IDs as well as sub-vendor and\n     sub-device PCI IDs:\n\nHere are some examples:\n\n```text\n$ pciids 1ed5\n1ed5:0100 - Moore Threads Technology Co.,Ltd MTT S10\n1ed5:0101 - Moore Threads Technology Co.,Ltd MTT S10\n1ed5:0102 - Moore Threads Technology Co.,Ltd MTT S30\n1ed5:0105 - Moore Threads Technology Co.,Ltd MTT S50\n1ed5:0106 - Moore Threads Technology Co.,Ltd MTT S60\n1ed5:0111 - Moore Threads Technology Co.,Ltd MTT S100\n1ed5:0121 - Moore Threads Technology Co.,Ltd MTT S1000M\n1ed5:0122 - Moore Threads Technology Co.,Ltd MTT S1000\n1ed5:0123 - Moore Threads Technology Co.,Ltd MTT S2000\n1ed5:01ff - Moore Threads Technology Co.,Ltd MTT HDMI/DP Audio\n1ed5:0201 - Moore Threads Technology Co.,Ltd G2D30\n1ed5:0202 - Moore Threads Technology Co.,Ltd G2D20\n1ed5:0203 - Moore Threads Technology Co.,Ltd G2D10\n1ed5:0211 - Moore Threads Technology Co.,Ltd G2D40\n1ed5:0221 - Moore Threads Technology Co.,Ltd G2S80\n1ed5:0222 - Moore Threads Technology Co.,Ltd G2S85\n1ed5:0223 - Moore Threads Technology Co.,Ltd G2S4\n1ed5:0251 - Moore Threads Technology Co.,Ltd G2N10\n1ed5:02ff - Moore Threads Technology Co.,Ltd MTT HDMI/DP Audio\n$ pciids 1d0f efa1\n1d0f:efa1 - Amazon.com, Inc. Elastic Fabric Adapter (EFA)\n$ pciids 10de 2206 10de 1467\n10de:2206 10de:1467 - NVIDIA Corporation GA102 [GeForce RTX 3080]\n```\n\nIf there are multiple matches then all matches are returned.\n\n### JSON output\n\nThe command can take the `--json` flag to produce JSON output:\n\n```shell\n$ pciids 121a 0009 121a 0009 --json\n[\n    {\n        \"vendorID\": \"121a\",\n        \"deviceID\": \"0009\",\n        \"vendorName\": \"3Dfx Interactive, Inc.\",\n        \"deviceName\": \"Voodoo 4 / Voodoo 5\",\n        \"subVendorID\": \"121a\",\n        \"subDeviceID\": \"0009\",\n        \"subVendorName\": \"3Dfx Interactive, Inc.\",\n        \"subDeviceName\": \"Voodoo5 AGP 5500/6000\"\n    }\n]\n```\n\n### Debug output\n\nThe `--debug` flag to produce additional output while running:\n\n```shell\n$ pciids --json 121a 0009 121a 0009\nDEBU looking up 121a:0009 121a:0009\nDEBU downloading https://raw.githubusercontent.com/pciutils/pciids/master/pci.ids\nDEBU 200 OK\nDEBU parsing vendor IDs\nDEBU parsing PCI IDs\nDEBU found 1 results\n121a:0009 121a:0009 - 3Dfx Interactive, Inc. Voodoo5 AGP 5500/6000\n```\n\n## Install\n\nBelow outlines the various ways to obtain and install pciids.\n\n### From binary\n\nDownload the [latest release](https://github.com/powersj/pciids/releases/latest)\nof pciids for your platform and extract the tarball:\n\n```shell\nwget pciids\u003cversion\u003e_\u003cos\u003e_\u003carch\u003e.tar.gz\ntar zxvf pciids\u003cversion\u003e_\u003cos\u003e_\u003carch\u003e.tar.gz\n```\n\nThe tarball will extract the readme, license, and the pre-compiled binary.\n\n### From source\n\nTo build and install directly from source run:\n\n```shell\ngit clone https://github.com/powersj/pciids\ncd pciids\nmake\n```\n\nThe default make command will run `go build` and produce a binary in the root\ndirectory.\n\n### From go\n\nTo download using the `go get` command run:\n\n```shell\ngo get github.com/powersj/pciids\n```\n\nThe executable object file location will exist at `${GOPATH}/bin/pciids`\n\n## API usage\n\nUsers can take advantage of various functions in their own code:\n\n* `All()`: returns a list of all PCI ID devices\n* `LatestFile()`: string of the latest PCI ID database\n* `Parse(string)`: parses a given PCI ID database string\n* `QueryVendor(vendorID)`: Searches for devices matching a vendor ID\n* `QueryDevice(vendorID, deviceID)`: Searches for devices matching a PCI ID\n   pair\n* `QuerySubDevice(vendorID, deviceID, subVendorID, subDeviceID)`: Like\n   QueryDevice, but matches two PCI ID pairs (e.g. device and sub-device)\n\nAdditionally, the `PCIID` struct is available for use to create one-off IDs.\n\nBelow is an example of querying for matching devices using a PCI ID pair:\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n\n  \"github.com/powersj/pciids\"\n)\n\nfunc main() {\n  ids, err := pciids.QueryDevice(\"10de\", \"1467\")\n  if err != nil {\n    fmt.Println(\"Error getting device info: %v\", err)\n  }\n\n  for _, id := range ids {\n    fmt.Println(id.String())\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowersj%2Fpciids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowersj%2Fpciids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowersj%2Fpciids/lists"}