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

bridger

v0.1.2

Published

Semi automagic bridging of server apis to the browser via socket.io and someday maybe rest...

Downloads

11

Readme

bridger

Build Status

A way to easily expose apis over socket.io (and perhaps in the future: sockjs and rest)

The code that exists currently "works for me" but is likely to change dramatically as this module progresses with no attempts being made to preserve backwards compatiblity.

Currently the server supports one client initialization BridgerIO_Client().bind(...) per connection which for most use cases is just fine. Calling it multiple times may work but hasn't been thoroughly tested and may provide unexpected results.

####You can do this:

BridgerIO_Client().bind(socket, function(client) {...}

####You might be able to do this (untested at the moment):

BridgerIO_Client().bind(socket, "svc1", function(client) {...}
BridgerIO_Client().bind(socket, "svc2", function(client) {...}

####You should definitely not do this:

// binds all services twice
BridgerIO_Client().bind(socket, function(client1) {...}
BridgerIO_Client().bind(socket, function(client2) {...}

####or this

// binds all the same service twice
BridgerIO_Client().bind(socket, "svc1" function(client1) {...}
BridgerIO_Client().bind(socket, "svc1" function(client2) {...}

###Installing

npm install bridger

###To Dos

There is a lot left to do - with more that will come up as development progresses, but some near term items include

  • Add hook (global and/or per method) capability to the routing logic to allow things like
    • access control
    • pre-call injection
    • post-call scrubbing
    • more...
  • Add auto serving of client(s) with configuration (something like what socket.io provides)
  • Bulletproof multiple clients/bind requests to either allow or fail fast (and in an obvious way)

###Contributions

Contributions of any kind (feature request, bug reports/fixes, pull requests, complaints, comments, 'why don't you just use x module instead') are all welcome.