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

@genun/client-sdk

v1.6.0

Published

GENU-N Open Platform Client SDK for JavaScript

Downloads

12

Readme

@genun/client-sdk

The@genun/client-sdk for JavaScript empowers developers to incorporate token gating into their apps effortlessly. It streamlines adding functionalities that demand users to possess digital tokens for access, enhancing security and exclusivity. This toolkit simplifies blockchain integration, allowing for innovative, personalized user experiences without the usual technical hurdles.

The SDK is a client-side library written in Javascript, you can easily integrated it into your existing React, Vue or static HTML solution.

Documentation

For detailed documentation and API references, visit the @genun/client-sdk documentation site: GENU-N Open Platform Documentation.

Install with NPM

The @genun/client-sdk depends on axios for making HTTP requests. Make sure to install axios if you haven't already.

Using Yarn:

yarn add axios @genun/client-sdk

Alternatively, you can use npm:

npm install axios @genun/client-sdk

Using the UMD Build in HTML

If you're not using a modern JavaScript framework and prefer to include scripts directly in your HTML, you can use the UMD build from our CDN. Make sure to include axios as it's a peer dependency of the SDK.

Include the following scripts in your HTML file:

<!-- Dependencies -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/1.6.2/axios.min.js"></script>
<!-- Include @genun/client-sdk -->
<script src="https://cdn.genunuserdata.online/genun-client-sdk.umd.1.5.2.min.js"></script>

Initialization

To begin using the SDK in your application, import it and create a new instance. Typically, this is done within the component where you wish to utilize the SDK's features.

Example Initialization

import { ClientSDK } from '@genun/client-sdk';

const genunClient = new ClientSDK({
    domain: 'YOUR_API_DOMAIN', // Replace with your actual domain
    apiKey: 'YOUR_API_KEY', // Replace with your actual API key
    loginRequiredHook() {
        // Logic to handle when API requires user authentication
        console.log('You need to log in to continue');
    },
    timeout: 10000, // Request timeout in milliseconds
});

Ensure you replace 'YOUR_API_DOMAIN' and 'YOUR_API_KEY' with the actual domain and API key provided by GENU-N.