{"id":31944814,"url":"https://github.com/decision-labs/geoai.js","last_synced_at":"2025-10-14T10:46:14.131Z","repository":{"id":311246092,"uuid":"897164402","full_name":"decision-labs/geoai.js","owner":"decision-labs","description":"🛰️ GeoAI.js is a javascript library for use with transformers.js to perform GeoAI on the frontend","archived":false,"fork":false,"pushed_at":"2025-09-27T21:47:20.000Z","size":62463,"stargazers_count":102,"open_issues_count":42,"forks_count":10,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-10-01T18:40:09.561Z","etag":null,"topics":["drone","frontend","geoai","javascript","maps","nodejs","satelliteimagery","transformersjs"],"latest_commit_sha":null,"homepage":"https://docs.geobase.app/geoai-live","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/decision-labs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2024-12-02T06:32:06.000Z","updated_at":"2025-09-24T14:08:21.000Z","dependencies_parsed_at":"2025-08-23T03:44:55.022Z","dependency_job_id":null,"html_url":"https://github.com/decision-labs/geoai.js","commit_stats":null,"previous_names":["decision-labs/geobase.js-geoai"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/decision-labs/geoai.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decision-labs%2Fgeoai.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decision-labs%2Fgeoai.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decision-labs%2Fgeoai.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decision-labs%2Fgeoai.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/decision-labs","download_url":"https://codeload.github.com/decision-labs/geoai.js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decision-labs%2Fgeoai.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018784,"owners_count":26086452,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["drone","frontend","geoai","javascript","maps","nodejs","satelliteimagery","transformersjs"],"created_at":"2025-10-14T10:45:19.289Z","updated_at":"2025-10-14T10:46:14.127Z","avatar_url":"https://github.com/decision-labs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  GeoAI \u003cimg src=\"https://cdn-icons-png.flaticon.com/256/5968/5968292.png\" alt=\"JavaScript logo\" height=\"24\" style=\"vertical-align:middle\" /\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\" style=\"margin-top:8px;\"\u003eA lightweight JavaScript library for running Geo AI models in frontend applications.\u003c/p\u003e\n\n\u003cp align=\"center\" style=\"margin:12px 0;\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/geoai\"\u003e\u003cimg alt=\"npm version\" src=\"https://img.shields.io/npm/v/geoai.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/decision-labs/geoai.js/actions/workflows/main.yml\" style=\"margin-left:6px\"\u003e\u003cimg alt=\"main\" src=\"https://github.com/decision-labs/geoai.js/actions/workflows/main.yml/badge.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/geoai\" style=\"margin-left:6px\"\u003e\u003cimg alt=\"npm downloads\" src=\"https://img.shields.io/npm/dm/geoai.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://docs.geobase.app/geoai\" style=\"margin-left:6px\"\u003e\u003cimg alt=\"docs\" src=\"https://img.shields.io/badge/docs-online-blue\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"_docs4devs/geoai.gif\" alt=\"GeoAI Demo\" width=\"80%\" style=\"border-radius: 16px;\"\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\" style=\"font-style:italic; margin:2px;\"\u003e\nCaption: \u003ci\u003eexample of feature extraction using the transformerjs version of dino v3, see examples at \u003ca href=\"https://docs.geobase.app/geoai-live/\" style=\"font-style:normal;\"\u003edocs.geobase.app/geoai-live\u003c/a\u003e\u003c/i\u003e\n\u003c/p\u003e\n\n### Quick install\n\n### NPM Package\n\n[![npm version](https://img.shields.io/npm/v/geoai.svg)](https://www.npmjs.com/package/geoai)\n[![npm downloads](https://img.shields.io/npm/dm/geoai.svg)](https://www.npmjs.com/package/geoai)\n\n```bash\nnpm i geoai\n```\n\n📦 **Package Links:**\n- [npm package](https://www.npmjs.com/package/geoai)\n- [jsDelivr CDN](https://www.jsdelivr.com/package/npm/geoai)\n\n### CDN (Browser)\n\nYou can also use GeoAI directly in the browser via CDN:\n\n#### Unpkg CDN\n```html\n\u003cscript src=\"https://unpkg.com/geoai@1.0.3/geoai.js\"\u003e\u003c/script\u003e\n```\n\n#### jsDelivr CDN\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/geoai@1.0.3/geoai.min.js\"\u003e\u003c/script\u003e\n```\n\nWhen using CDN, the library is available globally as `geoai`.\n\nGet Started: Follow the [Quickstart Guide](https://docs.geobase.app/geoai) or clone the quick start example.\n\n```bash\ngit init\ntouch README.md\ngit add .\ngit commit -m \"Initial commit\"\ngit subtree add --prefix=examples/01-quickstart https://github.com/decision-labs/geoai.js main --squash\n```\n\n## Usage\n\n### Core Library (Node.js and Browser)\n\n#### NPM Installation\n```javascript\nimport { geoai } from \"geoai\";\n\n// Initialize the pipeline with ESRI provider (no API key required)\nconst pipeline = await geoai.pipeline([{ task: \"object-detection\" }], {\n  provider: \"esri\",\n});\n\n// Run inference\nconst result = await pipeline.inference({\n  inputs: {\n    polygon: geoJsonFeature,\n  },\n  mapSourceParams: {\n    zoomLevel: 18,\n  },\n});\n```\n\n#### CDN Usage\n```javascript\n// When using CDN, geoai is available globally\nconst pipeline = await geoai.pipeline([{ task: \"object-detection\" }], {\n  provider: \"esri\",\n});\n\nconst result = await pipeline.inference({\n  inputs: {\n    polygon: geoJsonFeature,\n  },\n  mapSourceParams: {\n    zoomLevel: 18,\n  },\n});\n```\n\n### React Hooks\n\n```javascript\nimport { useGeoAIWorker } from \"geoai/react\";\n\nfunction MyComponent() {\n  const { inference, isLoading, error } = useGeoAIWorker({\n    tasks: [\"object-detection\"],\n    provider: \"esri\", // No API key required for ESRI\n  });\n\n  const handleInference = async () =\u003e {\n    const result = await inference({\n      inputs: { polygon: geoJsonFeature },\n      mapSourceParams: { zoomLevel: 18 },\n    });\n  };\n\n  return (\n    \u003cdiv\u003e\n      \u003cbutton onClick={handleInference} disabled={isLoading}\u003e\n        {isLoading ? \"Processing...\" : \"Run Detection\"}\n      \u003c/button\u003e\n      {error \u0026\u0026 \u003cdiv\u003eError: {error.message}\u003c/div\u003e}\n    \u003c/div\u003e\n  );\n}\n```\n\n## Features\n\n- **Multiple AI Tasks**: Object detection, segmentation, classification, and more\n- **Map Provider Support**: Geobase, Mapbox, ESRI, and Google Maps\n- **React Integration**: Hooks for easy React integration\n- **TypeScript Support**: Full TypeScript definitions\n- **Web Worker Support**: Run AI models in background threads\n- **Optimized Performance**: Efficient model loading and inference\n- **CDN Ready**: Available via npm and popular CDNs (unpkg, jsDelivr)\n\n## Supported Tasks\n\n- Object Detection\n- Building Detection\n- Car Detection\n- Ship Detection\n- Solar Panel Detection\n- Oil Storage Tank Detection\n- Land Cover Classification\n- Wetland Segmentation\n- Building Footprint Segmentation\n- Mask Generation\n- Zero-shot Object Detection\n- Zero-shot Segmentation\n- Image Feature Extraction\n\nFor more see the [supported tasks](https://docs.geobase.app/geoai/supported-tasks)\n\n## Links\n\n- **Documentation**: [docs.geobase.app/geoai](https://docs.geobase.app/geoai) - Comprehensive documentation, examples, and API reference\n- **Live Examples**: [docs.geobase.app/geoai-live](https://docs.geobase.app/geoai-live) - Interactive examples and demos\n- **Community**: [GitHub Discussions](https://github.com/decision-labs/geoai.js/discussions) - Ask questions, share ideas, and connect with other developers\n- **Code**: [GitHub Repository](https://github.com/decision-labs/geoai.js) - Source code and contributions\n- **Issues**: [GitHub Issues](https://github.com/decision-labs/geoai.js/issues) - Report bugs and request features\n\n## Contributing\n\nWe welcome contributions! Please see our [contributing guide](CONTRIBUTING.md) for details.\n\n## License\n\nMIT License - see [LICENSE.md](LICENSE.md) for details.\n\n[//]: \u003c\u003e (Toggle CI on)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecision-labs%2Fgeoai.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdecision-labs%2Fgeoai.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecision-labs%2Fgeoai.js/lists"}