{"id":19097801,"url":"https://github.com/aaronland/go-http-mbtiles","last_synced_at":"2026-05-27T06:30:19.894Z","repository":{"id":72840692,"uuid":"306081924","full_name":"aaronland/go-http-mbtiles","owner":"aaronland","description":"Go HTTP handler for serving MBTiles databases.","archived":false,"fork":false,"pushed_at":"2020-10-22T16:47:40.000Z","size":2344,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T09:17:58.925Z","etag":null,"topics":["golang","http","maps","mbtiles"],"latest_commit_sha":null,"homepage":"","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/aaronland.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":"2020-10-21T16:20:08.000Z","updated_at":"2024-12-31T03:22:41.000Z","dependencies_parsed_at":"2023-04-25T03:02:08.678Z","dependency_job_id":null,"html_url":"https://github.com/aaronland/go-http-mbtiles","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronland%2Fgo-http-mbtiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronland%2Fgo-http-mbtiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronland%2Fgo-http-mbtiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronland%2Fgo-http-mbtiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaronland","download_url":"https://codeload.github.com/aaronland/go-http-mbtiles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240149875,"owners_count":19755755,"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":["golang","http","maps","mbtiles"],"created_at":"2024-11-09T03:42:45.304Z","updated_at":"2026-05-27T06:30:19.619Z","avatar_url":"https://github.com/aaronland.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-http-mbtiles\n\nGo HTTP handler for serving MBTiles databases.\n\n## Example\n\n```\npackage main\n\nimport (\n\t\"github.com/aaronland/go-http-mbtiles\"\n\t\"net/http\"\n\t\"regexp\"\n)\n\nfunc main() {\n\n\ttiles_source := \"/path/to/folder/containing/mbtiles/\"\n\ttiles_pattern := `/tiles/([a-z-]+)/(\\d+)/(\\d+)/(\\d+)\\.([a-z]+)$`\t\n\ttiles_extension := \".db\"\n\ttiles_path := \"/tiles\"\n\t\n\ttiles_re, _ := regexp.Compile(tiles_pattern)\n\n\ttiles_opts := \u0026mbtiles.MBTilesHandlerOptions{\n\t\tRoot:         tiles_source,\n\t\tExtension:    tiles_extension,\n\t\tPattern: tiles_re,\n\t}\n\n\ttiles_handler, _ := mbtiles.MBTilesHandler(tiles_opts)\n\n\tmux := http.NewServeMux()\n\tmux.Handle(tiles_path, tiles_handler)\n\n\t// serve mux here\n}\n```\n\n_Error handling omitted for brevity._\n\n## See also\n\n* https://github.com/mattn/go-sqlite3\n* https://github.com/aaronland/go-mbtiles-server","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronland%2Fgo-http-mbtiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaronland%2Fgo-http-mbtiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronland%2Fgo-http-mbtiles/lists"}