{"id":22092221,"url":"https://github.com/pirxpilot/tile-cache","last_synced_at":"2026-02-13T11:02:30.238Z","repository":{"id":57377124,"uuid":"88886185","full_name":"pirxpilot/tile-cache","owner":"pirxpilot","description":"Client side slippy tile cache","archived":false,"fork":false,"pushed_at":"2025-02-05T18:22:12.000Z","size":108,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T21:53:07.891Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/pirxpilot.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","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":"2017-04-20T16:16:45.000Z","updated_at":"2025-02-05T18:22:16.000Z","dependencies_parsed_at":"2025-03-23T23:45:38.356Z","dependency_job_id":"b6c5f01e-26b4-44af-9196-81a0ad629bbc","html_url":"https://github.com/pirxpilot/tile-cache","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Ftile-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Ftile-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Ftile-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Ftile-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pirxpilot","download_url":"https://codeload.github.com/pirxpilot/tile-cache/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119400,"owners_count":21050754,"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-12-01T03:08:46.481Z","updated_at":"2026-02-13T11:02:25.212Z","avatar_url":"https://github.com/pirxpilot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM version][npm-image]][npm-url]\n[![Build Status][build-image]][build-url]\n[![Dependency Status][deps-image]][deps-url]\n\n# tile-cache\n\nClient side splippy tile cache\n\n## Install\n\n```sh\n$ npm install --save tile-cache\n```\n\n## Usage\n\nThe following collections/stores are provided by tile cache:\n\n-  tile - map tiles\n-  font - glyphs needed to render labels\n-  json - styles and other json data\n-  image - sprites\n\n`tile-cache` methods take a store name as the first parameter. The examples below us `tile` store.\n\n```js\nconst tileCache = require('tile-cache');\n\nconst key = [0, 3, 5]; // x, y, zoom\nlet tile; // Blob or ArrayBuffer representing tile\n\nawait tileCache.put('tile', key, tile);\n// tile is now in cache\n\ntile = await tileCache.get('tile', key);\n// tile retrieved\n\nconst inCache = await tileCache.check('tile', key);\n// inCache is truthy is tile was in cache\n\nawait tileCache.remove('tile', key);\n// specific tile is removed from cache\n\nawait tileCache.drop('tile');\n```\n\n## License\n\nMIT © [Damian Krzeminski](https://furkot.com)\n\n[npm-image]: https://img.shields.io/npm/v/tile-cache\n[npm-url]: https://npmjs.org/package/tile-cache\n\n[build-image]: https://img.shields.io/github/actions/workflow/status/pirxpilot/tile-cache/check.yaml?branch=main\n[build-url]: https://github.com/pirxpilot/tile-cache/actions/workflows/check.yaml\n\n[deps-image]: https://img.shields.io/librariesio/release/npm/tile-cache\n[deps-url]: https://libraries.io/npm/tile-cache\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirxpilot%2Ftile-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpirxpilot%2Ftile-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirxpilot%2Ftile-cache/lists"}