@redjay/threads-json-storage
v1.1.4
Published
JSON file storage adapter for Threads platform
Readme
@redjay/threads-json-storage
JSON file storage adapter for the Threads platform. Stores all data in a local JSON file.
Installation
npm install @redjay/threads-json-storageUsage
import { JsonStorageAdapter } from '@redjay/threads-json-storage';
const storage = new JsonStorageAdapter({
filePath: '~/.threads/threads.json'
});
// Use storage adapter
const threads = await storage.getAllThreads();Features
- Local file-based storage
- Automatic backup before writes
- Human-readable JSON format
- No external dependencies
Default Location
Data is stored at ~/.threads/threads.json by default.
License
MIT
