
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@lanonasis/memory-sdk-standalone
Advanced tools
Standalone Memory SDK - drop into any project for multi-agent orchestration with persistent memory
Official TypeScript SDK for Lanonasis Memory as a Service (MaaS)
# NPM
npm install @lanonasis/memory-sdk
# Yarn
yarn add @lanonasis/memory-sdk
# Bun
bun add @lanonasis/memory-sdk
import MemoryClient from '@lanonasis/memory-sdk';
// Initialize client
const memory = new MemoryClient({
apiUrl: 'https://api.lanonasis.com',
apiKey: 'your-api-key-here'
});
// Create a memory
const newMemory = await memory.createMemory({
title: 'Important Meeting Notes',
content: 'Discussed Q4 strategy and budget allocation...',
type: 'context',
tags: ['meeting', 'strategy', 'q4']
});
// Search memories
const results = await memory.searchMemories({
query: 'Q4 strategy',
limit: 10,
type: 'context'
});
// Get user stats
const stats = await memory.getUserStats();
Unlike traditional LLMs limited by context windows, Lanonasis Memory Service stores unlimited content across multiple formats:
import { MultiModalMemoryClient } from '@lanonasis/memory-sdk';
const memory = new MultiModalMemoryClient({
apiUrl: 'https://api.lanonasis.com',
apiKey: 'your-api-key'
});
// Store an image with OCR and AI description
const imageMemory = await memory.createImageMemory(
'Product Screenshot',
imageFile,
{ extractText: true, generateDescription: true }
);
// Store audio with transcription
const audioMemory = await memory.createAudioMemory(
'Meeting Recording',
audioFile
);
// Store code with semantic analysis
const codeMemory = await memory.createCodeMemory(
'Authentication Helper',
codeString,
'typescript',
{ extractFunctions: true, generateDocs: true }
);
// Store documents with full-text extraction
const docMemory = await memory.createDocumentMemory(
'Project Requirements',
pdfFile,
'pdf'
);
// Search across all modalities
const results = await memory.getMultiModalContext('user authentication', {
includeImages: true,
includeAudio: true,
includeDocuments: true,
includeCode: true
});
interface MaaSClientConfig {
apiUrl: string; // Your MaaS API endpoint
apiKey?: string; // API key for authentication
authToken?: string; // JWT token (alternative to API key)
timeout?: number; // Request timeout in milliseconds
}
await memory.createMemory({
title: 'Memory Title',
content: 'Memory content here...',
type: 'context', // context | project | knowledge | reference | personal | workflow
tags: ['tag1', 'tag2'],
topic_id: 'optional-topic-id',
metadata: { custom: 'data' }
});
await memory.searchMemories({
query: 'search terms',
limit: 10,
type: 'context',
tags: ['filter-tag'],
similarity_threshold: 0.7
});
const memory = await memory.getMemory('memory-id');
await memory.updateMemory('memory-id', {
title: 'Updated Title',
content: 'Updated content...'
});
await memory.deleteMemory('memory-id');
await memory.createTopic({
name: 'Project Alpha',
description: 'All memories related to Project Alpha',
color: '#3B82F6'
});
const topics = await memory.getTopics();
const stats = await memory.getUserStats();
// Returns: { total_memories, memories_by_type, recent_activity, etc. }
import { MemoryClient, MemoryError } from '@lanonasis/memory-sdk';
try {
const result = await memory.createMemory({...});
} catch (error) {
if (error instanceof MemoryError) {
console.error('Memory API Error:', error.message);
console.error('Status Code:', error.statusCode);
}
}
// Subscribe to memory updates
const unsubscribe = memory.onMemoryUpdate((update) => {
console.log('Memory updated:', update);
});
// Unsubscribe when done
unsubscribe();
const memories = await memory.getAllMemories({
page: 1,
limit: 20,
type: 'context'
});
import { useState, useEffect } from 'react';
import MemoryClient from '@lanonasis/memory-sdk';
const useMemory = (apiKey: string) => {
const [client] = useState(() => new MemoryClient({
apiUrl: 'https://api.lanonasis.com',
apiKey
}));
return {
createMemory: client.createMemory.bind(client),
searchMemories: client.searchMemories.bind(client),
// ... other methods
};
};
import MemoryClient from '@lanonasis/memory-sdk';
const memory = new MemoryClient({
apiUrl: 'https://api.lanonasis.com',
apiKey: process.env.LANONASIS_API_KEY
});
// Use in API routes
app.post('/api/memories', async (req, res) => {
try {
const result = await memory.createMemory(req.body);
res.json(result);
} catch (error) {
res.status(500).json({ error: error.message });
}
});
// lib/memory.ts
import MemoryClient from '@lanonasis/memory-sdk';
export const memory = new MemoryClient({
apiUrl: process.env.NEXT_PUBLIC_LANONASIS_API_URL!,
apiKey: process.env.LANONASIS_API_KEY!
});
// pages/api/search.ts
import { memory } from '../../lib/memory';
export default async function handler(req, res) {
const results = await memory.searchMemories({
query: req.body.query,
limit: 10
});
res.json(results);
}
The SDK supports multiple authentication methods:
const memory = new MemoryClient({
apiUrl: 'https://api.lanonasis.com',
apiKey: 'sk_live_...'
});
const memory = new MemoryClient({
apiUrl: 'https://api.lanonasis.com',
authToken: 'your-jwt-token'
});
context: General contextual information and notesproject: Project-specific knowledge and documentationknowledge: Educational content and reference materialsreference: Quick reference information and code snippetspersonal: User-specific private memoriesworkflow: Process and procedure documentationCreate a .env file in your project:
LANONASIS_API_URL=https://api.lanonasis.com
LANONASIS_API_KEY=your-api-key-here
| Feature | Traditional LLMs | Lanonasis Memory Service |
|---|---|---|
| Context Window | Limited (4K-128K tokens) | ♾️ Unlimited |
| Memory Persistence | ❌ Ephemeral | ✅ Permanent |
| Multi-Modal Support | ⚠️ Limited | ✅ Images, Audio, Documents, Code |
| Content Processing | ❌ Basic | ✅ OCR, Transcription, Analysis |
| Search Capabilities | ❌ None | ✅ Vector Similarity + Metadata |
| Cross-Session Memory | ❌ None | ✅ Full History |
| File Storage | ❌ None | ✅ Permanent URLs |
| Content Extraction | ❌ Limited | ✅ Full Text + Semantic Analysis |
Lanonasis transforms how AI systems work with information - instead of forgetting everything after each conversation, it builds a persistent, searchable knowledge base that grows more valuable over time.
MIT License - see LICENSE file for details.
FAQs
Standalone Memory SDK - drop into any project for multi-agent orchestration with persistent memory
We found that @lanonasis/memory-sdk-standalone 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.