Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
a-tale-of-three-lists
Advanced tools
A sorta-sophisticated but still silly async events processing demo.
The demo simulates a feed of data that's sampled at different speeds, filtered into two lists (red and blue). You can select an item from either list and it's added to your saved list in the middle. Selected duplicates are marked off and then removed. Also, both feeds can be paused.
RUN 'CALLBACKS' DEMO (see more below)
The goal of this project is to sort of be the TodoMVC of async programming. I've seeded the repo with 7 implementations of the same demo, each using a different async pattern.
The code is organized in such a way that there's as much overlap between the implementations as possible. This is intentional. It helps reduce the noise of difference, so that you can focus on only the important things: the different strengths and weaknesses of each async pattern.
I invite all visitors to study the code and do side-by-side comparisons between the different implementations, to see those pros/cons for yourself.
I will also be adding more detailed write-ups of these differences over time, as well as new implementations if there are significant (not just trivial syntax sugar) differences to be illustrated. Suggestions are welcomed!
The following patterns are currently implemented for inspection/comparison:
I use simple jQuery and CSS for the UI of this demo. I don't want that to change. This project is not about comparing different frameworks' approaches to managing and rendering the UI.
That'd be a fun project for you to fork off this one, and compare Angular, React, Backbone, Ember, etc for the UI processing of the lists, kinda like TodoMVC does.
But this project is about exploring the relative merits and shortcomings of each async pattern approach. Any other differences would be unnecessary distracting noise.
Install from npm
with npm install a-tale-of-three-lists
. Verify that the node_modules
dependencies directory is installed in the root directory.
-OR- Clone this repo, then run npm install
from inside the main root directory to install the dependencies.
Now, open any one of the index.html
files using the file://
protocol.
-OR- You can run the demos using a local file server (like python
or node
). Make sure to start the server in each demo's directory, respectively.
The code and all the documentation are released under the MIT license.
FAQs
exploring async patterns with a silly async demo
The npm package a-tale-of-three-lists receives a total of 1 weekly downloads. As such, a-tale-of-three-lists popularity was classified as not popular.
We found that a-tale-of-three-lists demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.