Getting started
Getting started with the Specify SDK in your Javascript / Typescript code base.
Prerequisites
Javascript ESM compatible runtime (browser or NodeJS)
[Optional] Typescript >= 4.9
Installation
The Specify SDK is still in beta and subject to API changes. Please get in touch with us on Discord if you have any question.
Create a client
Authenticate
In order to consume the private data from a Specify repository, you must authenticate using a personal access token.
You can generate a new PAT in your Specify user settings.
List your organization repositories
Get a list of repositories belonging to your organization.
Get a SDTFClient
SDTFClient
The SDTFClient
is a class providing numerous methods to work with the design data stored using the Specify Design Token Format (SDTF).
It's the way of interacting with your tokens and generating content.
Get the SDTF JSON token tree
You would want to grab the SDTF JSON token tree of a repository anytime you want to: send the token tree over the network or debug an intermediate manipulation.
Now that we know how to retrieve our SDTF, let's see how we can manipulate and retrieve our tokens.
Last updated