@soulcraft/brainy 0.19.0 → 0.20.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/README.md CHANGED
@@ -69,15 +69,19 @@ configuration.
69
69
  Brainy offers specialized packages for different use cases:
70
70
 
71
71
  #### CLI Package
72
+
72
73
  ```bash
73
74
  npm install -g @soulcraft/brainy-cli
74
75
  ```
76
+
75
77
  Command-line interface for data management, bulk operations, and database administration.
76
78
 
77
79
  #### Web Service Package
80
+
78
81
  ```bash
79
82
  npm install @soulcraft/brainy-web-service
80
83
  ```
84
+
81
85
  REST API web service wrapper that provides HTTP endpoints for search operations and database queries.
82
86
 
83
87
  ## 🏁 Quick Start
@@ -493,7 +497,7 @@ const restoreResult = await db.restore(backupData, {clearExisting: true})
493
497
  Brainy provides a way to get statistics about the current state of the database:
494
498
 
495
499
  ```typescript
496
- import { BrainyData, getStatistics } from '@soulcraft/brainy'
500
+ import {BrainyData, getStatistics} from '@soulcraft/brainy'
497
501
 
498
502
  // Create and initialize the database
499
503
  const db = new BrainyData()
@@ -509,6 +513,7 @@ const instanceStats = await db.getStatistics()
509
513
  ```
510
514
 
511
515
  The statistics include:
516
+
512
517
  - `nounCount`: Number of nouns (entities) in the database
513
518
  - `verbCount`: Number of verbs (relationships) in the database
514
519
  - `metadataCount`: Number of metadata entries
@@ -1107,7 +1112,7 @@ The repository includes a comprehensive demo that showcases Brainy's main featur
1107
1112
  - **[Try the live demo](https://soulcraft-research.github.io/brainy/demo/index.html)** - Check out the
1108
1113
  interactive demo on
1109
1114
  GitHub Pages
1110
- - Or run it locally with `npm run demo` (see [demo instructions](README.demo.md) for details)
1115
+ - Or run it locally with `npm run demo` (see [demo instructions](demo.md) for details)
1111
1116
  - To deploy your own version to GitHub Pages, use the GitHub Actions workflow in
1112
1117
  `.github/workflows/deploy-demo.yml`,
1113
1118
  which automatically deploys when pushing to the main branch or can be manually triggered