@kitedb/core 0.2.4 → 0.2.6
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 +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/schema.d.ts +2 -2
- package/dist/schema.js +2 -2
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
KiteDB native bindings for Node.js (and WASI/browser builds), powered by Rust + N-API.
|
|
4
4
|
|
|
5
|
-
Docs: https://
|
|
5
|
+
Docs: https://kitedb.vercel.com/docs
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -165,7 +165,7 @@ This is implemented using a read-write lock (RwLock) internally, providing good
|
|
|
165
165
|
|
|
166
166
|
The Node bindings expose both low-level graph primitives (`Database`) and higher-level APIs (Ray) for schema-driven workflows, plus metrics, backups, traversal, and vector search. For full API details and guides, see the docs:
|
|
167
167
|
|
|
168
|
-
https://
|
|
168
|
+
https://kitedb.vercel.com/docs
|
|
169
169
|
|
|
170
170
|
## License
|
|
171
171
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* KiteDB - A fast, lightweight, embedded graph database for Node.js
|
|
3
3
|
*
|
|
4
4
|
* @example
|
|
5
5
|
* ```typescript
|
|
6
|
-
* import { ray, defineNode, defineEdge, prop, optional } from '
|
|
6
|
+
* import { ray, defineNode, defineEdge, prop, optional } from 'kitedb-core'
|
|
7
7
|
*
|
|
8
8
|
* // Define schema
|
|
9
9
|
* const User = defineNode('user', {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* })
|
|
20
20
|
*
|
|
21
21
|
* // Open database
|
|
22
|
-
* const db = await ray('./my.
|
|
22
|
+
* const db = await ray('./my.kitedb', {
|
|
23
23
|
* nodes: [User],
|
|
24
24
|
* edges: [knows],
|
|
25
25
|
* })
|
|
@@ -67,7 +67,7 @@ export interface RayOptions {
|
|
|
67
67
|
*
|
|
68
68
|
* @example
|
|
69
69
|
* ```typescript
|
|
70
|
-
* const db = await ray('./my.
|
|
70
|
+
* const db = await ray('./my.kitedb', {
|
|
71
71
|
* nodes: [User, Post],
|
|
72
72
|
* edges: [follows, authored],
|
|
73
73
|
* })
|
|
@@ -86,7 +86,7 @@ export declare function ray(path: string, options: RayOptions): Promise<NativeRa
|
|
|
86
86
|
*
|
|
87
87
|
* @example
|
|
88
88
|
* ```typescript
|
|
89
|
-
* const db = raySync('./my.
|
|
89
|
+
* const db = raySync('./my.kitedb', {
|
|
90
90
|
* nodes: [User],
|
|
91
91
|
* edges: [knows],
|
|
92
92
|
* })
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* KiteDB - A fast, lightweight, embedded graph database for Node.js
|
|
4
4
|
*
|
|
5
5
|
* @example
|
|
6
6
|
* ```typescript
|
|
7
|
-
* import { ray, defineNode, defineEdge, prop, optional } from '
|
|
7
|
+
* import { ray, defineNode, defineEdge, prop, optional } from 'kitedb-core'
|
|
8
8
|
*
|
|
9
9
|
* // Define schema
|
|
10
10
|
* const User = defineNode('user', {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* })
|
|
21
21
|
*
|
|
22
22
|
* // Open database
|
|
23
|
-
* const db = await ray('./my.
|
|
23
|
+
* const db = await ray('./my.kitedb', {
|
|
24
24
|
* nodes: [User],
|
|
25
25
|
* edges: [knows],
|
|
26
26
|
* })
|
|
@@ -154,7 +154,7 @@ function optionsToNative(options) {
|
|
|
154
154
|
*
|
|
155
155
|
* @example
|
|
156
156
|
* ```typescript
|
|
157
|
-
* const db = await ray('./my.
|
|
157
|
+
* const db = await ray('./my.kitedb', {
|
|
158
158
|
* nodes: [User, Post],
|
|
159
159
|
* edges: [follows, authored],
|
|
160
160
|
* })
|
|
@@ -177,7 +177,7 @@ async function ray(path, options) {
|
|
|
177
177
|
*
|
|
178
178
|
* @example
|
|
179
179
|
* ```typescript
|
|
180
|
-
* const db = raySync('./my.
|
|
180
|
+
* const db = raySync('./my.kitedb', {
|
|
181
181
|
* nodes: [User],
|
|
182
182
|
* edges: [knows],
|
|
183
183
|
* })
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Schema Definition API for
|
|
2
|
+
* Schema Definition API for KiteDB
|
|
3
3
|
*
|
|
4
4
|
* Provides type-safe schema builders for defining graph nodes and edges.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```typescript
|
|
8
|
-
* import { node, edge, prop, optional } from '
|
|
8
|
+
* import { node, edge, prop, optional } from 'kitedb-core'
|
|
9
9
|
*
|
|
10
10
|
* const User = node('user', {
|
|
11
11
|
* key: (id: string) => `user:${id}`,
|
package/dist/schema.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Schema Definition API for
|
|
3
|
+
* Schema Definition API for KiteDB
|
|
4
4
|
*
|
|
5
5
|
* Provides type-safe schema builders for defining graph nodes and edges.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* ```typescript
|
|
9
|
-
* import { node, edge, prop, optional } from '
|
|
9
|
+
* import { node, edge, prop, optional } from 'kitedb-core'
|
|
10
10
|
*
|
|
11
11
|
* const User = node('user', {
|
|
12
12
|
* key: (id: string) => `user:${id}`,
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitedb/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "KiteDB - High-performance embedded graph database with vector search",
|
|
5
5
|
"author": "mask <mask@mask.dev>",
|
|
6
|
-
"homepage": "https://
|
|
6
|
+
"homepage": "https://kitedb.vercel.com/",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"module": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/
|
|
23
|
+
"url": "git+https://github.com/mask-software/kitedb.git"
|
|
24
24
|
},
|
|
25
25
|
"bugs": {
|
|
26
|
-
"url": "https://github.com/
|
|
26
|
+
"url": "https://github.com/mask-software/kitedb/issues"
|
|
27
27
|
},
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"browser": "browser.js",
|
|
@@ -136,9 +136,9 @@
|
|
|
136
136
|
},
|
|
137
137
|
"packageManager": "bun@1.2.4",
|
|
138
138
|
"optionalDependencies": {
|
|
139
|
-
"@kitedb/core-win32-x64-msvc": "0.2.
|
|
140
|
-
"@kitedb/core-darwin-x64": "0.2.
|
|
141
|
-
"@kitedb/core-linux-x64-gnu": "0.2.
|
|
142
|
-
"@kitedb/core-darwin-arm64": "0.2.
|
|
139
|
+
"@kitedb/core-win32-x64-msvc": "0.2.6",
|
|
140
|
+
"@kitedb/core-darwin-x64": "0.2.6",
|
|
141
|
+
"@kitedb/core-linux-x64-gnu": "0.2.6",
|
|
142
|
+
"@kitedb/core-darwin-arm64": "0.2.6"
|
|
143
143
|
}
|
|
144
144
|
}
|