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

golightly-neo4j-temp

v0.0.7

Published

The offical javascript client for Golightly's Neo4j server

Downloads

4

Readme

golightly-neo4j

This is the offical javascript client for Golightly's Neo4j server. It's a lightweight API exposing a few handy methods for interacting with the golightly-neo4j-api app.

Motivation

As of Q1 2020, Golightly currently has four applications in production:

  1. golightly-react-js: app for main site
  2. golightly_mobile: mobile app
  3. golightly-backend-api: backend server for mobile app. Derived from golightly-react-js
  4. golightly-neo4j-api: rails app for users' connections data

Apps 1-3 all communicate and interact with app 4. Thus, it became necessary for us to encapsulate all Neo4j data interaction methods in order to avoid bugs, issues, etc. that could arise from duplication and incorrect use of the HTTP methods provided by the Neo4j rails app. One standardized API can now be easily used across all applications without the risk of exposing underlying methods.

Setup

  1. Install the package yarn add golightly-neo4j or npm install golightly-neo4j

  2. Import the module in config.js for golightly-backend-api and golightly-react-js or index.js for golightly_mobile import { Neo4j } from 'golightly-neo4j';

  3. Initialize and export the client by passing in an instance of fetch and the NEO_4J_URL as stored in the .env file. export const neo4jClient = new Neo4j(fetch, process.env.NEO_4J_URL);

Usage

Five methods are publically exposed on any instance of Neo4j:

  1. neo4jClient.createNewUser(newUserParams: NewUserData) : Promise): Promise<...> This method takes an argument of the shape user: { golightly_uuid: string referred_by: string } and makes a http post request to the /create_user endpoint of our Neo4j rails server.