Expand description
Project foundations for vibe-coding applications.
vibe-ready provides a small runtime layer for applications that need a
ready-to-use engine, async task execution, scheduled work, structured
logging, and a key-value store without assembling those pieces from scratch.
Most applications start by building a VibeEngineConfig, creating a
VibeEngine, and then using the engine for tasks, callbacks, and storage.
§Examples
use vibe_ready::{VibeEngine, VibeEngineConfig, VibePlatformType, VibeResult};
fn main() -> VibeResult<()> {
let config = VibeEngineConfig::builder()
.platform(VibePlatformType::MacOS)
.app_name("demo-app")
.namespace("examples")
.build();
let engine = VibeEngine::create(config)?;
engine.store().set_str("status", "ready")?;
engine.destroy_with_timeout(std::time::Duration::from_secs(2))?;
Ok(())
}Modules§
- platform
- Cross-platform helpers for task spawning and time.
- prelude
- Common imports for applications using vibe-ready.
Macros§
- array_
to_ json_ string - Converts an array-like value to a JSON string.
- basic_
type_ map_ to_ json_ string - Converts a string-keyed map of basic serializable values to JSON.
- err
- Logs an error with a backtrace and returns the same error expression.
- impl_
display_ json - Implements
Displayfor serializable types by rendering JSON. - log_e
- Emits an error-level structured log entry.
- log_e_
- Emits an error-level structured log entry with an extension segment.
- log_i
- Emits an info-level structured log entry.
- log_i_
- Emits an info-level structured log entry with an extension segment in the tag.
- log_r
- Emits a debug-level read-style structured log entry.
- log_r_
- Emits a debug-level read-style structured log entry with an extension segment.
- log_s
- Emits a debug-level state-style structured log entry.
- log_s_
- Emits a debug-level state-style structured log entry with an extension segment.
- log_t
- Emits an info-level trace-style structured log entry.
- log_t_
- Emits an info-level trace-style structured log entry with an extension segment.
- obj_
array_ to_ json_ string - Converts displayable objects to a JSON-array-like string using
Display.
Structs§
- Vibe
AppConfig - Application identity used to isolate SDK data on disk. Application identity used to isolate SDK data on disk.
- Vibe
Callback Executor - Callback executor returned by
VibeEngineExecutor::callback. Executes user callbacks on the engine callback thread pool. - Vibe
Cancellation Token - Cooperative cancellation token consumed by scheduled tasks. Cooperative cancellation token passed to scheduled tasks.
- Vibe
Capabilities - Build-time capabilities available in the current crate build. Build-time capabilities available in the current vibe-ready crate build.
- Vibe
DbClient - Database client exposed for advanced integrations. Client used by the SDK to coordinate database worker operations.
- Vibe
DbError Info - Database error details exposed for advanced integrations. Detailed database error information for diagnostics.
- Vibe
Engine - Main entry point for creating and driving a vibe-ready runtime. Main runtime facade for task execution, logging, and SDK context access.
- Vibe
Engine Config - Configuration used to create a
VibeEngine. Configuration used when creating acrate::VibeEngine. - Vibe
Engine Config Builder - Builder for
VibeEngineConfig. Builder forVibeEngineConfig. - Vibe
Engine Context - Low-level context shared by engine services. Low-level context shared by engine services.
- Vibe
Engine Error - Error type returned by vibe-ready operations. Error returned by vibe-ready operations.
- Vibe
Engine Executor - Task executor used internally by
VibeEngineand exposed for advanced integrations. Executes futures and callbacks on the engine-owned runtime infrastructure. - Vibe
KvBucket - Bucket-scoped view of
VibeKvStore. Bucket-scoped view ofVibeKvStore. - Vibe
KvChange - Change notification dispatched to KV listeners.
Description of a change applied to the KV store, delivered to listeners
registered via
VibeKvStore::on_change/VibeKvBucket::on_change. - Vibe
KvListener Id - Cancellation handle returned by
VibeKvStore::on_change. Identifier returned byVibeKvStore::on_changeused to cancel a listener. - Vibe
KvStore - High-level key-value store facade. High-level key-value store facade backed by the configured SDK store backend.
- Vibe
KvTx - Buffered transaction handle used inside
VibeKvStore::transaction. Buffered transaction handle accumulating writes that are committed atomically. - Vibe
LogConfig - Logging behavior used by the SDK. Logging behavior used by the SDK.
- Vibe
LogInfo - Log entry delivered to log listeners. Structured SDK log record.
- Vibe
Logger - Low-level logger used by the engine log subsystem. Low-level logger that writes SDK log records and dispatches log listeners.
- Vibe
Runtime Config - Runtime sizing and queue capacity used by
VibeEngine. Runtime sizing and queue capacity used bycrate::VibeEngine. - Vibe
Status Manager - Runtime status manager exposed for advanced integrations. Tracks and publishes connection status changes.
- Vibe
Store Config - Storage behavior used by the SDK. Storage behavior used by the SDK.
- Vibe
Table KeyVal - Key-value row returned by advanced database APIs. Database row representation for a key-value item.
- Vibe
Task Handle - Handle returned by
VibeEngine::schedule_after/schedule_every/post_with_priority. Handle returned by every scheduling API. - Vibe
Task Info - Snapshot of a scheduler-tracked task.
Snapshot of a scheduler-tracked task, returned by
VibeTaskPanel::list. - Vibe
Task Panel - Diagnostic panel listing live scheduler tasks. Diagnostic snapshot of all live tasks owned by the engine scheduler.
Enums§
- DbError
- Database error category used by storage backends. Database error category used by storage backends.
- Vibe
Backup Strategy - Backup behavior for SDK managed storage. Backup behavior for SDK managed storage.
- Vibe
Connection Status - Connection state reported by the SDK runtime. Connection lifecycle state used by status integrations.
- Vibe
Engine State - Lifecycle state of a
VibeEngine. Lifecycle state of aVibeEngine. - Vibe
Error Code - Stable error code used by
VibeError. Stable numeric error codes returned by vibe-ready. - Vibe
Error Kind - High-level error category returned by
VibeEngineError. High-level category for aVibeEngineError. - Vibe
KvChange Kind - Variant of
VibeKvChangeindicating whether a key was set or removed. Operation kind delivered by KV change listeners. - Vibe
KvValue - High-level value accepted by the SDK key-value store. Value stored in the high-level key-value store.
- Vibe
LogBackend - Log backend selected for SDK log persistence. Log backend selected for SDK log persistence.
- Vibe
LogLevel - Log severity used by the SDK. Severity level for SDK log records.
- Vibe
Platform Type - Platform identifier used by
VibeEngineConfig. Platform where the SDK is running. - Vibe
Store Backend - Store backend selected for SDK persistence. Store backend selected for SDK persistence.
- Vibe
Task Kind - Origin category of a scheduler-tracked task. Static category describing how a task was scheduled.
- Vibe
Task Priority - Priority lane used by the task scheduler.
Priority lane used by
crate::VibeEngine::post_with_priorityand friends. - Vibe
Task State - Lifecycle state of a scheduler-tracked task. Lifecycle state of a scheduler-tracked task.
Statics§
- CODE_
STR - Standard log field for error codes. Standard structured-log field name for error or status codes.
- DESC
- Standard log field for descriptions. Standard structured-log field name for human-readable descriptions.
- RET_STR
- Standard log field for return values. Standard structured-log field name for return values.
Type Aliases§
- Vibe
Error - Short alias for
VibeEngineError. - Vibe
LogListener - Log listener callback type. Callback invoked when a log record is emitted.
- Vibe
Result - Result alias used by vibe-ready public APIs.