Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Fuses your code into an emergent structure.
As simple as:
npm install coalesce && node -e "require('coalesce')({port:7777})"
That is it, now you can create infinite new projects, like this one: ###hello.html###
<!DOCTYPE html>
<html>
<body>
<form name="hello">
Hello <input name="to">!
</form>
<script src="/theory.js">
require('./hello')
</script>
</body>
</html>
Install theory globally npm install -g theory
###hello.js###
module.exports = require('theory')
('hello', function(a){
console.log("Alive on node and the page!");
});
Save these two files to the same directory as the install.
Now load http://localhost:7777/hello.html and check node's and the page's console.
The magic has only just begun, update hello.js to:
module.exports = require('theory')
('hello', function(a){
a.com.send({
what: "World"
,where: { on: 'magic' }
});
return (document.hello.to.onkeyup = function(m){
if( m.what ){
document.hello.to.value = m.what;
} else {
a.com.send({
where: 'magic'
,what: document.hello.to.value
});
}
});
});
And restart the server with require('coalesce')({port:7777, sec: {relay: true} })
in the same folder and reload the page into 2 tabs. Typing in the input will synchronize across tabs automatically. Curiosity perked? Check out the two test apps in the playground by simply navigating to them in your browser.
###* okay, no really, what is going on?## This is just tossing up a quick getting started guide, but it obviously is pretty vague. So I'll just explain as much as I can really quickly in a garbled mess. Programming is just 9 primitives - booleans, numbers, strings, texts, arrays, objects combined with loops, functions, and if statements. Given these constructs, you then have and do 3 basic things - data, manipulation, and communication. The Theory library provides a solid foundation for this, an abstraction layer for modular Javascript regardless of server, client, or IE6. Coalesce creates the communication layer between all these modules, whether server to server, client to client, or server to client and vice versa, for all protocols - TCP, HTTP, Websocket, or AJAX, all with proper dependency, routing, and event pub/sub. This means when you write beautiful modules for your app, Coalesce automatically becomes a distributed scalable system because your files are physically separated.
Sorry if this doesn't make any sense, but in future docs and talks I'll explain why this is awesome. Hint:
*which, quick note: security is enabled by default, and the demos require the server to disable security, and will only work if you run Coalesce with:
require('coalesce')({
port:7777
,sec: {
relay: true
,incognito: true
}
});
FAQs
Awesome web platform for distributed projects.
The npm package coalesce receives a total of 2 weekly downloads. As such, coalesce popularity was classified as not popular.
We found that coalesce 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.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.