brainy/docs
David Snelling d2ddb9199e feat: add comprehensive per-service statistics tracking
Add full support for tracking and analyzing data by service in multi-tenant deployments.

## Features Added

- **Service Statistics Tracking**: Track nouns, verbs, and metadata counts per service
- **Service Activity Monitoring**: Track first/last activity timestamps and operation counts
- **New API Methods**:
  - `listServices()`: List all services with their statistics and status
  - `getServiceStatistics(service)`: Get detailed stats for a specific service
  - Enhanced `getStatistics()` with service filtering and breakdown

- **Service Filtering**: Filter search results and queries by service
- **Storage Enhancements**: BaseStorageAdapter tracks service activity with timestamps
- **Type Definitions**: Added ServiceStatistics interface and extended StatisticsData

## Implementation Details

- Services automatically tracked via defaultService config or per-operation override
- Service status detection (active/inactive/read-only) based on activity
- Memory-efficient tracking at statistics level, not per noun/verb
- Backward compatible - existing data tracked under 'default' service

## Documentation

- Comprehensive guide in docs/guides/per-service-statistics.md
- Examples for multi-tenant apps, health monitoring, and auditing
- API reference and migration guide included

## Testing

- Full test suite in tests/service-statistics.test.ts
- Coverage of all new methods and filtering capabilities

This enables better observability, debugging, and management of multi-service Brainy deployments, addressing the need to track individual service performance when multiple services share storage.
2025-08-06 10:17:28 -07:00
..
api-reference feat(docs): add comprehensive user guides and installation instructions for Brainy 2025-08-03 17:33:52 -07:00
archive feat(docs): add comprehensive user guides and installation instructions for Brainy 2025-08-03 17:33:52 -07:00
development refactor: simplify build system and improve model loading flexibility 2025-08-05 16:09:30 -07:00
examples feat(docs): add comprehensive user guides and installation instructions for Brainy 2025-08-03 17:33:52 -07:00
getting-started feat(docs): add comprehensive user guides and installation instructions for Brainy 2025-08-03 17:33:52 -07:00
guides feat: add comprehensive per-service statistics tracking 2025-08-06 10:17:28 -07:00
optimization-guides feat(docs): add S3 migration guide for optimized data transfer strategies 2025-08-03 18:01:30 -07:00
technical refactor: simplify build system and improve model loading flexibility 2025-08-05 16:09:30 -07:00
tools/claude-commit feat(tools): propagate safety features to all projects 2025-08-04 10:28:01 -07:00
user-guides feat: add frozen flag for complete immutability and simplify README examples 2025-08-06 09:52:45 -07:00
brainy-distributed-enhancements-revised.md docs: add revised distributed implementation plan with practical phases 2025-08-04 11:20:23 -07:00
brainy-distributed-enhancements.md docs: add distributed deployment architecture and enhancement proposals 2025-08-04 08:42:31 -07:00
distributed-deployment-scenario.md docs: add distributed deployment architecture and enhancement proposals 2025-08-04 08:42:31 -07:00
distributed-usage-guide.md feat(distributed): add distributed mode with multi-instance coordination 2025-08-04 12:18:58 -07:00
docker-deployment.md refactor: simplify build system and improve model loading flexibility 2025-08-05 16:09:30 -07:00
PERFORMANCE_AND_LOGGING_FIXES.md fix(storage): resolve pagination warnings and improve S3 adapter performance 2025-08-05 07:22:05 -07:00
PERFORMANCE_FEATURES.md docs: add comprehensive performance docs and rebrand to Zero-to-Smart™ 2025-08-04 14:33:39 -07:00
quick-start-docker.md refactor: simplify build system and improve model loading flexibility 2025-08-05 16:09:30 -07:00
README.md feat: add comprehensive per-service statistics tracking 2025-08-06 10:17:28 -07:00
STORAGE_MIGRATION_GUIDE.md feat: migrate system metadata from 'index' to '_system' directory with backward compatibility 2025-08-06 09:45:56 -07:00

Brainy Documentation

Welcome to the comprehensive documentation for Brainy - the intelligent vector graph database with zero-configuration setup and production-scale performance.

📚 Documentation Structure

🚀 Getting Started

Quick setup guides and first steps with Brainy.

📖 User Guides

Comprehensive guides for using Brainy features.

Optimization Guides

Performance optimization and scaling strategies.

🔧 API Reference

Complete API documentation and examples.

🛠️ Development

Development, testing, and contribution guides.

🔬 Technical Reference

Deep technical documentation and implementation details.

💡 Examples

Code examples and tutorials.

🔍 Troubleshooting

Common issues and solutions.

🗺️ Quick Navigation

New to Brainy?

  1. Installation Guide - Install Brainy
  2. Quick Start Guide - Your first vector database
  3. Basic Usage Examples - Simple code examples

Need Performance?

  1. Large-Scale Optimizations - Enterprise features
  2. Auto-Configuration - Zero-config setup
  3. Performance Examples - Optimization patterns

Building Applications?

  1. API Reference - Complete API documentation
  2. User Guides - Feature documentation
  3. Integration Examples - Real-world usage

Contributing?

  1. Developer Guide - Development setup
  2. Documentation Standards - Writing docs
  3. Testing Guide - Testing practices

🔄 Recently Updated

📞 Getting Help


📝 Note: This documentation is automatically organized and regularly updated. All guides include practical examples and are tested with the latest version of Brainy.