AbsoluteJS

Storage And Testing

Storage adapters, Drizzle schema, data-control features, retention, observability export, fixtures, simulators, and benchmarks.

#Storage And Data Control

createVoiceMemoryStore(), createVoiceSQLiteStore(), createVoicePostgresStore(), createVoiceFileStore(), createVoiceS3Store().
Recording stores, assistant memory stores, real-call profile evidence stores, audit stores, ops task/event stores, delivery sink stores.
@absolutejs/voice/drizzle exports shared tables and voiceDrizzleSchema for runtime storage, assistant memory, eval, handoff, incident bundles, observability export, and proof trends.
Retention, zero-data-retention, data-control routes, redaction, recording redaction, and audit export support compliance workflows.

#Example Drizzle Cache

The example uses createVoiceDrizzleRuntimeStorage() for durable Neon/Postgres state, but wraps the hot-path session store in a write-behind cache. That keeps 20 ms audio-frame writes in memory while durable history and observability still land in the database.

TS
import { createWriteBehindCache } from "@absolutejs/sync";
import { createVoiceDrizzleRuntimeStorage } from "@absolutejs/voice/drizzle";

const runtimeStorage = createVoiceDrizzleRuntimeStorage({ db });
const sessionCache = createWriteBehindCache<string, VoiceSessionRecord>({
	evict: (value) => value.status === "completed" || value.status === "failed",
	load: (id) => runtimeStorage.session.get(id),
	persist: (id, value) => runtimeStorage.session.set(id, value),
	remove: (id) => runtimeStorage.session.remove(id)
});

export const sessionStore = {
	get: (id) => sessionCache.get(id),
	getOrCreate: async (id) => (await sessionCache.get(id)) ?? runtimeStorage.session.getOrCreate(id),
	list: () => runtimeStorage.session.list(),
	remove: (id) => sessionCache.delete(id),
	set: async (id, value) => sessionCache.set(id, value)
};

#Observability Export

Observability export creates envelopes, artifact indexes, checksums, freshness metadata, redaction summaries, validation results, replay reports, and delivery receipts.
Trace delivery routes and OpenTelemetry export helpers bridge package traces into external observability systems.

#Testing

@absolutejs/voice/testing exports accuracy, benchmark, corrected transcript, duplex, fixtures, I/O provider simulator, provider simulator, resilience, review, session benchmark, STT, telephony, and TTS helpers.
Live adapter tests are split by provider for AssemblyAI, Deepgram, ElevenLabs, and OpenAI.
Fixtures include audio manifests and PCM samples for clean/noisy dialogue and multilingual STT proof.