@nubisco/openbridge-config 0.29.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Nubisco Lda
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # @nubisco/openbridge-config
2
+
3
+ Zod-validated JSON configuration loader for OpenBridge.
4
+
5
+ Part of [OpenBridge](https://github.com/nubisco/openbridge), a local-first home automation bridge for developers.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ npm install @nubisco/openbridge-config
11
+ ```
12
+
13
+ Requires Node.js >= 20.
14
+
15
+ ## Documentation
16
+
17
+ See the [OpenBridge documentation](https://github.com/nubisco/openbridge#readme). This package is published from the OpenBridge monorepo and versioned in lockstep with the `openbridge` daemon.
18
+
19
+ ## License
20
+
21
+ MIT (c) Jose Silva
@@ -0,0 +1,4 @@
1
+ export type { OpenBridgeConfig, BridgeConfig, PluginEntry, PlatformConfig } from './schema.js';
2
+ export { OpenBridgeConfigSchema, BridgeConfigSchema } from './schema.js';
3
+ export { loadConfig, saveConfig, defaultConfigPath } from './loader.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC9F,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACxE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export { OpenBridgeConfigSchema, BridgeConfigSchema } from './schema.js';
2
+ export { loadConfig, saveConfig, defaultConfigPath } from './loader.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACxE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { type OpenBridgeConfig } from './schema.js';
2
+ export declare function loadConfig(configPath: string): Promise<OpenBridgeConfig>;
3
+ export declare function saveConfig(configPath: string, config: OpenBridgeConfig): Promise<void>;
4
+ export declare function defaultConfigPath(): string;
5
+ //# sourceMappingURL=loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAGA,OAAO,EAA0B,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE3E,wBAAsB,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAmB9E;AAED,wBAAsB,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAM5F;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAG1C"}
package/dist/loader.js ADDED
@@ -0,0 +1,34 @@
1
+ import { readFile, writeFile, mkdir } from 'fs/promises';
2
+ import { existsSync } from 'fs';
3
+ import { dirname } from 'path';
4
+ import { OpenBridgeConfigSchema } from './schema.js';
5
+ export async function loadConfig(configPath) {
6
+ if (!existsSync(configPath)) {
7
+ return OpenBridgeConfigSchema.parse({});
8
+ }
9
+ const raw = await readFile(configPath, 'utf-8');
10
+ let parsed;
11
+ try {
12
+ parsed = JSON.parse(raw);
13
+ }
14
+ catch {
15
+ throw new Error(`Invalid JSON in config file: ${configPath}`);
16
+ }
17
+ const result = OpenBridgeConfigSchema.safeParse(parsed);
18
+ if (!result.success) {
19
+ throw new Error(`Config validation failed: ${result.error.message}`);
20
+ }
21
+ return result.data;
22
+ }
23
+ export async function saveConfig(configPath, config) {
24
+ const dir = dirname(configPath);
25
+ if (!existsSync(dir)) {
26
+ await mkdir(dir, { recursive: true });
27
+ }
28
+ await writeFile(configPath, JSON.stringify(config, null, 2), 'utf-8');
29
+ }
30
+ export function defaultConfigPath() {
31
+ const home = process.env.HOME ?? process.env.USERPROFILE ?? '.';
32
+ return `${home}/.openbridge/config.json`;
33
+ }
34
+ //# sourceMappingURL=loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.js","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAA;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,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AAG,CAAC,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,GAAG,CAAA;IAC/D,OAAO,GAAG,IAAI,0BAA0B,CAAA;AAC1C,CAAC"}
@@ -0,0 +1,138 @@
1
+ import { z } from 'zod';
2
+ export declare const PluginConfigSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3
+ export declare const PlatformConfigSchema: z.ZodIntersection<z.ZodObject<{
4
+ platform: z.ZodString;
5
+ plugin: z.ZodOptional<z.ZodString>;
6
+ enabled: z.ZodDefault<z.ZodBoolean>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ platform: string;
9
+ enabled: boolean;
10
+ plugin?: string | undefined;
11
+ }, {
12
+ platform: string;
13
+ plugin?: string | undefined;
14
+ enabled?: boolean | undefined;
15
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16
+ export declare const BridgeConfigSchema: z.ZodObject<{
17
+ name: z.ZodDefault<z.ZodString>;
18
+ port: z.ZodDefault<z.ZodNumber>;
19
+ hapPort: z.ZodDefault<z.ZodNumber>;
20
+ pincode: z.ZodDefault<z.ZodString>;
21
+ username: z.ZodOptional<z.ZodString>;
22
+ logLevel: z.ZodDefault<z.ZodEnum<["debug", "info", "warn", "error"]>>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ name: string;
25
+ port: number;
26
+ hapPort: number;
27
+ pincode: string;
28
+ logLevel: "debug" | "info" | "warn" | "error";
29
+ username?: string | undefined;
30
+ }, {
31
+ name?: string | undefined;
32
+ port?: number | undefined;
33
+ hapPort?: number | undefined;
34
+ pincode?: string | undefined;
35
+ username?: string | undefined;
36
+ logLevel?: "debug" | "info" | "warn" | "error" | undefined;
37
+ }>;
38
+ export declare const OpenBridgeConfigSchema: z.ZodObject<{
39
+ bridge: z.ZodDefault<z.ZodObject<{
40
+ name: z.ZodDefault<z.ZodString>;
41
+ port: z.ZodDefault<z.ZodNumber>;
42
+ hapPort: z.ZodDefault<z.ZodNumber>;
43
+ pincode: z.ZodDefault<z.ZodString>;
44
+ username: z.ZodOptional<z.ZodString>;
45
+ logLevel: z.ZodDefault<z.ZodEnum<["debug", "info", "warn", "error"]>>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ name: string;
48
+ port: number;
49
+ hapPort: number;
50
+ pincode: string;
51
+ logLevel: "debug" | "info" | "warn" | "error";
52
+ username?: string | undefined;
53
+ }, {
54
+ name?: string | undefined;
55
+ port?: number | undefined;
56
+ hapPort?: number | undefined;
57
+ pincode?: string | undefined;
58
+ username?: string | undefined;
59
+ logLevel?: "debug" | "info" | "warn" | "error" | undefined;
60
+ }>>;
61
+ plugins: z.ZodDefault<z.ZodArray<z.ZodObject<{
62
+ name: z.ZodString;
63
+ path: z.ZodOptional<z.ZodString>;
64
+ enabled: z.ZodDefault<z.ZodBoolean>;
65
+ config: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ enabled: boolean;
68
+ name: string;
69
+ config: Record<string, unknown>;
70
+ path?: string | undefined;
71
+ }, {
72
+ name: string;
73
+ path?: string | undefined;
74
+ enabled?: boolean | undefined;
75
+ config?: Record<string, unknown> | undefined;
76
+ }>, "many">>;
77
+ platforms: z.ZodDefault<z.ZodArray<z.ZodIntersection<z.ZodObject<{
78
+ platform: z.ZodString;
79
+ plugin: z.ZodOptional<z.ZodString>;
80
+ enabled: z.ZodDefault<z.ZodBoolean>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ platform: string;
83
+ enabled: boolean;
84
+ plugin?: string | undefined;
85
+ }, {
86
+ platform: string;
87
+ plugin?: string | undefined;
88
+ enabled?: boolean | undefined;
89
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>;
90
+ localPluginSources: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ bridge: {
93
+ name: string;
94
+ port: number;
95
+ hapPort: number;
96
+ pincode: string;
97
+ logLevel: "debug" | "info" | "warn" | "error";
98
+ username?: string | undefined;
99
+ };
100
+ plugins: {
101
+ enabled: boolean;
102
+ name: string;
103
+ config: Record<string, unknown>;
104
+ path?: string | undefined;
105
+ }[];
106
+ platforms: ({
107
+ platform: string;
108
+ enabled: boolean;
109
+ plugin?: string | undefined;
110
+ } & Record<string, unknown>)[];
111
+ localPluginSources: string[];
112
+ }, {
113
+ bridge?: {
114
+ name?: string | undefined;
115
+ port?: number | undefined;
116
+ hapPort?: number | undefined;
117
+ pincode?: string | undefined;
118
+ username?: string | undefined;
119
+ logLevel?: "debug" | "info" | "warn" | "error" | undefined;
120
+ } | undefined;
121
+ plugins?: {
122
+ name: string;
123
+ path?: string | undefined;
124
+ enabled?: boolean | undefined;
125
+ config?: Record<string, unknown> | undefined;
126
+ }[] | undefined;
127
+ platforms?: ({
128
+ platform: string;
129
+ plugin?: string | undefined;
130
+ enabled?: boolean | undefined;
131
+ } & Record<string, unknown>)[] | undefined;
132
+ localPluginSources?: string[] | undefined;
133
+ }>;
134
+ export type OpenBridgeConfig = z.infer<typeof OpenBridgeConfigSchema>;
135
+ export type BridgeConfig = z.infer<typeof BridgeConfigSchema>;
136
+ export type PluginEntry = OpenBridgeConfig['plugins'][number];
137
+ export type PlatformConfig = z.infer<typeof PlatformConfigSchema>;
138
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,kBAAkB,wCAAwB,CAAA;AAEvD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;2CAMJ,CAAA;AAE7B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;EAO7B,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcjC,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AACrE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAC7D,MAAM,MAAM,WAAW,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAA;AAC7D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
package/dist/schema.js ADDED
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+ export const PluginConfigSchema = z.record(z.unknown());
3
+ export const PlatformConfigSchema = z
4
+ .object({
5
+ platform: z.string(),
6
+ plugin: z.string().optional(), // path to the plugin's main JS file
7
+ enabled: z.boolean().default(true),
8
+ })
9
+ .and(z.record(z.unknown()));
10
+ export const BridgeConfigSchema = z.object({
11
+ name: z.string().default('OpenBridge'),
12
+ port: z.number().int().min(1024).max(65535).default(8582),
13
+ hapPort: z.number().int().min(1024).max(65535).default(51829),
14
+ pincode: z.string().default('031-45-154'),
15
+ username: z.string().optional(),
16
+ logLevel: z.enum(['debug', 'info', 'warn', 'error']).default('info'),
17
+ });
18
+ export const OpenBridgeConfigSchema = z.object({
19
+ bridge: BridgeConfigSchema.default({}),
20
+ plugins: z
21
+ .array(z.object({
22
+ name: z.string(),
23
+ path: z.string().optional(),
24
+ enabled: z.boolean().default(true),
25
+ config: PluginConfigSchema.optional().default({}),
26
+ }))
27
+ .default([]),
28
+ platforms: z.array(PlatformConfigSchema).default([]),
29
+ localPluginSources: z.array(z.string()).default([]),
30
+ });
31
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAA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,MAAM,CAAC;IAC7C,MAAM,EAAE,kBAAkB,CAAC,OAAO,CAAC,EAAE,CAAC;IACtC,OAAO,EAAE,CAAC;SACP,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;QAClC,MAAM,EAAE,kBAAkB,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;KAClD,CAAC,CACH;SACA,OAAO,CAAC,EAAE,CAAC;IACd,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACpD,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACpD,CAAC,CAAA"}
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@nubisco/openbridge-config",
3
+ "version": "0.29.0",
4
+ "description": "Zod-validated JSON configuration loader for OpenBridge",
5
+ "author": "José Silva <jose@nubisco.io>",
6
+ "license": "MIT",
7
+ "homepage": "https://github.com/nubisco/openbridge#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/nubisco/openbridge.git",
11
+ "directory": "packages/config"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/nubisco/openbridge/issues"
15
+ },
16
+ "keywords": [
17
+ "config",
18
+ "configuration",
19
+ "zod",
20
+ "validation",
21
+ "typescript",
22
+ "openbridge"
23
+ ],
24
+ "type": "module",
25
+ "main": "./dist/index.js",
26
+ "types": "./dist/index.d.ts",
27
+ "exports": {
28
+ ".": {
29
+ "import": "./dist/index.js",
30
+ "types": "./dist/index.d.ts"
31
+ }
32
+ },
33
+ "files": [
34
+ "dist/",
35
+ "README.md",
36
+ "LICENSE"
37
+ ],
38
+ "engines": {
39
+ "node": ">=20"
40
+ },
41
+ "publishConfig": {
42
+ "access": "public"
43
+ },
44
+ "dependencies": {
45
+ "zod": "^3.22.0"
46
+ },
47
+ "devDependencies": {
48
+ "typescript": "^5.4.0",
49
+ "@types/node": "^20.0.0"
50
+ },
51
+ "scripts": {
52
+ "build": "tsc",
53
+ "dev": "tsc --watch",
54
+ "typecheck": "tsc --noEmit"
55
+ }
56
+ }