Skip to main content

Docs for LOC SDK for JS/TS

This is the docs for FST Network's LOC Logic SDK for JavaScript and TypeScript, a helper package and client interface for JS/TS logic.

For docs of earlier SDK releases, see release note.

For main docs of LOC itself, see Docs for Logic Operating Centre.

A web-based logic code template and unit tool designed for SDK JS/TS, the Logic Code Generator, is also available on this site.

Target SDK Version

  • 0.10.x

Supported Language

LanguageVersion
JavaScriptES6/ES2015 and above (JSDoc is supported)
TypeScript3.7.0 and above

Studio Support

The SDK and its JavaScript/TypeScript runtime can be included in LOC via licensing and will be automatically imported for the logic building in LOC Studio. The users do not need to install or setup additional packages.

Studio Project Configuration

The following default project file in logic source is shared by all cloud logic:

package.json
{
"dependencies": {
"@fstnetwork/loc-logic-sdk": "^0.10.0"
}
}

Additional third-party packages can be added under dependencies.

Local Installation for CLI

Requires Node.js. Latest LTS version recommended.

npm i @fstnetwork/loc-logic-sdk@0.10.0