Skip to content

Commit cd7c4b0

Browse files
committed
update documentation and descriptions
1 parent 7180b64 commit cd7c4b0

25 files changed

Lines changed: 68 additions & 60 deletions

.github/chatmodes/architecture.chatmode.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ You are a software architect for AimDB. Focus on:
5959
- **Event sourcing**: Immutable event log as source of truth
6060
- **CQRS**: Separate read/write models for performance
6161
- **Saga patterns**: Distributed transaction management
62-
- **Event streaming**: Real-time data processing pipelines
62+
- **Multi-tier caching**: Device-edge-cloud consistency
63+
- **Event streaming**: Data processing pipelines
64+
- **Command-control**: Bidirectional device control
6365
6466
### Microservices Considerations
6567
- **Service boundaries**: Domain-driven design principles

.github/chatmodes/embedded.chatmode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You are an expert in embedded Rust development for AimDB. Focus on:
1414
- **Memory-efficient implementations** with minimal allocations
1515
- **Lock-free data structures** suitable for resource-constrained environments
1616
- **Power consumption considerations** for battery-powered devices
17-
- **Real-time constraints** and deterministic behavior
17+
- **Low-latency constraints** and deterministic behavior
1818
- **Integration with hardware peripherals** and sensors
1919
- **Optimizations for specific MCU architectures** (ARM Cortex-M, RISC-V)
2020
- **Stack usage analysis** and memory safety in embedded contexts
@@ -36,7 +36,7 @@ You are an expert in embedded Rust development for AimDB. Focus on:
3636
3737
## Performance Priorities
3838
1. **Memory usage** (RAM/Flash optimization)
39-
2. **Real-time determinism** (predictable execution times)
39+
2. **Deterministic execution** (predictable execution times)
4040
3. **Power efficiency** (low-power modes, sleep states)
4141
4. **Code size** (fitting within flash constraints)
4242
5. **CPU efficiency** (optimized algorithms for limited processing power)

.github/copilot-instructions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# GitHub Copilot Instructions for AimDB
22

33
## Project Status & Quick Start
4-
AimDB is an async, in-memory database for real-time data synchronization across **MCU → edge → cloud** environments, targeting <50ms reactivity. The core architecture is fully implemented and functional.
4+
AimDB is an async, in-memory database for data synchronization across **MCU → edge → cloud** environments, targeting <50ms reactivity. The core architecture is fully implemented and functional.
55

