
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
@agentuity/keyvalue
Advanced tools
A standalone package for the Agentuity Key-Value storage service.
npm install @agentuity/keyvalue
import { KeyValueClient } from '@agentuity/keyvalue';
const client = new KeyValueClient();
// Set a value with optional TTL
await client.set('my-namespace', 'user:123', { name: 'John', email: 'john@example.com' }, {
ttl: 3600 // expires in 1 hour
});
// Get a value
const result = await client.get('my-namespace', 'user:123');
if (result.exists) {
console.log('Found:', result.data);
console.log('Content-Type:', result.contentType);
}
// Delete a value
await client.delete('my-namespace', 'user:123');
// Get namespace statistics
const stats = await client.getStats('my-namespace');
console.log(`${stats.count} keys, ${stats.sum} bytes`);
// Search for keys
const results = await client.search('my-namespace', 'user');
The client can be configured with options:
const client = new KeyValueClient({
apiKey: 'your-api-key', // or set AGENTUITY_SDK_KEY
url: 'https://api.agentuity.com', // or set AGENTUITY_KV_URL
logger: customLogger, // optional custom logger
});
| Variable | Description | Default |
|---|---|---|
AGENTUITY_SDK_KEY | API key for authentication | Required |
AGENTUITY_REGION | Region for API endpoints | usc |
AGENTUITY_KV_URL | Override KV API URL | Auto-detected |
Keys can have an optional TTL:
// Key expires in 1 hour
await client.set('ns', 'key', value, { ttl: 3600 });
// Key never expires
await client.set('ns', 'key', value, { ttl: null });
// Key uses namespace default TTL
await client.set('ns', 'key', value);
Apache-2.0
FAQs
Unknown package
The npm package @agentuity/keyvalue receives a total of 301 weekly downloads. As such, @agentuity/keyvalue popularity was classified as not popular.
We found that @agentuity/keyvalue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.