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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@one-click-connect/wallet-selector

v0.1.1

Published

OneClick Connect Wallet Selector Plugin

Readme

One Click Connect Wallet Selector

Overview

The One Click Connect Wallet Selector is a package that integrates with the NEAR wallet selector ecosystem, allowing applications to bypass the traditional NEAR wallet selector modal and enabling users to sign in with a single click. This package significantly reduces friction in the user authentication flow, making the dApp experience more seamless and efficient.

Installation

npm install @one-click-connect/wallet-selector
# or
yarn add @one-click-connect/wallet-selector
# or
pnpm add @one-click-connect/wallet-selector

Features

  • Streamlined Authentication Flow: Eliminates multiple redirects and clicks normally required in the NEAR wallet authentication process.
  • NEAR Wallet Selector Integration: Fully compatible with the official NEAR wallet selector, easily integrating alongside other wallet modules.
  • Customizable Configuration: Configure network settings, contract IDs, and allowed methods to suit your application's needs.
  • Enhanced User Experience: Ideal for applications that want to abstract away crypto complexities from end users.
  • Direct Sign-in: Enables users to connect directly from a wallet application to your dApp without intermediary steps.

Usage

The One Click Connect wallet selector can be easily integrated into your existing NEAR wallet selector setup:

import { setupWalletSelector } from '@near-wallet-selector/core';
import { setupOneClickConnect } from '@one-click-connect/wallet-selector';

const selector = await setupWalletSelector({
  network: "testnet",
  modules: [
    // Other wallet modules
    ...,
    // Add the OneClick Connect module
    setupOneClickConnect({
      networkId: "testnet",
      contractId: "your-contract.near",
      methods: ["method_1", "method_2"] // Optional
    })
  ]
});

Traditional vs. One Click Connect Flow

Traditional Flow:

  1. User creates an account
  2. User navigates to the application
  3. User clicks sign-in
  4. The wallet selector modal opens
  5. User selects their wallet
  6. User is redirected to the wallet website to approve
  7. User is redirected back to the app

One Click Connect Flow:

  1. User creates an account
  2. User clicks a button directly from the wallet application
  3. User is instantly signed in and ready to use the dApp

API Reference

setupOneClickConnect(options)

The main setup function that configures the One Click Connect module for the NEAR wallet selector.

Parameters

  • options (object):
    • networkId (string): The NEAR network ID ("mainnet", "testnet", etc.)
    • contractId (string): The contract ID your application interacts with
    • methods (string[]): Optional array of contract methods to allow

Returns

A configured wallet selector module that can be used in the NEAR wallet selector setup.

Related Packages

  • @one-click-connect/core: Core functionality for the One Click Connect ecosystem
  • @one-click-connect/dapp-sdk: SDK for dApp integration with One Click Connect
  • @near-wallet-selector/core: The official NEAR wallet selector that this package integrates with

License

MIT License