docs: Update README.md for Brainy 1.0 unified API
- Add prominent 1.0 release candidate section with 7 unified methods - Update examples to showcase new addNoun(), addVerb(), getNounWithVerbs() API - Add 1.0 RC badge linking to GitHub release - Highlight new features: encryption, container support, soft delete - Include installation instructions for release candidate - Reference MIGRATION.md for breaking changes This brings the README up to date with the 1.0.0-rc.1 release and helps users discover the new unified API.
This commit is contained in:
parent
718a963447
commit
f963479e38
1 changed files with 61 additions and 10 deletions
71
README.md
71
README.md
|
|
@ -3,6 +3,7 @@
|
||||||

|

|
||||||
|
|
||||||
[](https://badge.fury.io/js/%40soulcraft%2Fbrainy)
|
[](https://badge.fury.io/js/%40soulcraft%2Fbrainy)
|
||||||
|
[](https://github.com/soulcraftlabs/brainy/releases/tag/v1.0.0-rc.1)
|
||||||
[](https://opensource.org/licenses/MIT)
|
[](https://opensource.org/licenses/MIT)
|
||||||
[](https://soulcraft.com)
|
[](https://soulcraft.com)
|
||||||
[](https://soulcraft.com/brain-cloud)
|
[](https://soulcraft.com/brain-cloud)
|
||||||
|
|
@ -19,6 +20,43 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## 🎉 **NEW: Brainy 1.0 - The Unified API**
|
||||||
|
|
||||||
|
**The Great Cleanup is complete!** Brainy 1.0 introduces the **unified API** - ONE way to do everything with just **7 core methods**:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install the latest release candidate
|
||||||
|
npm install @soulcraft/brainy@rc
|
||||||
|
```
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import { BrainyData, NounType, VerbType } from '@soulcraft/brainy'
|
||||||
|
|
||||||
|
const brain = new BrainyData()
|
||||||
|
await brain.init()
|
||||||
|
|
||||||
|
// 🎯 THE 7 UNIFIED METHODS:
|
||||||
|
const id1 = await brain.add("Smart data addition") // 1. Smart addition
|
||||||
|
const id2 = await brain.addNoun("John Doe", NounType.Person) // 2. Typed entities
|
||||||
|
const verb = await brain.addVerb(id1, id2, VerbType.CreatedBy) // 3. Relationships
|
||||||
|
const results = await brain.search("smart data", 10) // 4. Vector search
|
||||||
|
const ids = await brain.import(["data1", "data2"]) // 5. Bulk import
|
||||||
|
await brain.update(id1, "Updated data") // 6. Smart updates
|
||||||
|
await brain.delete(verb) // 7. Soft delete
|
||||||
|
```
|
||||||
|
|
||||||
|
### ✨ **What's New in 1.0:**
|
||||||
|
- **🔥 40+ methods consolidated** → 7 unified methods
|
||||||
|
- **🧠 Smart by default** - `add()` auto-detects and processes intelligently
|
||||||
|
- **🔐 Universal encryption** - Built-in encryption for sensitive data
|
||||||
|
- **🐳 Container ready** - Model preloading for production deployments
|
||||||
|
- **📦 16% smaller package** despite major new features
|
||||||
|
- **🔄 Soft delete default** - Better performance, no reindexing needed
|
||||||
|
|
||||||
|
**Breaking Changes:** See [MIGRATION.md](MIGRATION.md) for complete upgrade guide.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## ✅ 100% Free & Open Source
|
## ✅ 100% Free & Open Source
|
||||||
|
|
||||||
**Brainy is completely free. No license keys. No limits. No catch.**
|
**Brainy is completely free. No license keys. No limits. No catch.**
|
||||||
|
|
@ -39,7 +77,7 @@ Every feature you see here works without any payment or registration:
|
||||||
|
|
||||||
### 💬 **AI Chat Apps** - That Actually Remember
|
### 💬 **AI Chat Apps** - That Actually Remember
|
||||||
```javascript
|
```javascript
|
||||||
// Your users' conversations persist across sessions
|
// Your users' conversations persist across sessions
|
||||||
const brain = new BrainyData()
|
const brain = new BrainyData()
|
||||||
await brain.add("User prefers dark mode")
|
await brain.add("User prefers dark mode")
|
||||||
await brain.add("User is learning Spanish")
|
await brain.add("User is learning Spanish")
|
||||||
|
|
@ -51,17 +89,30 @@ const context = await brain.search("user preferences")
|
||||||
|
|
||||||
### 🤖 **Smart Assistants** - With Real Knowledge Graphs
|
### 🤖 **Smart Assistants** - With Real Knowledge Graphs
|
||||||
```javascript
|
```javascript
|
||||||
// Build assistants that understand relationships
|
// Build assistants that understand relationships (NEW 1.0 API!)
|
||||||
await brain.add("Sarah manages the design team")
|
import { BrainyData, NounType, VerbType } from '@soulcraft/brainy'
|
||||||
await brain.addVerb("Sarah", "reports_to", "John")
|
|
||||||
await brain.addVerb("Sarah", "works_on", "Project Apollo")
|
|
||||||
|
|
||||||
// Query complex relationships
|
const brain = new BrainyData()
|
||||||
const team = await brain.getRelated("Project Apollo", {
|
await brain.init()
|
||||||
verb: "works_on",
|
|
||||||
depth: 2
|
// Create typed entities
|
||||||
|
const sarahId = await brain.addNoun("Sarah Thompson", NounType.Person)
|
||||||
|
const johnId = await brain.addNoun("John Davis", NounType.Person)
|
||||||
|
const projectId = await brain.addNoun("Project Apollo", NounType.Project)
|
||||||
|
|
||||||
|
// Create relationships with metadata
|
||||||
|
await brain.addVerb(sarahId, johnId, VerbType.ReportsTo, {
|
||||||
|
role: "Design Manager",
|
||||||
|
startDate: "2024-01-15"
|
||||||
})
|
})
|
||||||
// Returns: entire team structure with relationships
|
await brain.addVerb(sarahId, projectId, VerbType.WorksWith, {
|
||||||
|
responsibility: "Lead Designer",
|
||||||
|
allocation: "75%"
|
||||||
|
})
|
||||||
|
|
||||||
|
// Query complex relationships with graph traversal
|
||||||
|
const sarahData = await brain.getNounWithVerbs(sarahId)
|
||||||
|
// Returns: complete graph view with all relationships and metadata
|
||||||
```
|
```
|
||||||
|
|
||||||
### 📊 **RAG Applications** - Without the Complexity
|
### 📊 **RAG Applications** - Without the Complexity
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue