{"id":16092332,"url":"https://github.com/alecthomas/psmap","last_synced_at":"2025-07-12T01:03:22.652Z","repository":{"id":66600218,"uuid":"10657562","full_name":"alecthomas/psmap","owner":"alecthomas","description":"Persistent static maps for Go","archived":false,"fork":false,"pushed_at":"2023-12-02T11:39:09.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T18:52:53.760Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alecthomas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2013-06-13T03:00:10.000Z","updated_at":"2017-07-28T04:01:45.000Z","dependencies_parsed_at":"2024-10-31T10:22:47.947Z","dependency_job_id":"ac9e6401-ee60-4d86-b767-bef27b20cdd7","html_url":"https://github.com/alecthomas/psmap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alecthomas/psmap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecthomas%2Fpsmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecthomas%2Fpsmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecthomas%2Fpsmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecthomas%2Fpsmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alecthomas","download_url":"https://codeload.github.com/alecthomas/psmap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecthomas%2Fpsmap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264922784,"owners_count":23683690,"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-10-09T16:07:07.025Z","updated_at":"2025-07-12T01:03:22.101Z","avatar_url":"https://github.com/alecthomas.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Persistent static maps for Go\n\npsmap generates binary files that contain persistent, static maps. It is useful for static data like a Geo IP database, geographical region boundaries, ngram tables, etc.\n\nWhen opened, the psmap file is mmapped, and an in-memory index constructed. Index RAM overhead is approximately N*36 bytes.\n\n## On-disk structure\n\nIn pseudo-Go code, the on disk structure is represented like this:\n\n```go\nstruct PSM struct {\n    Data [Size]KeyValue\n}\n\nstruct KeyValue struct {\n    KeySize uint32\n    ValueSize uint32\n    Key []byte\n    Value []byte\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falecthomas%2Fpsmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falecthomas%2Fpsmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falecthomas%2Fpsmap/lists"}