indier
v0.0.5
Published
The Indier SDK provides a comprehensive suite of tools to interact with various backend services, making it easier to integrate analytics, messaging, job management, and grid functionalities into your Node.js or TypeScript applications.
Downloads
11
Readme
Indier SDK for Node.js
The Indier SDK provides a comprehensive suite of tools to interact with various backend services, making it easier to integrate analytics, messaging, job management, and grid functionalities into your Node.js or TypeScript applications.
Features
- Analytics Integration: Track events and manage identities.
- Messaging Capabilities: Handle message and instance operations.
- Job Management: Publish and manage jobs with configurable options.
- Grid Functionality: Manage chat and message interactions.
Installation
npm install indier
Usage
Here's a quick start example to interact with different clients provided by the SDK:
import { Indier } from 'indier';
const config = {
apiKey: 'your-api-key-here',
};
const sdk = new Indier(config);
// Use the analytics client
await sdk.analytics.event.create({
channel: 'web',
event: 'login_attempt',
properties: { success: true }
});
// Use the messaging client
await sdk.messaging.instance.create({
name: 'new-instance'
});
// Use the job client
await sdk.job.publish({
topic: 'data_processing',
target: 'http://yourapi.com/process',
method: 'POST',
data: { payload: 'data' }
});
// Use the grid client
await sdk.grid.chat.upsert({
chatId: 'chat123',
content: 'Hello, world!'
});
Explore More with Indier
- Analytics: Track and manage events and identities.
- Messaging: Manage messaging instances and messages.
- Jobs: Configure and manage background jobs.
- Grid: Interact with chat and message services.
Support
For support, questions, or feedback, please visit our documentation, or reach out on Twitter.
About
Indier SDK is developed by Indier. For more information, visit Indier's website.