Socket
Book a DemoInstallSign in
Socket

@chili-publish/editor-sdk

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chili-publish/editor-sdk

The sdk for the chili editor

0.120.1
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

editor-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 editor-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/editor-sdk

or

yarn add @chili-publish/editor-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/editor-sdk';
import type { Variable } from '@chili-publish/editor-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

FAQs

Package last updated on 09 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.