0.1.6 • Published 5 days ago

@kanvas/core v0.1.6

Weekly downloads
-
License
MIT
Repository
-
Last release
5 days ago

Kanvas Core JS

Introduction

Welcome to the documentation for the Kanvas SDK, a TypeScript SDK designed exclusively to seamlessly connect with the Kanvas Niche ecosystem. This SDK is crafted to enhance the development of headless applications by providing easy-to-use interfaces for interacting with various modules within the Kanvas Niche ecosystem.

Table of Contents

  1. Getting Started
  2. Modules
  3. Usage Examples
  4. API Reference
  5. Contribution Guidelines
  6. Contact and Support

Getting Started

Installation

To begin using the Kanvas SDK in your project, follow these simple steps:

npm install @kanvas/core

Initializate the sdk

Before using any module, you need to authenticate your application with the Kanvas Niche ecosystem. Obtain your API keys from the Kanvas Niche dashboard and initialize the SDK with the following code:

import KanvasCore, { genericAuthMiddleware } from '@kanvas/core';

// Function to retrieve the authentication token from cookies
const getKey = async (): Promise<string | null> => {
  return localStorage.getItem("token") || null // wherever you have saved the user token
};

// Initialize Kanvas Core
const client= new KanvasCore({
  url: 'kanvas-url',
  key: 'your-kanvas-api-key',
  middlewares: [genericAuthMiddleware(getKey)]
});

Modules

The Kanvas Niche SDK provides specific modules for common problems encountered during headless app development. Here are the key modules:

Ecosystem

The Ecosystem module handles authentication, teams, and company-related functionalities.

Inventory

The Inventory module manages products, variants, and distribution channels.

Social

The Social module deals with follows, comments, reactions, and messaging features.

CRM

The CRM module covers leads, deals, and pipelines for customer relationship management.

Usage Examples

Here are some basic examples demonstrating how to use the Kanvas Niche SDK:

Ecosystem - User Login

const user = await client.auth.login(email, password);
console.log(user);

Inventory

const products = await client.inventory.getProduct();
console.log(products);

CRM - Leads

const leads = await client.lead.getAllLeads();
console.log(leads);

API Reference

For a comprehensive list of available methods and their descriptions, refer to the API Reference.

Contribution Guidelines

If you'd like to contribute to the Kanvas Niche SDK, please follow our Contribution Guidelines. TBD

Contact and Support

If you have any questions, feedback, or issues, feel free to reach out to our team at the TBD

Happy coding with Kanvas!

0.1.2

6 days ago

0.1.3

6 days ago

0.1.6

5 days ago

0.1.5

5 days ago

0.0.139

7 days ago

0.0.138

8 days ago

0.0.137

8 days ago

0.0.136

9 days ago

0.0.135

12 days ago

0.0.134

12 days ago

0.0.131

13 days ago

0.0.133

13 days ago

0.0.132

13 days ago

0.0.130

14 days ago

0.0.129

15 days ago

0.0.128

19 days ago

0.0.127

19 days ago

0.0.126

19 days ago

0.0.125

21 days ago

0.0.124

28 days ago

0.0.123

29 days ago

0.0.122

1 month ago

0.0.119

1 month ago

0.0.118

1 month ago

0.0.120

1 month ago

0.0.117

1 month ago

0.0.116

1 month ago

0.0.115

1 month ago

0.0.114

1 month ago

0.0.109

1 month ago

0.0.113

1 month ago

0.0.112

1 month ago

0.0.111

1 month ago

0.0.110

1 month ago

0.0.106

2 months ago

0.0.108

2 months ago

0.0.107

2 months ago

0.0.105

2 months ago

0.0.104

2 months ago

0.0.103

2 months ago

0.0.102

2 months ago

0.0.101

2 months ago

0.0.100

2 months ago

0.0.97

2 months ago

0.0.98

2 months ago

0.0.99

2 months ago

0.0.96

3 months ago

0.0.95

3 months ago

0.0.93

3 months ago

0.0.94

3 months ago

0.0.92

3 months ago

0.0.90

3 months ago

0.0.91

3 months ago

0.0.89

3 months ago

0.0.87

3 months ago

0.0.88

3 months ago

0.0.86

3 months ago

0.0.85

4 months ago

0.0.84

4 months ago

0.0.83

4 months ago

0.0.82

4 months ago

0.0.81

4 months ago

0.0.80

4 months ago

0.0.79

4 months ago

0.0.78

4 months ago

0.0.76

4 months ago

0.0.77

4 months ago

0.0.75

4 months ago

0.0.74

5 months ago

0.0.73

5 months ago

0.0.70

5 months ago

0.0.69

5 months ago

0.0.68

6 months ago

0.0.67

6 months ago

0.0.66

6 months ago

0.0.65

6 months ago

0.0.40

8 months ago

0.0.41

8 months ago

0.0.42

8 months ago

0.0.43

8 months ago

0.0.44

8 months ago

0.0.45

8 months ago

0.0.46

8 months ago

0.0.47

8 months ago

0.0.37

8 months ago

0.0.38

8 months ago

0.0.39

8 months ago

0.0.30

9 months ago

0.0.31

9 months ago

0.0.32

9 months ago

0.0.33

8 months ago

0.0.34

8 months ago

0.0.35

8 months ago

0.0.26

9 months ago

0.0.27

9 months ago

0.0.28

9 months ago

0.0.29

9 months ago

0.0.62

6 months ago

0.0.63

6 months ago

0.0.64

6 months ago

0.0.20

10 months ago

0.0.21

10 months ago

0.0.22

9 months ago

0.0.23

9 months ago

0.0.24

9 months ago

0.0.25

9 months ago

0.0.60

6 months ago

0.0.61

6 months ago

0.0.59

6 months ago

0.0.15

10 months ago

0.0.16

10 months ago

0.0.17

10 months ago

0.0.18

10 months ago

0.0.19

10 months ago

0.0.51

7 months ago

0.0.52

7 months ago

0.0.53

7 months ago

0.0.54

7 months ago

0.0.55

7 months ago

0.0.56

7 months ago

0.0.12

11 months ago

0.0.57

7 months ago

0.0.13

10 months ago

0.0.58

6 months ago

0.0.14

10 months ago

0.0.50

7 months ago

0.0.48

7 months ago

0.0.49

7 months ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago