npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@meteor-web3/connector

v1.0.39

Published

<br/> <p align="center"> <a href=" " target="_blank"> <img src="https://avatars.githubusercontent.com/u/118692557?s=200&v=4" width="180" alt="Meteor logo"> </a > </p > <br/>

Downloads

83

Readme

meteor-sdk

npm version npm License

The system calls exposed by Dataverse Kernel.

Installation

pnpm install @meteor-web3/connector

Run demo

requirements

  • Meteor - A secure data wallet to protect your identity and data assets.
  • MetaMask - A cryptocurrency wallet browser extension.
  • Node.js version >= 16.
  • pnpm version >= 7.
pnpm install // install dependencies
pnpm build  // build the package
pnpm test // run demo

the demo will be running on http://localhost:5173/.

Usage

import { Connector } from "@meteor-web3/meteor-sdk";

const connector = new Connector();

Functions

connector.connectWallet({ wallet: WALLET.METAMASK })

Connect with user wallet. pass in which wallet you want to connect with, currently support MetaMask, WalletConnect, Coinbase and Particle Network. You can also pass in provider from any wallet to perform operations such as data reading and writing.

enum WALLET {
  METAMASK = "MetaMask",
  WALLETCONNECT = "WalletConnect",
  COINBASE = "Coinbase",
  PARTICLE = "Particle"
}
  • Returns:
    • If the wallet is not connected, a pop-up will appear for the user to select a wallet address. After the user selects an address, the address will be returned to indicate that the wallet is connected.
    • If the wallet is already connected, will return wallet address and other info, example:
{
  "address": "0x312eA852726E3A9f633A0377c0ea882086d66666",
  "chain": {
    "chainId": 80001,
    "chainName": "mumbai"
  },
  "wallet": "MetaMask"
}

meteor.createCapability({ appId: string, resource: RESOURCE, wallet: WALLET })

Create a capability for the application to access the data resources.

  • appId: string - which appId is requesting the capability.
  • resource: RESOURCE - Resource to give access to the capability.
    enum RESOURCE {
      CERAMIC,
    }
    This method will open a popup and ask the user to sign a message to create a capability. The message will be like this.
Message:
Give this application access to some of your data

URI:
did:key:z6MknFM4H7EFyBGANghNvV43uLvUKvRPU94fUcc8AZQZCq8Z

Version:
1

Chain ID:
1

Nonce:
UboH08SYfJn9N2

Issued At:
2023-06-12T06:35:19.225Z

Expires At:
2023-06-19T06:35:19.225Z

Resources: 4
ceramic://*?model=kjzl6hvfrbw6c763ubdhowzao0m4yp84cxzbfnlh4hdi5alqo4yrebmc0qpjdi5
ceramic://*?model=kjzl6hvfrbw6c7cp6xafsa7ghxh1yfw4bsub1363ehrxhi999vlpxny9k69uoxz
ceramic://*?model=kjzl6hvfrbw6c5qdzwi9esxvt1v5mtt7od7hb2947624mn4u0rmq1rh9anjcnxx
ceramic://*?model=kjzl6hvfrbw6c6ad7ydn0hi4vtamx2v620hdgu6llq49h28rfd6cs02g3cmn9za
  • Returns:
    • pkh: string - a pkh did you may use to interact with the data resources later.
did:pkh:eip155:1:0x29761660d6Cb26a08e9A9c7de12E0038eE9cb623

check all functions in docs.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

View Docs.

View communicator API Doc.
View meteor-sdk API Doc.
View utils API Doc.

Contributing

Contributions to this project are welcome. To contribute, please follow these steps:

  1. Fork the repository and create a new branch.
  2. Make your changes and test them thoroughly.
  3. Submit a pull request with a detailed description of your changes.