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

crossmint-client-sdk-vue-ui

v0.0.3

Published

Crossmint.io client SDK for Vue 3

Downloads

2

Readme

Crossmint.io Client SDK for Vue.js

The Crossmint SDK allows you to offer wallet-less credit card purchases on your NFT drop. It takes 5 lines of code and 5 min to integrate, and is free to use for the seller. You’ll get the sales proceeds in SOL/ETH as if the user was paying with their own wallet.

Supported chains:

  • Solana
  • Polygon (for docs: contact us at sales at crossmint.io)
  • Ethereum L1 (end of March 2021)

To get started:

  1. Fill out our form in https://www.crossmint.io/developers/onboarding (we'll review your project in under 24hr!)
  2. Follow the instructions below to integrate with your code

Demo of the user experience:

https://vimeo.com/671525311


Quick Setup (Vue.js - Vite / Vue CLI)

1. Install

yarn add crossmint-client-sdk-vue-ui

2. Set up

Go to file where you want to integrate Crossmint button. For example, App.vue.

There, just import the Pay with CrossmintPayButton, and add it in the UI.

Important: If you have Candy Machine UI, be sure to test that the Crossmint button is visible even if a user didn't connect their wallet! Else, your users without wallets won't be able to use it.

<script>
  import { CrossmintPayButton } from 'crossmint-client-sdk-vue-ui';
</script>

<template>
  <CrossmintPayButton
    client-id="<YOUR_CLIENT_ID>"
    collection-title="<TITLE_FOR_YOUR_COLLECTION>"
    collection-description="<DESCRIPTION_OF_YOUR_COLLECTION>"
    collection-photo="<OPT_URL_TO_PHOTO_COVER>"
  />
</template>

Finally, make sure you replace the following values in the CrossmintPayButton component:

  • <TITLE_FOR_YOUR_COLLECTION>: Example: "My NFT collection"
  • <DESCRIPTION_OF_YOUR_COLLECTION>: Example: "The most fun community of 999 generative art monkeys in Solana"
  • <OPT_URL_TO_PHOTO_COVER>: Full URL to an image for your collection. Example: "https://i.picsum.photos/id/542/200/300.jpg?hmac=qD8M4ejDPlEc69pGT21BzB7CDiWOcElb_Ke7V8POjm8"
  • <YOUR_CLIENT_ID>: This is the clientId you received after filling in the onboarding form

3. Components

CrossmintPayButton required

CrossmintPayButton is a button component that is used to trigger the opening of the CrossMint popup and modal overlay.

| propName | default | required | description | | --------------------- | ----------- | -------- | -------------------------------------------------------------------------------------------- | | clientId | undefined | true | Your client integration identifier | | collectionTitle | undefined | false | This will be shown to the user during the checkout process. Max length: 120 | | collectionDescription | undefined | false | This will be shown to the user during the checkout process. Max length: 24 | | collectionPhoto | undefined | false | This will be shown to the user during the checkout process. Preferred resolution: 200x200 px | | theme | dark | false | Use this to specify one of our default themes. Can be light, dark | | ...props | undefined | false | All valid html button props can be added to the button |

CrossmintStatusButton

CrossmintStatusButton is a button component that is used to display Crossmint onboarding status. Normally shouldn't be visible to page visitors.

| propName | default | required | description | | -------- | ----------- | -------- | --------------------------------------------------------------------- | | clientId | undefined | true | Your client integration identifier | | theme | dark | false | Use this to specify one of our default themes. Can be light, dark | | ...props | undefined | false | All valid html button props can be added to the button |