New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@parcnet-js/app-connector

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcnet-js/app-connector

The app connector is for connecting your app to PARCNET.

latest
npmnpm
Version
1.1.10
Version published
Maintainers
1
Created
Source

PARCNET App Connector

The app connector is for connecting your app to PARCNET.

Getting started

Install the package:

npm install @parcnet-js/app-connector

Then connect to a PARCNET client:

import { connect } from "@parcnet-js/app-connector";

// Ensure this HTML element exists:
const element = document.getElementById("app-connector");
// The URL to the PARCNET client, e.g. Zupass
const clientUrl = "http://localhost:5173";

// Returns an API object that you can use to invoke actions
// See api_wrapper.ts for details
const api = await connect({ name: "My App Name", permissions: []}, element, clientUrl);

This will give you an API object, which can be used to invoke various APIs.

APIs

See the documentation for details of the API methods, their parameters, and results.

FAQs

Package last updated on 10 Nov 2024

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