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

@bracken/noodles

v1.6.5

Published

> #### For Gitlab viewers : > Before your following steps to add this package as a npm depedency,you should set local npm registry first. > > ```bash > npm set registry http://npm.decobim.com > npm adduser --registry http://npm.decobim.com > ```

Downloads

5

Readme

For Gitlab viewers :

Before your following steps to add this package as a npm depedency,you should set local npm registry first.

npm set registry http://npm.decobim.com
npm adduser --registry http://npm.decobim.com

Noodles

CocoaPods Hackage-Deps

A node middle layer for proxy, websocket, api polymerization and request side effects.

Demo usage in ./exec

Get Started

install as depedency with yarn

$ yarn add @decobim/noodles

Bootstrap noodles host server

const noodles = require("@decobim/noodles")

// noodles-sockets & noodles-redis are depedencies of noodles,
// you can require them directly
const sockets = require("@decobim/noodles-sockets");
const redises = require("@decobim/noodles-redis");

noodles(
  port: 9020,

  static: path.resolve(__dirname, "./public"),

  redis: {
    localhost: "redis://:@localhost/0"
  },

  proxy: {
    ops: {
      from: "/operation/v1",
      to: "http://dev.api.ops.decobim.com/v1/",
      hooks: {
        before: {
          "/identity/auth": function(req, res) {}
        },
        after: {
          "/identity/auth": function(req, res) {}
        }
      }
    },
    license: {
      from: "/license/v1",
      to: "http://dev.api.license.decobim.com/v1/"
    }
  },
  sockets: {
    channels: ["first", "second", "third"]
  },
  jwt: {
    authlessApi: [
      "/identity/auth",
      "/identity/project-quest-auth",
      "/identity/wechat-auth",
      "/admin/auth"
    ]
  }
})

Docs

configs.port

configs.static

optional

configs.redis

optional

redis config, each record will create a redis connection instance

format:

redis:{
  [name]:[redis address]
}

All instances can be accessed with redises[name]

const redises = require("noodles-redis")

redises[name].set("key","value")

redis instance properties:

Property | Description | Demo ------|----|---- set | set redis value | instance.set(key:string,value:any) get | get value | instance.get(key:string) del | delele redis record | instance.del(key:string) on | attach redis sub listener | instance.on(channel:string,callback:func)

configs.proxy

optional

server proxy config, each record will create a a to b proxy mapping,and attach origin request method to noodles.clients.

format

proxy:{
 [name]:{
    from:[from path],
    to:[target url],
    hooks:{
      before:{
        [path]:callback
      },
      after:{
        [path]:callback
      }
    }
  }
}

proxy client properties

configs.sockets

optional

configs.sockets.channels

configs.jwt

optional

configs.jwt.authlessApi