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

cordova-plugin-userbase

v1.0.1

Published

A Userbase plugin for cordova apps in iOS and Android.

Downloads

30

Readme

Create secure and private mobile apps using only static JavaScript, HTML, and CSS — and Cordova

What is Userbase?

Userbase is the easiest way to add user accounts and user data persistence to your ~~static site~~ Cordova mobile app. All Userbase features are accessible through a very simple JavaScript SDK. No backend necessary.

What is Cordova?

Cordova is a tool to create mobile apps with JavaScript, HTML, and CSS. You can use it to turn your web app into a mobile app.

Installation

If you're experienced with Cordova already, feel free to follow the quickstart instructions below. If you're new to Cordova, we recommend checking out this more detailed guide that shows you how to create an ugly Cordova to-do app from scratch using Userbase.

Create an admin account

First, you need to create a free Userbase admin account. No credit card required.

Install the plugin

The plugin can be installed via the Cordova command line interface:

cordova plugin add cordova-plugin-userbase

The Userbase SDK will then be available globally at window.userbase.

Set the App ID

In your admin account, you will find a Trial app. Get its App ID, and initialize the Userbase SDK with it.

userbase.init({ appId: 'YOUR_APP_ID' })

And you're all set. You can now proceed to the SDK section of the docs.

Why do I need a Cordova plugin to use Userbase with Cordova?

If you try to use Userbase in a Cordova app without the plugin, you'll notice that signing up and signing in are extraordinarily slow. This is because Userbase uses scrypt to hash passwords, and pure JS Scrypt implementations happen to be extraordinarily slow in Cordova apps. This plugin forked the cordova-plugin-scrypt, which uses native C to run Scrypt, thus enabling a more normal sign up/sign in time in Cordova apps.

License

This project is released under the MIT License.