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

@usecapsule/web-sdk

Package Overview
Dependencies
Maintainers
9
Versions
340
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@usecapsule/web-sdk

## Setup

  • 0.10.0-test
  • npm
  • Socket score

Version published
Maintainers
9
Created
Source

web-sdk

Setup

Ask a coworker to add you to the "@usecapsule" organization on NPM and ensure you're logged in:

npm login

To run the example locally, navigate to web-sdk directory root, and install dependencies:

yarn

Then navigate to examples and install dependencies:

cd examples && yarn

Start running the example with:

yarn start

The example should by default use a sandbox hosted backend. To use a locally hosted backend, in examples/index.tsx update the instantiation of the Capsule class to use Environment.DEV instead of Environment.SANDBOX, and change DEFAULT_API_KEY to undefined.

You'll also need to run the web portal locally if the web-sdk example is run locally. To do this, in a separate command line window/tab, navigate to web-sdk/portal and install dependencies:

cd portal && yarn

Then run the portal:

yarn start-dev

Once both the example and portal are running locally, the example should be viewable at http://localhost:3002.

FAQs

Package last updated on 26 Jul 2023

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