@geosynk/vertigis-web-sdk 1.0.7 → 1.0.9

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/README.md CHANGED
@@ -1,13 +1,21 @@
1
1
  <p align="center">
2
- <a href="https://geosynk.com.au/" target="_blank" rel="noopener noreferrer">
3
- <img src="https://geosynk.com.au/images/logo/LOGO_MAIN1.svg" alt="Geosynk" width="380" />
2
+ <a href="https://geosynk.com.au" target="_blank" rel="noopener noreferrer">
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://geosynk.com.au/images/logo/LOGO_MAIN1_DARK.svg">
5
+ <source media="(prefers-color-scheme: light)" srcset="https://geosynk.com.au/images/logo/LOGO_MAIN1.svg">
6
+ <img src="https://geosynk.com.au/images/logo/LOGO_MAIN1.svg" alt="Geosynk" width="380" />
7
+ </picture>
4
8
  </a>
5
9
  </p>
10
+ <p align="center">
11
+ <strong><em>Unifying Spatial Data with Enterprise Intelligence</em></strong>
12
+ </p>
6
13
 
7
14
  # VertiGIS Studio Web SDK (Enterprise Edition)
8
15
 
9
16
  [![Maintained by Geosynk](https://img.shields.io/badge/maintained%20by-Geosynk-f47c22.svg)](https://geosynk.com.au/)
10
17
  [![NPM Version](https://img.shields.io/npm/v/@geosynk/vertigis-web-sdk.svg?color=cb3837)](https://www.npmjs.com/package/@geosynk/vertigis-web-sdk)
18
+ [![CI](https://github.com/geosynk-lab/vertigis-web-sdk/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/geosynk-lab/vertigis-web-sdk/actions/workflows/ci-cd.yml)
11
19
  [![Upstream Sync](https://img.shields.io/badge/upstream-vertigis%2Fvertigis--web--sdk-blue.svg)](https://github.com/vertigis/vertigis-web-sdk)
12
20
  [![Enterprise Ready](https://img.shields.io/badge/architecture-enterprise--overlay-green.svg)](#enterprise-architectural-features)
13
21
  [![WCAG AA](https://img.shields.io/badge/accessibility-WCAG%20AA-success.svg)](#1-centralized-design-token-subsystem)
@@ -55,7 +63,7 @@ npx @geosynk/vertigis-web-sdk create my-web-library
55
63
 
56
64
  ### Option B: Direct from GitHub (Zero Registry / No NPM Publish Required)
57
65
  ```bash
58
- npx github:davekazemi/vertigis-web-sdk create my-web-library
66
+ npx github:geosynk-lab/vertigis-web-sdk create my-web-library
59
67
  ```
60
68
 
61
69
  ### Option C: Local Linked SDK (Instant Local Development)
@@ -241,11 +249,11 @@ When accessing `https://localtest.me:3001/`, VertiGIS Web automatically triggers
241
249
 
242
250
  ### 6. AI Coding Assistant Skills (Antigravity, Cursor, Claude Code)
243
251
 
244
- This SDK integrates directly with the [VertiGIS SDK Skills repository](https://github.com/davekazemi/vertigis-sdk-skills).
252
+ This SDK integrates directly with the [VertiGIS SDK Skills repository](https://github.com/geosynk-lab/vertigis-sdk-skills).
245
253
 
246
254
  During project creation, you will be prompted:
247
255
  ```text
248
- ? Would you like to install AI coding assistant skills from https://github.com/davekazemi/vertigis-sdk-skills into this project? [Y/n]
256
+ ? Would you like to install AI coding assistant skills from https://github.com/geosynk-lab/vertigis-sdk-skills into this project? [Y/n]
249
257
  ```
250
258
  If accepted, the `vertigis-web-sdk-skill` is automatically installed into `./.agents/skills/` using the standard `skills` tool (`npx skills add`).
251
259
 
@@ -280,23 +288,38 @@ Or run the parent batch synchronizer:
280
288
 
281
289
  - [VertiGIS Studio Web Developer Center](https://developers.vertigisstudio.com/docs/web/overview/)
282
290
  - [VertiGIS Studio Workflow TypeScript SDK Overview](https://developers.vertigisstudio.com/docs/workflow/sdk-web-overview)
283
- - [VertiGIS Web SDK Skill Reference Guide](https://github.com/davekazemi/vertigis-sdk-skills)
291
+ - [VertiGIS Web SDK Skill Reference Guide](https://github.com/geosynk-lab/vertigis-sdk-skills)
284
292
 
285
293
  ---
286
294
 
287
295
  ## About Geosynk
288
296
 
289
- [Geosynk](https://geosynk.com.au/) is an Australian geospatial engineering and software consultancy founded by Davood Kazemi, delivering enterprise GIS architecture, custom VertiGIS solutions, and modern web applications.
297
+ [Geosynk](https://geosynk.com.au/) is a certified GIS technical integration consultancy founded by Davood Kazemi, engineering high-performance spatial automation pipelines, bespoke VertiGIS applications, and resilient enterprise GIS architecture.
298
+
299
+ > *"We don't just implement technology; we engineer business value. Digital transformation in infrastructure is a safeguard against project waste and operational risk."*
300
+
301
+ ### Core Philosophy
290
302
 
291
- ### Core Capabilities & Topics
303
+ | Principle | Impact | How We Deliver It |
304
+ | :--- | :--- | :--- |
305
+ | **Radically Simple** | *Reduces Overhead* | Complexity is the enemy of adoption. Clear interfaces reduce training costs and eliminate decision fatigue. |
306
+ | **Frictionless Efficiency** | *Accelerates Velocity* | Automating repetitive data flows recovers thousands of engineering hours annually. |
307
+ | **Deeply Integrated** | *Prevents Rework* | Connected systems establish a single source of truth across CAD, BIM, GIS, and ERP. |
308
+
309
+ ### Core Capabilities & Offerings
292
310
 
293
311
  - **VertiGIS Studio Engineering**: Turnkey Web SDK components, custom Workflow activities, accessible form elements, report templates, and automated printing services.
312
+ - **FME Advanced Automation**: End-to-end spatial ETL pipelines, Python SDK custom transformers, FME Form & Flow (Server), and CAD/BIM/GIS synchronization.
294
313
  - **Esri ArcGIS Enterprise**: End-to-end cloud and on-premises architecture, Enterprise Geodatabase design, Utility Network migrations, and ArcGIS Experience Builder extensions.
295
- - **Full-Stack Spatial Systems**: High-performance React, TypeScript, Node.js, WebGL, and Leaflet/Mapbox interactive web applications.
296
- - **Spatial DevOps & Automation**: Automated CI/CD pipelines, automated testing, containerized GIS deployments, and infrastructure as code across AWS and Microsoft Azure.
314
+ - **Custom Spatial Development**: High-performance React, TypeScript, and Python GIS tooling engineered for unique operational requirements.
315
+ - **Enterprise Orchestration**: Unifying Trimble, Bentley, Autodesk, and GIS into a cohesive enterprise framework.
297
316
 
298
317
  ### Connect with Geosynk
299
- - **Website**: [https://geosynk.com.au](https://geosynk.com.au/)
300
- - **Contact**: [Davood Kazemi](mailto:dave.kazemi@gmail.com)
318
+
319
+ - 🌐 **Website**: [geosynk.com.au](https://geosynk.com.au/)
320
+ - 💼 **LinkedIn**: [Geosynk Company](https://www.linkedin.com/company/ggeosynk)
321
+ - ✉️ **Email**: [info@geosynk.com.au](mailto:info@geosynk.com.au) / [Davood Kazemi](mailto:dave.kazemi@gmail.com)
322
+ - 📅 **Consultation**: [Book a 1-on-1 Session](https://geosynk.com.au#contact)
323
+
301
324
 
302
325
 
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@geosynk/vertigis-web-sdk",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Enterprise SDK for extending VertiGIS Studio Web",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "git+https://github.com/davekazemi/vertigis-web-sdk.git"
10
+ "url": "git+https://github.com/geosynk-lab/vertigis-web-sdk.git"
11
11
  },
12
12
  "author": "VertiGIS Ltd. / Davood Kazemi (Geosynk)",
13
13
  "license": "MIT",
14
14
  "bugs": {
15
- "url": "https://github.com/davekazemi/vertigis-web-sdk/issues"
15
+ "url": "https://github.com/geosynk-lab/vertigis-web-sdk/issues"
16
16
  },
17
- "homepage": "https://github.com/davekazemi/vertigis-web-sdk#readme",
17
+ "homepage": "https://github.com/geosynk-lab/vertigis-web-sdk#readme",
18
18
  "files": [
19
19
  "bin",
20
20
  "config",
package/scripts/create.js CHANGED
@@ -82,6 +82,54 @@ if (fs.existsSync(customTemplateDir) && fs.existsSync(targetPath)) {
82
82
  }
83
83
  }
84
84
 
85
+ // Ensure custom layout namespace matches between app/layout.xml and src/index.ts
86
+ const cryptoMod = await import("node:crypto");
87
+ const randomNamespace = `custom.${cryptoMod.randomBytes(4).toString("hex")}`;
88
+ const filesToUpdate = [
89
+ path.join(targetPath, "app/layout.xml"),
90
+ path.join(targetPath, "src/index.ts"),
91
+ ];
92
+ for (const fileToUpdate of filesToUpdate) {
93
+ if (fs.existsSync(fileToUpdate)) {
94
+ try {
95
+ const contents = fs.readFileSync(fileToUpdate, { encoding: "utf8" });
96
+ const newContents = contents.replace(/custom\.foo/g, randomNamespace);
97
+ fs.writeFileSync(fileToUpdate, newContents, "utf-8");
98
+ } catch {
99
+ // Ignore replacement failure
100
+ }
101
+ }
102
+ }
103
+
104
+ // 2.1 Ensure @vertigis/web-sdk resolves in node_modules even when installed as @geosynk/vertigis-web-sdk
105
+ const nodeModulesDir = path.join(targetPath, "node_modules");
106
+ const vertigisScope = path.join(nodeModulesDir, "@vertigis");
107
+ const vertigisSdk = path.join(vertigisScope, "web-sdk");
108
+ const geosynkSdk = path.join(nodeModulesDir, "@geosynk", "vertigis-web-sdk");
109
+
110
+ if (fs.existsSync(geosynkSdk) && !fs.existsSync(vertigisSdk)) {
111
+ try {
112
+ if (!fs.existsSync(vertigisScope)) {
113
+ fs.mkdirSync(vertigisScope, { recursive: true });
114
+ }
115
+ fs.symlinkSync(geosynkSdk, vertigisSdk, "junction");
116
+ console.log("[ENTERPRISE] Linked @vertigis/web-sdk -> @geosynk/vertigis-web-sdk");
117
+ } catch (e) {
118
+ console.warn("[WARN] Could not link @vertigis/web-sdk:", e);
119
+ }
120
+ } else if (fs.existsSync(vertigisSdk) && !fs.existsSync(geosynkSdk)) {
121
+ try {
122
+ const geosynkScope = path.join(nodeModulesDir, "@geosynk");
123
+ if (!fs.existsSync(geosynkScope)) {
124
+ fs.mkdirSync(geosynkScope, { recursive: true });
125
+ }
126
+ fs.symlinkSync(vertigisSdk, geosynkSdk, "junction");
127
+ console.log("[ENTERPRISE] Linked @geosynk/vertigis-web-sdk -> @vertigis/web-sdk");
128
+ } catch (e) {
129
+ console.warn("[WARN] Could not link @geosynk/vertigis-web-sdk:", e);
130
+ }
131
+ }
132
+
85
133
  // 3. Merge enterprise dependencies into package.json
86
134
  const pkgPath = path.join(targetPath, "package.json");
87
135
  if (fs.existsSync(pkgPath)) {
@@ -95,8 +143,8 @@ if (fs.existsSync(customTemplateDir) && fs.existsSync(targetPath)) {
95
143
  pkg.scripts = pkg.scripts || {};
96
144
  pkg.scripts["cert:gen"] = "bash ./certs/generate-cert.sh";
97
145
  pkg.scripts["auth:portal"] = "node ./scripts/configure-portal.js";
98
- pkg.scripts["skill:add"] = "npx --yes skills add davekazemi/vertigis-sdk-skills --skill vertigis-web-sdk-skill -y";
99
- pkg.scripts["skills:add"] = "npx --yes skills add davekazemi/vertigis-sdk-skills -y";
146
+ pkg.scripts["skill:add"] = "npx --yes skills add geosynk-lab/vertigis-sdk-skills --skill vertigis-web-sdk-skill -y";
147
+ pkg.scripts["skills:add"] = "npx --yes skills add geosynk-lab/vertigis-sdk-skills -y";
100
148
 
101
149
  fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 4) + "\n", "utf-8");
102
150
  console.log("[ENTERPRISE] Added enterprise dependencies, auth:portal, and skill:add scripts to package.json");
@@ -120,7 +168,7 @@ if (fs.existsSync(customTemplateDir) && fs.existsSync(targetPath)) {
120
168
  }
121
169
  }
122
170
 
123
- // 5. Prompt to install AI Coding Assistant Skill (https://github.com/davekazemi/vertigis-sdk-skills)
171
+ // 5. Prompt to install AI Coding Assistant Skill (https://github.com/geosynk-lab/vertigis-sdk-skills)
124
172
  let shouldInstallSkill = false;
125
173
  if (process.argv.includes("--skills") || process.argv.includes("--with-skills")) {
126
174
  shouldInstallSkill = true;
@@ -133,7 +181,7 @@ if (fs.existsSync(customTemplateDir) && fs.existsSync(targetPath)) {
133
181
  });
134
182
  const answer = await new Promise(resolve => {
135
183
  rl.question(
136
- "\n? Would you like to install AI coding assistant skills from https://github.com/davekazemi/vertigis-sdk-skills into this project? [Y/n] ",
184
+ "\n? Would you like to install AI coding assistant skills from https://github.com/geosynk-lab/vertigis-sdk-skills into this project? [Y/n] ",
137
185
  ans => {
138
186
  rl.close();
139
187
  resolve(ans.trim());
@@ -148,7 +196,7 @@ if (fs.existsSync(customTemplateDir) && fs.existsSync(targetPath)) {
148
196
  if (shouldInstallSkill) {
149
197
  console.log("\n[SKILLS] Installing VertiGIS Web SDK skill into project repository via npx skills add...");
150
198
  try {
151
- execSync("npx --yes skills add davekazemi/vertigis-sdk-skills --skill vertigis-web-sdk-skill -y", {
199
+ execSync("npx --yes skills add geosynk-lab/vertigis-sdk-skills --skill vertigis-web-sdk-skill -y", {
152
200
  stdio: "inherit",
153
201
  cwd: targetPath,
154
202
  });
@@ -1,5 +1,15 @@
1
- import defaultWebpackConfig, { merge } from "@vertigis/web-sdk/config/webpack.config.js";
1
+ let defaultWebpackConfig, merge;
2
+ try {
3
+ const mod = await import("@vertigis/web-sdk/config/webpack.config.js");
4
+ defaultWebpackConfig = mod.default;
5
+ merge = mod.merge;
6
+ } catch {
7
+ const mod = await import("@geosynk/vertigis-web-sdk/config/webpack.config.js");
8
+ defaultWebpackConfig = mod.default;
9
+ merge = mod.merge;
10
+ }
2
11
 
3
12
  export default merge(defaultWebpackConfig, {
4
13
  // Add custom webpack configuration for your project here.
5
14
  });
15
+
@@ -1,7 +1,18 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
3
  import https from "node:https";
4
- import defaultWebpackConfig, { merge } from "@vertigis/web-sdk/config/webpack.config.js";
4
+
5
+ let defaultWebpackConfig, merge;
6
+ try {
7
+ const mod = await import("@vertigis/web-sdk/config/webpack.config.js");
8
+ defaultWebpackConfig = mod.default;
9
+ merge = mod.merge;
10
+ } catch {
11
+ const mod = await import("@geosynk/vertigis-web-sdk/config/webpack.config.js");
12
+ defaultWebpackConfig = mod.default;
13
+ merge = mod.merge;
14
+ }
15
+
5
16
 
6
17
  /**
7
18
  * Starts a lightweight zero-dependency dual-port forwarder on port 3000 forwarding to port 3001.
@@ -94,13 +105,16 @@ function setupDualPortBridge(targetPort = 3001, bridgePort = 3000) {
94
105
  }
95
106
  }
96
107
 
108
+ const typeIndex = process.argv.indexOf("--type");
109
+ const isHttp = typeIndex !== -1 && process.argv[typeIndex + 1] === "http";
110
+
97
111
  export default merge(defaultWebpackConfig, {
98
112
  devServer: {
99
113
  allowedHosts: "all",
100
114
  host: "0.0.0.0",
101
115
  port: 3001,
102
- server: "https",
103
- open: "https://localtest.me:3001/",
116
+ server: isHttp ? "http" : "https",
117
+ open: isHttp ? "http://localhost:3001/" : "https://localtest.me:3001/",
104
118
  headers: {
105
119
  "Access-Control-Allow-Origin": "*",
106
120
  "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
@@ -109,10 +123,10 @@ export default merge(defaultWebpackConfig, {
109
123
  },
110
124
  client: {
111
125
  webSocketURL: {
112
- hostname: "localtest.me",
126
+ hostname: isHttp ? "localhost" : "localtest.me",
113
127
  pathname: "/ws",
114
128
  port: 3001,
115
- protocol: "wss",
129
+ protocol: isHttp ? "ws" : "wss",
116
130
  },
117
131
  },
118
132
  setupMiddlewares: (middlewares, devServer) => {
@@ -144,7 +158,9 @@ export default merge(defaultWebpackConfig, {
144
158
  return middlewares;
145
159
  },
146
160
  onListening: function () {
147
- setupDualPortBridge(3001, 3000);
161
+ if (!isHttp) {
162
+ setupDualPortBridge(3001, 3000);
163
+ }
148
164
  },
149
165
  },
150
166
  });