{"id":13412998,"url":"https://github.com/maguro/pbf","last_synced_at":"2026-01-12T11:38:26.853Z","repository":{"id":38392043,"uuid":"104001262","full_name":"maguro/pbf","owner":"maguro","description":"OpenStreetMap PBF golang parser","archived":false,"fork":false,"pushed_at":"2022-10-09T23:10:07.000Z","size":50849,"stargazers_count":48,"open_issues_count":3,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-07-31T20:51:47.596Z","etag":null,"topics":["golang","openstreetmap","openstreetmap-pbf","openstreetmap-pbf-parser","openstreetmap-protobuffer-format"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/maguro.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}},"created_at":"2017-09-18T23:13:18.000Z","updated_at":"2024-02-29T11:51:15.000Z","dependencies_parsed_at":"2022-09-03T02:10:24.357Z","dependency_job_id":null,"html_url":"https://github.com/maguro/pbf","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/maguro/pbf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maguro%2Fpbf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maguro%2Fpbf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maguro%2Fpbf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maguro%2Fpbf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maguro","download_url":"https://codeload.github.com/maguro/pbf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maguro%2Fpbf/sbom","scorecard":{"id":612200,"data":{"date":"2025-08-11","repo":{"name":"github.com/maguro/pbf","commit":"e97dde2d4a6dddf82aa5ecd8c64770709f6cabce"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/maguro/pbf/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/maguro/pbf/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/maguro/pbf/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/maguro/pbf/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/maguro/pbf/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/maguro/pbf/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/maguro/pbf/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/maguro/pbf/ci.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T02:55:26.102Z","repository_id":38392043,"created_at":"2025-08-21T02:55:26.102Z","updated_at":"2025-08-21T02:55:26.102Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["golang","openstreetmap","openstreetmap-pbf","openstreetmap-pbf-parser","openstreetmap-protobuffer-format"],"created_at":"2024-07-30T20:01:32.125Z","updated_at":"2026-01-12T11:38:26.836Z","avatar_url":"https://github.com/maguro.png","language":"Go","readme":"# pbf\nOpenStreetMap PBF golang encoder/decoder\n\n[![Build Status](https://github.com/maguro/pbf/actions/workflows/ci.yml/badge.svg)](https://github.com/maguro/pbf/actions/workflows/ci.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/maguro/pbf)](https://goreportcard.com/report/github.com/maguro/pbf) \n[![Documentation](https://godoc.org/github.com/maguro/pbf?status.svg)](http://godoc.org/github.com/maguro/pbf)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=maguro_pbf\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=maguro_pbf)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nA golang based OpenStreetMap PBF encoder/decoder with a handy command line utility, `pbf`.\n\n## pbf Command Line Utility\n\nThe `pbf` CLI can be installed using the `go install` command:\n\n    $ go install m4o.io/pbf/cmd/pbf\n\n### pbf info\n\nThe `pbf` CLI can be used to obtain summary and extended information about an\nOpenStreetMap PBF file:\n\n    $ pbf info -i testdata/greater-london.osm.pbf\n    BoundingBox: [-0.511482, 51.28554, 0.335437, 51.69344]\n    RequiredFeatures: OsmSchema-V0.6, DenseNodes\n    OptionalFeatures: \n    WritingProgram: Osmium (http://wiki.openstreetmap.org/wiki/Osmium)\n    Source: \n    OsmosisReplicationTimestamp: 2014-03-24T21:55:02Z\n    OsmosisReplicationSequenceNumber: 0\n    OsmosisReplicationBaseURL: \n\nJSON output can be obtained by adding the `-j` option:\n\n    $ pbf info -j -i testdata/greater-london.osm.pbf | jq\n    {\n      \"BoundingBox\": {\n        \"Left\": -0.511482,\n        \"Right\": 0.33543700000000004,\n        \"Top\": 51.69344,\n        \"Bottom\": 51.285540000000005\n      },\n      \"RequiredFeatures\": [\n        \"OsmSchema-V0.6\",\n        \"DenseNodes\"\n      ],\n      \"OptionalFeatures\": null,\n      \"WritingProgram\": \"Osmium (http://wiki.openstreetmap.org/wiki/Osmium)\",\n      \"Source\": \"\",\n      \"OsmosisReplicationTimestamp\": \"2014-03-24T14:55:02-07:00\",\n      \"OsmosisReplicationSequenceNumber\": 0,\n      \"OsmosisReplicationBaseURL\": \"\"\n    }\n\nHere, [jq](https://stedolan.github.io/jq/) is used to pretty print the compact\nJSON.\n\nExtended information about the OpenStreetMap PBF file can be obtained\nby using the `-e` option.  This causes the entire file to be scanned, which can\ntake a very long time; a progress bar is displayed on `stderr`.\n\n    $ pbf info -e -i testdata/greater-london.osm.pbf\n    BoundingBox: [-0.511482, 51.28554, 0.335437, 51.69344]\n    RequiredFeatures: OsmSchema-V0.6, DenseNodes\n    OptionalFeatures: \n    WritingProgram: Osmium (http://wiki.openstreetmap.org/wiki/Osmium)\n    Source: \n    OsmosisReplicationTimestamp: 2014-03-24T21:55:02Z\n    OsmosisReplicationSequenceNumber: 0\n    OsmosisReplicationBaseURL: \n    NodeCount: 2,729,006\n    WayCount: 459,055\n    RelationCount: 12,833\n\nFinally, `pbf` can read an OpenStreetMap PBF file from `stdin`:\n\n    $ cat testdata/greater-london.osm.pbf | pbf info -e\n\nIn this case, a progress bar is not displayed since there is no way to know,\na priori, what the size of the PBF file is.\n","funding_links":[],"categories":["Geographic","位置信息与地理GEO处理库","Relational Databases","地理"],"sub_categories":["Advanced Console UIs","Search and Analytic Databases","SQL 查询语句构建库","检索及分析资料库"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaguro%2Fpbf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaguro%2Fpbf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaguro%2Fpbf/lists"}