geoai 0.0.7 → 1.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,10 +1,31 @@
1
1
  # Changelog
2
2
 
3
- All notable changes to the @geobase.js/geoai project will be documented in this file.
3
+ All notable changes to the geoai project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.0-rc.1] - 2024-01-XX
9
+
10
+ ### Release Candidate
11
+ This is the first release candidate for version 1.0.0. This RC includes all the features and improvements planned for the final 1.0.0 release.
12
+
13
+ ## [1.0.0] - 2024-01-XX
14
+
15
+ ### Changed
16
+ - **BREAKING**: Renamed package from `geoai-js` to `geoai`
17
+ - Updated all import statements and package references
18
+ - Updated build output structure from `geoai-js.js` to `geoai.js`
19
+ - Updated documentation and examples
20
+ - Updated repository URLs and homepage
21
+
22
+ ### Migration Guide
23
+ To migrate from the old package:
24
+ 1. Update your package.json: `"geoai-js": "^0.0.7"` → `"geoai": "^1.0.0"`
25
+ 2. Update all import statements: `import { geoai } from "geoai"` → `import { geoai } from "geoai"`
26
+ 3. Update any build configurations that reference the old package name
27
+ 4. Update any documentation or scripts that reference the old package
28
+
8
29
  ## [0.0.7] - 2024-12-19
9
30
 
10
31
  ### Fixed
@@ -27,7 +48,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
27
48
 
28
49
  ### Added
29
50
 
30
- - Initial public release of @geobase.js/geoai
51
+ - Initial public release of geoai
31
52
  - Support for multiple Geo AI models:
32
53
  - Object Detection
33
54
  - Building Footprint Segmentation
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
- [![Main](https://github.com/decision-labs/geobase.js/actions/workflows/main.yml/badge.svg)](https://github.com/decision-labs/geobase.js/actions/workflows/main.yml)
1
+ [![Main](https://github.com/decision-labs/geoai.js/actions/workflows/main.yml/badge.svg)](https://github.com/decision-labs/geoai.js/actions/workflows/main.yml)
2
2
 
3
- # `@geobase.js/geoai`
3
+ # GeoAI
4
4
 
5
- A Javascript library for running Geo AI models in frontend applications.
5
+ A JavaScript library for running Geo AI models in frontend applications.
6
6
 
7
7
  ## Installation
8
8
 
9
9
  ```bash
10
- npm install @geobase.js/geoai
10
+ npm install geoai
11
11
  ```
12
12
 
13
13
  ## Usage
@@ -15,7 +15,7 @@ npm install @geobase.js/geoai
15
15
  ### Core Library (Node.js and Browser)
16
16
 
17
17
  ```javascript
18
- import { geoai } from "@geobase.js/geoai";
18
+ import { geoai } from "geoai";
19
19
 
20
20
  // Initialize the pipeline
21
21
  const pipeline = await geoai.pipeline([{ task: "object-detection" }], {
@@ -34,34 +34,71 @@ const result = await pipeline.inference({
34
34
  });
35
35
  ```
36
36
 
37
- ## Architecture
37
+ ### React Hooks
38
38
 
39
- - **Core Module** (`@geobase.js/geoai`): Pure Javascript/TypeScript library that works in both Node.js and browser environments
40
-
41
- ## API Reference
42
-
43
- ### Core API
39
+ ```javascript
40
+ import { useGeoAIWorker } from "geoai/react";
41
+
42
+ function MyComponent() {
43
+ const { inference, isLoading, error } = useGeoAIWorker({
44
+ tasks: ["object-detection"],
45
+ provider: "geobase",
46
+ apikey: "your-api-key",
47
+ });
48
+
49
+ const handleInference = async () => {
50
+ const result = await inference({
51
+ inputs: { polygon: geoJsonFeature },
52
+ mapSourceParams: { zoomLevel: 18 },
53
+ });
54
+ };
55
+
56
+ return (
57
+ <div>
58
+ <button onClick={handleInference} disabled={isLoading}>
59
+ {isLoading ? "Processing..." : "Run Detection"}
60
+ </button>
61
+ {error && <div>Error: {error.message}</div>}
62
+ </div>
63
+ );
64
+ }
65
+ ```
44
66
 
45
- - `geoai.pipeline(tasks, config)` - Initialize a pipeline with tasks
46
- - `pipeline.inference(params)` - Run inference with the pipeline
67
+ ## Features
47
68
 
69
+ - **Multiple AI Tasks**: Object detection, segmentation, classification, and more
70
+ - **Map Provider Support**: Geobase, Mapbox, ESRI, and Google Maps
71
+ - **React Integration**: Hooks for easy React integration
72
+ - **TypeScript Support**: Full TypeScript definitions
73
+ - **Web Worker Support**: Run AI models in background threads
74
+ - **Optimized Performance**: Efficient model loading and inference
48
75
 
49
76
  ## Supported Tasks
50
77
 
51
78
  - Object Detection
52
- - Building Footprint Segmentation
53
- - Land Cover Classification
54
- - Zero-shot Object Detection
55
- - Oriented Object Detection
56
- - Oil Storage Tank Detection
79
+ - Building Detection
80
+ - Car Detection
57
81
  - Ship Detection
58
82
  - Solar Panel Detection
83
+ - Oil Storage Tank Detection
84
+ - Land Cover Classification
59
85
  - Wetland Segmentation
86
+ - Building Footprint Segmentation
60
87
  - Mask Generation
61
- - Car-Detection
88
+ - Zero-shot Object Detection
89
+ - Zero-shot Segmentation
90
+ - Image Feature Extraction
62
91
 
63
- ## License
92
+ For more see the [supported tasks](https://docs.geobase.app/geoai/supported-tasks)
93
+
94
+ ## Documentation
64
95
 
65
- MIT
96
+ Visit [docs.geobase.app/geoai](https://docs.geobase.app/geoai) for comprehensive documentation, examples, and API reference.
97
+
98
+ ## Contributing
99
+
100
+ We welcome contributions! Please see our [contributing guide](CONTRIBUTING.md) for details.
101
+
102
+ ## License
66
103
 
67
- ~~togglebuild~~
104
+ MIT License - see [LICENSE.md](LICENSE.md) for details.