@gridstorm/analytix-data-connector
v0.1.2
Published
Zero-config data ingestion: CSV, REST API, WebSocket streaming, clipboard paste
Readme
@gridstorm/analytix-data-connector
Zero-config data ingestion for Analytics Studio — CSV, REST API, WebSocket streaming, and clipboard paste.
Install
npm install @gridstorm/analytix-core @gridstorm/analytix-data-connectorQuick Start
import { DataConnector } from '@gridstorm/analytix-data-connector';
const connector = new DataConnector();
// Load from CSV text
const dataset = await connector.fromCSV(csvText, { header: true });
// Load from REST API
const dataset = await connector.fromRest('https://api.example.com/data');
// Load from WebSocket
const stream = connector.fromWebSocket('wss://stream.example.com/feed');Sources
| Source | Method |
|---|---|
| CSV string/file | fromCSV(text) |
| JSON array | fromJSON(rows) |
| REST API | fromRest(url, options) |
| WebSocket | fromWebSocket(url) |
| Clipboard paste | fromClipboard() |
Links
License
MIT © Tekivex
