1.9.1 • Published 18 days ago

@chili-publish/studio-sdk v1.9.1

Weekly downloads
-
License
MIT
Repository
github
Last release
18 days ago

studio-sdk

Coverage

Build PR Publish Package

This is the Open Source CHILI publisher Editor SDK which will make your life easier when you’re working on and integrating the new CHILI publisher Editor.

The project is currently under active development, contributions are welcome in the form of creating issues or in the form of actual contributions on the code. See our CONTRIBUTING.md file to get started on your first contribution.

Alpha Program

To integrate and start using the SDK, you need to be aware of our Alpha program, reach out to your contact @chili to receive more information. Once accepted, you will receive the needed credentials / way of authenticating to configure and setup the SDK on your integration.

Deprecation of old NPM package

Due to a rename of the project, to align more with the product suite that is being offered, the old NPM package (editor-sdk) will be deprecated and a fresh package will be created called @chili-publish/studio-sdk. To update your existing projects, just simply rename the package and do a fresh npm or yarn install.

Documentation

Link to functional documentation and getting started

Link to the official SDK documentation on GitHub*

*Note: the hosted documentation is always based on the latest version. To get the documentation of the release that you use, you can download the sourcecode of that release and open /docs/index.html.

Overview

This repository includes the studio-sdk, the SDK is used to plugin to the CHILI publisher API and will handle the communication between integrations (workspace, etc) and editor engine.

The goal for the SDK is to be as lightweight as possible. We don’t want to store state in here, that would be hard to maintain and keep in sync with the engine. In general the SDK is an abstraction layer for the editor engine, providing a fixed API for the integrators, and flexibility for the engine to evolve.

Conceptually you can think of the SDK - Editor Engine relation as a client - server relation. The SDK will issue requests to the engine and expects a certain result. The other way around the analogy with WebSockets could be used to define how data flows from the engine to the SDK (and eventually consumers of the SDK).

architecture diagram

Getting started

There are 2 ways of getting the SDK.

NPM (with TS support)

The most easy approach would be installing it using a package manager like npm or yarn just do:

npm install --save @chili-publish/studio-sdk

or

yarn add @chili-publish/studio-sdk

Then you can easily import the SDK in your JS and TS files, but also the typing is included with this approach.

// TS example
import EditorSDK from '@chili-publish/studio-sdk';
import type { Variable } from '@chili-publish/studio-sdk';

Load script

The other way would be to include the sdk using the script tag just before the closure. of the body.

<script src="https://path/to/sdk/latest/main.js"></script>

To really get started, there is a nice guide on the official documentation page. And you can find basic integration examples in one of our other repositories.

Build documentation

After installing all dependencies, you're able to build the typedoc documentation. You only need to run the following command

npx typedoc --hideBreadcrumbs

Feedback?

If you have any feedback on the technical parts of the application, a feature request, a bug to report or a general technical question, don’t hesitate to create a new issue.

License

This project is MIT licensed

1.9.1

18 days ago

1.8.1

1 month ago

1.8.0

1 month ago

1.6.2

3 months ago

1.6.0

3 months ago

1.5.0

4 months ago

1.4.5

4 months ago

1.4.0

6 months ago

1.0.0

7 months ago

1.2.5

7 months ago

1.3.0

6 months ago

0.157.4

7 months ago

0.148.0

8 months ago

0.147.0

8 months ago

0.136.0

10 months ago

0.135.5

10 months ago

0.142.0

9 months ago

0.133.2

11 months ago

0.133.1

11 months ago

0.123.0

12 months ago

0.122.0

12 months ago

0.121.0

1 year ago