Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trinsic/trinsic

Package Overview
Dependencies
Maintainers
3
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trinsic/trinsic

Node and Browser wrapper for the Trinsic services

  • 1.8.0
  • npm
  • Socket score

Version published
Weekly downloads
472
decreased by-45.93%
Maintainers
3
Weekly downloads
 
Created
Source

Trinsic SDK for Browsers and Node

Installation

npm install @trinsic/sdk
import { TrinsicService } from "@trinsic/sdk";

For bundlers that do not use the "browser" field, you can directly import the required web package with:

import { AccountService } from "@trinsic/sdk/browser";

Documentation

See documentation here

Maintainers

Dev Environment Setup

Install the following requirements:

npm install -g grpc-web prettier
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:./dist --grpc_out=grpc_js:./dist --proto_path=../../proto ProviderService.proto

After this, you can run npm ci and npm build.

The build script will generate the proto files by running the Generate-Proto.ps1 script. You can also run this script manually.

  • We use prettier for code formatting.
  • Any test marked with .spec.ts is used by node AND browser. Any test marked with .test.ts is only used by node, and can have node-specific functionality.
  • We use the environment variable TEST_SERVER_NODE_PROTOCOL to determine which communication protocol node uses for testing.

FAQs

Package last updated on 23 Sep 2022

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc