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

entryway-documentdb

v0.0.8

Published

DocumentDB provider for Entryway, a persistence layer for user authentication data

Downloads

2

Readme

Entryway-DocumentDB

This project provides a node module that allows you to persist user data to Microsoft Azure DocumentDB via the Entryway authentication module.

##Installation ###Core Module

After installing Entryway, this module can be installed as follows:

npm install entryway-documentdb

##Usage

In order to use this project, you need to first create a DocumentDB account.

##Configuration You must provide four configuration values as environmental variables in order for this project to work successfully. These four values are as follows

ENTRYWAY_DOCUMENTDB_HOST_URL
ENTRYWAY_DOCUMENTDB_DB
ENTRYWAY_DOCUMENTDB_COLLECTION
ENTRYWAY_DOCUMENTDB_MASTER_KEY

#####ENTRYWAY_DOCUMENTDB_HOST_URL This is the https endpoint provided by Azure when you set up your DocumentDB account. It will be something similar to the following: https://YOUR_HOST_NAME.documents.azure.com:443/

#####ENTRYWAY_DOCUMENTDB_DB This is the database name that you create when you set up your account.

#####ENTRYWAY_DOCUMENTDB_COLLECTION This is the name of the collection you create within the database from above where you want Entryway to persist its data.

#####ENTRYWAY_DOCUMENTDB_MASTER_KEY This is the value of the Primary Key that is created when you create your DocumentDB database.

###Code Examples There is not any code that is specific to this particular module in order to support DocumentDB. All you need to do is pass a provider object based upon this module into Entryway as shown below.

var UserSchema = require('entryway');
var provider = require('entryway-documentdb');
var user = new UserSchema(provider);
...

Beyond that all the interaction with Entryway is exactly the same as with other Entryway providers, examples which can be seen here.