
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@vox-ai-app/storage
Advanced tools
Local persistence for Vox: conversations, messages, tasks, settings, tool registry, MCP servers, schedules, secrets, patterns, and vector embeddings. Built on SQLite via better-sqlite3 with WAL mode and automatic migrations.
npm install @vox-ai-app/storage
| Export | Contents |
|---|---|
@vox-ai-app/storage | All exports |
@vox-ai-app/storage/db | Database lifecycle (open/close) |
@vox-ai-app/storage/messages | Conversations and messages |
@vox-ai-app/storage/tasks | Task and task activity storage |
@vox-ai-app/storage/tools | Custom tool definitions |
@vox-ai-app/storage/settings | Key-value settings persistence |
@vox-ai-app/storage/mcp-servers | MCP server configurations |
@vox-ai-app/storage/schedules | Scheduled job persistence |
@vox-ai-app/storage/tool-secrets | Encrypted tool secret storage |
@vox-ai-app/storage/patterns | Conversation pattern storage |
@vox-ai-app/storage/vectors | Vector embedding storage |
import { openDb, closeDb } from '@vox-ai-app/storage/db'
const db = openDb('/path/to/storage.db')
closeDb('/path/to/storage.db')
The database uses WAL journal mode and foreign keys. Schema is managed via migrations in src/migrations/.
import {
ensureConversation,
appendMessage,
getMessages,
getMessagesBeforeId,
clearMessages,
saveSummaryCheckpoint,
loadSummaryCheckpoint
} from '@vox-ai-app/storage/messages'
ensureConversation(db, 'main')
appendMessage(db, 'user', 'Hello', 'main')
appendMessage(db, 'assistant', 'Hi there!', 'main')
const messages = getMessages(db, 'main', 50)
const older = getMessagesBeforeId(db, messages[0].id, 'main', 20)
saveSummaryCheckpoint(db, 'summary text', 42, 'main')
const { summary, checkpointId } = loadSummaryCheckpoint(db, 'main')
clearMessages(db, 'main')
import {
upsertTask,
getTask,
loadTasks,
appendTaskActivity,
loadTaskActivity
} from '@vox-ai-app/storage/tasks'
upsertTask(db, {
taskId: 'abc-123',
instructions: 'Summarize the document',
status: 'running'
})
const task = getTask(db, 'abc-123')
const allTasks = loadTasks(db)
appendTaskActivity(db, {
id: 'act-1',
taskId: 'abc-123',
type: 'tool_call',
name: 'read_local_file',
timestamp: new Date().toISOString(),
data: { path: '~/doc.md' }
})
const activity = loadTaskActivity(db, 'abc-123')
import { getSetting, setSetting, getAllSettings, deleteSetting } from '@vox-ai-app/storage/settings'
setSetting(db, 'theme', 'dark')
const theme = getSetting(db, 'theme')
const all = getAllSettings(db)
deleteSetting(db, 'theme')
MIT
FAQs
Local message and config persistence for Vox
We found that @vox-ai-app/storage demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.