66
**Implementation Status:**
77
-**Core Database** - Type-safe records with optimized TypeId lookups
@@ -38,7 +38,7 @@ When working with running AimDB instances, **always prefer using the MCP tools**
3838
- `mcp_aimdb_get_record` - Get current value of a record
3939
- `mcp_aimdb_set_record` - Set value of writable records
4040
- `mcp_aimdb_query_schema` - Infer JSON Schema from record values
41-
- `mcp_aimdb_subscribe_record` - Subscribe to real-time updates
41+
- `mcp_aimdb_subscribe_record` - Subscribe to live updates
4242
- `mcp_aimdb_unsubscribe_record` - Unsubscribe from updates
4343
- `mcp_aimdb_get_instance_info` - Get server version and capabilities
4444
- `mcp_aimdb_list_subscriptions` - List active subscriptions
@@ -74,7 +74,7 @@ mcp_aimdb_set_record(
7474
- ✅ Inspecting running AimDB instances
7575
- ✅ Testing record schemas and values
7676
- ✅ Debugging database state
77-
- ✅ Monitoring real-time data
77+
- ✅ Monitoring live data
7878
- ✅ Validating record configurations
7979
- ✅ Quick data exploration
8080

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4747
- **MCP Server** (`aimdb-mcp`): LLM-powered introspection and debugging
4848
- Discover running AimDB instances
4949
- Query record values and schemas
50-
- Subscribe to real-time updates
50+
- Subscribe to live updates
5151
- Set writable record values
5252
- JSON Schema inference from record values
5353
- Notification persistence to JSONL files
5454
- **CLI Tool** (`aimdb-cli`): Command-line interface (skeleton)
5555
- Instance discovery and management commands
5656
- Record inspection capabilities
57-
- Real-time watch functionality
57+
- Live watch functionality
5858
- **Client Library** (`aimdb-client`): Reusable connection and discovery logic
5959
- Unix domain socket communication
6060
- AimX v1 protocol implementation
@@ -88,7 +88,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8888
- Dev container setup for consistent development environment
8989

9090
### Design Goals Achieved
91-
- ✅ Sub-50ms latency for real-time synchronization
91+
- ✅ Sub-50ms latency for data synchronization
9292
- ✅ Lock-free buffer operations
9393
- ✅ Cross-platform support (MCU → edge → cloud)
9494
- ✅ Type safety with zero-cost abstractions
@@ -123,7 +123,7 @@ AimDB v0.1.0 establishes the foundational architecture for async, in-memory data
123123
**Highlights:**
124124
- 🚀 Dual runtime support: Works on both standard library (Tokio) and embedded (Embassy)
125125
- 🔒 Type-safe record system eliminates runtime string lookups
126-
- 📦 Three buffer types cover most real-time data patterns
126+
- 📦 Three buffer types cover most data patterns
127127
- 🔌 MQTT connector works in both std and `no_std` environments
128128
- 🤖 MCP server enables LLM-powered introspection
129129
- ✅ 27+ core tests, comprehensive CI/CD, security auditing

CONTRIBUTING.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ Thank you for your interest in contributing to AimDB! This document provides gui
44

55
## Project Overview
66

7-
AimDB is an async, in-memory database designed for real-time data synchronization across **MCU → edge → cloud** environments, targeting <50ms reactivity. The project is built in Rust and supports multiple platform targets from embedded microcontrollers to cloud deployments.
7+
---
8+
9+
AimDB is an async, in-memory database designed for data synchronization across **MCU → edge → cloud** environments, targeting <50ms reactivity. The project is built in Rust and supports multiple platform targets from embedded microcontrollers to cloud deployments.
810

911
## Getting Started
1012

@@ -204,12 +206,9 @@ cargo test test_name --features tokio-runtime
204206
Use clear, descriptive commit messages:
205207

206208
```
207-
add async stream handler for real-time data sync
209+
add async stream handler for data sync
208210
209-
- Implement lock-free ring buffer for <50ms latency
210-
- Add feature flag for embedded targets
211-
- Include comprehensive tests and examples
212-
```
211+
Implements bidirectional streaming between embedded and cloud layers
213212
214213
## Project Structure
215214

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ authors = ["AimDB Team <team@aimdb.dev>"]
2626
license = "Apache-2.0"
2727
repository = "https://github.com/aimdb-dev/aimdb"
2828
homepage = "https://aimdb.dev"
29-
description = "Async in-memory database for real-time synchronization across MCU → edge → cloud environments"
30-
keywords = ["database", "async", "embedded", "real-time", "sync"]
29+
description = "Async in-memory database for data synchronization across MCU → edge → cloud environments"
30+
keywords = ["database", "async", "embedded", "sync", "iot"]
3131
categories = ["database-implementations", "embedded", "asynchronous"]
3232

3333
[workspace.dependencies]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
1717
> **One codebase. Any hardware. Always in sync.**
1818
19-
AimDB is an **async, in-memory database** for real-time data synchronization across **MCU → edge → cloud** — without internal brokers or vendor lock-in. Built in Rust with `no_std` support for embedded systems.
19+
AimDB is an **async, in-memory database** for data synchronization across **MCU → edge → cloud** — without internal brokers or vendor lock-in. Built in Rust with `no_std` support for embedded systems.
2020

2121
---
2222

@@ -25,7 +25,7 @@ AimDB is an **async, in-memory database** for real-time data synchronization acr
2525
Modern IoT stacks are fragmented:
2626
- Multiple brokers/databases to sync MCU, edge, and cloud
2727
- Device-specific integrations that make hardware swaps risky
28-
- Batch-oriented pipelines that miss real-time insights
28+
- Batch-oriented pipelines that miss low-latency insights
2929

3030
**AimDB simplifies this:**
3131
- **Fast**: Lock-free buffers + async transforms for <50ms reactivity
@@ -211,7 +211,7 @@ Single slot with overwrite. Latest command wins.
211211
- Kafka connector (std environments)
212212

213213
**📋 Planned:**
214-
- DDS connector for real-time systems
214+
- DDS connector for low-latency systems
215215
- HTTP/REST bridge
216216
- Advanced observability and metrics
217217
- Multi-instance clustering

aimdb-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition.workspace = true
55
license.workspace = true
66
repository.workspace = true
77
homepage.workspace = true
8-
description = "Core database engine for AimDB - async in-memory storage with real-time synchronization"
8+
description = "Core database engine for AimDB - async in-memory storage with data synchronization"
99
keywords.workspace = true
1010
categories.workspace = true
1111
build = "build.rs"

aimdb-core/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# aimdb-core
22

3-
Core database engine for AimDB - async in-memory storage with real-time synchronization.
3+
Core database engine for AimDB - async in-memory storage with data synchronization.
44

55
## Overview
66

7-
`aimdb-core` provides the foundational database engine for AimDB, designed for real-time data synchronization across **MCU → edge → cloud** environments with low-latency synchronization.
7+
`aimdb-core` provides the foundational database engine for AimDB, designed for data synchronization across **MCU → edge → cloud** environments with low-latency synchronization.
88

99
**Key Features:**
1010
- **Type-Safe Records**: `TypeId`-based routing eliminates string keys and enables compile-time safety

aimdb-core/src/database.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
//! AimDB Database Implementation
1+
//! Core database implementation
22
//!
3-
//! This module provides the unified database implementation for AimDB, supporting async
4-
//! in-memory storage with type-safe records and real-time synchronization across
3+
//! `AimDb` is the central coordination point for AimDB, managing type-safe
4+
//! in-memory storage with type-safe records and data synchronization across
55
//! MCU → edge → cloud environments.
66
77
use crate::{AimDb, DbError, DbResult, RuntimeAdapter, RuntimeContext};

0 commit comments

Comments
 (0)