2.2.1 • Published 8 months ago

@starlightcms/js-sdk v2.2.1

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
8 months ago

Starlight JavaScript SDK

This is the official Starlight SDK for websites and JavaScript applications, which makes integrating Starlight content into your apps a real breeze.

You can read the usage guide and the API reference in its documentation page.

Quick Start

To quickly start using the JS SDK, install it into your project:

npm install @starlightcms/js-sdk

Then, import the SDK and configure which Starlight workspace it should request data from:

import Starlight from '@starlightcms/js-sdk'

Starlight.configure({
  workspace: '1234567890'
})

And, finally, start requesting data:

import Starlight from '@starlightcms/js-sdk'

// Listing all entries from the 'posts' model.
const response = Starlight.posts.entries.list()

// Getting content from the 'hello-world' entry.
const response = Starlight.posts.entries.get('hello-world')

The SDK is capable of requesting a myriad of different content from your workspaces. Check out the documentation to learn more.

React SDK

If you use React on your application, take a look at the Starlight React SDK. It's based in the JS SDK, and also provide useful React components to simplify content and image rendering.

Issues

If you have any questions or you're facing any issues with the SDK, feel free to open an issue.

2.2.1

8 months ago

2.2.0

8 months ago

2.1.0

10 months ago

1.1.0

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago

0.13.0

1 year ago

0.13.1

1 year ago

0.12.1

2 years ago

0.11.0

2 years ago

0.10.0

2 years ago

0.9.0

2 years ago

0.6.3

2 years ago

0.8.0

2 years ago

0.6.2

2 years ago

0.7.0

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.6

3 years ago

0.3.7

3 years ago

0.2.0

3 years ago

0.3.5

3 years ago

0.1.7

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago