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

@hexaonelabs/firebase-web3connect

v0.0.9-alpha.10

Published

Firebase Web3Connect

Downloads

22

Readme

🔌 Firebase Web3Connect

🔥 Introducing Firebase Web3Connect: Your Gateway to Seamless Web3 Integration! 🌐

Firebase Web3Connect brings the power of Web3 directly to your Firebase Authentication workflow, seamlessly integrating with Firebase's robust authentication system.

With Firebase Web3Connect, you can effortlessly leverage all the advantages of Firebase Authentication, including support for multiple sign-in methods, user management, and secure authentication flows.

Gone are the days of managing separate authentication systems for your Web3 applications. With Firebase Web3Connect, you can easily extend Firebase Authentication to support Web3 sign-in methods, allowing your users to authenticate with their favorite Web3 wallets alongside traditional email/password or social sign-ins.

By plugging Firebase Web3Connect into your Firebase project, you unlock a world of possibilities for your Web3 applications. Whether you're building a decentralized marketplace, a blockchain-based game, or a decentralized finance (DeFi) platform, Firebase Web3Connect seamlessly integrates with Firebase Authentication to provide a unified authentication experience for your users.

Experience the simplicity of integrating Web3 authentication with Firebase Authentication. With Firebase Web3Connect, connecting your Web3 application to Firebase has never been easier. Get started today and elevate your Web3 authentication experience with Firebase Web3Connect. 🔐🌐

UI Overview

Features

  • Seamless Integration: Easily plug Web3 authentication into your Firebase project.
  • Multiple Sign-in Methods: Support for multiple sign-in methods, including Web3 wallets, email/password, and social sign-ins.
  • Firebase Authentication: Leverage all the advantages of Firebase Authentication, including user management and secure authentication flows.
  • Robust and Secure: Built on Firebase's robust infrastructure, ensuring security and reliability for your authentication system.
  • Non-Custodial Wallet: Firebase Web3Connect is non-custodial, meaning users retain control of their private keys and funds.
  • Open Source: Firebase Web3Connect is open source, allowing for contributions from the community and transparency in development.

Getting Started

Firebase Web3Connect is designed to be easy to integrate into your Firebase project. Simply create or use an existing Firebase project, configure Firebase Web3Connect with your Firebase project settings using Authentication Service, and start using Firebase Web3Connect to authenticate users with Web3 wallets.

Prerequisites:

Before you begin, ensure you have the following prerequisites:

  • A Firebase project with Firebase Authentication enabled.
  • Setup desired sign-in methods in Firebase Authentication settings.
  • A application or DApp that you want to integrate with Firebase Authentication.
  • Basic knowledge of JavaScript and Firebase.

1. Installation:

Install Firebase Web3Connect in your project using npm or yarn.

npm install @hexaonelabs/firebase-web3connect
# or
yarn add @hexaonelabs/firebase-web3connect

2. Configuration:

Configure Firebase Web3Connect with your Firebase project settings.

import { FirebaseOptions, initializeApp } from 'firebase/app';
import { getAuth } from 'firebase/auth';

// Import FirebaseWeb3Connect from the package
import { FirebaseWeb3Connect, SigninMethod } from '@hexaonelabs/firebase-web3connect';

const firebaseConfig: FirebaseOptions = {
  // Your Firebase configuration here
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);
// Initialize Firebase Auth
const auth = getAuth(app);

// create local instance of FirebaseWeb3Connect
const firebaseWeb3Connect = new FirebaseWeb3Connect(auth, APIKEY);
// now you can use `firebaseWeb3Connect` to connect and manage users with Web3 wallets

3. Usage:

Start using Firebase Web3Connect in your application to authenticate users with Web3 wallets.

// Connect user with Web3 wallet using Firebase Authentication
const connect = async () => {
	const userInfo = await firebaseWeb3Connect.connectWithUI();
	// userInfo contains user information
	return userInfo;
};

const signOut = async () => {
	await firebaseWeb3Connect.signOut();
};
// Listen user connnection state change with `.onConnectStateChanged()` callback
firebaseWeb3Connect.onConnectStateChanged(async user => {
	if (user) {
		// user is connected with web3 wallet + firebase
	} else {
		// user is not connected
	}
});

4. Documentation:

For detailed documentation and API reference, please refer to the Firebase Documentation. You can also refer to the Firebase Web3Connect demo for a working example of Firebase Web3Connect in action into the src directory.

Contributing

Firebase Web3Connect is open source and welcomes contributions from the community. If you'd like to contribute, please follow the contribution guidelines outlined in the CONTRIBUTING.md file.

License

Firebase Web3Connect is licensed under the MIT License.

Support

If you like this project, please consider supporting it by giving a ⭐️ on Github and sharing it with your friends!