weavebot-storage-airtable
v0.1.1
Published
Airtable storage adapter for WeaveBot
Maintainers
Readme
@weavebot/storage-airtable
Airtable storage adapter for @weavebot/core.
Installation
npm install @weavebot/storage-airtable @weavebot/coreUsage
import { AirtableStorageAdapter } from '@weavebot/storage-airtable';
import ContentProcessor from '@weavebot/core';
const processor = new ContentProcessor();
const airtableAdapter = new AirtableStorageAdapter();
await airtableAdapter.initialize({
apiKey: process.env.AIRTABLE_API_KEY,
baseId: process.env.AIRTABLE_BASE_ID,
collections: {
'articles': 'Articles Table',
'authors': 'Authors Table'
},
fieldMappings: {
'articles': {
'title': 'Article Title',
'content': 'Content',
'authorId': 'Author'
}
}
});
processor.addStorage('airtable', airtableAdapter);Features
- Generic collection-based operations
- Field name mapping support
- Batch operations
- Query filtering with Airtable formulas
License
MIT
