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

@trinsic/trinsic

Package Overview
Dependencies
Maintainers
2
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.7.0-rc2
  • npm
  • Socket score

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

Trinsic SDK for Browsers and Node

Installation

npm install @trinsic/trinsic

For web usage, to reduce bundler warnings, add the following plugin to your webpack 5 plugin configuration:

 new IgnorePlugin({ resourceRegExp: /^/u, contextRegExp: /grpc-web-node-http-transport/u })

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 install 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 29 Jul 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