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.
Functional reactive JavaScript front-end architecture
Globus is an opinionated but loosely coupled reactive front-end architecture. It is a combination of the following:
Globus is not really well documented yet, but there is API documentation on the individual projects, and i am planning to make an example application.
import { createApp } from "globus";
const reducers = {
counter: {
// initial counter state
initial: {value: 0},
increment: (state, addend) =>
state.set("value", state.get("value") + addend || 1)
}
};
function View($, _) {
return div(".hello",
h1("Mandatory counter app"),
button(
{
// Dispatch counter increment action on click
$click: () => $.counter.increment(1)
},
// Show the current value of the counter
"Value: " + _.counter.value)
);
}
document.addEventListener("DOMContentLoaded", function() {
createApp(reducers, View);
});
my-application/
reducers/
views/
actions/
lib/
transport/
data/
validation/
Larger applications may introduce an additional domain level:
my-application/
core/
reducers/
views/
actions/
lib/
transport/
data/
users/
reducers/
views/
actions/
lib/
validation/
reducers
is for describing state changes only. no other side effects.actions
contain functions that may invoke reducersm while doing other io, like calling backend actions etcviews
contain view templates, and possibly helper functionslib
contains helper functions, as well as stuff likelib/transport
data adapters for server communtication, converters,lib/data
functions dealing with internal data formats, like resource representations, andlib/validation
validator functionsFAQs
Functional reactive JavaScript front-end architecture
The npm package globus receives a total of 0 weekly downloads. As such, globus popularity was classified as not popular.
We found that globus 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.