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

appwrite-react-ui

v0.1.0

Published

Appwrite React UI is a collection of components for authentication that will help you build your next React project with appwrite faster and easier.

Downloads

1

Readme

Table of Contents

  • Demo
  • Installation
  • Usage Instructions
    • Email Password Sign Up
    • Email Password Sign In
    • OAuth
    • MagicAuth
    • Phone

Demo

https://user-images.githubusercontent.com/35343652/231851341-706fd0b6-20c6-495c-af37-50a549496b65.mov

Installation

This project is not yet published on npm.

Official appwrite docs to install appwrite locally.

Steps to setup locally

Make sure you have node js installed on your machine.

  1. Clone the repo.
  2. Inside the addons folder run npm install to install the required dependencies.
  3. To check out the demo run npm start.
  4. You can find all the components inside the /src/lib/components/Auth folder.

Usage Instructions

Email Password Sign Up

  <EmailPassCreate/>

| Name |
Type | Required | Description | | :----------------: | :----------------------: | :----------------------------------------------------------- | :------------------------------------------------------------------------ | | client | Appwrite Client Object | true | The Appwrite client instance configured with your endpoint and project id | | success | function | true | Callback function to be called on successful login | | failure | function | true | Callback function to be called on failed login | | buttonText | string | false (default: 'Sign Up') | The text to be displayed on the button | | nameRequired | boolean | false (default: false) | Set to true if you want the name input field in the sign up form | | userIdRequired | boolean | false (default: false) | Set to true if you want the user id input field in the sign up form | | showFailureError | boolean | false (default: false) | Set to true if you want to show the error message UI on failure | | validations | object | false (default: {name: true, email: true, password: true}) | Set the validation rules for the input fields | | buttonStyle | object | false | Set custom style for the button | | inputStyle | object | false | Set custom style for the input fields |

Email Password Sign In

  <EmailPassSignIn/>

| Name | Type | Required | Description | | :----------------: | :----------------------: | :----------------------------------------------- | :------------------------------------------------------------------------ | | client | Appwrite Client Object | true | The Appwrite client instance configured with your endpoint and project id | | success | function | true | Callback function to be called on successful login | | failure | function | true | Callback function to be called on failed login | | buttonText | string | false (default: 'Sign In') | The text to be displayed on the button | | showFailureError | boolean | false (default: false) | Set to true if you want to show the error message UI on failure | | validations | object | false (default: {email: true, password: true}) | Set the validation rules for the input fields | | buttonStyle | object | false | Set custom style for the button | | inputStyle | object | false | Set custom style for the input fields |

OAuth

Make sure you have the OAuth provider setup as required.

  <OAuth/>

| Name | Type | Required | Description | | :-----------: | :----------------------: | :------------------------------------------- | :------------------------------------------------------------------------ | | client | Appwrite Client Object | true | The Appwrite client instance configured with your endpoint and project id | | provider | string | true | The OAuth provider name | | success | function | true | Callback function to be called on successful login | | failure | function | true | Callback function to be called on failed login | | buttonText | string | false (default: 'Sign In with {provider}') | The text to be displayed on the button | | buttonStyle | object | false | Set custom style for the button |

MagicAuth

In order for emails to work, you will need to setup proper SMTP configuration. Check out the official appwrite docs.

  <MagicAuth/>

| Name | Type | Required | Description | | :--------------: | :----------------------: | :--------------------------------------------- | :------------------------------------------------------------------------ | | client | Appwrite Client Object | true | The Appwrite client instance configured with your endpoint and project id | | url | string | true | The URL to which the user will be redirected after successful login | | success | function | true | Callback function to be called on successful login | | userIdRequired | boolean | false (default: false) | Set to true if you want the user id input field in the sign up form | | buttonText | string | false (default: 'Sign In with Magic Link') | The text to be displayed on the button | | buttonStyle | object | false | Set custom style for the button | | inputStyle | object | false | Set custom style for the input fields | | validations | object | false (default: {userId: true, email: true}) | Set the validation rules for the input fields |

Phone

Appwrite requires an SMS provider to be setup before using Phone authentication. Check out the official appwrite docs.

  <Phone/>

| Name | Type | Required | Description | | :--------------: | :----------------------: | :--------------------------------------------- | :------------------------------------------------------------------------ | | client | Appwrite Client Object | true | The Appwrite client instance configured with your endpoint and project id | | success | function | true | Callback function to be called on successful login | | buttonText | string | false (default: 'Sign In with Phone') | The text to be displayed on the button | | buttonStyle | object | false | Set custom style for the button | | inputStyle | object | false | Set custom style for the input fields | | validations | object | false (default: {userId: true, phoneNumber: true}) | Set the validation rules for the input fields |