A good place to fiddle with HTML, JS, and CSS in a browser.
Mustache.js – A JavaScript library (has a Ruby gem as well) to HTML template creating. I primarily use ERB. Not sure at this point how this would benefit.
D3.js – JavaScript library for visualizing data using web standards. D3 helps you bring data to life using SVG, Canvas and HTML. D3 combines powerful visualization and interaction techniques with a data-driven approach to DOM manipulation, giving you the full capabilities of modern browsers and the freedom to design the right visual interface for your data.
SVG HTML element to create graphics in HTML.
Unity game engine a cross-platform game engine.
matter.js A simple 2D physics based animation JavaScript library.
Phaser framework – A light-weight JavaScript library to create simple game. I have to say it is more mature than matter.js…
Electron (software framework)
Electron (formerly known as Atom Shell) is an open-source framework created by Cheng Zhao, and now developed by GitHub. It allows for the development of desktop GUI applications using front and back end components originally developed for web applications: Node.js runtime for the backend and Chromium for the frontend. Electron is the main GUI framework behind several notable open-source projects including GitHub’s Atom and Microsoft‘s Visual Studio Code source code editors and the Light Table IDE, in addition to the freeware desktop client for the Discord chat service.
Socket.io
Socket.IO is a JavaScript library for realtime web applications. It enables realtime, bi-directional communication between web clients and servers. It has two parts: a client-side library that runs in the browser, and a server-side library for Node.js. Both components have a nearly identical API. Like Node.js, it is event-driven.
Socket.IO primarily uses the WebSocket protocol with polling as a fallback option, while providing the same interface. Although it can be used as simply a wrapper for WebSocket, it provides many more features, including broadcasting to multiple sockets, storing data associated with each client, and asynchronous I/O.
It can be installed with the npm tool.
Socket.IO provides the ability to implement real-time analytics, binary streaming, instant messaging, and document collaboration. Notable users include Microsoft Office, Yammer, and Zendesk.
Socket.IO handles the connection transparently. It will automatically upgrade to WebSocket if possible. This requires the programmer to only have Socket.IO knowledge.
Socket.IO is not a WebSocket library with fallback options to other realtime protocols. It is a custom realtime transport protocol implementation on top of other realtime protocols. Its protocol negotiation parts cause a client supporting standard WebSocket to not be able to contact a Socket.IO server. And a Socket.IO implementing client cannot talk to a non-Socket.IO based WebSocket or Long Polling Comet server. Therefore, Socket.IO requires using the Socket.IO libraries on both client and server side.
As of version 2.0, Socket.IO makes use of µWebSockets as the underlying WebSocket library.
Node.js (Child Process, os, and fs)
Request – Simplified HTTP client
Question:
I did a lot of googling and the best I could find was: https://github.com/ciaranj/node-oauth
Are there any libraries on top of this, which provide wrappers to make API calls to Twitter, Facebook, Google, LinkedIn, etc. to say post a tweet or DM somebody or get friends list or post a link to Facebook/G+ et al.?
I’m aware of Passport.js, but its usage is limited to obtaining authentication and authorization from these social sites. Beyond that, currently we will have to individualize API calls via node-oauth to perform activities mentioned above.
Have I missed something? Are you aware of any such libraries?
Answer:
Once you have used Passport.js to obtain an access token, I recommend (and personally use) request to make all API calls to third-party services.
In my opinion, provider-specific wrappers just add unnecessary complication. Most RESTful APIs are very simple HTTP requests. Extra layers only get in the way and add bugs to track down. Further, by sticking with request
, you can integrate with any third party using the same, familiar module.