{"id":21558103,"url":"https://github.com/koopjs/koop-provider-gist","last_synced_at":"2025-10-13T10:33:41.503Z","repository":{"id":16287105,"uuid":"19035638","full_name":"koopjs/koop-provider-gist","owner":"koopjs","description":"Github gist provider for Koop.","archived":false,"fork":false,"pushed_at":"2022-12-09T18:20:38.000Z","size":93,"stargazers_count":5,"open_issues_count":14,"forks_count":2,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-24T09:38:14.671Z","etag":null,"topics":["koop-2","koop-provider","needs-update"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koopjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2014-04-22T15:49:49.000Z","updated_at":"2019-07-08T23:03:47.000Z","dependencies_parsed_at":"2023-01-11T19:18:49.594Z","dependency_job_id":null,"html_url":"https://github.com/koopjs/koop-provider-gist","commit_stats":null,"previous_names":["koopjs/koop-gist"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fkoop-provider-gist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fkoop-provider-gist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fkoop-provider-gist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fkoop-provider-gist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koopjs","download_url":"https://codeload.github.com/koopjs/koop-provider-gist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199325,"owners_count":21063654,"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":["koop-2","koop-provider","needs-update"],"created_at":"2024-11-24T08:13:58.890Z","updated_at":"2025-10-13T10:33:36.484Z","avatar_url":"https://github.com/koopjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# koop-gist\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/koopjs/koop-gist.svg)](https://greenkeeper.io/)\n\n\u003e Github gist provider for [Koop](https://github.com/esri/koop)\n\n[![npm][npm-image]][npm-url]\n[![travis][travis-image]][travis-url]\n\n[npm-image]: https://img.shields.io/npm/v/koop-gist.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/koop-gist\n[travis-image]: https://img.shields.io/travis/koopjs/koop-gist.svg?style=flat-square\n[travis-url]: https://travis-ci.org/koopjs/koop-gist\n\nTake GeoJSON from a Github [gist](https://help.github.com/articles/about-gists/) and serve it as an ArcGIS Feature Service, CSV, KML, or Shapefile.\n\n## Install\n\nKoop providers require that you first install Koop. For information on using Koop, see https://github.com/esri/koop.\n\nYou can add `koop-gist` to your Koop server's dependencies by installing it with npm and adding it to your package.json like so:\n\n```\nnpm install koop-gist --save\n```\n\n## Usage\n\nMake sure your koop configuration includes a github access token (`ghtoken` in the config object passed to koop or `KOOP_GIST_TOKEN` as an environmental variable). Your Github API requests will be rate limited and you will not have access private gists if you don't include a token.\n\n```js\nvar koop = require('koop')({\n  'ghtoken': 'XXXXXX' // defaults to `process.env.KOOP_GIST_TOKEN`\n})\nvar koopGist = require('koop-gist')\n\nkoop.register(koopGist)\n\nvar app = require('express')()\n\napp.use(koop)\n\napp.listen(process.env.PORT || 1337, function () {\n  console.log('Listening at http://%s:%d/', this.address().address, this.address().port)\n})\n```\n\nThere is an example server in the [`example`](example) directory.\n\nOnce `koop-gist` is registered as provider and you've restarted your Koop server, you can preview GeoJSON files in gists using this pattern:\n\n```\n/gist/{gist id}/preview\n```\n\nso for example:\n\n```\n/gist/6178185/preview\n```\n\n## Test\n\n`koop-gist` uses [tape](https://github.com/substack/tape) for testing. It is recommended to create your own Github [access token](https://github.com/settings/tokens) for use during testing to ensure you will not hit Github API rate limits.\n\n```\nKOOP_GIST_TOKEN=XXXXXX npm test\n```\n\n## Contributing\n\nEsri welcomes contributions from anyone and everyone. Please see our [guidelines for contributing](https://github.com/Esri/contributing).\n\n## License\n\n[Apache 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoopjs%2Fkoop-provider-gist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoopjs%2Fkoop-provider-gist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoopjs%2Fkoop-provider-gist/lists"}